.resource-sharing{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin:-.35rem 0 var(--space-8);padding:0;border:0;background:transparent;color:var(--muted)}
.resource-share-label{font-size:.8125rem;font-weight:600;color:var(--ink)}
.resource-share-actions{display:flex;flex-wrap:wrap;gap:7px}
.resource-share-actions a,.resource-share-actions button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--hair);border-radius:50%;color:var(--ink);background:var(--card);cursor:pointer;text-decoration:none;transition:transform 120ms ease,border-color 160ms ease,color 160ms ease,background-color 160ms ease}
.resource-share-actions a:hover,.resource-share-actions button:hover{transform:translateY(-1px);border-color:var(--brand);color:var(--brand);background:var(--soft)}
.resource-share-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.resource-share-icon-facebook{fill:currentColor;stroke:none}.resource-share-icon-instagram .resource-share-icon-dot{fill:currentColor;stroke:none}
.resource-share-actions [hidden],.resource-sharing [hidden]{display:none}
.resource-sharing input{display:block;width:100%;box-sizing:border-box;margin-top:.5rem;padding:.7rem;font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px}
.resource-share-invite{flex-basis:100%;margin:0;font-size:.8125rem;color:var(--ink)}
.resource-sharing [data-share-status]{flex-basis:100%;font-size:.75rem;margin:0}.resource-sharing [data-share-status]:empty{display:none}.resource-share-actions :focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:700px){.resource-sharing{align-items:flex-start;flex-wrap:wrap;margin-top:-.2rem}.resource-share-label{display:flex;align-items:center;min-height:44px}}
@media(prefers-reduced-motion:reduce){.resource-share-actions a,.resource-share-actions button{transition:none}.resource-share-actions a:hover,.resource-share-actions button:hover{transform:none}}
.resource-share-actions button{position:relative}.resource-share-actions button[data-copied]{border-color:var(--green-ink);color:var(--green-ink);background:var(--tile-mint)}.resource-share-actions button[data-copied] svg{opacity:0}.resource-share-actions button[data-copied]::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:800 1.25rem/1 var(--font-body)}
/* Inside the Share sheet under a tool result: the row matches the sheet's outlined buttons. */
.resource-sharing--sheet .resource-share-actions a,.resource-sharing--sheet .resource-share-actions button{border:3px solid var(--outline)}
/* The icons fit one row, or wrap into even rows, never one icon alone (lane visible-polish: X sat alone
   under the others at 320 to 375px and in the 1280px result column). The row is a size container: under
   350px the gap tightens to 5px (seven 44px buttons still fit one row at 338px, visual QA A16); narrower
   than one row needs, the icons go in a grid of half their count, rounded up (4 + 3, 3 + 3 or 3 + 2).
   Share and Copy show only where the browser offers them, so 5, 6 or 7 icons are counted, not assumed.
   Gaps are in px, like the buttons, so the widths hold at any root font size. At large text on a small
   phone the grid's columns may narrow a little (the zoom keeps each button 44px or more on screen). */
.resource-sharing{container:share-row/inline-size}
@container share-row (max-width:349px){.resource-share-actions{gap:5px}}
@container share-row (max-width:239px){.resource-share-actions:has(>:nth-child(5 of :not([hidden]))){display:grid;grid-template-columns:repeat(3,minmax(0,44px))}.resource-share-actions:has(>:nth-child(5 of :not([hidden])))>*{width:auto;height:auto;aspect-ratio:1}}
@container share-row (max-width:289px){.resource-share-actions:has(>:nth-child(6 of :not([hidden]))){display:grid;grid-template-columns:repeat(3,minmax(0,44px))}.resource-share-actions:has(>:nth-child(6 of :not([hidden])))>*{width:auto;height:auto;aspect-ratio:1}}
@container share-row (max-width:337px){.resource-share-actions:has(>:nth-child(7 of :not([hidden]))){display:grid;grid-template-columns:repeat(4,minmax(0,44px))}.resource-share-actions:has(>:nth-child(7 of :not([hidden])))>*{width:auto;height:auto;aspect-ratio:1}}
