
[hidden]{display:none!important}.live-toast{position:fixed;z-index:10000;bottom:90px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#30283f;color:white;border-radius:18px;max-width:90vw;box-shadow:0 5px 20px #30283f30}.live-dialog{border:0;border-radius:24px;background:white;color:#292332;width:min(92vw,480px);padding:20px;max-height:85dvh;overflow:auto}.live-dialog::backdrop{background:#33254465}.live-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.live-dialog h2{font-size:20px;margin:0 0 16px}.live-dialog-body{display:grid;gap:12px}.live-close{border:0;background:transparent;font-size:26px;cursor:pointer}.live-button{border:0;border-radius:16px;padding:12px 16px;background:#e9e1f7;color:#70569d;font:inherit;cursor:pointer}.live-button:disabled{opacity:.5;cursor:wait}.live-menu-row{display:block;width:100%;border:0;background:#f5f1fa;color:#40354d;padding:14px;text-align:left;border-radius:12px;font:inherit}.live-form{display:grid;gap:16px}.live-form label{display:grid;gap:8px;font-size:14px}.live-form input,.live-form textarea,.live-form select{width:100%;box-sizing:border-box;border:1px solid #e6dfef;border-radius:14px;padding:12px;background:#faf8fd;font:inherit;color:#292332}.live-form textarea{min-height:110px;resize:vertical}.live-error{color:#a72e52;font-size:13px;margin:0;white-space:pre-wrap}.live-form pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.live-empty{padding:28px 18px;text-align:center;color:#8d8498}.live-media{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;border-radius:18px;margin:8px 0}.live-full-photo{width:100%;height:auto;border-radius:18px}.live-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.live-tools .live-button{padding:7px 10px;font-size:12px}.live-avatar{width:44px;height:44px;object-fit:cover;border-radius:50%;flex-shrink:0}.live-user-row{display:flex;width:100%;gap:12px;align-items:center;text-decoration:none;color:inherit;padding:12px;border:0;background:white;border-radius:18px;text-align:left;font:inherit}.live-user-row>span{flex:1;min-width:0}.live-user-row small{display:block;color:#96909d;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-user-row strong{display:block}.live-badge{background:#ad95d4;color:#fff;border-radius:20px;padding:2px 7px;font-size:11px}.live-emojis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.live-post{background:#fff;border-radius:23px;overflow:hidden;margin-bottom:16px;padding:16px;overflow-wrap:anywhere}.live-post .post-copy{white-space:pre-wrap}.live-post-head{display:flex;gap:10px;align-items:center}.live-post-head a{color:inherit;text-decoration:none;flex:1}.live-post-head time{display:block;color:#9b92a5;font-size:11px}.live-attachment{background:#fff;border-radius:14px;padding:8px;margin:5px}.live-caption{white-space:pre-wrap;overflow-wrap:anywhere}.live-story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.live-story-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:18px}.live-story-grid button{padding:0;border:0;background:none}.live-chat-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.live-chat-toolbar .live-button{font-size:12px;padding:8px 10px}.live-conversation-tools{display:flex;gap:4px;padding:0 12px;flex-wrap:wrap}.live-conversation-tools button{font-size:11px;padding:6px 9px;background:#ffffffb0;border-radius:12px}.message .live-media{max-width:300px;max-height:350px}.live-quote{border-left:3px solid #a68fc8;padding:4px 8px;font-size:11px;color:#867395;max-height:50px;overflow:hidden;white-space:pre-wrap}.live-presence{color:#8c7fa0;font-size:11px}.live-story-hero{width:100%;max-height:65vh;object-fit:contain;border-radius:18px}.live-field{border:1px solid #e5deee;border-radius:12px;padding:12px;font:inherit;box-sizing:border-box;width:100%}.auth-card pre{font-size:11px;white-space:pre-wrap;word-break:break-all}.auth-card details{margin-top:16px}.live-row-link{display:block;color:#8063a6;text-decoration:none;padding:12px}.live-notice{background:white;border-radius:18px;padding:14px;margin-bottom:10px}.live-notice.unread{box-shadow:inset 3px 0 #ad92d3}.live-drawing{max-width:100%;width:100%;touch-action:none;border:1px solid #ddd;background:white}.live-check{display:flex;align-items:center;gap:8px}.live-check input{width:auto}.live-story-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover}.live-post-media{display:grid;gap:5px}.live-more{margin:12px auto;display:block}.live-tab-count{font-size:10px;color:#9377ba}.live-code-label{font-size:12px;color:#766588}.profile-info-row,.settings-row{cursor:pointer}.live-dialog .live-user-row{background:#f7f3fc}.live-toolbar{margin:12px 0;display:flex;gap:8px;flex-wrap:wrap}.live-toolbar button{font-size:12px}.cv-meta.read{color:#6f48a6!important}.live-pending{opacity:.5}.live-recording{color:#b73255}.live-hub-meta{padding:16px;text-align:center}.live-hub-meta>img{width:90px;height:90px;object-fit:cover;border-radius:50%;margin:auto}.live-hub-meta h2{font-size:22px}.live-hub-meta p{white-space:pre-wrap}.live-comment{padding:10px 0;border-bottom:1px solid #eee8f4}.live-comment.reply{margin-left:24px}.live-comment p{white-space:pre-wrap;margin:8px 0}.live-comment small{color:#9a8fa5}

.cv-wave i{height:12px}.cv-wave i:nth-child(3n){height:24px}.cv-wave i:nth-child(4n){height:17px}.cv-wave i:nth-child(5n){height:7px}.cv-voice audio{display:none}.header-action{position:relative}.header-action>.live-badge{position:absolute;top:-5px;right:-7px;font-size:9px;padding:1px 4px}.live-attachment:empty{display:none}

/* 029: same conversation, compact AI controls */
.cv-ai-tools{display:flex;align-items:center;gap:10px;padding:5px 6px 8px;font-size:11px;color:#756d86}
.cv-ai-tools[hidden]{display:none!important}.cv-ai-tools button{flex:none;border:0;border-radius:12px;padding:7px 10px;background:#f0eafa;color:#75609e;font:inherit;cursor:pointer}.cv-ai-tools button[aria-pressed="true"]{background:#ad91dc;color:#fff}.cv-ai-tools span{overflow-wrap:anywhere}.cv-ai-tools button:disabled{opacity:.5}

/* Voice messages: soft bubble, round control and seekable waveform. */
#conversation .message.has-voice{width:320px;max-width:86%;padding:14px 14px 9px;border-radius:25px;background:#fff}
#conversation .message.has-voice.mine{background:#e3daf6;border-radius:25px}
#conversation .has-voice .cv-text:empty{display:none}
#conversation .has-voice .cv-meta{margin-top:7px;font-size:11px;gap:5px}
#conversation .cv-voice{width:100%;min-width:0;gap:12px;align-items:center}
#conversation .cv-voice .cv-voice-play{display:grid;place-items:center;width:48px;height:48px;padding:0;background:#f3edff;color:#514061;border:0;border-radius:50%;cursor:pointer}
#conversation .mine .cv-voice .cv-voice-play{background:#ffffff85}
#conversation .cv-voice-glyph{display:block;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:13px solid currentColor;margin-left:3px}
#conversation .is-playing .cv-voice-glyph{width:12px;height:17px;border:0;border-left:4px solid currentColor;border-right:4px solid currentColor;margin-left:0;box-sizing:border-box}
#conversation .cv-wave{height:40px;position:relative;display:block;overflow:visible}
#conversation .cv-voice-bars{height:100%;display:flex;gap:3px;align-items:center;overflow:hidden}
#conversation .cv-wave i{flex:1;min-width:2px;width:auto;border-radius:4px;background:#b7a0ce;transition:background .15s}
#conversation .cv-wave i.heard{background:#8060ab}
#conversation .cv-voice-seek{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;touch-action:pan-y}
#conversation .cv-wave:focus-within{outline:2px solid #8060ab;outline-offset:3px;border-radius:6px}
#conversation .cv-voice-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px;min-height:24px}
#conversation .cv-voice small{font-size:11px;line-height:18px;color:#8d74a7;font-variant-numeric:tabular-nums;white-space:nowrap}
#conversation .cv-voice .cv-voice-speed{width:36px;height:24px;padding:0;border-radius:9px;background:#b29acb20;color:#80659e;font:600 11px system-ui;cursor:pointer}
#conversation .cv-voice button:focus-visible{outline:2px solid #8060ab;outline-offset:3px}
@media(max-width:350px){#conversation .message.has-voice{padding:11px 11px 8px}#conversation .cv-voice{gap:9px}#conversation .cv-voice .cv-voice-play{width:42px;height:42px}#conversation .cv-voice-bars{gap:2px}}
@media(prefers-reduced-motion:reduce){#conversation .cv-wave i{transition:none}}

/* AI reply reveal: only newly received text, no additional provider calls. */
#conversation .cv-ai-thinking{display:flex;align-items:center;gap:10px;align-self:flex-start;padding:13px 16px;margin:4px 0;color:#9380a8;font:13px/20px system-ui}
#conversation .cv-ai-dots{display:flex;gap:4px;align-items:center;height:18px}
#conversation .cv-ai-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#a78ac9;animation:cv-ai-pulse 1.2s ease-in-out infinite}
#conversation .cv-ai-dots i:nth-child(2){animation-delay:.15s}
#conversation .cv-ai-dots i:nth-child(3){animation-delay:.3s}
#conversation .cv-ai-revealing .cv-text::after{content:'';display:inline-block;width:5px;height:14px;margin-left:4px;border-radius:3px;vertical-align:-2px;background:#a287c0;animation:cv-ai-pulse 1s ease-in-out infinite}
#conversation .cv-ai-revealing .cv-meta{visibility:hidden}
@keyframes cv-ai-pulse{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){#conversation .cv-ai-dots i,#conversation .cv-ai-revealing .cv-text::after{animation:none}}

/* Keep presence on a separate line beneath the conversation title. */
#conversation .cv-identity{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:3px;padding-top:8px;padding-bottom:8px}
#conversation .cv-identity #conversation-name{max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#conversation #conversation-status{display:block;min-height:16px;max-width:100%;font-size:12px;line-height:16px;font-weight:400;color:#9b93a5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#conversation #conversation-status.is-online{color:#8870b7}

/* Compact voice bubble and a high-contrast playback position. */
#conversation .message.has-voice{width:245px;max-width:82%;padding:10px 11px 7px;border-radius:21px}
#conversation .message.has-voice.mine{border-radius:21px}
#conversation .cv-voice{gap:9px}
#conversation .cv-voice .cv-voice-play{width:38px;height:38px}
#conversation .cv-voice-glyph{border-top-width:7px;border-bottom-width:7px;border-left-width:11px}
#conversation .is-playing .cv-voice-glyph{height:14px}
#conversation .cv-wave{height:29px;--voice-progress:0%}
#conversation .cv-voice-bars{gap:2px}
#conversation .cv-wave i{background:#b9a5d2;transition:none}
#conversation .cv-wave i.heard{background:#624280}
#conversation .cv-wave.has-progress::after{content:'';position:absolute;left:clamp(1px,var(--voice-progress),calc(100% - 1px));top:1px;bottom:1px;width:2px;border-radius:2px;background:#493158;pointer-events:none;transform:translateX(-1px)}
#conversation .cv-voice-seek{z-index:1}
#conversation .cv-voice-foot{min-height:18px;margin-top:1px}
#conversation .cv-voice small{font-size:10px;line-height:16px}
#conversation .cv-voice .cv-voice-speed{height:20px;width:31px;font-size:10px;border-radius:7px}
#conversation .has-voice .cv-meta{margin-top:3px;font-size:10px;line-height:13px}
@media(max-width:350px){#conversation .message.has-voice{width:225px;padding:9px 10px 6px}#conversation .cv-voice .cv-voice-play{width:36px;height:36px}}

/* Wall: compact author line and calm publication surfaces. */
body.wall-page #wall-posts .feed-post{background:#fff;border:1px solid #eeeaf3;border-radius:22px;margin:0 0 16px;overflow:hidden;box-shadow:0 3px 14px #34244d04}
body.wall-page #wall-posts .feed-author{display:flex;align-items:center;justify-content:flex-start;padding:16px 18px;margin:0;text-align:left}
body.wall-page #wall-posts .feed-hub-link{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:11px;min-width:0;text-decoration:none;color:#302938}
body.wall-page #wall-posts .feed-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;object-fit:cover;margin:0}
body.wall-page #wall-posts .feed-author-info{display:flex;flex-direction:column;gap:3px;min-width:0;align-items:flex-start}
body.wall-page #wall-posts .feed-author-info>span{font:600 15px/20px system-ui;max-width:100%;overflow:hidden;text-overflow:ellipsis}
body.wall-page #wall-posts .feed-author-info>small{font:400 12px/16px system-ui;color:#9a91a3}
body.wall-page #wall-posts .feed-post-content{padding:0 18px 16px}
body.wall-page #wall-posts .feed-copy{font-size:15px;line-height:1.6;color:#352e3e;margin:12px 0 16px;text-align:left}
body.wall-page #wall-posts .feed-media{margin:0 12px;border-radius:16px;overflow:hidden}
body.wall-page #wall-posts .feed-media .live-media{margin:0;border-radius:16px}
body.wall-page #wall-posts .post-actions{border-top:1px solid #f2eef6;padding-top:12px;margin-top:12px}
body.wall-page .wall-shell{background:#faf9fc;padding:14px}
body.wall-page #wall-write{background:#eee8f8;color:#6d548c;border:1px solid #e7dff0;border-radius:17px;font:600 14px/20px system-ui;text-align:center;padding:13px 16px}
/* Shared post editor: the writing surface gets the emphasis. */
dialog.post-composer{position:fixed;inset:0;margin:auto;width:min(560px,calc(100% - 32px));max-width:560px;max-height:calc(var(--app-height,100dvh) - 32px);box-sizing:border-box;border:1px solid #eee8f3;border-radius:26px;padding:22px;background:#fff;color:#332a3f;box-shadow:0 24px 90px #24133330;overflow:auto}
dialog.post-composer::backdrop{background:#21162e66;backdrop-filter:blur(5px)}
dialog.post-composer>header,dialog.post-composer .wall-sheet-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:12px}
dialog.post-composer h2{font:650 19px/25px system-ui;margin:0;letter-spacing:-.3px}
dialog.post-composer .live-close,dialog.post-composer .wall-sheet-head button{width:32px;height:32px;border:0;border-radius:50%;padding:0;background:#f5f2f8;color:#8d809a;font:24px/32px system-ui}
.post-composer-identity{display:flex;align-items:center;gap:10px;margin-bottom:14px;text-align:left}
.post-composer-identity>img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.post-composer-identity>div{display:grid;gap:3px;min-width:0}
.post-composer-identity strong{font:600 14px/18px system-ui;overflow-wrap:anywhere}
.post-composer-identity small{font:400 11px/16px system-ui;color:#9b91a5}
dialog.post-composer .live-form{gap:10px}
dialog.post-composer .live-form>label{font-size:0;gap:0}
dialog.post-composer textarea,dialog.post-composer #wall-text{box-sizing:border-box;width:100%;min-height:170px;max-height:40dvh;resize:vertical;border:0;border-radius:0;padding:8px 0 16px;background:#fff;font:16px/1.6 system-ui;color:#352b42;outline:none}
dialog.post-composer textarea::placeholder{color:#aea3b9}
dialog.post-composer textarea:focus-visible{outline:0;box-shadow:0 2px 0 #b5a1d1}
dialog.post-composer .live-tools,dialog.post-composer .wall-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding-top:12px;border-top:1px solid #f0ebf5}
dialog.post-composer .live-tools button,dialog.post-composer .wall-tools button{border:0;border-radius:12px;padding:10px 12px;background:#f5f1fa;color:#806b97;font:500 12px/18px system-ui}
dialog.post-composer .wall-tools img{width:20px;height:20px}
dialog.post-composer button[type=submit],dialog.post-composer .wall-tools .wall-primary{background:#796099;color:white;border:0;border-radius:14px;padding:12px 18px;font:600 14px/20px system-ui;min-height:44px}
dialog.post-composer button:disabled{opacity:.5}
dialog.post-composer .live-error:empty,dialog.post-composer #wall-error:empty{display:none}
dialog.post-composer #wall-preview,dialog.post-composer .post-composer-preview{position:relative;margin:0 0 12px;border-radius:16px;overflow:hidden;background:#f8f5fb}
dialog.post-composer .post-composer-preview:empty{display:none}
dialog.post-composer #wall-preview .live-media,dialog.post-composer .post-composer-preview .live-media{max-height:220px;margin:0;object-fit:contain}
@media(max-width:599px){dialog.post-composer{inset:auto 0 0;width:100%;max-width:none;max-height:calc(var(--app-height,100dvh) - 12px);border-radius:25px 25px 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom))}dialog.post-composer textarea,dialog.post-composer #wall-text{min-height:145px}}

.has-official-badge{display:inline-flex!important;align-items:center;gap:5px;min-width:0;max-width:100%;vertical-align:middle}
.has-official-badge .official-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-official-badge img.official-badge{display:inline-block!important;width:16px!important;height:16px!important;min-width:16px;max-width:none;flex:0 0 16px;object-fit:contain;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#conversation-name.has-official-badge,#profile-name.has-official-badge{justify-content:center}
#profile-name.has-official-badge .official-badge{width:19px!important;height:19px!important;flex-basis:19px}
