.prl-share-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe9f5;
  border-radius: 18px;
  background: #fff;
  color: var(--xs-text, #455a74);
  box-shadow: 0 28px 80px rgba(16, 48, 82, .25);
  font: 14px/1.55 "Microsoft YaHei", "PingFang SC", sans-serif;
}
.prl-share-dialog *, .prl-share-dialog *::after { box-sizing: border-box; }
.prl-share-dialog::backdrop { background: rgba(16, 35, 57, .47); }
.prl-share-dialog header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 19px 22px 14px;
  border: 0;
  background: #fff;
}
.prl-share-dialog h2 {
  margin: 0;
  color: #213c59;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}
.prl-share-dialog button { font-family: inherit; cursor: pointer; }
.prl-share-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #57728e;
  border: 1px solid #e2eaf3;
  border-radius: 9px;
  background: #f5f8fc;
  font-size: 22px;
  line-height: 1;
}
.prl-share-body { padding: 0 22px 21px; }
.prl-share-picture {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--xs-line, #dce7f4);
  border-radius: 12px;
  background: #f3f7fc;
}
.prl-share-picture img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(54dvh, 590px);
  object-fit: contain;
  border-radius: 5px;
}
.prl-share-field {
  margin: 12px 0;
  padding: 6px 12px;
  color: #35638f;
  background: #f3f8ff;
  border: 1px solid #d8e7f7;
  border-radius: 9px;
  font-size: 13px;
  text-align: left;
}
.prl-share-field summary { min-height: 30px; line-height: 30px; font-weight: 600; cursor: pointer; }
.prl-share-field label { display: block; margin: 5px 0; color: #536d88; }
.prl-share-edit { display: flex; gap: 6px; min-width: 0; margin-bottom: 6px; }
.prl-share-edit input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 9px;
  color: var(--xs-ink, #172b4d);
  border: 1px solid #ccddef;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.prl-share-edit button,
.prl-share-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d5e2f2;
  border-radius: 9px;
  color: #35638f;
  background: white;
  box-shadow: 0 3px 10px rgba(31, 92, 152, .035);
  font-size: 14px;
  font-weight: 600;
}
.prl-share-actions { display: flex; gap: 10px; }
.prl-share-actions button { flex: 1; }
.prl-share-actions .prl-share-primary,
.prl-share-edit button {
  border-color: var(--xs-blue, #1677ff);
  color: white;
  background: var(--xs-blue, #1677ff);
  box-shadow: 0 8px 18px rgba(22, 119, 255, .18);
}
.prl-share-copies { display: flex; gap: 5px; margin: 0 0 12px; }
.prl-share-copies button {
  flex: 1;
  min-height: 40px;
  padding: 6px 2px;
  border: 1px solid #dce7f4;
  border-radius: 9px;
  background: #fff;
  color: #455a74;
  font-size: 13px;
}
.prl-share-copies button[aria-pressed='true'] {
  border-color: #b8d6ff;
  background: var(--xs-pale, #eaf3ff);
  color: var(--xs-blue-dark, #0d5fc7);
  font-weight: 600;
}
.prl-share-text {
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 13px 15px;
  resize: vertical;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  color: var(--xs-text, #455a74);
  background: #f8fbff;
  font: inherit;
  line-height: 1.8;
}
.prl-share-message { margin: 9px 0 0; color: #536d88; font-size: 12px; overflow-wrap: anywhere; }
.prl-share-message:empty { margin: 0; }
.prl-share-dialog :focus-visible { outline: 2px solid var(--xs-blue, #1677ff); outline-offset: 2px; }
@media (hover: hover) {
  .prl-share-close:hover, .prl-share-other:hover { color: #0d5fc7; border-color: #b8d6ff; }
  .prl-share-actions .prl-share-primary:hover, .prl-share-edit button:hover { background: #0d5fc7; }
}
@media (max-width: 440px) {
  .prl-share-dialog header { padding: 16px 16px 12px; }
  .prl-share-body { padding: 0 16px 16px; }
}
@media (max-height: 600px) {
  .prl-share-picture img { max-height: 45dvh; }
}
