.post-options-menu { position: fixed; inset: auto; width: min(375px,calc(100vw - 24px)); max-width: 375px; max-height: calc(100dvh - 24px); margin: 0; padding: 0; overflow: auto; border: 0; border-radius: 14px; color: var(--x-ink); background: var(--x-panel-bg, var(--x-bg)); box-shadow: 0 0 15px #65778633,0 0 3px 1px #65778626; }
.post-options-menu::backdrop { background: transparent; }
.post-options-menu [role=menuitem] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 12px 16px; border: 0; color: inherit; background: transparent; text-align: left; font-size: 15px; font-weight: 700; line-height: 20px; }
.post-options-menu [role=menuitem]:hover, .post-options-menu [role=menuitem]:focus-visible { outline: 0; background: var(--x-hover); }
.post-options-menu [role=menuitem]:disabled { opacity: .45; cursor: wait; }
.post-options-menu [data-post-action="delete"] { color: var(--x-danger); }
.post-options-menu [role=menuitem][hidden] { display: none; }
.post-options-menu svg { width: 20px; height: 20px; }
.post-options-menu span { min-width: 0; overflow-wrap: anywhere; }
.post-menu-status { margin: 0; padding: 12px 16px; color: var(--x-danger); font-size: 14px; }
.post-tool-dialog { width: min(600px,calc(100% - 24px)); max-width: 600px; max-height: calc(100dvh - 40px); margin: min(8vh,80px) auto auto; padding: 0 0 20px; overflow: auto; border: 0; border-radius: 16px; color: var(--x-ink); background: var(--x-panel-bg, var(--x-bg)); box-shadow: 0 0 15px #65778633; }
.post-tool-dialog::backdrop { background: #0006; }
.post-tool-dialog > header { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 8px 16px; }
.post-tool-dialog h2 { min-width: 0; margin: 0; font-size: 20px; line-height: 24px; }
.post-tool-content { padding: 4px 24px 8px; }
.post-tool-content p { line-height: 22px; }
.post-tool-help { color: var(--x-muted); font-size: 14px; }
.post-tool-field { display: grid; gap: 8px; margin: 18px 0; font-size: 15px; line-height: 22px; }
.post-tool-field > input, .post-tool-field > textarea, .post-tool-field > select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--x-border); border-radius: 4px; color: var(--x-ink); background: var(--x-panel-control-bg, var(--x-bg)); font-size: 16px; line-height: 24px; }
.post-tool-field > :is(input,textarea,select):focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.post-tool-field > textarea { resize: vertical; min-height: 110px; }
.post-tool-error { margin: 8px 24px; color: var(--x-danger); line-height: 22px; }
.post-tool-cancel { width: 100%; margin-top: 12px; }
.post-tool-content .x-auth-submit { text-decoration: none; text-align: center; }
.post-tool-content button:disabled { opacity: .5; cursor: wait; }
.post-list-options { display: grid; gap: 4px; margin-top: 16px; }
.post-list-options label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 8px 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.post-list-options input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--accent); }
.post-activity { display: flex; gap: 40px; padding: 20px 0; }
.post-activity > div { display: grid; gap: 4px; }
.post-activity strong { font-size: 30px; line-height: 36px; }
.post-activity span { color: var(--x-muted); }
.post-community-note { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--x-border); border-radius: 12px; background: var(--x-hover); }
.post-community-note > strong { display: flex; align-items: center; gap: 8px; }
.post-community-note svg { width: 20px; height: 20px; }
.post-community-note > p { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-community-note > small { color: var(--x-muted); line-height: 18px; }
.post-notification-label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 16px 0; color: var(--x-muted); font-size: 14px; }
.post-notification-label svg { width: 20px; height: 20px; color: var(--accent); }
.post-notification-label > strong { margin-left: auto; color: var(--accent); font-size: 12px; }
.post-preference-row { padding: 16px; border-bottom: 1px solid var(--x-line); }
.post-preference-row > a { display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.post-preference-row span { display: block; color: var(--x-muted); }
.post-preference-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-preference-row .x-outline-button { font-size: 14px; }
[data-post-interaction-blocked] [data-mode-like], [data-post-interaction-blocked] [data-mode-bookmark] { opacity: .5; }
.post-embed-body { padding: 8px; overflow-y: auto; }
.post-embed { max-width: 550px; margin: 0 auto; padding: 16px; border: 1px solid var(--x-border); border-radius: 16px; }
.post-embed header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: 14px; }
.post-embed header strong, .post-embed header span { display: block; }
.post-embed header span { color: var(--x-muted); }
.post-embed-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 20px; line-height: 28px; }
.post-embed p { font-size: 15px; line-height: 22px; }
.post-embed img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; margin: 16px 0; border-radius: 12px; }
.post-embed-date { display: block; margin: 16px 0; color: var(--x-muted); font-size: 14px; }
.post-embed .x-outline-button { display: flex; color: var(--accent); }
:is(.post-options-menu,.post-tool-dialog)[open] { animation: site-panel-in 160ms ease-out both; }
:is(.post-options-menu,.post-tool-dialog)[open].is-closing { animation: site-panel-out 140ms ease-in both; pointer-events: none; }
.post-tool-dialog[open]::backdrop { animation: site-backdrop-in 160ms ease-out both; }
.post-tool-dialog[open].is-closing::backdrop { animation: site-backdrop-out 140ms ease-in both; }
@media(max-width:600px) {
    .post-tool-dialog { max-height: calc(100dvh - 24px); margin-top: 12px; }
    .post-tool-content { padding-inline: 20px; }
    .post-options-menu [role=menuitem] { min-height: 44px; padding-block: 12px; }
}
@media(prefers-reduced-motion:reduce) { :is(.post-options-menu,.post-tool-dialog)[open], .post-tool-dialog[open]::backdrop { animation: none !important; } }
