/* Friend sharing: existing product palette, TDS-style content hierarchy. */
.friend-result{max-width:100%;padding:20px 8px 40px}
.friend-result h1{margin:12px 0 24px;font-size:28px;line-height:1.4;letter-spacing:-.8px}
.friend-eyebrow,.friend-example{font-size:13px;color:var(--muted);line-height:1.6}
.friend-example{display:block;margin-top:12px}
.friend-subtitle{color:var(--muted);font-size:15px;line-height:1.7;margin:8px 0 24px}
.friend-reading{padding:24px 0 32px;border-bottom:1px solid var(--line)}
.friend-reading h2{font-size:22px;line-height:1.5;margin:8px 0 16px}
.friend-reading p,.friend-story dd{font-size:17px;line-height:1.9;word-break:keep-all;overflow-wrap:anywhere;white-space:pre-wrap}
.friend-invite{padding:32px 0}
.friend-invite h2{font-size:24px;line-height:1.45;margin-bottom:10px}
.friend-invite p{color:var(--muted);margin-bottom:24px;line-height:1.7}
.friend-invite .primary{width:100%}
.friend-result .text-btn{display:block;min-height:44px;margin:12px auto;padding:10px;text-align:center}
.friend-story{margin:24px 0 8px}
.friend-story>div{padding:24px 0;border-bottom:1px solid var(--line)}
.friend-story dt{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:12px}
.friend-story dd{margin:0}
.friend-share-overlay{z-index:700;align-items:center;padding:16px}
.friend-share-dialog{width:100%;max-width:460px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;background:var(--paper);border-radius:24px;padding:20px 24px;color:var(--ink)}
.friend-share-top{display:flex;justify-content:space-between;align-items:center}
.friend-share-top button{background:transparent;font-size:28px;width:44px;min-height:44px}
.friend-share-dialog h2{font-size:22px;line-height:1.5;margin-top:8px}
.friend-personal{display:flex;align-items:center;gap:10px;font-size:14px;min-height:44px;line-height:1.6}
.friend-personal input{width:22px;height:22px;accent-color:var(--action);flex-shrink:0}
.friend-hook{font-size:18px;font-weight:700;line-height:1.6;margin:20px 0}
.friend-field-label{display:block;font-size:14px;margin-bottom:8px}
.friend-share-dialog textarea{width:100%;min-height:112px;padding:14px;border:1px solid var(--line);background:#f7f7f8;border-radius:12px;resize:vertical;line-height:1.7;color:var(--ink)}
.friend-share-reading{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.friend-share-reading p{font-size:15px;line-height:1.8;margin-top:8px;white-space:pre-wrap}
.friend-share-note{font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0}
.friend-share-dialog .primary{width:100%}
.friend-share-dialog>.text-btn{display:block;margin:8px auto;min-height:44px}
.friend-manual-copy{margin-top:12px;font-size:13px}
.friend-manual-copy textarea{margin-top:8px;word-break:break-all}
@media(max-width:360px){.friend-share-dialog{padding:16px}.friend-result{padding-left:0;padding-right:0}}

/* Result first, then one conversation-led share action. */
main.free-flow .own-result>h1{font-size:24px;line-height:34px;margin:0 0 28px}
.own-result .result-reading{padding:24px;border:0;border-radius:20px;background:#f6f3ed}
.result-reading-label{display:block;font-size:14px;line-height:22px;font-weight:700;color:var(--orange);margin-bottom:12px}
.own-result .result-reading h2{font-size:28px;line-height:39px;margin:0 0 20px;letter-spacing:-.6px;word-break:keep-all;overflow-wrap:anywhere}
.own-result .result-reading p{font-size:19px;line-height:32px;font-weight:500;margin:0;color:var(--ink)}
.result-example-note{font-size:12px;line-height:20px;color:var(--muted);margin-top:10px}
@media(max-width:359px){.own-result .result-reading{padding:20px}.own-result .result-reading h2{font-size:26px;line-height:36px}}

.result-artwork{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin-bottom:20px}
.result-artwork[hidden]{display:none}
.own-result .result-reading>.result-artwork{width:calc(100% + 48px);max-width:none;max-height:240px;margin:-24px -24px 24px;border-radius:20px 20px 0 0}
.friend-share-reading .result-artwork{max-height:180px}
@media(max-width:359px){.own-result .result-reading>.result-artwork{width:calc(100% + 40px);margin:-20px -20px 20px}}

main.result-page{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
.result-share-bar{position:fixed;z-index:450;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:500px;padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--white,#fff);border-top:1px solid var(--line)}
.result-share-bar .primary{width:100%;min-height:56px;margin:0}
