.share-card-dialog {
  box-sizing: border-box;
  width: min(92vw, 770px);
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #cfdacf;
  border-radius: 22px;
  background: #f9faf4;
  color: #173b30;
  font-family: "Linyu MiSans", "Microsoft YaHei", sans-serif;
}
.share-card-dialog::backdrop { background: rgb(16 35 30 / 66%); }
html:has(.share-card-dialog[open]) { overflow: hidden; }
.share-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.share-card-header h2 { margin: 0; font-size: clamp(20px, 4vw, 26px); }
.share-card-close {
  width: 44px;
  height: 44px;
  border: 1px solid #ced9ce;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
.share-card-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 26px; }
.share-card-image { display: grid; place-items: center; }
.share-card-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64vh;
  max-height: 64dvh;
  border-radius: 8px;
  box-shadow: 0 7px 24px #183c3022;
}
.share-card-tools { min-width: 0; }
.share-card-cheer {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: 4px 16px 16px;
  background: #eee3f0;
  color: #49364e;
  font-size: 15px;
  line-height: 1.65;
}
.share-card-switch { min-height: 44px; margin-bottom: 6px; }
.share-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-card-actions .btn { min-height: 44px; }
.share-card-dialog [hidden] { display: none !important; }
.share-card-status { min-height: 1.5em; margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.share-card-dialog :focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
html.dark .share-card-dialog { background: #223632; color: #f2f5ed; border-color: #526e62; }
html.dark .share-card-close { border-color: #526e62; }
html.dark .share-card-dialog :focus-visible { outline-color: #7ce3d1; }

@media (max-width: 600px) {
  .share-card-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .share-card-image img { max-height: 46vh; max-height: 46dvh; }
  .share-card-cheer { padding: 10px 12px; font-size: 14px; }
  .share-card-actions .btn { flex: 1 0 auto; text-align: center; }
}
