.effect-items-modal {
    --gf-modal-width: min(720px, calc(100% - 20px));
    --effect-items-modal-height: min(720px, calc(100vh - 20px));
    --effect-items-modal-height: min(720px, calc(100dvh - 32px));
    --gf-modal-shell-bg: #4f3625;
    --gf-modal-shell-border: rgba(215, 155, 66, 0.62);
    --gf-modal-head-bg: linear-gradient(100deg, #503724, #704a2f);
    --gf-modal-head-border: rgba(215, 155, 66, 0.48);
    --gf-modal-body-bg: #60412c;
    --gf-modal-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
    --effect-items-bg: #60412c;
    --effect-items-bg-dark: #4c3324;
    --effect-items-line: rgba(215, 155, 66, 0.34);
    --effect-items-line-strong: rgba(215, 155, 66, 0.52);
    --effect-items-text: #f7ead5;
    --effect-items-muted: rgba(247, 234, 213, 0.78);
}

.effect-items-modal .gf-modal-backdrop {
    background: rgba(24, 16, 11, 0.58);
}

.effect-items-modal.open .gf-modal-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.effect-items-modal-card {
    min-width: var(--gf-modal-width);
    max-width: var(--gf-modal-width);
    min-height: var(--effect-items-modal-height);
    max-height: var(--effect-items-modal-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-color: var(--effect-items-line-strong);
    background: var(--effect-items-bg-dark);
    border-radius: 9px;
    box-shadow: var(--gf-modal-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.effect-items-modal .gf-modal-head {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 8px 10px 8px 14px;
}

.effect-items-modal .gf-modal-title {
    color: #f3c24a;
    text-align: left;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.42);
}

.effect-items-modal .gf-modal-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 11px 1px 2px;
    border: 2px solid #d79b42;
    transform: rotate(45deg);
}

.effect-items-modal .gf-modal-close {
    border: 1px solid rgba(215, 155, 66, 0.5);
    border-radius: 7px;
    background: rgba(215, 155, 66, 0.08);
    color: #f3c24a;
}

.effect-items-modal .gf-modal-close:hover {
    background: rgba(215, 155, 66, 0.2);
    border-color: rgba(243, 194, 74, 0.82);
}

.effect-items-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--effect-items-bg);
}

.effect-items-summary {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--effect-items-line-strong);
    background: linear-gradient(100deg, rgba(50, 35, 25, 0.98), rgba(82, 54, 35, 0.95));
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.effect-items-summary-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid var(--effect-items-line-strong);
    border-radius: 999px;
    background: rgba(35, 25, 18, 0.5);
    color: #f3c24a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.effect-items-summary-cap {
    color: #fff3dc;
}

.effect-items-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.effect-items-row {
    --effect-items-row-padding-x: 10px;
    --effect-items-image-column: 74px;
    --effect-items-column-gap: 0px;
    position: relative;
    display: grid;
    grid-template-columns: var(--effect-items-image-column) minmax(0, 1fr);
    gap: var(--effect-items-column-gap);
    align-items: center;
    min-height: 78px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--effect-items-line);
    border-radius: 0;
    background: var(--effect-items-bg);
    color: var(--effect-items-text);
}

.effect-items-row::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--effect-items-image-column);
    width: 1px;
    background: var(--effect-items-line);
    pointer-events: none;
}

.effect-items-row:last-child {
    border-bottom: 0;
}

.effect-items-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 5px;
    cursor: pointer;
}

.effect-items-image:focus-visible {
    outline: 1px solid #f3c24a;
    outline-offset: 2px;
}

.effect-items-image.is-copied .effect-items-id {
    background: rgba(93, 93, 93, 0.9);
    color: #fff;
}

.effect-items-image img {
    width: auto;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.32));
}

.effect-items-info {
    min-width: 0;
    padding: 8px 10px;
}

.effect-items-id {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 2;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(35, 25, 18, 0.62);
    color: #f3c24a;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .02em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    pointer-events: none;
}

.effect-items-name {
    min-width: 0;
    margin-bottom: 4px;
    color: #f3c24a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.effect-items-kind {
    color: var(--effect-items-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.effect-items-value {
    color: #fff3dc;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1.1;
}

.effect-items-empty {
    padding: 14px;
    color: var(--effect-items-text);
    text-align: center;
    font-weight: 700;
}

@media (max-width: 768px) {
    .effect-items-modal {
        --effect-items-modal-height: min(600px, calc(100vh - 16px));
        --effect-items-modal-height: min(600px, calc(100dvh - 24px));
    }

    .effect-items-row {
        --effect-items-image-column: 58px;
        min-height: 66px;
    }

    .effect-items-image img {
        max-width: 50px;
        max-height: 50px;
    }

    .effect-items-info {
        padding: 7px 8px;
    }

    .effect-items-name {
        font-size: 13px;
    }

    .effect-items-kind {
        font-size: 12px;
    }

    .effect-items-value {
        font-size: 16px;
    }
}
