/* Shared comment tools: compact actions, theme colors and viewport-aware placement. */
.community-card,.community-list,.community-comment{overflow:visible}
[data-community] .comment-management-menu{isolation:isolate;margin-inline-start:auto;margin-inline-end:0}
[data-community] .comment-management-menu[open]{z-index:80}
[data-community] .comment-management-menu>summary{width:38px;height:36px;border-radius:10px;letter-spacing:normal;transition:background .15s,border-color .15s}
[data-community] .comment-management-menu>summary svg{width:20px;height:20px}
[data-community] .comment-management-menu>.comment-management-panel{box-sizing:border-box;top:auto;bottom:calc(100% + 8px);left:var(--comment-tools-left,0px);right:auto;width:220px;max-width:calc(100vw - 24px);max-height:var(--comment-tools-height,70vh);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:2px;padding:7px;border:1px solid var(--studio-color-border-strong,#294966);border-radius:14px;background:var(--studio-color-dialog,#091c31);color:var(--studio-color-text,#e3edf7);box-shadow:0 12px 32px #0004}
[data-community] .comment-management-menu[data-placement="below"]>.comment-management-panel{top:calc(100% + 8px);bottom:auto}
[data-community] .comment-management-menu>.comment-management-panel>.comment-management-heading{display:block;padding:8px 10px 10px;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:0;color:var(--studio-color-text-secondary,#9eb2c8);border-bottom:1px solid var(--studio-color-border,#294966);margin-bottom:3px}
body.studio-theme [data-community] .comment-management-menu>.comment-management-panel>button,
[data-community] .comment-management-menu>.comment-management-panel>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:39px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:transparent!important;color:var(--studio-color-text,#e3edf7)!important;text-align:start;font:inherit;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer}
[data-community] .comment-management-panel>button>svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
[data-community] .comment-management-panel>button>span{min-width:0;flex:1;padding:0;color:inherit;font:inherit;text-align:start}
body.studio-theme [data-community] .comment-management-menu>.comment-management-panel>button:is(:hover,:focus-visible,[aria-pressed="true"]),
[data-community] .comment-management-menu>.comment-management-panel>button:is(:hover,:focus-visible,[aria-pressed="true"]){background:var(--studio-color-card-hover,#173b5e)!important;color:var(--studio-color-link-hover,#83caff)!important}
body.studio-theme [data-community] .comment-management-menu>.comment-management-panel>button.danger,
[data-community] .comment-management-menu>.comment-management-panel>button.danger{color:var(--studio-color-danger,#ff8088)!important}
body.studio-theme [data-community] .comment-management-menu>.comment-management-panel>button.danger:is(:hover,:focus-visible){background:color-mix(in srgb,var(--studio-color-danger,#ff8088) 10%,transparent)!important}
[data-community] .comment-management-panel>hr{width:100%;height:0;margin:4px 0;border:0;border-top:1px solid var(--studio-color-border,#294966)}
[data-community] .comment-management-panel>.comment-management-reports{padding:7px 10px;font-size:11px;font-weight:600}
[data-community] .comment-management-menu :is(summary,button):focus-visible{outline:2px solid var(--studio-color-link,#3aa9ff);outline-offset:2px}
@media(max-width:600px){[data-community] .comment-management-menu>summary{width:42px;height:40px}[data-community] .comment-management-menu>.comment-management-panel>button{min-height:44px;font-size:13px}}
@media(prefers-reduced-motion:reduce){[data-community] .comment-management-menu>summary{transition:none}}
