/* --------------------------------------------------------------------------
   STUDIO 1902 — 자료 탐색 페이지
   1440 × 803 시안을 기준으로 구성한 전용 레이아웃입니다.
   -------------------------------------------------------------------------- */

.explore-page {
    min-height: 100vh;
    background: var(--page-bg);
}

.explore-page textarea {
    font: inherit;
}

.explore-main {
    min-height: calc(100vh - var(--header-height));
    padding: 12px;
    background: var(--page-bg);
}

.explore-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - 24px);
}

.explore-sidebar {
    width: 300px;
    min-height: calc(100vh - var(--header-height) - 24px);
    padding: 16px;
    border-radius: 20px;
    background: #171719;
}

.explore-filter {
    display: flex;
    min-height: calc(100vh - var(--header-height) - 56px);
    flex-direction: column;
}

.explore-filter__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.explore-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 36px;
}

.explore-mode-tab {
    display: inline-flex;
    min-width: 0;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 50px;
    background: transparent;
    color: rgba(255, 255, 255, .3);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.explore-mode-tab:hover {
    color: rgba(255, 255, 255, .68);
}

.explore-mode-tab.is-active,
.explore-mode-tab[aria-selected="true"] {
    background: #242424;
    color: #fafafa;
}

.explore-mode-tab:focus-visible,
.category-chip:focus-visible,
.explore-reset:focus-visible,
.explore-submit:focus-visible,
.explore-prompt:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 3px;
}

.explore-mode-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.explore-filter__title {
    display: block;
    margin: 0;
    color: #fafafa;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.category-chip {
    display: inline-flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #242424;
    color: #fafafa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.category-chip:hover {
    border-color: #505050;
    transform: translateY(-1px);
}

.category-chip.is-selected,
.category-chip[aria-pressed="true"] {
    border-color: #fafafa;
    background: #fafafa;
    color: #171717;
}

.explore-prompt {
    width: 100%;
    height: 154px;
    min-height: 154px;
    padding: 14px;
    resize: none;
    border: 1px solid #3c3c3c;
    border-radius: 12px;
    outline: 0;
    background: #242424;
    color: #fafafa;
    caret-color: #fafafa;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.02em;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.explore-prompt::placeholder {
    color: #fafafa;
    opacity: 1;
}

.explore-prompt:hover,
.explore-prompt:focus {
    border-color: #666;
}

.explore-prompt:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .07);
}

.explore-prompt[aria-invalid="true"] {
    border-color: #ff6565;
    box-shadow: 0 0 0 3px rgba(255, 101, 101, .1);
}

.explore-filter__bottom {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
}

.explore-reset {
    display: inline-flex;
    min-height: 18px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    color: #e2e2e2;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    transition: color .2s ease;
}

.explore-reset:hover {
    color: #fff;
}

.explore-reset svg {
    flex: 0 0 auto;
}

.explore-submit {
    display: inline-flex;
    width: 100%;
    height: 51px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    background: #fafafa;
    color: #171717;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.02em;
    transition: background-color .2s ease, transform .2s ease;
}

.explore-submit:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.explore-submit:active {
    transform: translateY(0);
}

.explore-results {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 329px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: #171719;
}

.explore-state {
    display: flex;
    width: 100%;
    min-height: 297px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 72px 0;
    color: #a4a3ac;
    text-align: center;
}

.explore-state__icon {
    flex: 0 0 auto;
    color: #a4a3ac;
}

.explore-state__copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.explore-state__copy h2,
.explore-state__copy p {
    width: 100%;
    margin: 0;
    color: #a4a3ac;
    text-align: center;
    letter-spacing: -.02em;
}

.explore-state__copy h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
}

.explore-state__copy p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.explore-spinner {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #a4a3ac;
    overflow: visible;
}

.explore-spinner line {
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.explore-spinner line:nth-child(1) { opacity: 1; }
.explore-spinner line:nth-child(2) { opacity: .88; }
.explore-spinner line:nth-child(3) { opacity: .76; }
.explore-spinner line:nth-child(4) { opacity: .64; }
.explore-spinner line:nth-child(5) { opacity: .52; }
.explore-spinner line:nth-child(6) { opacity: .4; }
.explore-spinner line:nth-child(7) { opacity: .3; }
.explore-spinner line:nth-child(8) { opacity: .22; }

.explore-spinner.is-rotating {
    animation: explore-spin .9s linear infinite;
}

@keyframes explore-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 1441px) {
    .explore-main {
        padding-inline: max(12px, calc((100vw - 1440px) / 2 + 12px));
    }

    .explore-layout {
        max-width: 1416px;
        margin-inline: auto;
    }
}

