.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; }

.post-detail-more-wrap{position:relative;justify-self:end;}
.post-detail-menu{position:absolute;right:0;top:46px;width:min(206px,calc(100vw - 24px));overflow-x:hidden;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.16);z-index:20;}
.post-detail-menu button,.post-detail-menu a{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border:0;border-bottom:1px solid #f0f1f4;background:#fff;color:#15151c;font:inherit;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer;}
.post-detail-menu button:last-child,.post-detail-menu a:last-child{border-bottom:0;}
.post-detail-menu strong{font-size:22px;line-height:1;}
.post-detail-menu[hidden]{display:none;}
.post-detail-menu > :is(a,button):is(:hover,:focus-visible){outline:2px solid currentColor;outline-offset:-3px;}
.post-detail-menu > :is(a,button) > svg:not(.post-share-brand){width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;}
.profile-actions .post-detail-more-wrap{align-self:flex-start;}
.profile-actions .post-detail-menu{top:calc(100% + 4px);}
html.dark .profile-actions .post-detail-menu,html.dark .profile-actions .post-detail-menu > :is(a,button){background:#1b1b22;color:#f7f7f8;border-color:#30303a;}

@media (max-width: 400px) { .profile-actions .profile-share {padding-inline:10px;} }
