/* Scoped account action, shared by search and Trip Planner. */
[data-app-share] { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.app-share-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--teal-dark) 16%, var(--line)); border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.app-share-button:hover:not(:disabled) { border-color: var(--teal-dark); box-shadow: 0 2px 8px #00000009; }
.app-share-button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.app-share-button:disabled { cursor: progress; opacity: .75; }
.app-share-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; color: #08796e; background: #e1f3ef; }
.app-share-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-share-copy { display: grid; gap: 3px; min-width: 0; }
.app-share-title { font-size: 14px; font-weight: 750; line-height: 1.35; }
.app-share-subtitle { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.app-share-button .app-share-chevron { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
[data-app-share] .app-share-status { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.app-share-manual { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.app-share-manual[hidden], .app-share-status[hidden] { display: none; }
.app-share-manual input { display: block; width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 16px; }
@media (prefers-color-scheme: dark) {
  .app-share-mark { color: #75d5c8; background: #173a35; }
}

/* Quiet post-contribution invitation: reuse the same share action and theme. */
.contribution-share-card { position: relative; margin-top: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--teal) 5%, var(--surface)); color: var(--text); }
.contribution-share-card .contribution-share-heading { margin: 0; padding-right: 32px; font-size: 14px; font-weight: 750; line-height: 1.5; }
.contribution-share-card .contribution-share-copy { margin: 6px 0 12px; padding-right: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.contribution-share-card [data-app-share] { margin: 0; padding: 0; border: 0; }
.contribution-share-card .app-share-button { width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 12px; gap: 8px; border-radius: 11px; background: var(--surface); }
.contribution-share-card .app-share-mark { width: 24px; height: 24px; flex-basis: 24px; background: transparent; }
.contribution-share-card .app-share-chevron { display: none; }
.contribution-share-card .contribution-share-dismiss { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.contribution-share-dismiss svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.contribution-share-dismiss:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