@media (max-width: 1180px) {
    .explore-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .explore-sidebar {
        width: 280px;
    }

    .explore-mode-tab {
        font-size: 14px;
    }

    .category-chip {
        padding-inline: 13px;
    }
}

@media (max-width: 960px) {
    .explore-main {
        padding: 12px 16px 32px;
    }

    .explore-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .explore-sidebar {
        width: 100%;
        min-height: 0;
    }

    .explore-filter {
        min-height: 0;
    }

    .explore-filter__top {
        gap: 20px;
    }

    .category-chip-list {
        max-width: 760px;
    }

    .explore-filter__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr);
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-top: 0;
    }

    .explore-reset,
    .explore-submit {
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
    }

    .explore-reset {
        background: #242424;
    }

    .explore-results {
        height: auto;
        min-height: 329px;
    }
}

@media (max-width: 700px) {
    .explore-main {
        padding: 10px 12px 28px;
    }

    .explore-sidebar,
    .explore-results {
        border-radius: 16px;
    }

    .explore-sidebar {
        padding: 14px;
    }

    .explore-mode-tabs {
        gap: 4px;
    }

    .explore-mode-tab {
        padding-inline: 6px;
        font-size: 13px;
    }

    .category-chip {
        height: 34px;
        padding-inline: 13px;
    }

    .explore-filter__bottom {
        grid-template-columns: 1fr;
    }

    .explore-results {
        min-height: 300px;
        padding: 14px;
    }

    .explore-state {
        min-height: 272px;
        padding: 52px 8px;
    }

    .explore-state__copy h2 {
        font-size: 19px;
    }

    .explore-state__copy p {
        max-width: 420px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .explore-spinner.is-rotating {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   v1.8.0 실제 사진자료 검색·선택·프로젝트 저장
   -------------------------------------------------------------------------- */

body.is-asset-project-modal-open {
    overflow: hidden;
}

.explore-sidebar,
.explore-filter {
    min-height: calc(100vh - var(--header-height) - 24px);
}

.category-chip-list {
    max-height: calc(100vh - 300px);
    padding-right: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.category-chip {
    gap: 6px;
}

.category-chip small {
    color: #8f8f95;
    font-size: 11px;
    font-weight: 500;
}

.category-chip.is-selected small,
.category-chip[aria-pressed="true"] small {
    color: #606064;
}

.explore-filter__notice {
    margin: -2px 0 0;
    color: #85858c;
    font-size: 12px;
    line-height: 1.5;
}

.explore-results {
    height: auto;
    min-height: 329px;
    padding: 16px;
}

.explore-results__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 0 4px 14px;
    border-bottom: 1px solid #303034;
}

.explore-results__toolbar > strong {
    color: #fafafa;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.explore-selection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #a4a3ac;
    font-size: 14px;
}

.explore-selection-clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: #a4a3ac;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.explore-selection-save,
.explore-load-more {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #fafafa;
    color: #171719;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.02em;
    transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}

.explore-selection-save:hover:not(:disabled),
.explore-load-more:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #fff;
}

.explore-selection-save:disabled,
.explore-load-more:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    padding-top: 16px;
}

.asset-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #323236;
    border-radius: 14px;
    background: #202024;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.asset-card:hover,
.asset-card:focus-within {
    transform: translateY(-2px);
    border-color: #5b5b61;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
}

.asset-card.is-selected {
    border-color: #fafafa;
    box-shadow: 0 0 0 1px #fafafa, 0 14px 36px rgba(0, 0, 0, .28);
}

.asset-card__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fafafa;
    cursor: pointer;
    text-align: left;
}

.asset-card__button:focus-visible,
.explore-selection-save:focus-visible,
.explore-selection-clear:focus-visible,
.explore-load-more:focus-visible,
.asset-project-option:focus-visible,
.asset-project-modal button:focus-visible,
.asset-project-modal input:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 3px;
}

.asset-card__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #29292d;
}

.asset-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .25s ease;
}

