.share-sheet { max-height: min(88dvh, 760px); }
.share-sheet .sheet-body { padding: 0 20px max(22px, env(safe-area-inset-bottom)); }
.share-panel { display: flex; flex-direction: column; }
.share-preview-wrap { width: min(100%, 240px); aspect-ratio: 9 / 16; margin: 4px auto 22px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.share-canvas { display: block; width: 100%; height: 100%; }
.share-style-label { color: var(--muted); font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.share-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.share-chip, .share-action { min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); font: 500 13px/1 var(--sans); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
.share-chip { background: var(--surface); color: var(--ink-2); }
.share-chip:hover, .share-chip[aria-checked="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.share-chip[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.share-actions { display: grid; gap: 8px; }
.share-action { width: 100%; }
.share-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.share-primary:hover { opacity: .88; }
.share-secondary { background: transparent; color: var(--ink); }
.share-secondary:hover { background: var(--surface-2); }
.share-chip:focus-visible, .share-action:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .share-preview-wrap { animation: share-rise 260ms var(--ease) both; }
  @keyframes share-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 560px) {
  .share-sheet .sheet-body { padding-inline: 28px; }
  .share-preview-wrap { width: 220px; }
  .share-actions { grid-template-columns: 1.2fr 1fr 1fr; }
}
