.post-detail-menu[role="menu"], .featured-page .featured-post-menu-panel[role="menu"] {
    max-height: min(65dvh, 26rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}
dialog.post-share-dialog {
    box-sizing: border-box;
    width: min(24rem, calc(100% - 2rem));
    padding: 1.25rem;
    border: 1px solid #8886;
    border-radius: 1rem;
    font: inherit;
}
.post-share-dialog::backdrop { background: #10101899; }
.post-share-dialog input {
    box-sizing: border-box;
    width: 100%;
    padding: .6rem;
    font: inherit;
}
.post-share-dialog button, .post-share-dialog a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 .75rem;
    font: inherit;
    cursor: pointer;
}

.featured-post-menu-panel[role="menu"] button {
    justify-content: space-between;
}
[role="menu"] svg.post-share-brand {
    box-sizing: border-box;
    padding: 3px;
    border-radius: 5px;
    background: var(--share-background);
    color: var(--share-foreground, white);
    width: 24px;
    height: 24px;
    flex: none;
    fill: currentColor;
    stroke: none;
}

[data-share-platform="facebook"] { --share-background: #1877f2; }
[data-share-platform="instagram"] { --share-background: linear-gradient(35deg, #ffb443, #e1306c 50%, #833ab4); }
[data-share-platform="line"] { --share-background: #008a40; }
[data-share-platform="telegram"] { --share-background: #1689bf; }
[data-share-platform="wechat"] { --share-background: #07843c; }
[data-share-platform="threads"] { --share-background: #f3eaff; --share-foreground: #161019; }
.post-share-x { --share-background: #e6efff; --share-foreground: #101318; }
