/* Sharing is a separate sheet; the authored card remains the original PNG. */
body[data-module-screen="my-view"] .export-actions { gap:10px; }
body[data-module-screen="my-view"] .export-actions > button { min-height:46px; padding-inline:24px; }
.export-secondary { display:flex; justify-content:center; flex:0 0 auto; }
.preview.is-receiving .export-secondary { visibility:hidden; }
.edit-card { min-height:36px; padding:4px 12px; border:0; background:transparent; color:#f0ebdf; font-size:12px; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.edit-card:hover { color:#91e2db; }
.edit-card:focus-visible { outline:2px solid #91e2db; outline-offset:2px; }
.case-actions { flex-wrap:wrap; }
.case-actions .case-share { background:#d2e6df; border-color:#8aaea1; }

.share-dialog { width:min(980px,calc(100vw - 40px)); max-width:none; max-height:calc(100svh - 40px); margin:auto; padding:0; border:1px solid #ffffff1f; background:#0b1519; color:#eee6d7; color-scheme:dark; box-shadow:0 28px 110px #0009; overflow:auto; overscroll-behavior:contain; }
.share-dialog::backdrop { background:#061012cf; backdrop-filter:blur(7px); }
.share-dialog-header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:22px 28px 20px; border-bottom:1px solid #ffffff14; background:#0b1519; }
.share-dialog-header p { margin:0 0 7px; color:#8ed9dc; font:700 12px "Crossroad Latin",sans-serif; letter-spacing:.2em; }
.share-dialog-header h2 { margin:0; font-size:clamp(20px,2.4vw,26px); line-height:1.4; letter-spacing:.03em; }
.share-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; color:#eee6d7; font:300 28px/1 sans-serif; cursor:pointer; }
.share-close:hover { color:#8ed9dc; }
.share-layout { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1fr); }
.share-card { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:18px; min-width:0; margin:0; padding:30px; background:radial-gradient(ellipse at 40% 35%,#10202a,#071016); }
.share-card img { display:block; width:100%; height:auto; max-height:63svh; object-fit:contain; filter:drop-shadow(0 14px 24px #000a); }
.share-card figcaption { display:flex; justify-content:space-between; gap:20px; width:100%; color:#a9b7b8; font:500 12px "Crossroad Latin",sans-serif; letter-spacing:.1em; }
.share-card figcaption span { color:#6f8286; letter-spacing:.04em; }
.share-compose { min-width:0; padding:28px; }
.share-intro { margin:0 0 24px; color:#a9aaa0; font-size:13px; line-height:1.7; }
.share-text-label { display:block; font-size:14px; font-weight:700; }
.share-dialog textarea { display:block; box-sizing:border-box; width:100%; min-height:142px; margin:9px 0 0; padding:14px; resize:vertical; border:1px solid #ffffff2e; border-radius:2px; background:#05131e; color:#eee6d7; font:400 15px/1.8 "Yu Gothic UI","Meiryo",sans-serif; }
.share-dialog #share-text { min-height:calc(3.2em + 22px); padding:10px 12px; line-height:1.6; }
.share-dialog textarea:focus { border-color:#8ed9dc; outline:2px solid #8ed9dc33; outline-offset:2px; }
.share-text-note { margin:7px 0 14px; color:#8a8f88; font-size:11px; line-height:1.6; }
.share-source-option { display:flex; align-items:center; gap:9px; min-height:32px; font-size:12px; cursor:pointer; }
.share-source-option input { width:17px; height:17px; margin:0; accent-color:#8ed9dc; }
.share-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; }
.share-controls button,.share-x { display:flex; align-items:center; justify-content:center; gap:12px; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #ffffff3d; background:transparent; color:#eee6d7; font:600 13px/1.5 "Yu Gothic UI","Meiryo",sans-serif; cursor:pointer; text-decoration:none; }
.share-controls button:hover { background:#ffffff12; border-color:#ffffff66; }
.share-controls button:disabled { cursor:default; opacity:.42; }
.share-method-hint { margin:10px 0 0; color:#8a8f88; font-size:11px; line-height:1.7; }
.share-x { justify-content:center; width:100%; box-sizing:border-box; margin-top:20px; border-color:#8ed9dc; background:#8ed9dc; color:#071521; font-size:15px; }
.share-x span { font:500 20px/1 sans-serif; }
.share-x:hover { background:#a7e5e7; border-color:#a7e5e7; }
.share-x-note { margin:7px 0 0; color:#8a8f88; font-size:11px; line-height:1.7; }
.share-status { min-height:1.7em; margin:17px 0 0; color:#8ed9dc; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.share-manual-copy { margin-top:12px; font-size:12px; }
.share-manual-copy textarea { min-height:110px; }
.share-dialog button:focus-visible,.share-x:focus-visible { outline:2px solid #8ed9dc; outline-offset:3px; }
.share-dialog .share-dialog-header .language-switch { background:transparent; border-color:#ffffff3d; color:#7f8c8d; }
.share-dialog .share-dialog-header .language-switch .is-active { color:#8ed9dc; }
.share-dialog .share-dialog-header .language-switch:focus-visible { outline-color:#8ed9dc; }

@media(min-width:681px) and (max-height:800px) {
  .share-dialog-header { padding:16px 24px; }
  .share-compose { padding:22px 26px; }
  .share-intro { margin-bottom:14px; }
  .share-dialog textarea { min-height:110px; }
  .share-controls { margin-top:14px; }
  .share-method-hint { margin-bottom:0; }
}

@media(max-width:680px) {
  body[data-module-screen="my-view"] .export-actions > button { flex:1 1 0; padding-inline:9px; font-size:12px; }
  .share-dialog { width:calc(100vw - 20px); max-height:calc(100svh - 20px); }
  .share-dialog-header { padding:16px 18px; }
  .share-dialog-header p { font-size:10px; margin-bottom:4px; }
  .share-dialog-header h2 { font-size:20px; }
  .share-layout { grid-template-columns:minmax(0,1fr); }
  .share-card { gap:12px; padding:20px 24px 14px; }
  .share-card img { width:auto; max-width:100%; height:230px; max-height:35svh; }
  .share-card figcaption { justify-content:center; font-size:10px; }
  .share-compose { padding:22px 18px 18px; }
  .share-intro { margin-bottom:18px; }
  .share-dialog textarea { min-height:116px; font-size:16px; }
  .share-controls { margin-top:14px; }
}
