/* Only the EchoStory / Human Window photo composer and its feed invitation. */
#storyModalNewsfeed { z-index: 10000; padding: 20px; align-items: center; }
#storyModalNewsfeed[aria-hidden="true"] { pointer-events: none; }
#storyModalNewsfeed .fs-story-sheet { width: min(100%, 520px); max-height: calc(100dvh - 40px); padding: 0; border-radius: 24px; background: #fffdf9; color: #24343a; box-shadow: 0 24px 80px #172b3050; overflow: auto; overscroll-behavior: contain; }
#storyModalNewsfeed [hidden] { display: none !important; }
#storyModalNewsfeed .fs-story-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
#storyModalNewsfeed .fs-story-eyebrow { margin: 0 0 4px; color: #963e21; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#storyModalNewsfeed h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
#storyModalNewsfeed .fs-story-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1eee8; color: #24343a; font-size: 26px; line-height: 1; }
#storyModalNewsfeed .fs-story-body { display: grid; gap: 16px; padding: 0 20px 18px; }
#storyModalNewsfeed .fs-story-intro { margin: 0; color: #58676c; font-size: 14px; line-height: 1.5; }
#storyModalNewsfeed .fs-story-prompt { padding: 12px 14px; border-left: 3px solid #276156; border-radius: 0 12px 12px 0; background: #edf5ef; }
#storyModalNewsfeed .fs-story-prompt p { margin: 0; }
#storyModalNewsfeed .fs-story-prompt strong { display: block; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
#storyModalNewsfeed .fs-story-prompt small { display: block; margin-top: 5px; color: #426459; font-size: 12px; line-height: 1.45; }
#storyModalNewsfeed .fs-story-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#storyModalNewsfeed .fs-story-source { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px solid #d8dfd8; border-radius: 14px; background: #fff; color: #24343a; font-size: 14px; font-weight: 750; }
#storyModalNewsfeed .fs-story-source:first-child { background: #245c52; color: #fff; border-color: #245c52; }
#storyModalNewsfeed .fs-story-source svg { width: 20px; height: 20px; flex-shrink: 0; }
#storyModalNewsfeed .fs-story-video-choice { grid-column: 1 / -1; justify-self: start; min-height: 44px; border: 0; padding: 2px 0; color: #934022; font-size: 14px; font-weight: 750; background: transparent; }
#storyModalNewsfeed .fs-story-preview:empty { display: none; }
#storyModalNewsfeed .fs-story-preview img, #storyModalNewsfeed .fs-story-preview video { display: block; width: 100%; height: auto; max-height: min(30dvh, 260px); margin: 0; border-radius: 14px; object-fit: contain; background: #e8e9e4; }
#storyModalNewsfeed .fs-story-preview p { margin: 0; font-size: 13px; line-height: 1.5; }
#storyModalNewsfeed .fs-story-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: #53625b; font-size: 12px; }
#storyModalNewsfeed .fs-story-selection button { min-height: 44px; padding: 3px 6px; color: #934022; font-size: 14px; font-weight: 700; }
#storyModalNewsfeed .fs-story-label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 750; }
#storyModalNewsfeed .fs-story-label span { color: #697573; font-weight: 500; }
#storyModalNewsfeed textarea { width: 100%; min-height: 78px; padding: 11px 12px; border: 1px solid #cdd6ce; border-radius: 12px; background: #fff; color: #24343a; font-size: 16px; line-height: 1.45; resize: vertical; }
#storyModalNewsfeed #mood-frame-selector-newsfeed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#storyModalNewsfeed .mood-frame-btn { min-height: 48px; flex-direction: row; gap: 6px; padding: 8px; border-radius: 12px; font-size: 14px; }
#storyModalNewsfeed .mood-frame-btn i { margin: 0; font-size: 16px; }
#storyModalNewsfeed .fs-story-status { margin: 0; color: #5c645e; font-size: 14px; line-height: 1.45; }
#storyModalNewsfeed .fs-story-status:empty { display: none; }
#storyModalNewsfeed .fs-story-status[data-error="true"] { color: #9b311c; }
#storyModalNewsfeed .fs-story-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #e6e7de; background: #fffdf9; }
#storyModalNewsfeed .fs-story-footer small { max-width: 190px; color: #66716b; font-size: 11px; line-height: 1.4; }
#storyModalNewsfeed #addStoryButtonNewsfeed { min-height: 48px; padding: 11px 18px; border: 0; border-radius: 14px; background: #ad3c18; color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0; }
#storyModalNewsfeed button:disabled { opacity: .5; cursor: not-allowed; }
#storyModalNewsfeed button:focus-visible, #storyModalNewsfeed textarea:focus-visible { outline: 3px solid #cf642e; outline-offset: 3px; }
#storyModalNewsfeed .fs-story-camera { padding: 12px; border: 1px solid #ccdcd2; border-radius: 16px; background: #eef4ef; }
#storyModalNewsfeed .fs-story-camera video { display: block; width: 100%; max-height: 30dvh; border-radius: 10px; background: #24343a; }
#storyModalNewsfeed .fs-story-camera video:not([src]) { min-height: 80px; }
#storyModalNewsfeed .fs-story-camera p { margin: 9px 0; color: #35594e; font-size: 14px; line-height: 1.45; }
#storyModalNewsfeed .fs-story-camera-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#storyModalNewsfeed .fs-story-camera-actions button { min-height: 44px; padding: 8px 14px; border: 1px solid #b6cfc0; border-radius: 12px; background: #fff; color: #245c52; font-size: 14px; font-weight: 750; }
#storyModalNewsfeed .fs-story-camera-actions button:first-child { background: #245c52; color: white; }
#one-human-thing > div:first-child { padding: 18px 20px; }
#one-human-thing #human-window-prompt { margin-top: 14px; font-size: clamp(23px, 4vw, 28px); line-height: 1.2; }
@media (max-width: 540px) {
    #storyModalNewsfeed { padding: 10px; }
    #storyModalNewsfeed .fs-story-sheet { max-height: calc(100dvh - 20px); border-radius: 20px; }
    #storyModalNewsfeed .fs-story-heading { padding: 16px 16px 10px; }
    #storyModalNewsfeed h3 { font-size: 22px; }
    #storyModalNewsfeed .fs-story-body { gap: 13px; padding: 0 16px 14px; }
    #storyModalNewsfeed .fs-story-footer { padding-inline: 16px; }
    #storyModalNewsfeed .fs-story-footer small { max-width: 128px; }
    #storyModalNewsfeed .fs-story-prompt strong { font-size: 17px; }
}
@media (max-width: 360px) {
    #storyModalNewsfeed .fs-story-source { padding: 8px 6px; gap: 4px; font-size: 14px; }
    #storyModalNewsfeed .fs-story-source svg { width: 18px; height: 18px; }
    #storyModalNewsfeed .fs-story-source span { white-space: nowrap; }
    #storyModalNewsfeed .mood-frame-btn i { display: none; }
}
