body.build-share-open { overflow: hidden; }
.build-share-dialog [hidden] { display: none !important; }
.build-share-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 28px); padding: 24px; overflow-y: auto; }
.build-share-dialog h2 { margin: 0 44px 16px 0; }
.build-share-name { margin: 0 0 8px; font-weight: 600; overflow-wrap: anywhere; }
.build-share-note { margin: 0 0 16px; color: #64715f; font-size: 13px; line-height: 1.5; }
.build-share-actions { display: grid; gap: 10px; }
.build-share-dialog .button { min-height: 44px; white-space: normal; }
.build-share-url { width: 100%; min-width: 0; padding: 10px; border: 1px solid #d7dfd2; border-radius: 6px; font: inherit; font-size: 12px; }
.build-share-downloads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid #d7dfd2; }
.build-share-revoke { justify-self: start; min-height: 44px; color: #8a3d28; }
[data-share-status] { margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; }
[data-share-status]:empty { display: none; }
.shared-build-notice { padding: 12px 16px; border: 1px solid #dec785; background: #fff6dd; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.shared-build-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.shared-build-photos figure { margin: 0; padding: 12px; background: #fff; border: 1px solid #dce4d7; border-radius: 8px; }
.shared-build-photos img { width: 100%; height: 160px; object-fit: contain; }
.shared-build-photos figcaption { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .build-share-dialog { padding: 22px 16px; } .build-share-downloads { grid-template-columns: minmax(0, 1fr); } }