.asset-card:hover .asset-card__image,
.asset-card:focus-within .asset-card__image {
    transform: scale(1.035);
}

.asset-card.has-image-error .asset-card__image {
    opacity: 0;
}

.asset-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(18, 18, 21, .66);
    color: transparent;
    backdrop-filter: blur(5px);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.asset-card.is-selected .asset-card__check {
    border-color: #fafafa;
    background: #fafafa;
    color: #171719;
}

.asset-card__copy {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
}

.asset-card__copy small {
    color: #8f8f96;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.asset-card__copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fafafa;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.explore-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 10px;
}

.explore-load-more {
    min-width: 96px;
    height: 42px;
}

.asset-project-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    padding: 20px;
    place-items: center;
}

.asset-project-modal[hidden] {
    display: none;
}

.asset-project-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 5, 8, .82);
    backdrop-filter: blur(2px);
}

.asset-project-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(526px, 100%);
    max-height: calc(100dvh - 40px);
    padding: 30px 28px 24px;
    overflow-y: auto;
    border: 1px solid #3c3c3c;
    border-radius: 12px;
    outline: 0;
    background: #111114;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .58);
}

.asset-project-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fafafa;
    cursor: pointer;
}

.asset-project-modal h2 {
    margin: 0 42px 0 0;
    color: #fafafa;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.asset-project-modal__description {
    margin: 10px 0 20px;
    color: #a4a3ac;
    font-size: 14px;
    line-height: 1.5;
}

.asset-project-list {
    display: flex;
    max-height: 250px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.asset-project-loading,
.asset-project-empty {
    margin: 0;
    padding: 22px 12px;
    border: 1px dashed #3c3c3c;
    border-radius: 10px;
    color: #a4a3ac;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.asset-project-option {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #333338;
    border-radius: 10px;
    background: #1b1b1f;
    color: #fafafa;
    cursor: pointer;
    text-align: left;
}

.asset-project-option.is-selected {
    border-color: #fafafa;
    background: #242429;
}

.asset-project-option img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: #303035;
}

.asset-project-option > span:not(.asset-project-option__check) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.asset-project-option strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-project-option small {
    color: #96969d;
    font-size: 12px;
}

.asset-project-option__check {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #55555b;
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
}

.asset-project-option.is-selected .asset-project-option__check {
    border-color: #fafafa;
    background: #fafafa;
    color: #171719;
}

.asset-project-create {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #303034;
}

.asset-project-create label {
    display: block;
    margin-bottom: 9px;
    color: #fafafa;
    font-size: 14px;
    font-weight: 600;
}

.asset-project-create__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.asset-project-create input {
    min-width: 0;
    height: 40px;
    padding: 10px 12px;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    outline: 0;
    background: transparent;
    color: #fafafa;
    font-size: 14px;
}

.asset-project-create input[aria-invalid="true"] {
    border-color: #ff6565;
}

.asset-project-create button,
.asset-project-modal__save,
.asset-project-modal__cancel {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.asset-project-create button,
.asset-project-modal__save {
    border: 0;
    background: #fafafa;
    color: #171719;
}

.asset-project-modal__save:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.asset-project-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.asset-project-modal__cancel {
    border: 1px solid #3c3c3c;
    background: transparent;
    color: #fafafa;
}

@media (max-width: 1250px) {
    .asset-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .category-chip-list {
        max-height: none;
        overflow: visible;
    }

    .explore-results__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .explore-selection-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-selection-actions {
        flex-wrap: wrap;
    }

    .explore-selection-save {
        width: 100%;
    }
}

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

    .asset-card__image-wrap {
        aspect-ratio: 16 / 10;
    }

    .asset-project-modal {
        padding: 10px;
    }

    .asset-project-modal__dialog {
        max-height: calc(100dvh - 20px);
        padding: 28px 18px 20px;
    }

    .asset-project-create__row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   v1.8.1 보호 워터마크 카드·대형 뷰어
   -------------------------------------------------------------------------- */

body.is-asset-viewer-open {
    overflow: hidden;
}

.asset-card {
    position: relative;
}

.asset-card__view {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fafafa;
    cursor: zoom-in;
    text-align: left;
}

.asset-card__view:focus-visible,
.asset-card__select:focus-visible,
.asset-viewer button:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 3px;
}

.asset-card__select {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    cursor: pointer;
}

