/* Report and selected-purchase sharing use the same controls and dialog shell. */
.report-share-button, .whatif-share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.report-share-button svg, .whatif-share button svg { flex: 0 0 18px; width: 18px; height: 18px; }
.report-share-button:hover, .whatif-share button:hover:not(:disabled) { filter: brightness(.92); }
.report-share-button:focus-visible, .whatif-share button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.report-share-button:disabled, .whatif-share button:disabled { opacity: .55; cursor: default; }
.report-share-dialog, .whatif-share-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 25px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 16px 64px #18213124; }
.report-share-dialog::backdrop, .whatif-share-dialog::backdrop { background: #10182780; }
body:has(.report-share-dialog[open]), body:has(.whatif-share-dialog[open]) { overflow: hidden; }
.report-share-heading, .whatif-share-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.report-share-heading h2, .whatif-share-dialog-heading h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.03em; }
.report-share-close, .whatif-share-close { display: inline-grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 5px; color: var(--ink); background: var(--surface); font-size: 25px; line-height: 1; }
#report-share-description, .whatif-share-intro { margin-top: 12px; font-size: 13px; line-height: 1.8; word-break: keep-all; }
.report-share-preview, .whatif-share-preview { margin-top: 16px; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; }
.report-share-summary, .whatif-share-preview-title { padding: 12px 14px 0; font-size: 13px; line-height: 1.75; font-weight: 700; word-break: keep-all; }
.report-share-excerpt, .whatif-share-summary { padding: 6px 14px 14px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.whatif-share-summary { white-space: pre-line; }
.report-share-options, .whatif-share-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.report-share-option, .whatif-share-option { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 80px; padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; }
.report-share-logo, .whatif-share-logo { display: block; flex-shrink: 0; width: 44px; height: 44px; object-fit: contain; }
.report-share-option:hover, .whatif-share-option:hover { border-color: var(--accent); background: var(--surface); }
.report-share-option:focus-visible, .whatif-share-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.report-share-option:disabled, .whatif-share-option:disabled { cursor: wait; }
.report-share-option[hidden], .whatif-share-option[hidden] { display: none; }
.report-share-dialog label, .whatif-share-dialog label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.report-share-url, .whatif-share-url { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); font-size: 12px; }
.report-share-copy, .whatif-share-copy { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.report-share-copy:hover:not(:disabled), .whatif-share-copy:hover:not(:disabled) { filter: brightness(.92); }
.report-share-copy:disabled, .whatif-share-copy:disabled { opacity: .6; cursor: wait; }
.report-share-status, .whatif-share-dialog-status { min-height: 44px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.whatif-share-native { grid-column: 1 / -1; gap: 9px; min-height: 48px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.whatif-share-native svg { flex-shrink: 0; width: 20px; height: 20px; }
.whatif-share-app-note { margin: -6px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.8; word-break: keep-all; }
.whatif-share-ad-slot { min-height: 100px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }
@media (max-width: 780px) {
  .report-share-dialog, .whatif-share-dialog { padding: 20px; }
}
