/* Sera mimari / söküm — sağ panel + kroki düzeni */
.gh-editor-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.gh-editor-shell:not(.gh-editor-shell-full) {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.gh-editor-main,
.gh-editor-aside-slot {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gh-editor-main {
    overflow-x: hidden;
}

.designer-kroki-col,
.removal-kroki-col {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.kroki-scroll-area {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.gh-editor-aside-slot {
    align-self: start;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    position: relative;
}

.gh-editor-aside {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.gh-editor-aside .premium-light-card {
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .gh-editor-shell:not(.gh-editor-shell-full) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    /* Masaüstü: konum agroculus-pin-aside.js (position:fixed) */
    .gh-editor-aside {
        width: 100%;
        max-width: 300px;
        border-radius: 18px;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    }

    .gh-editor-aside.gh-editor-aside--pinned {
        border-radius: 18px;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    }

    .gh-editor-aside-slot {
        width: 300px;
        max-width: 300px;
        flex-shrink: 0;
    }
}

@media (max-width: 1023px) {
    .gh-editor-shell:not(.gh-editor-shell-full) {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gh-editor-shell:not(.gh-editor-shell-full) .gh-editor-main {
        padding-bottom: 8px;
    }

    .gh-editor-aside-slot {
        max-width: none;
    }

    .gh-editor-aside,
    .gh-editor-aside.gh-editor-aside--fixed {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        z-index: 2100;
        max-height: min(88vh, 100dvh - 72px);
        margin: 0;
        padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
        border-radius: 0;
    }

    .gh-editor-aside .premium-light-card {
        border-radius: 16px 16px 0 0 !important;
    }
}
