.mila-template-link {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  padding: 8px 13px;
  border: 1px solid #edbed5;
  border-radius: 12px;
  background: #fff2f8;
  color: #161415;
  box-shadow: 0 2px 6px #39172626;
  font: 600 12px/1.25 system-ui, sans-serif;
  text-decoration: none;
  transition: background-color .2s ease, translate .2s ease;
}
.mila-template-link:is(:hover, :focus-visible) { background: #f9d2e6; translate: 0 -2px; }
.mila-preview-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid #edbed5;
  border-radius: 20px;
  background: #fff5fa;
  color: #161415;
  box-shadow: 0 14px 44px #39172640;
  font: 16px/1.5 system-ui, sans-serif;
}
.mila-preview-dialog::backdrop { background: #27152170; }
.mila-preview-dialog h2 { margin: 0 42px 8px 0; font-size: 22px; }
.mila-preview-dialog p { margin: 0; }
.mila-preview-dialog button {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid #edbed5;
  border-radius: 50%;
  background: #f9d2e6;
  font: 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .mila-template-link { transition: none; }
}
