.nwc-app .nwc-composer-actions[open] > div {
    display: grid;
    gap: .22rem;
}

.nwc-app .nwc-composer-actions > div > .nwc-photo-pick {
    display: flex;
    align-items: center;
    gap: .48rem;
    inline-size: 100%;
    min-block-size: 44px;
    padding: .5rem .65rem;
    border: 0;
    border-radius: 9px;
    color: #f9edf5;
    background: #322731;
    text-align: start;
}

.nwc-app .nwc-composer-actions > div > .nwc-photo-pick:hover { background: #473544; }

.nwc-app .nwc-photo-tray {
    grid-column: 1 / -1;
    min-inline-size: 0;
    padding: .55rem .7rem .65rem;
    border: 1px solid #614359;
    border-radius: 12px;
    color: #fff1f8;
    background: #2b2029;
}

.nwc-app .nwc-photo-tray h3 {
    margin: 0 0 .4rem;
    font-size: .86rem;
    font-weight: 650;
}

.nwc-app .nwc-photo-tray ul {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0 0 .14rem;
    overflow: auto hidden;
    list-style: none;
    overscroll-behavior-inline: contain;
}

.nwc-app .nwc-photo-tray li + li { margin-inline-start: .42rem; }

.nwc-app .nwc-photo-draft {
    position: relative;
    flex: 0 0 clamp(65px, 18vw, 87px);
    block-size: clamp(65px, 18vw, 87px);
    overflow: hidden;
    border: 1px solid #624d5e;
    border-radius: 8px;
    background: #3a2f37;
}

.nwc-app .nwc-photo-draft-thumb {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.nwc-app .nwc-photo-remove {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 0;
    color: #fff2f9;
    background: #1b141bd9;
    border-radius: 0 7px 0 10px;
    font-size: 1.3rem;
    line-height: 1;
}

.nwc-app .nwc-photo-remove:hover { background: #59374d; }
.nwc-app .nwc-photo-remove:focus-visible { outline-offset: -3px; }

.nwc-app .nwc-photo-status {
    grid-column: 1 / -1;
    margin: 0;
    padding-inline: .15rem;
    color: #efcedf;
    font-size: .84rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.nwc-app .nwc-photo-status[data-error="true"] { color: #ffb5d2; }
.nwc-app .nwc-photo-status:empty { position: absolute; }

.nwc-app .nwc-photo-thumbnail,
.nwc-app [data-nwchat-photo-thumbnail] {
    position: relative;
    display: block;
    max-inline-size: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #654b60;
    border-radius: 10px;
    background: #2a2029;
    text-align: start;
}

.nwc-app .nwc-photo-thumbnail img,
.nwc-app [data-nwchat-photo-thumbnail] img {
    display: block;
    inline-size: auto;
    block-size: auto;
    max-inline-size: min(100%, 15rem);
    max-block-size: 12rem;
    border-radius: 9px;
    object-fit: contain;
}

.nwc-app .nwc-photo-thumb-fallback {
    display: grid;
    place-items: center;
    min-block-size: 44px;
    padding: .35rem .65rem;
}

.nwc-app .nwc-photo-thumbnail:focus-visible,
.nwc-app [data-nwchat-photo-thumbnail]:focus-visible {
    outline: 2px solid #ffc0dc;
    outline-offset: -3px;
}

.nwc-app .nwc-photo-dialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: .6rem;
    padding: max(.6rem, env(safe-area-inset-top)) max(.6rem, env(safe-area-inset-right))
        max(.6rem, env(safe-area-inset-bottom)) max(.6rem, env(safe-area-inset-left));
    overflow: hidden;
    border: 0;
    color: #fff1f8;
    background: #161215;
}

.nwc-app .nwc-photo-dialog:not([open]) { display: none; }
.nwc-app .nwc-photo-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.nwc-app .nwc-photo-dialog::backdrop { background: #161215; }

.nwc-app .nwc-photo-dialog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    min-inline-size: 0;
    padding: .3rem .15rem .65rem;
    border-bottom: 1px solid #594550;
}

.nwc-app .nwc-photo-dialog-bar h2 {
    margin: 0;
    font-size: clamp(.95rem, 3.8vw, 1.2rem);
    overflow-wrap: anywhere;
}

.nwc-app .nwc-photo-dialog-bar p {
    margin: .22rem 0 0;
    color: #d9c2d0;
    font-size: .82rem;
}

.nwc-app .nwc-photo-dialog-bar p:empty { display: none; }

.nwc-app .nwc-photo-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-block-size: 44px;
    padding: .45rem .65rem;
    border: 0;
    border-radius: 10px;
    color: #fff2fa;
    background: #4d3448;
}

.nwc-app .nwc-photo-close:hover { background: #674358; }
.nwc-app .nwc-photo-close svg { inline-size: 20px; block-size: 20px; }

.nwc-app .nwc-photo-dialog-status {
    grid-row: 2;
    margin: .55rem 0 0;
    color: #efcedf;
    text-align: center;
}

.nwc-app .nwc-photo-dialog-status:empty { margin: 0; }

.nwc-app .nwc-photo-stage {
    grid-row: 3;
    display: grid;
    place-items: center;
    min-inline-size: 0;
    min-block-size: 0;
    padding-block-start: .6rem;
}

.nwc-app .nwc-photo-stage img {
    display: block;
    inline-size: auto;
    block-size: auto;
    max-inline-size: 100%;
    max-block-size: 100%;
    object-fit: contain;
}
