.nwc-app .nwc-forward-dialog {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: min(29rem, calc(100vw - 1rem));
    height: fit-content;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #66485c;
    border-radius: 16px;
    color: #fff1f8;
    background: #221920;
    color-scheme: dark;
    font: 500 1rem/1.4 system-ui, sans-serif;
    box-shadow: 0 .8rem 2rem rgb(0 0 0 / 42%);
}

.nwc-app .nwc-forward-dialog:not([open]) { display: none; }
.nwc-app .nwc-forward-dialog::backdrop { background: rgb(15 10 14 / 72%); }

.nwc-app .nwc-forward-scrim {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgb(15 10 14 / 72%);
}

.nwc-app .nwc-forward-form {
    display: grid;
    gap: .6rem;
    min-inline-size: 0;
    margin: 0;
    padding: .8rem;
}

.nwc-app .nwc-forward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
}

.nwc-app .nwc-forward-header h2 {
    margin: 0;
    color: inherit;
    font: 700 clamp(1rem, 4.2vw, 1.15rem)/1.3 system-ui, sans-serif;
}

.nwc-app .nwc-forward-form button {
    min-block-size: 44px;
    padding: .42rem .7rem;
    border: 1px solid #67495b;
    border-radius: 10px;
    color: inherit;
    background: #2d212b;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
}

.nwc-app .nwc-forward-form button:hover { background: #412d3d; }
.nwc-app .nwc-forward-form button:disabled,
.nwc-app .nwc-forward-form button[aria-disabled="true"] { opacity: .62; cursor: default; }

.nwc-app .nwc-forward-header button {
    flex: none;
    inline-size: 44px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    background: transparent;
    font-size: 1.45rem;
    line-height: 1;
}

.nwc-app .nwc-forward-folders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.nwc-app .nwc-forward-folders button[aria-pressed="true"] {
    border-color: #a46686;
    background: #533148;
    font-weight: 700;
}

.nwc-app .nwc-forward-list {
    display: grid;
    gap: .32rem;
    min-inline-size: 0;
    max-block-size: min(36vh, 18rem);
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
}

.nwc-app .nwc-forward-list:empty { display: none; }

.nwc-app .nwc-forward-target {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-block-size: 44px;
    padding: .42rem .65rem;
    border: 1px solid #5a4052;
    border-radius: 9px;
    color: #f5e3ed;
    background: #2b2029;
    font-size: .9rem;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.nwc-app .nwc-forward-target:hover,
.nwc-app .nwc-forward-target:focus-within { border-color: #d591b5; }

.nwc-app .nwc-forward-target input[type="radio"] {
    inline-size: 1.05rem;
    block-size: 1.05rem;
    margin: 0;
    accent-color: #e1a0bf;
}

.nwc-app .nwc-forward-status {
    margin: 0;
    color: #e9cedd;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.nwc-app .nwc-forward-status:empty { display: none; }
.nwc-app .nwc-forward-status.is-error { color: #ffc4b8; }
.nwc-app .nwc-forward-footer { display: flex; justify-content: flex-end; }

.nwc-app .nwc-forward-form .nwc-forward-submit {
    border-color: #b47899;
    background: #652c4d;
    font-weight: 700;
}

.nwc-app .nwc-forward-form .nwc-forward-submit:hover:not(:disabled) { background: #813b63; }
.nwc-app .nwc-forward-form button:focus-visible,
.nwc-app .nwc-forward-form input:focus-visible { outline: 2px solid #f5c0df; outline-offset: 2px; }
