.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 200ms ease;
}

.modal.open {
    opacity: 1;
    transition: opacity 300ms ease;
}

#userProfileModal.open {
    view-transition-name: active-modal;
}

::view-transition-group(active-modal) {
    z-index: 2147483647 !important;
}

.modal-content {
    background: var(--surface);
    padding: 30px;
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    position: relative;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease-in;
    z-index: 2;
}

#addModal .modal-content {
    height: 90vh;
    max-height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 15px 30px 30px 30px;
}

#aboutModal .modal-content {
    height: 78vh;
    max-height: 650px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease-out;
}

@media (max-width: 600px) {
    .modal-content {
        width: 85%;
        padding: 20px;
    }

    .modal-content-large {
        width: 90%;
    }

    .map-modal-content {
        width: 90%;
    }

    #addModal .modal-content {
        padding: 12px 20px 20px 20px;
        height: 90vh;
        height: 90dvh;
        max-height: min(650px, calc(100dvh - 20px));
    }

    #aboutModal .modal-content {
        height: 85vh;
    }
}

.modal-content-large {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content-small {
    text-align: center;
    max-width: 350px;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-title-flex {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-no-margin {
    margin-top: 0;
}

.modal-confirm-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-flex-1 {
    flex: 1;
}

.btn-danger {
    background: var(--danger) !important;
}

@media (hover: hover) {
    .btn-danger:hover {
        background: #c0392b !important;
    }
}

.modal-high-z {
    z-index: 1000000 !important;
}

.close-btn {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    z-index: 10;
    line-height: 1;
}

@media (hover: hover) {
    .close-btn:hover {
        color: var(--danger);
    }
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (hover: hover) {
    .custom-file-upload:hover {
        border-color: var(--accent);
        color: var(--text);
        background: rgba(0, 0, 0, 0.2);
    }
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload svg {
    width: 50px;
    height: 50px;
    margin-top: 25px;
    margin-bottom: 15px;
    fill: currentColor;
}

.custom-file-upload>span {
    margin-bottom: 25px;
}

.file-name-display {
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
}

.upload-file-label {
    padding: 5px;
}

.image-preview {
    display: none;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    object-fit: contain;
    max-height: 130px;
}

.image-preview-container {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-container .image-preview {
    width: 100%;
    display: block;
    margin-top: 0;
    max-height: 130px;
    object-fit: contain;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

@media (hover: hover) {
    .image-preview-container:hover .preview-overlay {
        opacity: 1;
    }
}

.preview-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 5;
}

.preview-btn {
    flex: 1;
    background: transparent;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 15px 60px 15px;
    margin: 0;
}

@media (hover: hover) {
    .preview-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

.preview-btn:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .preview-overlay {
        opacity: 1;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.before-image-wrapper {
    display: none;
    margin-bottom: 15px;
}

.ai-tagging-status {
    display: none;
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: bold;
}

.upload-progress-text {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    color: var(--accent);
    display: none;
}

.edit-save-btn {
    width: 100%;
    margin-top: 15px;
}

#btnNext1 .next-btn-text {
    display: inline-block;
    transform: translateY(-3px);
}

.wizard-progress {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
    direction: rtl;
    flex-shrink: 0;
}

.wizard-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    position: relative;
    width: 80px;
    cursor: pointer;
}

.wizard-step-wrapper.disabled-step {
    cursor: not-allowed;
}

.wizard-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--border);
    transition: 0.3s;
}

.wizard-step.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.wizard-step-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
    text-align: center;
}

.wizard-step.active+.wizard-step-label {
    color: var(--accent);
    font-weight: bold;
}

.wizard-line {
    position: absolute;
    top: 16px;
    height: 3px;
    background: var(--border);
    z-index: 1;
    transition: 0.3s;
}

#wizardLine1 {
    right: 45px;
    left: 50%;
}

#wizardLine2 {
    right: 50%;
    left: 45px;
}

.wizard-line.active {
    background: var(--accent);
}

.tag-pill-ai {
    background: rgba(155, 89, 182, 0.15) !important;
    border: 1px solid rgba(155, 89, 182, 0.4) !important;
    color: #dfa7ff !important;
}

[data-theme="light"] .tag-pill-ai {
    background: rgba(155, 89, 182, 0.1) !important;
    border: 1px solid rgba(155, 89, 182, 0.3) !important;
    color: #8e44ad !important;
}

.summary-static-tag-ai {
    background: rgba(155, 89, 182, 0.12) !important;
    border: 1px solid rgba(155, 89, 182, 0.3) !important;
    color: #dfa7ff !important;
}

[data-theme="light"] .summary-static-tag-ai {
    background: rgba(155, 89, 182, 0.08) !important;
    border: 1px solid rgba(155, 89, 182, 0.25) !important;
    color: #8e44ad !important;
}

.wizard-panel {
    display: none;
    height: 100%;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.wizard-panel.active {
    display: flex;
}

#addStep1.active:not(.slide-forward):not(.slide-backward) {
    animation: panelEnter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wizard-panel.active.slide-forward {
    animation: slideForwardRTL 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wizard-panel.active.slide-backward {
    animation: slideBackwardRTL 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideForwardRTL {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideBackwardRTL {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-scroll-container {
    position: relative;
    z-index: 20;
}

.wizard-scroll-container:focus-within,
.wizard-scroll-container:has(.autocomplete-list:not([style*="display: none"])) {
    z-index: 50;
    position: relative;
    overflow: visible !important;
}

#addStep1>#btnNext1,
#addStep2>.modal-confirm-buttons,
#addStep3>.modal-confirm-buttons {
    position: relative;
    z-index: 1;
    margin-top: auto !important;
    margin-bottom: 0;
    flex-shrink: 0;
    padding-top: 15px;
    padding-bottom: 5px;
    text-align: center;
    justify-content: center;
}

.summary-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    text-align: right;
    margin-bottom: 15px;
    overflow: hidden;
}

.summary-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 0;
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.summary-label {
    font-weight: bold;
    color: var(--accent);
    font-size: 12px;
}

.summary-value {
    font-size: 13px;
    color: var(--text);
    word-break: break-word;
}

.summary-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.summary-static-tag {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

.summary-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
}

#summaryImagePreview,
#summaryBeforeImagePreview {
    max-height: min(140px, 18vh) !important;
    margin: 0 !important;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

#summaryImagePreview.shrunk,
#summaryBeforeImagePreview.shrunk {
    max-height: min(70px, 9vh) !important;
}

#mapNetworkWrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

#mapNetwork {
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.map-modal-content {
    max-width: 1100px;
    width: 92%;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 20px 45px var(--shadow);
    overflow: hidden;
}

.map-network-wrapper {
    margin-top: 5px;
    flex-grow: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.map-modal-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #a88beb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.map-header-container {
    padding-left: 56px;
}

.map-title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.map-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

@media (hover: hover) {
    .map-fullscreen-btn:hover {
        background: var(--surface-hover);
        color: var(--text);
        border-color: var(--border);
    }
}

.map-fullscreen-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}


#mapModal.is-fullscreen {
    padding: 0;
    backdrop-filter: none;
}

#mapModal.is-fullscreen .map-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 30px 48px 24px 48px !important;
    margin: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

#mapModal.is-fullscreen .close-btn {
    top: 26px;
    left: 40px;
    font-size: 30px;
}

