/* Page introductions, profile identity and calmer message hierarchy */
.nexus-page-heading{align-items:flex-start;margin:0 0 18px;padding:clamp(16px,2.3vw,24px);border:1px solid #e6dcc4;border-radius:18px;background:radial-gradient(ellipse at 100% 0,#e7d39d66,transparent 45%),linear-gradient(125deg,#fffefa,#f4f0e6);box-shadow:0 8px 25px #281d0e0a}
.nexus-page-heading h1{margin:0;font:800 clamp(23px,3vw,32px)/1.15 Manrope,Arial,sans-serif;letter-spacing:-.025em;color:#28251f}
.nexus-page-description{max-width:760px;margin:9px 0 0;color:#686252;font-size:14px;line-height:1.65}
.theme-dark .nexus-page-heading{border-color:#3a485d;background:radial-gradient(ellipse at 100% 0,#80662d33,transparent 45%),linear-gradient(125deg,#1a2638,#1d2b3e)}
.theme-dark .nexus-page-heading h1{color:#f5eedf}.theme-dark .nexus-page-description{color:#c3c8d1}
.member-profile-card{box-shadow:0 14px 42px #1b170d12}.profile-cover{height:210px;background:radial-gradient(ellipse at 50% 110%,#d5b55b44,transparent 55%),linear-gradient(130deg,#101a20,#26352f 55%,#6b5428)}
.profile-cover-image{object-position:center 38%}.profile-identity{gap:16px;min-height:104px}.profile-name-block h2{font-size:clamp(18px,2vw,24px);letter-spacing:-.02em}.profile-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.profile-badge{padding:5px 9px;border:1px solid #e5d8b6;border-radius:999px;background:#fff9e8;color:#71551f}.profile-bio{padding:20px 22px}.profile-bio h3{font-size:14px}.profile-bio p{max-width:72ch;font-size:14px;line-height:1.8;color:#45443e}.profile-identity>.secondary-button{min-height:42px}.theme-dark .profile-badge{background:#332d20;color:#f0d98f;border-color:#68572d}.theme-dark .profile-bio p{color:#e1e5eb}
.messages-layout{gap:16px;align-items:stretch}.conversation-list,.chat-panel{border:1px solid #e7deca;border-radius:16px;box-shadow:0 10px 28px #1d170d0a}.conversation-list{padding:16px}.conversation-list .panel-title{align-items:center;margin-bottom:12px}.conversation-list .panel-title h2,.chat-heading h2{font:750 18px Manrope,Arial,sans-serif}.conversation-list .search-input{min-height:44px;border-radius:12px;background:#fbfaf6}.conversation-item{min-height:72px;margin:4px 0;padding:10px;border-radius:12px;transition:background .16s,transform .16s}.conversation-item:hover,.conversation-item:focus-visible,.conversation-item.selected{background:#f4efdf}.conversation-item:focus-visible{outline:3px solid #98762d;outline-offset:2px}.conversation-copy>small{gap:5px;color:#676357}.conversation-avatar-image,.conversation-avatar{width:46px;height:46px;border:2px solid #e2d0a0;box-shadow:0 3px 10px #1a160c12}.chat-panel{min-height:540px;padding:0;overflow:hidden;background:linear-gradient(180deg,#fffefa,#f8f6f0)}.chat-heading{padding:16px 18px;border-bottom:1px solid #eee6d6;background:linear-gradient(120deg,#fffefa,#f5efdf)}.chat-heading-main{gap:11px}.chat-peer-copy h2{margin:0 0 5px}.chat-retention-note{margin:10px 0 0;font-size:11px;color:#77715f}.chat-messages{gap:9px;padding:18px;background-image:radial-gradient(#bea96e13 1px,transparent 1px);background-size:18px 18px}.chat-bubble{max-width:min(78%,560px);padding:10px 14px;border:1px solid #ece6da;border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 3px 10px #1c180c09}.chat-bubble.mine{border-color:#d8c68f;border-radius:16px 16px 5px 16px;background:linear-gradient(140deg,#fff8e4,#f4e8c8)}.chat-bubble p{font-size:13px;line-height:1.65}.chat-bubble time{font-size:10px}.chat-panel #send-message-form{gap:9px;padding:12px 14px;border-top:1px solid #eee6d6;background:#fffefa}.chat-panel #send-message-form textarea{min-height:48px;max-height:150px;padding:12px 14px;border:1px solid #ddd5c3;border-radius:14px;background:#fff;font:14px/1.55 'DM Sans',sans-serif;resize:vertical}.chat-panel #send-message-form button{min-height:44px;border-radius:12px}.chat-panel #send-message-form [role=status]{grid-column:1/-1;margin:0;font-size:11px}.chat-empty{min-height:420px;align-content:center;justify-items:center;padding:28px;text-align:center}.chat-empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#f1e8d2;color:#8a6927;font-size:28px}.chat-empty p{max-width:36ch;line-height:1.6;color:#6d685c}
.theme-dark .conversation-list,.theme-dark .chat-panel{background:#19263a;border-color:#35455b}.theme-dark .conversation-list .search-input,.theme-dark .chat-heading,.theme-dark .chat-panel #send-message-form{background:#172337;color:#eef0f3;border-color:#35455b}.theme-dark .conversation-item:hover,.theme-dark .conversation-item.selected{background:#28374c}.theme-dark .chat-messages{background-image:radial-gradient(#d4ba6b12 1px,transparent 1px)}.theme-dark .chat-bubble{background:#223149;color:#edf0f5;border-color:#3c4b61}.theme-dark .chat-bubble.mine{background:linear-gradient(140deg,#453b27,#39311f);border-color:#756137}.theme-dark .chat-panel #send-message-form textarea{background:#111c2d;color:#f1f2f4;border-color:#46536a}.theme-dark .chat-retention-note,.theme-dark .conversation-copy>small{color:#c2c5cb}
.home-ambassador-banner{min-height:106px;padding:12px 18px;border:1px solid #d3bd7e;border-radius:18px;background:radial-gradient(ellipse at 0 50%,#b9994b22,transparent 55%),linear-gradient(120deg,#11191d,#1e2928 55%,#302719);box-shadow:0 10px 30px #17120d16}.home-ambassador-banner img{width:76px;height:82px;object-fit:cover;object-position:center 24%;border:1px solid #d1b35d;border-radius:14px;background:#1a2324;box-shadow:0 5px 18px #05060666}.home-ambassador-banner>div{display:grid;gap:5px}.home-ambassador-banner .eyebrow{margin:0;color:#d7bd71;font-size:9px;letter-spacing:.13em}.home-ambassador-banner strong{color:#fff0c8;font:750 15px Manrope,Arial,sans-serif}.home-ambassador-banner span:last-child{max-width:70ch;color:#ded8c8;font-size:12px;line-height:1.55}.feed-title-row>div>p{margin:5px 0 0;color:var(--muted);font-size:12px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #a47d25;outline-offset:3px}
@media(max-width:700px){.nexus-page-heading{margin:0 0 13px;padding:16px;border-radius:14px}.nexus-page-description{font-size:13px}.profile-cover{height:156px}.profile-identity{gap:10px;min-height:0}.profile-bio{padding:15px}.chat-panel{min-height:calc(100dvh - 220px)}.chat-messages{min-height:260px}.chat-bubble{max-width:90%}.home-ambassador-banner{align-items:center;padding:10px 12px;gap:11px}.home-ambassador-banner img{width:62px;height:68px}.home-ambassador-banner strong{font-size:13px}.home-ambassador-banner span:last-child{font-size:11px}.conversation-list{padding:12px}}
@media(prefers-reduced-motion:reduce){.conversation-item{transition:none!important}.conversation-item:hover{transform:none!important}}

/* Keep pages visually still; media moves only when the reader operates it. */
html{scroll-behavior:auto!important}
.login-about-link{max-width:680px;margin:0 auto 12px;padding:0 18px;color:#78705f;font-size:12px;text-align:center}.login-about-link .text-button{font-weight:700;color:#795d20;text-decoration:underline;text-underline-offset:3px}
.home-ambassador-banner span:last-child{display:block;max-width:70ch;color:#ded8c8;font-size:12px;line-height:1.55}
.story-media-modal{width:min(1080px,calc(100vw - 20px));max-width:none;max-height:calc(100dvh - 20px);overflow:auto;margin:auto;padding:18px;border:1px solid #413f39;border-radius:18px;background:#090b0e;color:#f7f5ef;box-shadow:0 28px 100px #000b}
.story-media-modal::backdrop{background:#06080be8;backdrop-filter:blur(5px)}.story-media-modal h2{margin:0 42px 12px 0;color:#f7f3e8}.story-media-modal .modal-close{position:sticky;z-index:5;top:0;float:right;width:42px;height:42px;margin:0 0 -42px;border:1px solid #ffffff45;border-radius:50%;background:#25272bdd;color:#fff;font-size:28px}.story-media-modal .modal-body{clear:both}.story-media-stage{position:relative;display:grid;place-items:center;min-height:min(68vh,700px);max-height:calc(100dvh - 190px);overflow:auto;border-radius:14px;background:#050607}.story-media-stage img,.story-media-stage video{display:block;max-width:100%;max-height:calc(100dvh - 205px);object-fit:contain;border-radius:10px}.story-media-stage video{width:min(100%,1000px);min-height:220px;background:#000}.story-viewer-caption{min-height:0;color:#ebe5d6!important;text-align:center}.story-viewer-actions{justify-content:center}.story-media-modal .story-viewer-actions .secondary-button,.story-media-modal .story-zoom-toggle{min-height:42px;border:1px solid #ba9c53;border-radius:10px;background:#171817;color:#f3d98e;padding:9px 14px}.story-zoom-toggle{position:absolute;right:12px;bottom:12px;z-index:2}.story-photo-viewer.is-zoomed{max-width:none;max-height:none;width:auto;height:auto;cursor:zoom-out}.story-photo-viewer:not(.is-zoomed){cursor:zoom-in}.story-media-status{position:absolute;left:12px;bottom:8px;max-width:calc(100% - 24px);padding:5px 9px;border-radius:8px;background:#0009;color:#fff;font-size:11px}.media-lightbox-image,.media-lightbox-video{cursor:default}.chat-panel #send-message-form textarea{scroll-behavior:auto!important}
@media(max-width:700px){.story-media-modal{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);padding:12px;border-radius:12px}.story-media-stage{min-height:55dvh;max-height:calc(100dvh - 150px)}.story-media-stage img,.story-media-stage video{max-height:calc(100dvh - 170px)}.story-viewer-actions{gap:6px}.story-media-modal .story-viewer-actions .secondary-button{padding:8px 10px;font-size:12px}.login-about-link{margin-bottom:8px}}
.friend-card{grid-template-columns:38px minmax(80px,1fr) auto auto}.friend-card-copy{display:grid;gap:4px;min-width:0}.friend-card-copy>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.friend-card .secondary-button,.friend-card .primary-button{min-height:38px;padding:7px 9px;font-size:10px;white-space:nowrap}.profile-presence{margin-top:7px}.profile-presence .presence-state{font-size:12px}
.story-add-link{min-height:76px;margin:2px 0 12px;border:1px solid #a98737;background:linear-gradient(115deg,#fff9e6,#f0dfac 60%,#fffdf6);box-shadow:0 8px 20px #49380e17;color:#473715}.story-add-link:hover,.story-add-link:focus-visible{border-color:#84631c;background:linear-gradient(115deg,#fff3c9,#e7cf83 60%,#fff9e6);outline:3px solid #bb9749;outline-offset:2px}.story-add-link .story-add-icon{width:46px;height:46px;background:linear-gradient(145deg,#b7943d,#765818);color:#fff8df;font-size:28px}.story-add-link b{font-size:14px}.story-add-link small{font-size:12px}.theme-dark .story-add-link{background:linear-gradient(115deg,#252b32,#43371e 60%,#1d2938);border-color:#9b7c35;color:#fff2c7}.theme-dark .story-add-link small{color:#d0c3a1}
@media(max-width:520px){.friend-card{grid-template-columns:34px minmax(60px,1fr) auto auto;gap:6px;min-width:300px;padding:8px}.friend-card>img,.friend-card>.member-avatar{width:32px;height:32px}.friend-card .secondary-button,.friend-card .primary-button{padding-inline:7px;font-size:9px}}

.voice-record-button[aria-pressed=true]{border-color:#c85d4a;color:#c85d4a}.chat-voice-message{display:block;max-width:min(320px,70vw);margin:.35rem 0}.voice-record-status{font-size:.82rem}.reservation-list{display:grid;gap:1rem}.reservation-card{padding:1rem;border:1px solid var(--line,#3c3524);border-radius:14px;background:var(--panel,#17140d)}.reservation-actions{display:flex;gap:.5rem;flex-wrap:wrap}.article-reader{max-width:72ch;line-height:1.75}.article-reader h3:empty,.article-reader-summary:empty{display:none}.article-reader-summary{font-weight:600}

.chat-image-message{display:block;max-width:min(320px,70vw);max-height:360px;object-fit:contain;border-radius:10px}.chat-image-link{display:block}
