/* Sharing follows the same clear theme as the workshop. */
.share-dialog { width:min(860px,calc(100vw - 24px)); max-width:860px; }
.share-panel h2 { max-width:20ch; font-size:clamp(26px,4vw,38px); line-height:1.12; }
.share-panel > p { color:#536077; }
.share-layout { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1fr); gap:28px; margin-top:24px; }
.share-layout:not(:has(.share-preview)) { grid-template-columns:1fr; }
.share-preview { margin:0; min-width:0; }
.share-preview img { display:block; width:100%; max-height:420px; object-fit:contain; border-radius:14px; }
.share-preview figcaption { margin-top:10px; color:#536077; overflow-wrap:anywhere; }
.share-controls { min-width:0; }
.share-controls > label { display:block; font-weight:650; margin:0 0 8px; }
.share-controls input,.share-controls textarea,.share-controls select { box-sizing:border-box; width:100%; min-width:0; font:inherit; color:#182238; background:#fff; border:1px solid #aab3c2; border-radius:10px; padding:11px; margin-bottom:16px; }
.share-controls textarea { resize:vertical; }
.share-controls input[hidden],.share-actions [hidden] { display:none; }
.share-hint { color:#536077; font-size:13px; line-height:1.55; }
.share-actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.share-actions .button { min-height:44px; white-space:normal; text-align:center; }
.share-community { padding-top:22px; margin-top:24px; border-top:1px solid #dce1e9; }
.share-community h2,.share-community h3 { font-size:18px; }
.share-community a { display:inline-flex; padding:10px 14px 10px 0; color:#2144bb; font-weight:600; }
.scene-share { margin-top:16px; }
.invitation-page { min-height:100vh; }
.invitation-layout { max-width:1120px; margin:64px auto; padding:0 28px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:64px; }
.invitation-layout:not(:has(figure)) { grid-template-columns:minmax(0,680px); justify-content:center; }
.invitation-layout figure { margin:0; }
.invitation-layout img { width:100%; max-height:70vh; object-fit:contain; border-radius:18px; }
.invitation-layout figcaption { font-size:12px; color:#536077; margin-top:12px; }
.invitation-layout h1 { font-size:clamp(36px,5vw,62px); line-height:1.06; overflow-wrap:anywhere; }
.invitation-steps { padding-left:24px; margin:26px 0; line-height:1.8; }
.invitation-layout .text-link { display:flex; margin-top:20px; }
@media (max-width:640px) {
  .share-layout { grid-template-columns:1fr; gap:18px; }
  .share-preview img { max-height:200px; }
  .share-actions .button { width:100%; }
  .invitation-layout { grid-template-columns:1fr; gap:28px; margin:28px auto; padding:0 20px; }
  .invitation-layout img { max-height:45vh; }
}
