.detail-header-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.detail-header-tools .detail-tags{flex:1;min-width:0}.resource-utility-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.resource-detail-modal .resource-utility-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:0;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font:inherit;font-size:11px;cursor:pointer;min-height:32px}.resource-detail-modal .resource-utility-actions button:hover{color:#6095f6;background:color-mix(in srgb,var(--accent) 9%,var(--panel));border-color:var(--accent)}.resource-utility-actions svg,.community-resource svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.resource-utility-actions button:focus-visible,.community-dialog button:focus-visible,.community-dialog input:focus-visible,.community-dialog select:focus-visible,.community-dialog textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.community-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--line);border-radius:20px;background:var(--panel,#fff);color:var(--text,#6095f6);box-shadow:0 24px 100px #10102240;overflow:auto;font:inherit}.community-dialog::backdrop{background:#15152280;backdrop-filter:blur(4px)}.community-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.community-heading h2{font-size:21px;line-height:1.4;margin:0}.community-close{width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;flex-shrink:0;background:transparent;color:var(--muted);font:inherit;font-size:22px;cursor:pointer}.community-resource{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:11px;background:color-mix(in srgb,var(--accent) 8%,var(--panel));color:#6095f6;font-size:13px;font-weight:600;line-height:1.5}.community-muted{font-size:13px;line-height:1.8;color:var(--muted);margin:17px 0}.community-label{display:block;font-size:12px;font-weight:600;margin:17px 0 8px}.community-dialog input,.community-dialog select,.community-dialog textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);padding:11px 12px;font:inherit;font-size:13px}.community-dialog textarea{resize:vertical;min-height:125px;max-height:28vh;line-height:1.65}.community-url{font-size:12px!important}.community-form-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;line-height:1.5;margin-top:8px}.community-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.community-dialog .button{font-size:13px;margin:0;border-radius:10px}.community-dialog button:disabled{opacity:.5;cursor:wait}.community-status{color:#6095f6;font-size:12px;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}.community-status:empty{display:none}.community-thanks{text-align:center;padding:16px 5px 3px}.community-thanks-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;margin:0 auto 20px;color:#6095f6;background:color-mix(in srgb,var(--accent) 12%,var(--panel));font-size:28px}.community-thanks h3{font-size:20px;margin:0 0 10px}.community-thanks p{font-size:13px;color:var(--muted);margin:0 0 12px}.community-thanks small{display:block;font-size:11px;color:var(--muted)}.community-thanks .button{margin-top:25px;min-width:130px}@media(max-width:760px){.resource-detail-modal .resource-utility-actions button{min-height:28px;width:28px;padding:5px}.resource-utility-actions button span{display:none}.resource-utility-actions{gap:4px}.detail-header-tools{gap:5px;flex-wrap:nowrap}.detail-header-tools .detail-tags{gap:4px}.community-dialog{padding:20px;border-radius:16px}.community-heading{margin-bottom:17px}.community-heading h2{font-size:19px}.community-form-meta{font-size:9px}.community-dialog textarea{min-height:110px}.community-actions .button{flex:1}}

.community-dialog .community-close{display:flex;align-items:center;justify-content:center;line-height:1;margin:0;padding:0;box-sizing:border-box}.community-close svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;flex-shrink:0}

/* One aligned toolbar, including the existing close action. */
.resource-detail-info>header{padding-right:0}
.detail-header-tools{flex-wrap:nowrap;align-items:center;gap:12px}
.resource-utility-actions{gap:6px}
.resource-detail-modal .resource-utility-actions button{position:static;inset:auto;transform:none;box-sizing:border-box;height:34px;min-height:34px;width:auto;padding:0 10px;font-size:12px;line-height:1;border-radius:9px;display:inline-flex;align-items:center;justify-content:center}
.resource-detail-modal .resource-utility-actions .resource-tool-close{width:34px;padding:0;color:var(--muted)}
.resource-utility-actions svg{width:16px;height:16px;display:block}
@media(max-width:760px){
 .detail-header-tools{gap:6px}
 .resource-detail-modal .resource-utility-actions button{width:34px;height:34px;min-height:34px;padding:0}
 .resource-utility-actions{gap:4px}
 .resource-detail-info>header{padding-right:0}
}

/* Share title hierarchy: stronger resource name, quieter readable explanation. */
.community-dialog:has(.community-url) .community-resource{font-size:15px;line-height:1.6;font-weight:600}
.community-dialog:has(.community-url) .community-muted{font-size:9px;line-height:1.8}

.community-dialog .community-resource{color:#3979da}
[data-theme="dark"] .community-dialog .community-resource{color:#78adff}
