.mv-share-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 12, 22, .74);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.mv-share-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mv-share-sheet {
    width: min(760px, 100%);
    max-height: min(860px, calc(100dvh - 36px));
    overflow: auto;
    border: 1px solid rgba(230, 222, 207, .38);
    border-radius: 26px;
    background: #101827;
    color: #f4efe6;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .44);
    transform: translateY(14px) scale(.985);
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
}

.mv-share-backdrop.open .mv-share-sheet {
    transform: translateY(0) scale(1);
}

.mv-share-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 27px 28px 20px;
    border-bottom: 1px solid rgba(230, 222, 207, .16);
}

.mv-share-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #d0a26d;
    font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mv-share-header h2 {
    margin: 0;
    font: 400 clamp(1.75rem, 4vw, 2.55rem)/1 Georgia, 'Times New Roman', serif;
    letter-spacing: -.035em;
}

.mv-share-header p {
    max-width: 510px;
    margin: 8px 0 0;
    color: rgba(244, 239, 230, .66);
    font-size: 13px;
    line-height: 1.45;
}

.mv-share-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(230, 222, 207, .22);
    border-radius: 50%;
    background: transparent;
    color: #f4efe6;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.mv-share-close:hover,
.mv-share-close:focus-visible {
    background: rgba(255, 255, 255, .12);
}

.mv-share-body {
    display: grid;
    gap: 23px;
    padding: 22px 28px 28px;
}

.mv-share-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 15px;
    border: 1px solid rgba(230, 222, 207, .18);
    border-radius: 15px;
    background: rgba(255, 255, 255, .055);
}

.mv-share-link-copy {
    min-width: 0;
    flex: 1;
}

.mv-share-link-copy small {
    display: block;
    margin-bottom: 4px;
    color: rgba(244, 239, 230, .58);
    font: 700 10px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mv-share-link-copy code {
    display: block;
    overflow: hidden;
    color: #f4efe6;
    font: 500 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-share-copy-button,
.mv-share-send-button {
    border: 0;
    border-radius: 999px;
    background: #d0a26d;
    color: #101620;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.mv-share-copy-button {
    min-height: 38px;
    padding: 0 15px;
}

.mv-share-copy-button:hover,
.mv-share-copy-button:focus-visible,
.mv-share-send-button:hover,
.mv-share-send-button:focus-visible {
    filter: brightness(1.08);
}

.mv-share-section {
    display: grid;
    gap: 11px;
}

.mv-share-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.mv-share-section-heading h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.01em;
}

.mv-share-section-heading p,
.mv-share-status,
.mv-share-login-copy {
    margin: 0;
    color: rgba(244, 239, 230, .58);
    font-size: 12px;
    line-height: 1.45;
}

.mv-share-status[hidden] {
    display: none;
}

.mv-share-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(230, 222, 207, .2);
    border-radius: 12px;
    background: rgba(0, 0, 0, .14);
}

.mv-share-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: rgba(244, 239, 230, .58);
}

.mv-share-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4efe6;
    font: inherit;
    font-size: 13px;
}

.mv-share-search input::placeholder {
    color: rgba(244, 239, 230, .48);
}

.mv-share-users {
    display: grid;
    gap: 6px;
    max-height: 194px;
    overflow: auto;
}

.mv-share-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.mv-share-user:hover {
    border-color: rgba(230, 222, 207, .2);
    background: rgba(255, 255, 255, .08);
}

.mv-share-user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #7358ff, #a86639);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.mv-share-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-share-user-copy {
    min-width: 0;
    flex: 1;
}

.mv-share-user-copy strong,
.mv-share-user-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-share-user-copy strong {
    color: #f4efe6;
    font-size: 13px;
}

.mv-share-user-copy small {
    margin-top: 2px;
    color: rgba(244, 239, 230, .54);
    font-size: 11px;
}

.mv-share-send-button {
    min-height: 31px;
    padding: 0 12px;
    background: rgba(230, 222, 207, .14);
    color: #f4efe6;
}

.mv-share-send-button.sent {
    background: #638d8a;
    color: #fff;
}

.mv-share-send-button:disabled {
    cursor: wait;
    opacity: .7;
}

.mv-share-platforms {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.mv-share-platform {
    min-width: 0;
    padding: 12px 7px 10px;
    border: 1px solid rgba(230, 222, 207, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
    color: #f4efe6;
    cursor: pointer;
    text-align: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.mv-share-platform:hover,
.mv-share-platform:focus-visible {
    border-color: rgba(208, 162, 109, .7);
    background: rgba(208, 162, 109, .12);
    transform: translateY(-2px);
}

.mv-share-platform-mark {
    display: grid;
    width: 30px;
    height: 30px;
    margin: 0 auto 7px;
    place-items: center;
    border-radius: 9px;
    background: rgba(230, 222, 207, .14);
    color: #f4efe6;
    font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mv-share-platform strong,
.mv-share-platform small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-share-platform strong {
    font-size: 11px;
}

.mv-share-platform small {
    margin-top: 2px;
    color: rgba(244, 239, 230, .52);
    font-size: 9px;
}

.mv-share-login-copy a {
    color: #d0a26d;
    font-weight: 800;
}

.theme-dark .mv-share-sheet {
    background: #101827;
    color: #f4efe6;
}

@media (max-width: 620px) {
    .mv-share-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .mv-share-sheet {
        max-height: min(760px, calc(100dvh - 10px));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 23px 23px 0 0;
    }

    .mv-share-header,
    .mv-share-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mv-share-platforms {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mv-share-link-card {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .mv-share-link-copy {
        flex-basis: calc(100% - 15px);
    }

    .mv-share-copy-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-share-backdrop,
    .mv-share-sheet,
    .mv-share-platform {
        transition: none;
    }
}