.asset-card__select .asset-card__check {
    position: static;
    top: auto;
    right: auto;
    width: 28px;
    height: 28px;
}

.asset-card__open-hint {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(18, 18, 21, .68);
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    backdrop-filter: blur(6px);
    transition: opacity .18s ease, transform .18s ease;
}

.asset-card:hover .asset-card__open-hint,
.asset-card:focus-within .asset-card__open-hint {
    opacity: 1;
    transform: translateY(0);
}

.asset-card__image,
.asset-viewer__media img,
[data-protected-media] {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.asset-viewer {
    position: fixed;
    inset: 0;
    z-index: 2700;
    display: grid;
    padding: 22px;
    place-items: center;
}

.asset-viewer[hidden] {
    display: none;
}

.asset-viewer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 3, 6, .9);
    backdrop-filter: blur(5px);
}

.asset-viewer__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(1280px, calc(100vw - 44px));
    height: min(900px, calc(100dvh - 44px));
    overflow: hidden;
    border: 1px solid #3c3c3c;
    border-radius: 16px;
    outline: 0;
    background: #0b0b0e;
    box-shadow: 0 34px 120px rgba(0, 0, 0, .7);
}

.asset-viewer__media {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(45deg, #111115 25%, transparent 25%),
        linear-gradient(-45deg, #111115 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111115 75%),
        linear-gradient(-45deg, transparent 75%, #111115 75%),
        #0a0a0d;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.asset-viewer__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.asset-viewer__screen-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    color: rgba(255, 255, 255, .12);
    font-size: clamp(18px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transform: rotate(-18deg);
    user-select: none;
}

.asset-viewer__screen-mark span:last-child {
    font-size: .42em;
    letter-spacing: .28em;
}

.asset-viewer__close,
.asset-viewer__nav {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(15, 15, 19, .78);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.asset-viewer__close:hover,
.asset-viewer__nav:hover:not(:disabled) {
    background: rgba(45, 45, 51, .92);
    transform: translateY(-1px);
}

.asset-viewer__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.asset-viewer__nav {
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.asset-viewer__nav:hover:not(:disabled) {
    transform: translateY(calc(-50% - 1px));
}

.asset-viewer__nav--previous {
    left: 14px;
}

.asset-viewer__nav--next {
    right: 14px;
}

.asset-viewer__nav:disabled {
    cursor: default;
    opacity: .25;
}

.asset-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 112px;
    padding: 18px 22px;
    border-top: 1px solid #2e2e33;
    background: #151519;
}

.asset-viewer__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.asset-viewer__copy small {
    color: #96969e;
    font-size: 12px;
    font-weight: 500;
}

.asset-viewer__copy strong {
    overflow: hidden;
    color: #fafafa;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-viewer__copy p {
    margin: 0;
    color: #85858d;
    font-size: 12px;
    line-height: 1.45;
}

.asset-viewer__select {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #fafafa;
    border-radius: 9px;
    background: #fafafa;
    color: #171719;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.asset-viewer__select.is-selected,
.asset-viewer__select[aria-pressed="true"] {
    background: #333338;
    color: #fafafa;
}

@media (max-width: 760px) {
    .asset-viewer {
        padding: 10px;
    }

    .asset-viewer__dialog {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        border-radius: 12px;
    }

    .asset-viewer__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding: 14px;
    }

    .asset-viewer__copy strong {
        font-size: 17px;
        white-space: normal;
    }

    .asset-viewer__select {
        width: 100%;
    }

    .asset-viewer__nav {
        width: 42px;
        height: 42px;
    }

    .asset-viewer__nav--previous {
        left: 8px;
    }

    .asset-viewer__nav--next {
        right: 8px;
    }

    .asset-viewer__close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asset-card__open-hint,
    .asset-viewer__close,
    .asset-viewer__nav {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   v1.8.5 프롬프트 유사 검색 안내·모바일 안정화
   -------------------------------------------------------------------------- */

.explore-layout > *,
.explore-results,
.explore-results__toolbar,
.prompt-analysis,
.asset-grid,
.asset-project-modal__dialog {
    min-width: 0;
}

.prompt-examples {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
}

.prompt-examples__label {
    color: #85858c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.prompt-examples__list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
}

.prompt-examples__list button {
    max-width: 100%;
    min-height: 30px;
    padding: 7px 10px;
    overflow: hidden;
    border: 1px solid #39393e;
    border-radius: 9px;
    background: #202024;
    color: #b8b8be;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.02em;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.prompt-examples__list button:hover,
.prompt-examples__list button:focus-visible {
    border-color: #696970;
    background: #2a2a2f;
    color: #fafafa;
    transform: translateY(-1px);
}

.prompt-examples__list button:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 2px;
}

.prompt-analysis {
    width: 100%;
    margin: 14px 0 0;
    padding: 15px 16px;
    border: 1px solid #343439;
    border-radius: 13px;
    background:
        radial-gradient(circle at 12% 0%, rgba(115, 155, 197, .14), transparent 34%),
        #1d1d21;
}

.prompt-analysis__header {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.prompt-analysis__icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(151, 196, 241, .28);
    border-radius: 9px;
    background: rgba(67, 108, 150, .26);
    color: #dcecff;
    font-size: 15px;
}

.prompt-analysis__header > div {
    min-width: 0;
}

.prompt-analysis__header small {
    display: block;
    margin-bottom: 4px;
    color: #8eb4da;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.prompt-analysis__header p {
    margin: 0;
    color: #d6d6db;
    font-size: 13px;
    line-height: 1.55;
    word-break: keep-all;
}

.prompt-analysis__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #303035;
}

.prompt-analysis__group {
    min-width: 0;
}

.prompt-analysis__group > span {
    display: block;
    margin-bottom: 7px;
    color: #8f8f97;
    font-size: 11px;
    font-weight: 600;
}

.prompt-analysis__group > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.prompt-analysis__group > div > span {
    display: inline-flex;
    max-width: 100%;
    min-height: 25px;
    align-items: center;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid #3c3c42;
    border-radius: 999px;
    background: #26262b;
    color: #d4d4d9;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .explore-sidebar,
    .explore-filter {
        min-height: 0;
    }

    .category-chip-list {
        max-height: 250px;
        padding-right: 5px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .explore-prompt {
        height: 136px;
        min-height: 136px;
    }

    .prompt-analysis__groups {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}

@media (max-width: 700px) {
    .explore-main {
        width: 100%;
        overflow-x: clip;
    }

    .explore-mode-panel,
    .explore-filter__top,
    .explore-filter__bottom,
    .explore-results__toolbar,
    .explore-selection-actions {
        min-width: 0;
    }

    .category-chip-list {
        max-height: 222px;
    }

    .category-chip {
        max-width: 100%;
    }

    .category-chip > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .prompt-examples__list {
        flex-wrap: nowrap;
        padding-bottom: 4px;
        overflow-x: auto;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .prompt-examples__list button {
        flex: 0 0 auto;
        max-width: 88%;
        scroll-snap-align: start;
    }

    .prompt-analysis {
        margin-top: 10px;
        padding: 13px;
    }

    .prompt-analysis__header p {
        font-size: 12px;
        word-break: normal;
    }

    .explore-results__toolbar {
        gap: 12px;
        padding-inline: 0;
    }

    .explore-selection-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .explore-selection-actions > span {
        align-self: center;
    }

    .explore-selection-clear {
        justify-self: start;
    }

    .explore-selection-save {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 42px;
    }

    .asset-card__copy {
        min-width: 0;
    }

    .asset-card__copy strong {
        overflow-wrap: anywhere;
    }

    .asset-project-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .asset-project-modal__save,
    .asset-project-modal__cancel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .explore-sidebar {
        padding: 12px;
    }

    .explore-mode-tab {
        font-size: 12px;
    }

    .explore-prompt {
        height: 124px;
        min-height: 124px;
        padding: 12px;
        font-size: 14px;
    }

    .category-chip-list {
        max-height: 206px;
    }

    .prompt-analysis__header {
        gap: 9px;
    }

    .prompt-analysis__icon {
        width: 25px;
        height: 25px;
    }

    .asset-project-option {
        grid-template-columns: 46px minmax(0, 1fr) 24px;
        gap: 9px;
        padding-right: 8px;
    }

    .asset-project-option img {
        width: 46px;
        height: 46px;
    }

    .asset-viewer__media {
        min-height: 0;
    }

    .asset-viewer__nav {
        top: auto;
        bottom: 142px;
        transform: none;
    }

    .asset-viewer__nav:hover:not(:disabled) {
        transform: translateY(-1px);
    }
}