#mapModal.is-fullscreen .map-header-container {
    padding-left: 64px;
    margin-bottom: 20px;
}

#mapModal.is-fullscreen .map-network-wrapper {
    border-radius: 12px;
}

@media (max-width: 768px) {
    .map-fullscreen-btn {
        display: none !important;
    }

    .wizard-scroll-container,
    .wizard-scroll-container:focus-within {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

.map-controls-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.map-control-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    user-select: none;
}

.map-toggle-buttons {
    display: inline-flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    align-items: center;
    box-sizing: border-box;
}

.toggle-btn-label {
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.toggle-btn-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-btn-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1.2;
}

@media (hover: hover) {
    .toggle-btn-label:hover span {
        color: var(--text);
        background: var(--surface-hover);
    }
}

.toggle-btn-label input:checked+span {
    background: linear-gradient(to bottom, #4faae7, var(--accent));
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.map-search-container {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 14px;
    width: 240px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25), 0 6px 20px var(--shadow);
    width: 280px;
}

.map-search-container.has-error,
.map-search-container.has-no-results {
    border-color: var(--danger, #e74c3c);
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.2), 0 4px 16px var(--shadow);
}

.map-search-container.has-error:focus-within,
.map-search-container.has-no-results:focus-within {
    border-color: var(--danger, #e74c3c);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25), 0 6px 20px var(--shadow);
}

.map-search-container.has-error .map-search-icon,
.map-search-container.has-no-results .map-search-icon {
    color: var(--danger, #e74c3c);
}

#mapSearchInput.has-error,
#mapSearchInput.has-no-results {
    border-color: var(--danger, #e74c3c);
}

.map-search-icon {
    color: var(--text-muted);
    margin-left: 8px;
    flex-shrink: 0;
}

.map-search-container input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--text) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

.map-search-container input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.map-search-clear {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    margin-right: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, color 0.2s;
}

.map-search-clear:hover {
    color: var(--text);
}

.map-search-container input:not(:placeholder-shown)~.map-search-clear {
    opacity: 1;
    pointer-events: auto;
}

.map-floating-controls {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    gap: 3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.2s ease;
}

.map-floating-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    padding: 0;
}

@media (hover: hover) {
    .map-floating-btn:hover {
        background: var(--surface-hover);
        color: var(--text);
    }
}

.map-floating-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.map-floating-divider {
    width: 20px;
    height: 1px;
    background: var(--border);
    margin: 2px 0;
}

.map-center-btn {
    display: none;
}

.map-search-error {
    position: absolute;
    top: 58px;
    left: 14px;
    background: var(--danger);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.35);
    pointer-events: none;
    direction: rtl;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .map-modal-content {
        width: 95%;
        padding: 16px;
        height: 92vh;
    }

    .map-header-container {
        padding-left: 36px;
    }

    .map-fullscreen-btn {
        width: 28px;
        height: 28px;
        font-size: 13.5px;
    }

    .map-controls-group {
        gap: 8px;
    }

    .map-floating-controls {
        left: 10px;
        bottom: 10px;
        padding: 3px;
        gap: 2px;
    }

    .map-floating-btn {
        width: 30px;
        height: 30px;
    }

    .map-search-error {
        top: 48px;
        left: 10px;
    }
}

.map-stats-card {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    width: 220px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px var(--shadow);
    color: var(--text);
    transition: opacity 0.3s;
    pointer-events: none;
}

.map-stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.map-stats-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1.4;
}

