.action-dialog.mochi-dialog {
  box-sizing: border-box;
  width: min(27rem, calc(100% - 2rem));
  max-height: min(88dvh, 39rem);
  padding: 0;
  border: 1px solid #cfa8b5;
  border-radius: 21px;
  background: #fffaf6;
  color: #583f4a;
  box-shadow: 0 16px 54px #47233538;
}
.action-dialog::backdrop { background: #43283d65; }
.action-dialog .mf-content { padding: clamp(17px, 4vw, 25px); }
.action-intro { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: start; }
.action-intro h2 { margin: 0 0 6px; color: #673b52; font-size: clamp(1.12rem, 4vw, 1.4rem); line-height: 1.45; overflow-wrap: anywhere; }
.action-intro p { margin: 0; color: #745a66; line-height: 1.6; font-size: .95rem; word-break: keep-all; overflow-wrap: anywhere; }
.action-pet { width: 50px; height: 50px; padding: 5px; box-sizing: border-box; border-radius: 16px; border: 1px solid #efd3c2; background: #fff1dc; image-rendering: pixelated; object-fit: contain; }
.action-dialog[data-intent=copy] .action-pet { background: #ffecf3; border-color: #efcdd7; }
.action-dialog .action-copy-field { box-sizing: border-box; width: 100%; margin-top: 16px; padding: 11px 13px; border: 1px solid #d4b5c2; border-radius: 11px; font: inherit; font-size: 1rem; line-height: 1.5; background: #fff; color: #573749; }
.action-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.action-buttons button { min-height: 44px; padding: 8px 16px; border: 1px solid #d4b7c4; border-radius: 11px; color: #704659; background: white; font: inherit; font-weight: 700; cursor: pointer; }
.action-buttons .primary { background: #a73d60; border-color: #993959; color: white; }
.action-dialog :focus-visible { outline: 2px solid #933d6e; outline-offset: 2px; }
@media (max-width: 460px) {
 .action-buttons { flex-wrap: nowrap; }
 .action-buttons button { flex: 1; }
}

.farewell-pet{position:relative;display:inline-block;width:50px;height:50px}
.farewell-pet .action-pet{background:#fff1e9}
.farewell-eye{position:absolute;top:56%;width:4px;height:7px;border-radius:1px 1px 45% 45%;background:#73c9ed;box-shadow:inset 1px 0 #dcf8ff}
.farewell-eye.left{left:33%;--splash:-14px}
.farewell-eye.right{right:31%;--splash:14px}
.farewell-eye i{position:absolute;left:0;top:2px;width:5px;height:7px;border-radius:55% 50% 65% 60%;background:#79ccef;border:1px solid #388bb2;animation:farewell-splash 1.15s ease-out 3 both}
.farewell-eye i:nth-child(2){animation-delay:.15s;scale:.68}
.farewell-eye i:nth-child(3){animation-delay:.33s;scale:.78}
@keyframes farewell-splash{0%{opacity:0;transform:translate(0,0) scale(.3)}18%{opacity:1}45%{transform:translate(var(--splash),-7px)}100%{opacity:0;transform:translate(calc(var(--splash) * 1.55),15px) scale(.65)}}
@media(prefers-reduced-motion:reduce){.farewell-eye i{display:none}}

.share-options .action-buttons {margin:0;padding:1rem;justify-content:center}
.share-options .action-buttons button {flex:1}
.share-options [data-copy]::before {content:'✦';margin-right:.35em;color:#ffe1a3}
.share-copy-buffer {position:fixed;left:0;top:0;opacity:0;pointer-events:none;font-size:16px}
.share-copy-toast {
 position:fixed;inset:auto auto max(1.35rem,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);
 z-index:2147483646;display:flex;align-items:center;gap:.65rem;width:max-content;max-width:calc(100vw - 1.75rem);
 margin:0;padding:.62rem 1.05rem .62rem .7rem;overflow:visible;pointer-events:none;
 border:1px solid #8e5873;border-radius:1.3rem;background:#503749;color:#fff6f7;
 box-shadow:0 6px 22px #38213036,inset 0 1px #ffffff25;font-size:.94rem;font-weight:700;line-height:1.4;
 animation:share-toast-life 2s ease both;
}
.share-copy-pet {width:2.1rem;height:2.1rem;position:relative;flex:none;border-radius:50%;background:#ffe8ef url('/art/tab-strawberry-64.png') center/86% no-repeat;image-rendering:pixelated}
.share-copy-pet::before,.share-copy-pet::after {content:'✦';position:absolute;color:#ffe69f;font-size:.8rem;text-shadow:0 1px #98664e;animation:share-twinkle .8s ease-in-out 2 alternate}
.share-copy-pet::before {top:-.36rem;right:-.19rem}
.share-copy-pet::after {bottom:-.15rem;left:-.28rem;font-size:.6rem;animation-delay:.16s}
@keyframes share-toast-life {0%{opacity:0;translate:0 .35rem}10%,87%{opacity:1;translate:0 0}100%{opacity:0}}
@keyframes share-twinkle {0%,100%{transform:scale(.65)}55%{transform:scale(1.2)}}
@media(prefers-reduced-motion:reduce){.share-copy-toast,.share-copy-pet::before,.share-copy-pet::after{animation:none}}
