.result-share-dialog, .shared-result-page {
  --share-olive: #46543a; --share-ink: #30372b; --share-muted: #656957;
  --share-paper: #f8f7ef; --share-line: #c6c7b6; --share-soft: #e7eadc;
  color: var(--share-ink); font-family: "Golos Text", Arial, sans-serif;
}
.result-share-dialog { box-sizing: border-box; width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 30px; border: 1px solid var(--share-line); border-radius: 8px; background: var(--share-paper); box-shadow: 0 18px 80px #30372b33; overflow-y: auto; }
.result-share-dialog::backdrop { background: #20271c88; }
.result-share-dialog h2 { margin: 0 32px 14px 0; font: 400 27px/1.2 "PT Serif", Georgia, serif; letter-spacing: -.02em; }
.result-share-dialog :is(button, a, input):focus-visible, .shared-result-page :is(button, a):focus-visible { outline: 3px solid #a35a28; outline-offset: 3px; }
.result-share-dialog button, .shared-result-page button { font: inherit; cursor: pointer; }
.result-share-dialog .share-close { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--share-olive); font-size: 28px; }
.share-note, .share-status { color: var(--share-muted); font-size: 13px; line-height: 1.65; }
.result-share-dialog .share-note { margin: 0 0 16px; }
.result-share-dialog .share-preview { margin: 0 0 20px; }
.result-share-dialog .share-status { margin: 16px 0 0; }
.share-preview { padding: 12px 14px; border-left: 2px solid var(--share-olive); background: var(--share-soft); font-size: 14px; overflow-wrap: anywhere; }
.share-create, .result-share-dialog .share-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--share-olive); border-radius: 4px; background: var(--share-olive); color: #f8f7ef; text-decoration: none; font-size: 13px; }
.share-create:hover, .result-share-dialog .share-copy:hover { background: #2f3b28; }
.share-create:disabled { opacity: .65; cursor: wait; }
.result-share-dialog [hidden] { display: none !important; }
.share-link-label { display: block; font-size: 12px; color: var(--share-muted); }
.result-share-dialog .share-url { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid var(--share-line); border-radius: 4px; background: #fffef8; color: var(--share-ink); font: 12px/1.5 monospace; }
.share-link-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 20px; }
.share-view, .share-more { color: var(--share-olive); font-size: 12px; text-underline-offset: 4px; }
.result-share-dialog .share-more { min-height: 44px; padding: 8px 0; border: 0; background: transparent; text-decoration: underline; }
.share-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 18px; border-top: 1px solid var(--share-line); }
.share-social { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 10px 4px; border-radius: 5px; color: var(--share-olive); text-decoration: none; font-size: 11px; }
.share-social:hover { background: var(--share-soft); }
.share-social-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--share-line); border-radius: 50%; background: var(--share-soft); }
.share-social-icon svg { width: 24px; height: 24px; }
.share-status:empty { display: none; }
.shared-result-page { margin: 0; background: #eeede5; line-height: 1.7; }
.shared-result-page :is(header, main, footer) { box-sizing: border-box; width: min(780px, 100%); margin-inline: auto; padding: 24px; }
.shared-result-page header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--share-line); }
.shared-result-page a { color: var(--share-olive); text-underline-offset: 4px; }
.shared-result-page header a { font-size: 12px; }
.shared-result-page header .shared-brand { font-size: 20px; font-weight: 600; text-decoration: none; }
.shared-result-page h1 { margin: 12px 0; font: 400 clamp(28px, 6vw, 42px)/1.15 "PT Serif", Georgia, serif; overflow-wrap: anywhere; }
.shared-eyebrow { color: var(--share-muted); font: 11px/1.7 monospace; letter-spacing: .06em; }
.shared-note { color: var(--share-muted); font-size: 13px; }
.shared-paper { padding: clamp(18px, 5vw, 34px); margin: 28px 0; border: 1px solid var(--share-line); border-radius: 4px; background: var(--share-paper); box-shadow: 0 3px 8px #30372b08; }
.shared-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.shared-paper audio { display: block; width: 100%; margin-bottom: 12px; }
.shared-download { display: inline-block; margin-bottom: 24px; font-size: 13px; }
.shared-cta { display: inline-block; margin-top: 24px; font-size: 14px; }
.shared-result-page footer { border-top: 1px solid var(--share-line); color: var(--share-muted); font-size: 12px; }
#tts-sample-share { align-self: flex-start; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #46543a; font: inherit; font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 360px) { .result-share-dialog { padding: 24px 18px; } .share-link-actions { align-items: stretch; flex-direction: column; } }