.stat-lbl {
    color: var(--text-muted);
}

.stat-val {
    font-weight: 700;
    color: var(--accent);
    text-align: left;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mapNodePopup {
    display: none;
    position: absolute;
    z-index: 20;
    background: var(--surface);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 12px 32px var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    margin-top: -18px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
    max-width: 150px;
}

#mapNodePopup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: var(--border) transparent transparent transparent;
}

@media (hover: hover) {
    #mapNodePopup:hover {
        border-color: var(--accent);
        transform: translate(-50%, -100%) scale(1.05);
        box-shadow: 0 16px 36px var(--shadow), 0 0 0 1px var(--accent);
    }

    #mapNodePopup:hover::after {
        border-color: var(--accent) transparent transparent transparent;
    }
}

.map-popup-img-wrap {
    position: relative;
    width: 130px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-hover);
}

.map-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    #mapNodePopup:hover .map-popup-img {
        transform: scale(1.05);
    }
}

.map-popup-info {
    padding: 6px 4px 4px 4px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.map-popup-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.map-popup-meta {
    font-size: 11px;
    color: var(--accent);
    margin-top: 2px;
    width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-skeleton {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.map-skeleton-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-skeleton-svg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.skel-pulse-stroke {
    stroke: var(--border);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    animation: skelDash 20s linear infinite;
}

@keyframes skelDash {
    to {
        stroke-dashoffset: -1000;
    }
}

.skel-pulse-fill {
    fill: var(--surface);
    stroke: var(--border);
    stroke-width: 2;
    animation: skelNodePulse 2s ease-in-out infinite;
}

@keyframes skelNodePulse {

    0%,
    100% {
        fill: var(--surface);
    }

    50% {
        fill: var(--surface-hover);
    }
}

.map-skeleton-badge {
    position: absolute;
    bottom: 24px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px var(--shadow);
}

.map-skeleton-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}

@keyframes mapSpin {
    to {
        transform: rotate(360deg);
    }
}

.btn-stats {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stats-scope-btn {
    height: 34px;
    padding: 0 15px;
    font-size: 13px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-csv {
    height: 34px;
    padding: 0 15px;
    font-size: 13px;
    margin-left: 7px;
}

.stats-content-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.chart-subtitle {
    font-size: 11px;
    font-weight: normal;
}

.chart-canvas-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
}

.chart-full-width {
    grid-column: 1 / -1;
    height: 420px;
}

.chart-canvas-centered {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.stats-skeleton {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.stats-skel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stats-skel-card {
    height: 80px;
    background: var(--surface-hover);
    border-radius: 10px;
    animation: skeleton-pulse 1.5s infinite;
}

.stats-skel-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-skel-chart {
    height: 250px;
    background: var(--surface-hover);
    border-radius: 10px;
    animation: skeleton-pulse 1.5s infinite;
}

@media (max-width: 600px) {
    .stats-skel-charts {
        grid-template-columns: 1fr;
    }
}

.stats-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 5px;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .stat-card.clickable:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
    }
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.chart-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        grid-column: 1 / -1 !important;
    }
}

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface);
    color: var(--text);
    padding: 15px 25px;
    border-radius: 8px;
    border-right: 5px solid var(--accent);
    animation: slideIn 0.3s forwards;
    box-shadow: 0 4px 12px var(--shadow);
}

