.odos-asset-gallery {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(224, 178, 83, 0.28);
    background: rgba(8, 12, 20, 0.45);
}

.odos-asset-gallery__head {
    margin-bottom: 0.9rem;
}

.odos-asset-gallery__head h3 {
    margin: 0.15rem 0 0.35rem;
}

.odos-asset-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.85rem;
}

.odos-asset-tile {
    display: grid;
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), rgba(7, 10, 18, 0.56);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.odos-asset-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 178, 83, 0.45);
    box-shadow: 0 10px 28px rgba(0,0,0,0.26);
}

.odos-asset-tile__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.10);
}

.odos-asset-tile__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.odos-asset-tile__meta strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.odos-asset-tile__meta small {
    display: block;
    color: rgba(255,255,255,0.72);
    line-height: 1.35;
}

.odos-raw-generated-assets {
    margin: 0.75rem 0 1.25rem;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
}

.odos-raw-generated-assets summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.odos-raw-generated-assets__body {
    padding: 0 1rem 1rem;
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
    max-height: 360px;
    overflow: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    white-space: normal;
}

.odos-gallery-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(4, 6, 10, 0.78);
    padding: 2rem;
}

.odos-gallery-modal {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(224, 178, 83, 0.32);
    background: #101626;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.odos-gallery-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    z-index: 2;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.odos-gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
    min-height: 660px;
}

.odos-gallery-image-wrap {
    background: rgba(0,0,0,0.24);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.odos-gallery-image-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    border-radius: 16px;
    display: block;
}

.odos-gallery-meta {
    padding: 1.25rem 1.25rem 1rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.6rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.odos-gallery-meta h3 {
    margin: 0;
}

.odos-gallery-purpose {
    margin: 0;
    color: rgba(255,255,255,0.78);
}

.odos-gallery-scroll {
    overflow: auto;
    padding-right: 0.25rem;
}

.odos-gallery-block {
    margin-bottom: 1rem;
}

.odos-gallery-block strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #f4d488;
}

.odos-gallery-block p {
    margin: 0;
    white-space: pre-wrap;
    color: rgba(255,255,255,0.84);
}

.odos-generated-image-file-link {
    display: inline-flex;
    margin-left: 0.4rem;
    color: #f2c96d;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 201, 109, 0.45);
}

@media (max-width: 980px) {
    .odos-gallery-modal-backdrop {
        padding: 0.75rem;
    }

    .odos-gallery-layout {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 1.5rem);
        overflow: auto;
    }

    .odos-gallery-meta {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}
