/* 新しいモーダル - Figmaデザイン */
.sgrp-media-edit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-sizing: border-box;
}

.sgrp-media-edit-modal-panel {
    display: flex;
    flex-direction: column;
    width: 1650px;
    height: 820px;
    border-radius: 8px;
    background: var(--color-soft-white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
}

.sgrp-media-edit-modal-panel .sgtp-prompt-history-menu {
    max-height: 154px;
    width: 400px;
}

.sgrp-media-edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    border-bottom: 1px solid var(--color-gray-100);
    padding: 0 16px;
}

.sgrp-media-edit-modal-title {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-soft-black);
}

.sgrp-media-edit-modal-header .modal-close {
    align-self: center;
}

.sgrp-media-edit-modal-content {
    display: flex;
    width: 100%;
    height: calc(100% - 48px);
    overflow: hidden;
    position: relative;
}

.sgrp-media-edit-modal-image-box {
    width: 1054px;
    height: 100%;
    background: var(--color-gray-50);
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    box-sizing: border-box;
}

.sgrp-media-edit-modal-history-bar {
    width: 228px;
    height: 100%;
    background: var(--color-soft-white);
    border-left: 1px solid var(--color-gray-100);
    z-index: 5;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.sgrp-media-edit-modal-container-filter {
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.sgrp-media-edit-modal-container-filter.is-visible {
    display: flex;
}

.sgrp-media-edit-modal-container-filter-icon {
    width: 330px;
    margin-bottom: 48px;
}