.toast.toast-success {
    border-right-color: #2ecc71;
}

.toast.toast-error {
    border-right-color: var(--danger);
}

.toast.toast-warning {
    border-right-color: #e67e22;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes shrinkBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}


.search-action-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    color: var(--text-muted);
    transition: 0.3s;
    z-index: 5;
}

@media (hover: hover) {
    .search-action-btn:hover {
        color: var(--accent);
    }
}

.explorer-panel {
    position: absolute;
    top: calc(100% + 5px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 1000;
    padding: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    cursor: default;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    transform: translateX(var(--panel-x, 0)) translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s;
}

.explorer-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(var(--panel-x, 0)) translateY(0);
}

.panel-left-align {
    --panel-x: 0;
    left: 0;
    width: 100%;
    min-width: 300px;
}

.panel-center-align {
    --panel-x: -50%;
    left: 50%;
    width: max-content;
}

.explorer-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.explorer-panel-title {
    font-weight: bold;
    font-size: 14px;
}

.tag-sort-options {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.tag-sort-options label {
    cursor: pointer;
}

.tag-explorer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    align-content: flex-start;
}

.color-palette-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.color-palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 260px;
    margin: 0 auto;
}

.color-search-btn {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

@media (hover: hover) {
    .color-swatch:hover {
        transform: scale(1.15);
    }
}

.color-swatch.selected {
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 8px var(--accent);
}

.swatch-red {
    background: #e74c3c;
}

.swatch-orange {
    background: #e67e22;
}

.swatch-brown {
    background: #8b4513;
}

.swatch-yellow {
    background: #f1c40f;
}

.swatch-green {
    background: #2ecc71;
}

.swatch-lightblue {
    background: #00bfff;
}

.swatch-blue {
    background: #3498db;
}

.swatch-purple {
    background: #9b59b6;
}

.swatch-pink {
    background: #ff9ff3;
}

.swatch-white {
    background: #ecf0f1;
    border: 1px solid #ccc;
}

.swatch-gray {
    background: #95a5a6;
}

.swatch-black {
    background: #222;
    border: 1px solid #555;
}

.native-color-wrapper {
    background: linear-gradient(135deg, red, yellow, green, blue, purple);
    position: relative;
    overflow: hidden;
}

.native-color-picker {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    cursor: pointer;
    opacity: 0;
}

body.modal-open {
    overflow: hidden !important;
}

.location-modal-content {
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.location-modal-body {
    display: flex;
    flex-direction: row-reverse;
    flex-grow: 1;
    gap: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.location-map-pane {
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.location-images-pane {
    width: 0;
    opacity: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.location-modal-body.split-view .location-images-pane {
    width: 33.333%;
    opacity: 1;
    padding-left: 5px;
}

.location-modal-body.split-view .location-map-pane {
    width: 66.666%;
    flex-grow: 0;
}

.location-similar-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-hover);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.location-similar-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0.8;
    transition: 0.3s;
}

@media (hover: hover) {
    .location-similar-thumb:hover img {
        opacity: 1;
        transform: scale(1.05);
    }
}

.location-similar-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .location-modal-content {
        width: 85vw;
    }

    .location-modal-body {
        flex-direction: column;
    }

    .location-images-pane {
        width: 100%;
        height: 0;
    }

    .location-modal-body.split-view .location-images-pane {
        width: 100%;
        height: 40%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 0;
        padding-bottom: 5px;
    }

    .location-modal-body.split-view .location-map-pane {
        width: 100%;
        height: 60%;
    }

    .location-similar-thumb {
        width: auto;
        height: 100%;
        flex-shrink: 0;
    }

    .location-similar-thumb img {
        width: auto;
        height: 100%;
        object-fit: contain;
    }
}

.location-map-pane iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: filter 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

:root:not([data-theme="light"]) .location-map-pane iframe,
[data-theme="dark"] .location-map-pane iframe,
body.dark-mode .location-map-pane iframe {
    filter: invert(95%) hue-rotate(180deg) brightness(95%) contrast(85%) grayscale(15%);
}

#descInput,
#editDesc {
    max-height: 100px;
    overflow-y: auto !important;
}

#addStep2 .tags-wrapper,
#editModal .tags-wrapper,
#bulkEditModal .tags-wrapper {
    max-height: none;
    overflow: visible;
}

