.hwgh-share-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fffaf0;
  color: #111;
  box-shadow: 0 22px 80px #0004;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  overscroll-behavior: contain;
  overflow: auto;
  color-scheme: light;
}
.hwgh-share-dialog:not([open]), .hwgh-share-dialog [hidden], .hwgh-share-fallback-backdrop[hidden] { display: none !important; }
.hwgh-share-dialog *, .hwgh-share-dialog *::before, .hwgh-share-dialog *::after { box-sizing: border-box; }
.hwgh-share-dialog::backdrop { background: rgb(17 17 17 / 62%); }
.hwgh-share-dialog--fallback { position: fixed; inset: 0; z-index: 2147483647; }
.hwgh-share-fallback-backdrop { position: fixed; inset: 0; z-index: 2147483646; background: rgb(17 17 17 / 62%); }
.hwgh-share-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; background: #ffda35; border-bottom: 2px solid #111; }
.hwgh-share-brand { font: 900 18px/1.12 "Archivo", Arial, sans-serif; letter-spacing: -.03em; }
.hwgh-share-brand span { display: block; margin-top: 5px; font: 500 13px/1.2 "Archivo", Arial, sans-serif; letter-spacing: 0; }
.hwgh-share-close { appearance: none; flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #111; border-radius: 50%; background: transparent; color: #111; cursor: pointer; font: 400 30px/1 Arial, sans-serif; }
.hwgh-share-close:hover { background: #fff7; }
.hwgh-share-body { padding: 26px; }
.hwgh-share-body h2 { margin: 0; color: #111; font: 800 clamp(26px, 5vw, 32px)/1.15 "Archivo", Arial, sans-serif; letter-spacing: -.025em; text-transform: none; }
.hwgh-share-description { margin: 8px 0 20px; font-size: 15px; color: #48443a; }
.hwgh-share-quote { display: block; max-height: min(270px, 32dvh); overflow: auto; overscroll-behavior: contain; margin: 0 0 20px; padding: 18px 20px; border: 1px solid #d4cbbb; border-left: 4px solid #111; background: #fff; color: #111; font: 400 21px/1.45 "Newsreader", Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.hwgh-share-notice { margin: 0 0 16px; padding: 12px 14px; background: #ffda354a; border: 1px solid #bd9c20; font-size: 14px; line-height: 1.5; }
.hwgh-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hwgh-share-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; margin: 0; padding: 11px 14px; border: 1.5px solid #111; border-radius: 5px; background: #fffaf0; color: #111; font: 650 14px/1.35 "Archivo", Arial, sans-serif; text-align: center; white-space: normal; cursor: pointer; }
.hwgh-share-button:hover:not(:disabled) { background: #ffda35; }
.hwgh-share-button--primary { background: #111; color: #fffaf0; }
.hwgh-share-button--primary:hover:not(:disabled) { background: #373327; }
.hwgh-share-button:disabled { opacity: .55; cursor: default; }
.hwgh-share-dialog :focus-visible { outline: 3px solid #1c63d5; outline-offset: 3px; }
.hwgh-share-status { min-height: 1.5em; margin: 14px 0 0; color: #454032; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hwgh-share-fallback { margin-top: 16px; padding: 16px; border: 1px solid #bfb4a0; background: #fff; }
.hwgh-share-fallback label { display: block; margin-bottom: 8px; color: #111; font-size: 14px; font-weight: 700; }
.hwgh-share-manual { display: block; width: 100%; min-height: 112px; padding: 10px; border: 1px solid #8b8273; border-radius: 3px; background: #fff; color: #111; font: 400 16px/1.45 "Archivo", Arial, sans-serif; resize: vertical; }
.hwgh-share-fallback .hwgh-share-button { margin-top: 10px; }
.hwgh-share-save-fallback { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.hwgh-share-save-fallback a { color: #111; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hwgh-share-image-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d4cbbb; }
.hwgh-share-image-preview summary { width: fit-content; min-height: 36px; color: #111; font-size: 14px; font-weight: 650; cursor: pointer; }
.hwgh-share-preview-status { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.hwgh-share-preview-image { display: block; width: 100%; height: auto; margin-top: 10px; border: 1px solid #d4cbbb; }
.hwgh-share-copy-buffer { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; margin: 0; padding: 0; border: 0; opacity: .01; font-size: 16px; }
@media (max-width: 440px) {
  .hwgh-share-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 6px; }
  .hwgh-share-header { padding: 16px 18px; }
  .hwgh-share-body { padding: 20px 18px; }
  .hwgh-share-brand { font-size: 17px; }
  .hwgh-share-quote { padding: 14px; font-size: 20px; max-height: 28dvh; }
  .hwgh-share-button { padding: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hwgh-share-dialog, .hwgh-share-dialog * { scroll-behavior: auto !important; }
}
@media print { .hwgh-share-dialog, .hwgh-share-fallback-backdrop { display: none !important; } }