.map-info-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.map-info-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

@media (hover: hover) {
    .map-info-btn:hover {
        background: var(--surface-hover);
        color: var(--text);
        border-color: var(--border);
    }
}

.map-info-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.map-info-container.active .map-info-btn {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.map-info-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 290px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text);
    box-shadow: 0 12px 30px var(--shadow);
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    font-size: 13px;
    direction: rtl;
    line-height: 1.5;
    text-align: right;
}

.map-info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--border) transparent;
}

.map-info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--surface) transparent;
}

.map-tooltip-title {
    margin: 0 0 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-tooltip-desc {
    color: var(--text);
    font-size: 12.5px;
}

.map-tooltip-desc ul {
    margin: 6px 0;
    padding-right: 18px;
}

.map-tooltip-desc li {
    margin-bottom: 4px;
}

.map-tooltip-desc strong {
    color: var(--accent);
}

.map-tooltip-desc em {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-style: normal;
    font-size: 11.5px;
}

@media (hover: hover) {
    .map-info-container:hover .map-info-tooltip {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

.map-info-container.active .map-info-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .map-info-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        width: 85vw;
        max-width: 320px;
    }

    .map-info-container.active .map-info-tooltip {
        transform: translate(-50%, -50%);
    }

    .map-info-tooltip::before,
    .map-info-tooltip::after {
        display: none;
    }
}

.vis-tooltip {
    background: var(--surface) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--text) !important;
    box-shadow: 0 8px 24px var(--shadow) !important;
    font-size: 12.5px !important;
    font-family: inherit !important;
    direction: rtl !important;
    text-align: right !important;
}

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.toggle-switch-wrapper input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--surface-hover);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-wrapper input[type="checkbox"]:checked+.toggle-switch {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch-wrapper input[type="checkbox"]:checked+.toggle-switch::after {
    left: calc(100% - 20px);
    background: white;
}

.inat-jump-to-top {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    border: none;
    box-shadow: 0 4px 10px var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 1000;
}

.inat-jump-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .inat-jump-to-top:hover {
        transform: translateY(-3px);
        background: #555;
    }
}

@media (max-width: 600px) {
    .inat-jump-to-top {
        right: 8px;
    }
}

.theme-toggle .icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle .icon {
    position: absolute;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.7, 1),
        opacity 0.3s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .label-wrapper {
    position: relative;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 18px;
    margin-left: 5px;
    overflow: hidden;
}

.theme-toggle .label-text {
    position: absolute;
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.7, 1);
}

.theme-toggle .label-light {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .label-dark {
    opacity: 0;
    transform: translateY(12px);
}

[data-theme="light"] .theme-toggle .label-light {
    opacity: 0;
    transform: translateY(-12px);
}

[data-theme="light"] .theme-toggle .label-dark {
    opacity: 1;
    transform: translateY(0);
}

.flip-container {
    perspective: 1200px;
    display: grid;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
}

.flip-front,
.flip-back {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.flip-front {
    transform: rotateY(0deg);
    z-index: 2;
    opacity: 1;
}

.flip-back {
    transform: rotateY(-180deg);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.flip-container.flipped .flip-front {
    transform: rotateY(180deg);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.flip-container.flipped .flip-back {
    transform: rotateY(0deg);
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.modal ::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.modal ::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: var(--surface);
}

.modal ::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 6px;
    border: 2px solid var(--surface);
    cursor: pointer;
    background-repeat: no-repeat;
}

@media (hover: hover) {
    .modal ::-webkit-scrollbar-thumb:hover,
    .modal-content::-webkit-scrollbar-thumb:hover {
        background-color: var(--text-muted);
    }
}

#shortcutsModal .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 26px 18px 26px;
}

#shortcutsModal .modal-header-flex {
    flex-shrink: 0;
    margin-bottom: 8px;
    padding-left: 30px;
}

#shortcutsModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 4px;
    margin-top: 6px;
}