:root{--blue:#0861fa;--blue-dark:#044ac4;--ink:#10172e;--muted:#778198;--line:#e8ecf5;--bg:#f4f6fb;--card:#fff;--green:#16bf75}*{box-sizing:border-box}body{margin:0;background:#edf1fa;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;border:none}input,textarea{outline:none;color:var(--ink)}button:disabled{opacity:.55;cursor:not-allowed}.loading{display:grid;place-items:center;height:100vh;font-size:27px;font-weight:850;color:var(--blue)}.layout{min-height:100dvh;display:flex;max-width:1140px;margin:auto;background:var(--card);box-shadow:0 0 50px #182f5910}.sidebar{display:none;width:284px;padding:30px 20px;background:#f8faff;border-right:1px solid var(--line)}.sidebar .brand{font-size:25px;margin-bottom:32px}.sidebar nav button{width:100%;text-align:left;padding:15px;border-radius:12px;background:transparent;font-weight:750;margin-bottom:6px;display:flex;align-items:center;gap:12px;color:#515c73}.sidebar nav button.active{color:var(--blue);background:#eaf1ff}.shell{width:100%;min-width:0;display:flex;flex-direction:column;height:100dvh}.top{min-height:66px;padding:13px 19px;display:flex;align-items:center;gap:12px;background:white;border-bottom:1px solid var(--line);z-index:3}.brand{font-weight:850;font-size:21px;letter-spacing:-.65px;color:var(--ink)}.brandmark{width:36px;height:36px;border-radius:11px;background:var(--blue);display:grid;place-items:center;color:white;font-size:21px}.top h1{font-size:19px;margin:0}.top p{margin:3px 0 0;color:var(--muted);font-size:12px}.top .grow{flex:1}.iconbutton{width:37px;height:37px;border-radius:11px;background:#f0f4fc;color:#273b6a;font-size:20px;display:grid;place-items:center}.content{flex:1;min-height:0;overflow:auto;padding:18px 18px 24px;background:linear-gradient(#f8faff,#fff 240px)}.bottom{display:grid;grid-template-columns:repeat(5,1fr);padding:9px 2px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}.bottom button{background:none;color:#8791a8;display:grid;justify-items:center;gap:4px;font-size:10px}.bottom button b{font-size:21px;font-weight:500}.bottom button.active{color:var(--blue);font-weight:800}.card,.rowcard,.tile,.panel{background:white;border:1px solid var(--line);box-shadow:0 4px 17px #1f448105;border-radius:16px}.card{padding:18px}.hero{padding:23px 20px;color:#fff;background:linear-gradient(115deg,#075bff,#3980ff);border-radius:19px;overflow:hidden}.hero h2{margin:3px 0 7px;font-size:24px}.hero p{font-size:13px;margin:0;opacity:.92}.section{display:flex;justify-content:space-between;align-items:center;margin:23px 1px 13px}.section h2{font-size:18px;margin:0}.section a{color:var(--blue);font-size:13px;font-weight:700;cursor:pointer}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{padding:17px 15px;text-align:left;color:var(--ink);display:flex;align-items:center;gap:12px;font-weight:750}.tile em{font-size:24px;font-style:normal}.tile small{color:var(--muted);display:block;font-weight:400;font-size:11px;margin-top:4px}.rowcard{display:flex;align-items:center;padding:14px 13px;gap:12px;width:100%;text-align:left;margin:8px 0;color:var(--ink)}.rowcard .copy{flex:1;min-width:0}.rowcard strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rowcard small{font-size:12px;color:var(--muted);display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rowcard .arrow{font-size:23px;color:#b3bfd8}.avatar{width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#dbeaff,#a7c6ff);color:#1a5aca;font-weight:800;font-size:16px;text-transform:uppercase}.avatar.green{background:#ddf7ea;color:#128859}.pict{font-size:23px;width:42px;height:42px;border-radius:12px;background:#eef3ff;display:grid;place-items:center}.online{display:inline-block;width:8px;height:8px;background:var(--green);border-radius:50%;margin-right:5px}.subdued{color:var(--muted);font-size:13px}.search{width:100%;padding:13px 15px;border:1px solid #e9eef6;background:#f0f3f9;border-radius:13px;margin:3px 0 12px}.primary{padding:13px 17px;color:white;background:var(--blue);border-radius:13px;font-weight:750}.primary:hover{background:var(--blue-dark)}.outline{padding:12px 15px;color:var(--blue);border:1px solid #a9c8ff;background:white;border-radius:13px;font-weight:700}.danger{color:#e33244!important}.wide{width:100%}.muted{color:var(--muted)}.small{font-size:12px}.empty{padding:44px 12px;text-align:center;color:var(--muted);font-size:13px}.empty .emoji{font-size:38px;display:block;margin-bottom:12px}.formgroup{margin:14px 0}.formgroup label{font-size:12px;font-weight:750;display:block;margin-bottom:7px;color:#4b5770}.formgroup input,.formgroup textarea{width:100%;border:1px solid #e6ebf5;border-radius:13px;padding:13px;background:#f7f9fc}.formgroup textarea{min-height:88px;resize:vertical}.authpage{min-height:100dvh;display:grid;place-items:center;padding:30px 18px;background:radial-gradient(circle at 20% 1%,#c3d8ff,transparent 60%),#f4f7fd}.authbox{width:100%;max-width:410px;padding:28px 22px;background:white;border-radius:25px;box-shadow:0 18px 70px #27488120}.authlogo{background:var(--blue);border-radius:13px;width:52px;height:52px;display:grid;place-items:center;color:white;font-size:28px;margin-bottom:15px}.authbox h1{font-size:27px;margin:0}.authbox p{color:var(--muted);font-size:13px;line-height:1.5}.authbox .outline{margin-top:10px}.back{background:transparent;font-size:25px;color:var(--blue);padding:3px 7px 3px 0}.chatbody{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:17px;background:linear-gradient(#f4f6fc,#fff)}.message{display:flex;align-items:flex-end;gap:7px;margin-bottom:13px;max-width:92%}.message.mine{align-self:flex-end;flex-direction:row-reverse}.message .avatar{width:30px;height:30px;font-size:12px}.bubble{max-width:100%;background:#fff;padding:10px 13px;border-radius:15px;border:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}.mine .bubble{background:#cae2ff;border:none}.bubble .who{color:var(--blue);font-size:11px;font-weight:850;margin-bottom:4px}.bubble .when{font-size:10px;color:#8290aa;text-align:right;margin-top:5px}.composer{display:flex;align-items:end;gap:8px;border-top:1px solid var(--line);padding:12px 12px max(12px,env(safe-area-inset-bottom));background:#fff}.composer textarea{border:1px solid #e8edf7;border-radius:24px;padding:11px 15px;background:#f4f6fa;flex:1;min-height:43px;max-height:120px;resize:none;font-size:13px}.composer .primary{border-radius:50%;height:44px;width:44px;padding:0;font-size:23px}.chatlayout{flex:1;min-height:0;display:flex;flex-direction:column}.tabs{display:flex;gap:6px;background:#edf2fb;border-radius:12px;padding:4px;margin-bottom:12px}.tabs button{flex:1;border-radius:9px;padding:9px 6px;background:transparent;font-size:12px;font-weight:700;color:#5b6880}.tabs button.active{background:var(--blue);color:white}.pill{background:#e7f0ff;color:#1761da;border-radius:10px;padding:5px 9px;font-size:11px;font-weight:800}.profiletop{height:105px;border-radius:18px;background:linear-gradient(100deg,#0959f9,#67abff);margin-bottom:-40px}.profilecard{padding:5px 15px 18px;text-align:center}.profilecard .avatar{width:94px;height:94px;font-size:32px;border:5px solid #fff;margin:0 auto 9px}.profilecard h2{font-size:22px;margin:4px 0}.profilecard p{margin:4px 0 9px}.notice{background:#eff5ff;color:#4f6390;border-radius:12px;padding:12px;font-size:12px;line-height:1.5;margin:12px 0}.modalshade{position:fixed;inset:0;background:#0a173b85;display:grid;place-items:end center;z-index:20}.modal{width:100%;max-width:430px;background:white;border-radius:23px 23px 0 0;padding:22px;max-height:86dvh;overflow:auto}.modal h2{font-size:20px;margin:3px 0 15px}.modal .rowcard{box-shadow:none}.settings-header{display:flex;justify-content:space-between;align-items:center}#toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:50;max-width:90vw;background:#152950;color:white;border-radius:12px;padding:12px 17px;font-size:13px;display:none;box-shadow:0 10px 35px #13295030}.inlineActions{display:flex;gap:6px}.inlineActions button{font-size:12px;border-radius:9px;padding:9px;background:#e9f0ff;color:#1353c1;font-weight:750}.hint{font-size:12px;color:#6b7894}.chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}@media(min-width:780px){.sidebar{display:block}.shell{height:100dvh}.bottom{display:none}.content{padding:28px 34px}.chatbody{padding:24px 40px}.top{padding:15px 30px}.modalshade{place-items:center}.modal{border-radius:22px;max-height:80dvh}.authbox{padding:34px 32px}}@media(max-width:390px){.brand{font-size:19px}.content{padding:16px 12px 22px}.top{padding:12px 13px}.tiles{gap:7px}.tile{padding:13px 9px;gap:8px}.tile em{font-size:20px}}

/* v0.1.2 — visible and accessible sign-out control */
.signout-top { border:1px solid #cfdaef; background:#f7faff; color:#075bff; font:inherit; font-weight:700; font-size:12px; border-radius:11px; padding:9px 11px; white-space:nowrap; cursor:pointer; margin-right:4px; }
.signout-top:hover, .signout-top:focus-visible { background:#dfebff; outline-offset:2px; }
.confirm-actions { display:flex; gap:12px; justify-content:flex-end; align-items:center; margin-top:18px; }
.confirm-actions button { padding:12px 17px; border-radius:12px; cursor:pointer; }
@media (max-width:380px){ .signout-top{font-size:11px; padding:8px 7px} .top h1{font-size:17px} }

/* v0.1.5: room member roster and accessible message controls */
.room-layout {flex-direction:row;min-width:0;}
.room-chat-column {display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;}
.room-toolbar {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;background:#f7faff;border-bottom:1px solid var(--line);}
.online-members-btn {display:inline-flex;align-items:center;gap:7px;background:#e8f1ff;color:#0754ca;border:1px solid #c7dcff;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:750;white-space:nowrap;}
.online-members-btn strong,.roster-heading strong{background:#d0e4ff;border-radius:16px;padding:3px 7px;font-size:12px;}
.online-members-btn:hover,.online-members-btn:focus-visible {background:#dceaff;}
.chat-shortcut {font-size:11px;color:#76839b;text-align:right;}
.room-roster {width:249px;min-width:249px;min-height:0;border-left:1px solid var(--line);background:#fafcff;display:flex;flex-direction:column;}
.roster-heading {padding:18px 14px 4px;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:800;}
.roster-subtitle {padding:2px 14px 12px;color:var(--muted);font-size:11px;}
.roster-list {overflow:auto;min-height:0;flex:1;padding:4px 8px 15px;}
.roster-entry {width:100%;display:block;border-radius:12px;padding:10px 7px;text-align:left;background:transparent;color:var(--ink);border:0;}
.roster-contact:hover,.roster-contact:focus-visible {background:#e8f1ff;}
.roster-person {display:flex;align-items:center;gap:9px;width:100%;}
.roster-person .avatar{width:34px;height:34px;font-size:12px;}
.roster-details{display:block;min-width:0;flex:1;}
.roster-details strong{font-size:13px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.roster-details small{font-size:11px;color:var(--muted);display:block;margin-top:2px;overflow-wrap:anywhere;}
.roster-person .online{flex:none;margin:0;}
.roster-you {color:#657b9c;font-weight:500;font-size:11px;}
.roster-empty {font-size:13px;color:var(--muted);padding:16px 10px;line-height:1.4;}
.roster-modal-note{font-size:13px;color:var(--muted);line-height:1.4;}
@media(max-width:779px){.room-roster{display:none}.chat-shortcut{font-size:10px}.room-toolbar{padding:7px 10px}.online-members-btn{padding:8px 9px;font-size:12px}}
@media(max-width:390px){.chat-shortcut{display:none}}

/* v0.1.6: compact header roster trigger; no chat-space-consuming toolbar */
.header-members-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;height:37px;min-width:49px;padding:0 9px;border-radius:11px;background:#edf4ff;color:#075bdb;border:1px solid #d8e6ff;font-size:13px;white-space:nowrap;}
.header-members-btn .member-icon{font-size:18px;line-height:1;transform:rotate(0deg)}
.header-members-btn strong{font-size:12px;line-height:1;font-weight:800;}
.header-members-btn:hover,.header-members-btn:focus-visible{background:#deebff;outline-offset:2px;}
@media(max-width:480px){.top{gap:7px;padding-left:12px;padding-right:12px}.top .grow{min-width:0}.top h1{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top p{font-size:11px;white-space:nowrap}.header-members-btn{padding:0 7px;min-width:45px;height:36px}.top .iconbutton{width:35px;height:36px;flex:none}.signout-top{padding:8px 9px;margin-right:0}}

/* v0.1.7 — unified Windows/mobile web composer, iOS Build 4 parity */
.composer{gap:7px;position:relative;align-items:center}
.composer textarea{min-width:0;max-width:100%;padding:11px 12px}
.composer .primary{flex:none}
.media-plus{border:0;background:var(--blue);color:white;border-radius:50%;height:40px;width:40px;flex:none;font-size:28px;font-weight:400;line-height:1}
.composer-tool{flex:none;width:31px;height:35px;padding:0;background:transparent;color:var(--blue);font-size:24px;display:grid;place-items:center;border-radius:9px}
.youtube-button{color:#f01932;font-size:18px}
.composer-tool:hover,.composer-tool:focus-visible{background:#eaf2ff}
.attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:10px 0}
.attachment-grid button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:95px;border-radius:17px;background:#eff5ff;color:#1258c6;font-size:26px}
.attachment-grid span{font-size:12px;font-weight:800}
.emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 0 8px}
.emoji-grid button{border-radius:9px;background:#f7f9ff;font-size:26px;min-width:0;aspect-ratio:1/1}
.emoji-grid button:hover,.emoji-grid button:focus-visible{background:#e4efff}
.tabs.mini{margin-top:14px}
.media-selection:empty{display:none}
.local-media-card{display:flex;align-items:center;gap:10px;padding:8px 13px;border-top:1px solid var(--line);background:#eef5ff;min-width:0}
.local-media-card span{min-width:0;flex:1}
.local-media-card strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.local-media-card small{font-size:10px;color:#a55212;display:block;margin-top:4px}
.local-media-thumb{width:42px;height:42px;flex:none;border-radius:8px;overflow:hidden;display:grid;place-items:center;background:#d8e8ff}
.local-media-thumb img,.local-media-thumb video{width:100%;height:100%;object-fit:cover}
.local-media-card button{width:26px;height:26px;border-radius:50%;background:#d5e2f9;color:#225ed0;font-size:19px}
.unread-badge{display:inline-grid;place-items:center;background:#ec263e;color:#fff;border-radius:100px;min-width:17px;height:17px;padding:0 4px;font-size:10px;line-height:1;font-weight:800;margin-left:5px;vertical-align:middle}
.unread-badge[hidden]{display:none!important}
.row-unread-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#ec263e}
.header-inbox-btn{position:relative;border:1px solid #d9e7ff;background:#f0f6ff;color:#075bdb;border-radius:11px;height:37px;min-width:34px;padding:0 6px;font-size:21px;display:grid;place-items:center;flex:none}
.header-inbox-btn .unread-badge{position:absolute;top:-6px;right:-6px;margin:0}
/* v0.1.9: compact 16:9 inline video playback, not a new-window link. */
.message.has-youtube{width:auto}
.message.has-youtube .bubble{min-width:0}
.youtube-preview{display:block;width:100%;overflow:hidden;margin-top:8px;border-radius:12px;border:1px solid #e0e7f2;color:#10213a;background:#f9fbff}
.youtube-play{position:relative;display:block;width:100%;padding:0;background:#071629;color:white;text-align:center;overflow:hidden;border-radius:11px}
.youtube-play img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;opacity:.88}
.youtube-play-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:42px;border-radius:12px;background:#f11728;color:white;font-size:24px;padding-left:3px;box-shadow:0 4px 16px #0006}
.youtube-play-label{position:absolute;bottom:0;left:0;right:0;padding:8px 9px;font-weight:750;font-size:12px;background:#0b193fb0;color:white}
.youtube-play:focus-visible{outline:3px solid #2679ff;outline-offset:-3px}
.youtube-frame{position:relative;width:100%;aspect-ratio:16/9;height:auto;background:#0a0a0a}
.youtube-frame iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
.youtube-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;background:#f9fbff}
.youtube-controls button,.youtube-controls a{font:inherit;font-size:11px;color:#075bdb;background:none;text-decoration:none;font-weight:750;padding:4px;cursor:pointer}
.youtube-controls a{font-weight:600;color:#65728a}

.gif-preview{max-width:280px;max-height:260px;width:100%;object-fit:contain;display:block;border-radius:11px;margin-top:5px}
@media(max-width:480px){
 .composer{gap:5px;padding:9px 8px max(9px,env(safe-area-inset-bottom))}
 .composer textarea{font-size:12px;padding:10px;min-width:0}
 .media-plus{height:37px;width:37px;font-size:26px}
 .composer-tool{width:27px;height:31px;font-size:21px}
 .youtube-button{font-size:16px}
 .composer .primary{height:39px;width:39px;font-size:21px}
 .header-inbox-btn{width:31px;min-width:31px;height:35px;font-size:19px}
 .top{gap:5px}
 .top h1{font-size:15px}
 .signout-top{padding:7px 7px;font-size:10px}
 .header-members-btn{min-width:40px;padding:0 5px}
 .top .iconbutton{width:30px}
}
@media(max-width:360px){.top .grow{max-width:98px}.top p{font-size:9px}.signout-top{font-size:9px}.header-inbox-btn{width:29px;min-width:29px}.composer-tool{width:24px}}

/* v0.2.0 — authenticated media attachments */
.shared-attachment{margin-top:8px;max-width:300px;min-width:0;border:1px solid #d6e4f7;background:#f8fbff;border-radius:12px;padding:9px;color:#122340}
.shared-attachment-title{font-weight:700;font-size:12px;overflow-wrap:anywhere}
.shared-attachment-title small{display:block;font-weight:500;color:#697d9f;padding:4px 0 2px}
.attachment-content{margin-top:7px;font-size:12px;min-height:20px}
.shared-image,.shared-video{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:9px;background:#ecf2ff}
.media-download{display:inline-block;margin-top:6px;padding:6px 0;font-size:12px;color:#0860d9;font-weight:750;text-decoration:none}
.attachment-content .outline{font-size:12px;padding:8px 12px;border-radius:9px;background:#e3edfc;color:#075bdb}
@media(max-width:480px){.shared-attachment{max-width:100%}.shared-image,.shared-video{max-height:220px}}

/* v0.2.1 — compact chat attachments: open images to save them, no duplicated labels */
.message.media-only .bubble{border:none;background:transparent;padding:0;box-shadow:none}
.message.media-only .bubble .who{margin:0 0 3px 3px}
.message.media-only .bubble .when{margin:3px 4px 0}
.message .message-caption.has-attachment{margin-bottom:5px}
.shared-attachment{border:none;background:transparent;margin-top:4px;padding:0;min-width:0;max-width:210px}
.compact-image,.compact-video{width:min(210px,65vw)}
.compact-file{width:min(240px,75vw)}
.shared-attachment .attachment-content{margin:0;min-height:0}
.compact-photo-button{display:block;padding:0;border:0;background:transparent;cursor:pointer;line-height:0;border-radius:12px;overflow:hidden;max-width:210px}
.shared-image{width:auto;max-width:210px;width:100%;height:auto;max-height:190px;object-fit:cover;object-position:center;border-radius:12px;display:block;background:#e6efff}
.compact-photo-button:focus-visible,.compact-file-button:focus-visible{outline:3px solid #0860d9;outline-offset:3px}
.compact-file{max-width:260px}
.compact-file-button{background:#edf4ff;border:1px solid #cfdef6;border-radius:11px;display:flex;align-items:center;gap:8px;padding:10px;width:100%;text-align:left;font-size:12px;color:#0a366f;cursor:pointer}
.compact-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;font-weight:650}
.compact-media-button{font-size:12px;background:#e5efff;color:#155bc5;padding:9px 14px;border-radius:9px}
.compact-video .shared-video{width:100%;max-width:210px;max-height:190px;border-radius:11px}
.photo-lightbox img{max-width:100%;max-height:62dvh;object-fit:contain;display:block;margin:auto;border-radius:10px}
.photo-save-button{display:block;margin-top:16px;padding:12px 16px;text-align:center;border-radius:12px;background:#075bff;color:white;font-size:14px;font-weight:750;text-decoration:none}
@media(max-width:480px){.shared-attachment{max-width:210px}.shared-image{max-height:190px}}

.message-report{background:transparent!important;color:#7283a1!important;border:0!important;padding:0 3px!important;font-size:10px!important;opacity:.7!important;box-shadow:none!important}.message-report:hover,.message-report:focus-visible{opacity:1!important;text-decoration:underline}

/* v0.3.1: in-chat staff controls. Visible only for a server-confirmed staff role. */
.moderation-hint{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:5px 12px;background:#eef5ff;border-top:1px solid #d5e6ff;font-size:12px;color:#395b82}
.moderation-hint button{font:inherit;font-weight:700;color:#164ca3;border:1px solid #b8d4ff;border-radius:8px;padding:5px 9px;background:#fff;cursor:pointer}
.moderation-hint span{opacity:.82}
.staff-command-button,.moderate-user-button{border:1px solid #bfd7ff;background:#f2f7ff;color:#1351af;border-radius:9px;padding:7px;cursor:pointer;min-width:35px;min-height:36px}
.roster-moderation-row{display:flex;align-items:center;gap:4px;min-width:0}
.roster-moderation-row>.roster-entry{min-width:0;flex:1}
.roster-moderation-row>.moderate-user-button{margin-right:5px;flex-shrink:0}
.moderation-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.moderation-action-grid button{border:1px solid #cddff6;background:#f6f9ff;text-align:left;padding:12px;border-radius:10px;font:inherit;cursor:pointer}
.moderation-action-grid button:hover{background:#eaf3ff}
.mod-help-list p{font-size:13px;line-height:1.35;margin:5px 0;padding:8px 10px;background:#f4f8fe;border-radius:6px;overflow-wrap:anywhere}
@media (max-width:600px){.moderation-hint{gap:5px;padding:6px 8px}.moderation-hint span{display:none}.moderation-action-grid{grid-template-columns:1fr}}

/* v0.3.2 — public room activity notices (not member-authored messages) */
.room-system-notice{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;max-width:92%;margin:9px auto;padding:5px 11px;border-radius:999px;background:#edf3fc;color:#4d637c;font-size:11px;line-height:1.4;text-align:center;clear:both}
.room-system-notice strong{color:#234d83;font-weight:750}
.room-system-icon{font-size:12px;color:#6184b1}
.room-system-notice time{font-size:10px;color:#7a8da6}
@media(max-width:480px){.room-system-notice{font-size:10px;max-width:96%}}


/* FolShqipAI v1.1-beta mobile Safari layout hotfix.
   The page itself never scrolls while inside the app. The chat timeline is the
   sole scrollable region; the composer is anchored above the software keyboard.
   Do not set user-scalable=no: users must remain able to pinch zoom. */
@media (max-width:779px) {
  html,body {width:100%;max-width:100%;margin:0;overflow-x:hidden;}
  .layout {
    position:fixed;
    left:0;right:0;
    top:var(--fol-visual-top,0px);
    height:var(--fol-visual-height,100dvh);
    min-height:0;max-height:100dvh;
    width:100%;max-width:100%;
    margin:0;
    overflow:hidden;
    box-shadow:none;
  }
  .shell,.chatlayout,.room-layout,.room-chat-column {
    min-width:0;min-height:0;width:100%;max-width:100%;
  }
  .shell {height:100%;overflow:hidden;}
  .room-layout {overflow:hidden;}
  .top {flex-shrink:0;min-width:0;max-width:100%;overflow:hidden;}
  .chatbody {
    min-width:0;width:100%;overflow-x:hidden;overflow-y:auto;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  .message {min-width:0;max-width:92%;}
  .message .bubble {min-width:0;max-width:100%;}
  .composer,.moderation-hint,.media-selection {
    flex-shrink:0;min-width:0;max-width:100%;
  }
  .composer {width:100%;overflow:hidden;gap:5px;}
  .composer textarea {
    width:0;min-width:0;flex:1 1 0;
    /* Safari automatically magnifies focused inputs with fonts under 16px,
       creating the sideways crop seen in the screen recording. */
    font-size:16px;line-height:20px;
    max-height:120px;
  }
  .composer .primary,.composer .media-plus,.composer .composer-tool {flex:0 0 auto;}
  input,textarea,select {font-size:16px;}
  .modal {max-width:100%;}
  .room-system-notice {max-width:96%;overflow-wrap:anywhere;}
  .shared-attachment,.compact-photo-button,.youtube-frame,.youtube-preview {max-width:100%;}
  body.fol-keyboard-visible .composer {
    padding-bottom:9px;
  }
  body.fol-keyboard-visible .moderation-hint {padding-top:3px;padding-bottom:3px;}
}

/* Shpirti-Net 1.3: four-tab navigation, full-height trailing drawer and share sheet. */
.bottom {grid-template-columns:repeat(4,minmax(0,1fr))}
.members-shade {position:fixed;inset:0;z-index:110;background:rgba(15,23,42,.28);display:flex;justify-content:flex-end;align-items:stretch;}
.members-drawer {background:#fff;color:var(--ink);width:min(300px,84vw);height:100%;min-height:0;display:flex;flex-direction:column;box-shadow:-10px 0 40px #17254124;animation:members-enter .18s ease-out;}
.members-drawer header {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 16px 12px;padding-top:max(20px,env(safe-area-inset-top));flex:none;}
.members-drawer h2 {margin:0;font-size:23px}.members-drawer header p {font-size:12px;color:var(--muted);margin:5px 0 0;}
.roster-search-wrap {padding:0 14px 10px}.roster-search-wrap input {width:100%;font-size:16px;padding:11px;border:1px solid var(--line);border-radius:12px;}
.members-drawer .roster-list {flex:1;min-height:0;overflow-y:auto;padding:0 10px 16px;overscroll-behavior:contain;}
.members-drawer footer {font-size:11px;line-height:1.6;color:var(--muted);padding:12px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;}
.roster-section {font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin:15px 8px 6px;font-weight:650;}
.roster-avatar {position:relative;flex:none}.presence-dot {position:absolute;right:0;bottom:0;width:12px;height:12px;border-radius:50%;border:2px solid white;}
.presence-here{background:#16a368}.presence-elsewhere{background:#1769ef}.presence-away{background:#d48a00}.presence-offline{background:#929baa}
.roster-details {min-width:0}.roster-details strong,.roster-details small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.roster-details .presence-label{font-size:11px;margin-top:3px;}
@keyframes members-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.members-drawer{animation:none}}
.youtube-share-shade {align-items:center;padding:16px;}
.youtube-share-shade .modal {display:flex;flex-direction:column;max-height:min(720px,calc(100dvh - 32px));width:min(480px,100%);background:#fff;opacity:1;overflow-y:auto;border-radius:20px;box-shadow:0 16px 60px #17254138;}
.youtube-input-row {display:flex;align-items:center;gap:6px;flex:none}.youtube-input-row input {min-width:0;flex:1;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:12px}.youtube-input-row .outline{margin:0;padding:10px;min-height:44px;}
.youtube-share-preview {padding:18px 0 0;min-height:90px;text-align:center}.youtube-share-preview img{width:min(220px,100%);aspect-ratio:16/9;object-fit:cover;border-radius:12px;}.youtube-share-preview p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.youtube-share-submit{position:sticky;bottom:0;flex:none;min-height:48px;margin-top:12px;}
@media(max-width:779px){.members-shade,.youtube-share-shade{top:var(--fol-visual-top,0px);bottom:auto;height:var(--fol-visual-height,100dvh)}.youtube-share-shade .modal{max-height:100%;padding:18px}.members-drawer{height:100%}.top h1{min-width:0}}

/* Shpirti-Net 1.3.1: compact UI; no message/storage/permission changes. */
.chatbody{padding:10px 12px;gap:0}
.message{gap:5px;margin-bottom:6px;max-width:96%;align-items:flex-start;flex-shrink:0}
.message .avatar{width:24px;height:24px;font-size:11px;margin-top:4px}
.bubble{padding:6px 9px;border-radius:12px;line-height:1.4;min-width:0;font-size:15px}
.bubble .who{font-size:inherit;font-weight:700;color:var(--blue)}
.bubble .inline-who{display:inline;margin:0}.bubble .media-who{display:block;font-size:12px;margin:0 0 3px}
.bubble .when{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:1px;font-size:10px;min-height:20px}
.message-options{background:transparent;color:#61718b;width:28px;height:22px;padding:0;font-size:17px;border-radius:6px;line-height:1}
.message-options:hover,.message-options:focus-visible{background:#e5edfa;outline:2px solid #99baff}
.room-system-notice{margin:3px auto;padding:1px 7px;background:transparent;border-radius:0;gap:5px;line-height:1.35;font-size:11px;flex-shrink:0}
.room-system-notice time{font-size:10px}
.room-card{min-height:58px;padding:10px 12px;margin:6px 0;gap:10px}
.room-card .pict{width:30px;height:30px;font-size:19px}.room-card small{margin-top:2px}.room-card .subdued{font-size:12px;white-space:nowrap}
.youtube-preview{width:176px;max-width:100%;border:0;background:transparent;overflow:visible;margin-top:4px;border-radius:10px}
.youtube-poster{position:relative}.youtube-play{border-radius:9px;min-height:0}.youtube-play img{aspect-ratio:16/9}
.youtube-play-icon{width:38px;height:30px;font-size:18px;border-radius:9px}
.youtube-menu{position:relative;color:#254873;font-size:12px}
.youtube-poster>.youtube-menu{position:absolute;top:3px;right:3px}
.youtube-menu summary{display:grid;place-items:center;list-style:none;width:32px;height:32px;border-radius:50%;background:#fffffff0;cursor:pointer;font-weight:800;font-size:20px;box-shadow:0 1px 4px #0002}
.youtube-menu summary::-webkit-details-marker{display:none}.youtube-menu summary:focus-visible{outline:2px solid var(--blue)}
.youtube-menu-items{position:absolute;right:0;top:100%;z-index:6;min-width:160px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 20px #13295025}
.youtube-menu-items a{display:block;min-height:36px;padding:9px;color:var(--blue);text-decoration:none;white-space:nowrap}
.message.youtube-playing{width:min(354px,96%)}.message.youtube-playing .bubble{width:100%;min-width:0}
.youtube-preview.playing{width:100%;min-width:200px}
/* Keep the ACTUAL player >=200×200; compact only the idle poster. No overlays on the player. */
.youtube-frame{width:100%;height:auto;min-height:200px;aspect-ratio:16/9}
.youtube-controls{padding:3px 0;background:transparent;min-height:36px}.youtube-controls button{min-height:32px}
.members-drawer header{padding:10px 12px 5px;padding-top:max(10px,env(safe-area-inset-top));gap:6px}
.members-drawer h2{font-size:20px}.members-drawer header p{margin-top:3px;font-size:11px}
.roster-search-wrap{padding:4px 12px 6px}.roster-search-wrap input{min-height:44px;padding:8px 10px}
.members-drawer .roster-list{padding:0 8px 8px}.roster-section{margin:9px 6px 3px;font-size:11px}
.roster-entry{padding:5px 6px;min-height:48px;margin:0}.roster-person{gap:8px}.roster-person .avatar{width:30px;height:30px;font-size:12px}
.roster-details strong{font-size:14px}.roster-details .presence-label{font-size:12px;margin-top:2px;white-space:normal;line-height:1.3}
.roster-details .roster-you{display:inline;font-size:11px}.presence-dot{width:10px;height:10px}
.members-drawer footer{padding:8px 12px max(8px,env(safe-area-inset-bottom));font-size:10px;line-height:1.3}
.youtube-share-shade{padding:12px}.youtube-share-shade .modal{width:min(390px,100%);padding:14px;max-height:calc(100dvh - 24px);border-radius:18px}
.youtube-share-shade h2{font-size:18px;margin:0}.youtube-share-shade .settings-header{margin-bottom:10px}
.youtube-link-label{font-size:13px;font-weight:650;margin-bottom:6px}
.youtube-input-row input{padding:10px;min-height:44px}.youtube-input-row .outline{padding:8px;min-width:40px}
.youtube-share-preview{padding:10px 0 0;min-height:0}.youtube-share-preview:empty{display:none}.youtube-share-preview img{width:152px;max-width:100%;border-radius:9px}
.youtube-share-preview p{margin:3px 0}.youtube-share-submit{margin-top:10px;min-height:46px;white-space:normal;overflow-wrap:anywhere;background:var(--blue);box-shadow:0 -5px 0 5px white}
#youtube-share-error{margin:5px 0;color:#a72a2a}#youtube-share-error:empty{display:none}
@media(min-width:780px){.chatbody{padding:14px 24px}}
@media(max-width:779px){.youtube-share-shade .modal{padding:14px;max-height:100%}}
@media(pointer:coarse){.message-options{width:32px;height:28px}.youtube-menu summary{width:36px;height:36px}}
/* v1.4: narrow directory; compact social profile with private settings. */
.members-drawer{width:min(250px,60vw)!important;max-width:60vw!important;min-width:0!important}
.members-drawer header{gap:2px;padding:8px}.members-drawer header h2{font-size:18px}.members-drawer header p{font-size:11px}
.members-drawer .iconbutton{width:40px;min-width:40px;height:44px;padding:0}.members-drawer .roster-search-wrap[hidden]{display:none}
.members-drawer .roster-list{padding:8px}.members-drawer .roster-avatar .avatar{width:26px;height:26px;font-size:12px}
.members-drawer .roster-entry{padding:4px 0;min-height:44px}.members-drawer .roster-person{gap:7px}.members-drawer .roster-details strong{font-size:14px}
.members-drawer .presence-label{font-size:11px}.members-drawer .roster-details{min-width:0}.members-drawer .moderate-user-button{padding:4px}
.social-profile,.profile-edit{max-width:720px;margin:auto}.social-profile-header{--profile-accent:#075bff;background:white;border-radius:20px;overflow:hidden;border:1px solid #e3e9f5}
.theme-lilac{--profile-accent:#7953ca}.theme-mint{--profile-accent:#13816a}.theme-sunset{--profile-accent:#d76729}.theme-ink{--profile-accent:#27344a}
.profile-cover{height:104px;background:linear-gradient(115deg,var(--profile-accent),#bddeff);position:relative;overflow:hidden}
.profile-cover img{width:100%;height:100%;object-fit:cover}.profile-identity{display:flex;gap:12px;align-items:center;padding:0 16px;margin-top:-22px;position:relative}
.profile-avatar-large{width:76px;height:76px;flex:0 0 76px;border:4px solid white;border-radius:50%;overflow:hidden;background:#dfeaff;display:grid;place-items:center;font-size:30px;font-weight:700;color:var(--profile-accent)}
.profile-avatar-large img{width:100%;height:100%;object-fit:cover}.profile-names{padding-top:24px;min-width:0}.profile-names h2{margin:0;font-size:22px;overflow-wrap:anywhere}.profile-names p{margin:2px 0 5px;color:#6d7890;font-size:13px}
.profile-status{font-size:12px;text-transform:capitalize;display:inline-flex;align-items:center;gap:5px}.profile-status .presence-dot{position:static;width:8px;height:8px}
.profile-role{margin-left:8px;background:#e8efff;color:#1656c5;padding:3px 7px;border-radius:8px;font-size:11px;text-transform:capitalize}
.personal-status{margin:12px 16px 0;font-size:14px;overflow-wrap:anywhere}.profile-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:16px}.profile-actions button{min-height:44px}
.profile-tabs{display:flex;gap:8px;margin:14px 0 10px}.profile-tabs button{flex:1;padding:10px;border:0;background:white;border-radius:12px;min-height:44px}.profile-tabs button[aria-pressed=true]{background:#e3edff;color:#075bff;font-weight:700}
.profile-panel{background:white;border:1px solid #e4eaf5;border-radius:16px;padding:16px}.profile-panel h3{margin:0 0 10px}.profile-panel h4{margin:16px 0 8px}
.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.profile-tags{display:flex;flex-wrap:wrap;gap:6px}.profile-tags span{border-radius:20px;background:#edf3ff;padding:5px 10px;font-size:12px}
.profile-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.profile-gallery>div{position:relative;min-width:0}.profile-gallery button:not(.profile-remove){width:100%;aspect-ratio:1;padding:0;border:0;border-radius:10px;overflow:hidden;background:#edf2fa}.profile-gallery img{width:100%;height:100%;object-fit:cover}.profile-remove{position:absolute;right:0;top:0;min-width:32px;min-height:32px;border:0;border-radius:50%;background:white}
.profile-music-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f7}.profile-music-row>div{flex:1;min-width:0}.profile-music-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.profile-music-row small{display:block;color:#788399;font-size:12px}.music-icon{background:#edf3ff;width:36px;height:36px;display:grid;place-items:center;color:#075bff;border-radius:10px}
.profile-playing{margin-top:16px;padding:10px;background:#f3f6fd;border-radius:12px}.profile-playing iframe{display:block;width:100%;min-height:220px;aspect-ratio:16/9;border:0;margin-bottom:10px}.profile-playing audio{width:100%;margin:10px 0}.profile-playing a{margin-left:10px;font-size:12px}
.profile-edit label{display:block;margin:12px 0;font-weight:600;font-size:13px}.profile-edit input,.profile-edit textarea,.profile-edit select{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:16px;font-weight:400;margin-top:5px;padding:10px;border:1px solid #dce4f3;border-radius:10px;background:white;color:#111c32}
.profile-edit form{padding-bottom:24px}.profile-edit-images{display:flex;gap:8px;flex-wrap:wrap}.profile-edit-images>div{background:#f3f6fc;border-radius:10px;padding:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.profile-edit-images button{padding:8px;border:0;background:white;border-radius:8px;min-height:44px}
.profile-music-input{border:1px solid #dce4f3;border-radius:12px;padding:10px;margin:10px 0}.profile-photo-confirm{position:fixed;inset:8% 5%;background:white;z-index:350;padding:20px;box-shadow:0 20px 90px #101d4055;border-radius:20px;overflow:auto;display:flex;flex-direction:column;gap:12px;max-width:600px;margin:auto}.profile-photo-confirm img{object-fit:contain;min-height:0;max-height:65vh;max-width:100%;align-self:center}
.profile-modal{width:min(94vw,740px);max-height:90dvh;overflow:auto}.who[role=button]{cursor:pointer}.photo-unavailable{background:#f1f4fb}

/* v1.10: small, native chat actions; metadata updates keep media mounted. */
.message-quote-slot:empty,.message-reactions:empty{display:none}
.message-quote{display:flex;flex-direction:column;gap:3px;width:100%;max-width:360px;text-align:left;margin:0 0 6px;padding:8px 10px;border:0;border-left:3px solid #5689e5;border-radius:7px;background:#eaf1fc;color:#344a6c;line-height:1.35;overflow:hidden}
.message-quote strong{font-size:11px;font-weight:750;color:#245cb1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-quote span{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
button.message-quote:hover{background:#dce9fc}button.message-quote:focus-visible{outline:2px solid #245cb1;outline-offset:2px}
.message-quote.unavailable{border-left-color:#b4bfce;background:#edf0f5;color:#69758a;font-style:italic}
.mine .message-quote{background:#ffffff91}.mine button.message-quote:hover{background:#ffffffe0}
.message-reactions{display:flex;gap:4px;flex-wrap:wrap;align-items:center;margin-top:6px;max-width:360px}
.reaction-chip,.reaction-add{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #dce4f1;border-radius:14px;min-height:30px;padding:3px 8px;background:#fff;color:#52617a;font-size:15px;line-height:1}
.reaction-chip span{font-size:11px;font-weight:700}.reaction-chip.selected{border-color:#82aff6;background:#e3eeff;color:#145acb}.reaction-chip:hover,.reaction-add:hover{border-color:#82aff6;background:#eff5ff}
.reaction-add{font-size:13px;min-width:38px;color:#56739b;background:#ffffff85}.reaction-chip:focus-visible,.reaction-add:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.reply-composer{display:flex;align-items:center;gap:10px;flex:0 0 auto;padding:9px 13px 7px;background:#f7faff;border-top:1px solid #e1e9f7;border-left:3px solid #5689e5;min-width:0}
.reply-composer[hidden]{display:none}.reply-composer-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.reply-composer-copy strong{font-size:12px;color:#245cb1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-composer-copy span{font-size:12px;color:#63718b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.reply-composer>button{flex:none;width:36px;height:36px;border-radius:10px;background:#eaf1fc;color:#416493;font-size:23px}.reply-composer>button:focus-visible{outline:2px solid var(--blue)}
.message-action-shade .modal{width:min(430px,100%)}.message-reaction-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:15px 0}.message-reaction-picker button{min-width:0;min-height:48px;border-radius:12px;background:#f2f5fc;border:1px solid #e4eaf5;font-size:25px;padding:4px 0}.message-reaction-picker button[aria-pressed=true]{background:#e1edff;border-color:#7caafa}.message-reaction-picker button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.original-message-content{display:flex;flex-direction:column;gap:9px;font-size:14px;overflow-wrap:anywhere}.original-message-content>strong{color:#245cb1}.original-message-content>time{font-size:11px;color:#778198}.original-message-body{white-space:pre-wrap;line-height:1.5}
.message-highlight .bubble{outline:3px solid #7ea9ef;outline-offset:3px;box-shadow:0 0 0 6px #dceaff;transition:outline-color .2s,box-shadow .2s}
@media(pointer:coarse){.reaction-chip,.reaction-add{min-height:36px;padding:5px 9px}.reply-composer>button{width:42px;height:42px}}
@media(max-width:779px){.reply-composer{padding:7px 9px;max-width:100%;overflow:hidden}.message-quote{max-width:min(360px,78vw)}.message-reactions{max-width:78vw}}
@media(prefers-reduced-motion:reduce){.message-highlight .bubble{transition:none}}
@media(max-width:360px){.members-drawer{width:64vw!important;max-width:64vw!important}.members-drawer header h2{font-size:16px}.members-drawer .iconbutton{width:36px;min-width:36px}.profile-avatar-large{width:64px;height:64px;flex-basis:64px}.profile-names h2{font-size:20px}.profile-actions{padding:12px}.profile-music-row{gap:6px}}

.members-drawer{flex:0 0 auto;overflow:hidden}.members-drawer header>div{min-width:0;flex:1}.members-drawer .iconbutton{flex:none;width:44px;min-width:44px}.members-drawer header{gap:0}

/* Staff information is requested separately, never embedded in public profiles. */
.profile-staff-button{margin:10px 0;min-height:44px;width:100%;}
.staff-profile-panel{display:flex;flex-direction:column;gap:10px;min-width:0;}
.staff-profile-panel label{display:flex;flex-direction:column;gap:6px;}
.staff-profile-panel input,.staff-profile-panel select{width:100%;min-width:0;min-height:44px;font-size:16px;}
.staff-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.staff-action-grid button{min-height:44px;white-space:normal;}
.staff-network-record{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #dce5f6;border-radius:10px;margin:6px 0;overflow-wrap:anywhere;}
.staff-network-record small{color:#5e6e85;}

/* v1.4.2: compact room header; staff commands/help live in Room options menu. */
.top.room-header{min-height:52px;padding:6px 10px;gap:7px;}
.top.room-header .grow{min-width:0;flex:1;}
.top.room-header h1{font-size:16px;line-height:1.1;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
.top.room-header p{font-size:11px;margin-top:2px;}
.top.room-header .back{height:40px;min-width:33px;font-size:22px;padding:0 4px;}
.top.room-header .header-members-btn{height:40px;min-width:46px;padding:0 8px;}
.top.room-header .iconbutton{height:40px;width:40px;min-width:40px;}
@media(max-width:410px){.top.room-header{padding-inline:7px;gap:5px}.top.room-header h1{font-size:15px}.top.room-header .grow{max-width:none}}

/* Authenticated audio attachments share the existing media lifetime. */
.compact-audio{width:min(300px,70vw)}.shared-audio{display:block;width:100%;max-width:300px;height:44px}

/* Calling entry points and isolated foreground screen. */
.chat-call-button{display:inline-flex;align-items:center;gap:5px;background:#edf3ff;color:#2359bd;border:1px solid #d4e1fa;border-radius:11px;padding:8px 10px;min-height:36px;font-size:13px;white-space:nowrap}.room-live-button{background:#edf8f5;border-color:#c3e8de;color:#1c745e}.live-call-dialog{border:0;padding:0;background:#101a2b;color:#e7efff;width:min(1100px,96vw);height:min(850px,96dvh);max-width:100vw;max-height:100dvh;border-radius:18px;overflow:hidden;box-shadow:0 20px 100px #0008}.live-call-dialog::backdrop{background:#07111bcc;backdrop-filter:blur(5px)}.live-call-dialog>header{display:flex;justify-content:space-between;align-items:center;height:54px;padding:8px 18px;background:#17253a;font-size:13px}.live-call-dialog>header button{background:#253c5e;border:1px solid #415a7e;color:#fff;border-radius:9px;padding:8px 16px;cursor:pointer}.live-call-dialog iframe{display:block;width:100%;height:calc(100% - 54px);border:0;background:#101a2b}.incoming-call{position:fixed;z-index:250;bottom:max(85px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(600px,94vw);display:flex;align-items:center;gap:10px;background:#102b46;color:#fff;border:1px solid #5c83ad;border-radius:18px;padding:16px;box-shadow:0 14px 45px #07192b66}.incoming-call>div{flex:1;min-width:0}.incoming-call strong,.incoming-call small{display:block;overflow-wrap:anywhere}.incoming-call small{margin-top:5px;color:#bbd5ec}.incoming-call button{white-space:nowrap;border:1px solid #52789e;border-radius:10px;padding:10px;font-size:12px;cursor:pointer;background:#274a6d;color:#fff}.incoming-call button.primary{background:#487cfe;border-color:#487cfe}@media(max-width:620px){.chat-call-button{padding:7px 8px;font-size:14px}.chat-call-button:not(.room-live-button) span{display:none}.live-call-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.live-call-dialog>header{padding:7px 14px}.incoming-call{padding:12px;gap:7px}.incoming-call strong{font-size:13px}.incoming-call small{font-size:11px}.incoming-call button{padding:8px;font-size:11px}}

/* v1.13 room avatar patch */
.avatar.roster-photo{position:relative;overflow:hidden;display:grid;place-items:center}.avatar.roster-photo>[data-member-avatar-fallback],.avatar.roster-photo>img{grid-area:1/1}.avatar.roster-photo>img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.avatar.roster-photo>img[hidden],.avatar.roster-photo>[data-member-avatar-fallback][hidden]{display:none}

/* v1.14 People profile card */
.member-quick-card{padding:4px 0 2px}.member-card-loading{padding:24px 4px;color:var(--muted);text-align:center}.member-card-head{display:flex;align-items:center;gap:13px;padding:5px 2px 12px}.member-card-head>.avatar{width:64px;height:64px;font-size:24px}.member-card-head strong{display:block;font-size:18px}.member-card-head small{display:block;color:var(--muted);margin-top:3px}.member-card-meta{display:flex;align-items:center;gap:5px;margin-top:7px;color:#63708a;font-size:12px;text-transform:capitalize}.member-card-status{margin:2px 0 14px;padding:10px 12px;background:#f5f8fe;border-radius:12px;color:#43516b;font-size:13px}.member-card-actions{display:flex;gap:8px;flex-wrap:wrap}.member-card-actions button{flex:1;min-width:120px}.member-quick-card .roster-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}

/* v1.15 Rooms lobby: use the formerly empty space for live community context. */
.lobby-online{margin-top:22px;padding-top:6px;border-top:1px solid var(--line,#e6eaf2)}
.lobby-section-head{display:flex;align-items:end;justify-content:space-between;margin:10px 0 8px!important}
.lobby-friends{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.lobby-person{display:flex;align-items:center;gap:9px;border:1px solid #e4e9f3;background:#fff;border-radius:14px;padding:9px;text-align:left;color:inherit;min-width:0}
.lobby-person .avatar{width:38px;height:38px;flex:0 0 38px}
.lobby-person>span{display:flex;min-width:0;flex-direction:column}.lobby-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-person small{color:#68738a;margin-top:2px}
.lobby-live-rooms{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.lobby-live-rooms button{border:1px solid #dce5f7;background:#f7f9ff;border-radius:999px;padding:7px 10px;color:#17315f}.lobby-live-rooms button>span{color:#16b86b;margin-right:4px}.lobby-live-rooms small{color:#73809a;margin-left:4px}
.lobby-online-empty{padding:14px;border:1px dashed #d6deec;border-radius:14px;background:#fafbfe;display:flex;flex-direction:column;gap:3px}.lobby-online-empty span{color:#758098;font-size:13px}
/* v1.16 VIP display names + profile wall. Primary @username remains unstyled identity. */
.vip-badge{display:inline-flex;align-items:center;margin-left:5px;padding:1px 5px;border-radius:8px;font-size:9px;font-weight:900;vertical-align:middle;letter-spacing:.2px;border:1px solid #cfd9ed;background:#f3f6fc;color:#41516d}.vip-1{background:#eaf3ff;color:#1d5fb9;border-color:#bdd6ff}.vip-2{background:#f1eaff;color:#6840b9;border-color:#d7c5ff}.vip-3{background:#fff4d7;color:#8a5a00;border-color:#f0ce78}
.display-style-cobalt{color:#1260d8!important;font-weight:800}.display-style-emerald{color:#0d8b68!important;font-weight:800}.display-style-sunset{background:linear-gradient(90deg,#d84d6b,#d77819);-webkit-background-clip:text;background-clip:text;color:transparent!important;font-weight:850}.display-style-violet{color:#7146c8!important;font-weight:850;text-shadow:0 0 0 #7146c8,1px 0 #e7dcff}.display-style-gold{color:#9b6800!important;font-weight:900;text-shadow:0 0 6px #f5c95d99}.display-style-aurora{background:linear-gradient(90deg,#176edb,#0e9b74,#8c46c5);-webkit-background-clip:text;background-clip:text;color:transparent!important;font-weight:900}.display-style-midnight{color:#18213b!important;font-weight:900;text-shadow:0 1px 0 #a9b7d4}
.profile-wall-compose textarea{width:100%;min-height:105px;resize:vertical}.profile-wall-count{display:block;text-align:right;color:var(--muted);font-size:11px;margin-top:4px}.profile-wall-list{display:grid;gap:10px}.profile-wall-post{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.profile-wall-post header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.profile-wall-post time{font-size:11px;color:var(--muted)}.profile-wall-post p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.45}.profile-wall-post .wall-delete{background:transparent;color:#a54141;padding:4px 7px}.profile-clip{margin-top:12px}.profile-clip video{display:block;width:100%;max-height:360px;border-radius:14px;background:#0e1424}.vip-style-note{padding:10px 12px;border-radius:12px;background:#f5f7fc;color:#526079;font-size:12px}
/* v1.17 VIP billing, live Display Style preview and social Profile Wall */
.display-style-rose{background:linear-gradient(90deg,#b51d76,#f04d8b,#7f3bd1);-webkit-background-clip:text;background-clip:text;color:transparent!important;font-weight:900;text-shadow:0 0 8px #e74c9a55}.display-style-ice{color:#2d6a8a!important;font-weight:900;text-shadow:0 0 7px #8fd9ff88,1px 1px 0 #fff}
.display-style-editor{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f8faff}.display-style-preview{padding:14px;border-radius:12px;background:#fff;border:1px dashed #c9d2e5;font-size:24px;line-height:1.2;min-height:56px;display:flex;align-items:center}
.vip-billing-card{margin-top:16px;padding:14px;border:1px solid #e6cf8d;border-radius:16px;background:linear-gradient(135deg,#fffaf0,#fff);display:grid;gap:12px}.vip-billing-card h3{margin:0 0 5px}.vip-billing-card p{margin:0 0 5px}.vip-billing-card small{color:var(--muted)}
.profile-wall-compose-row{display:grid;grid-template-columns:minmax(145px,1fr) auto auto;align-items:end;gap:8px;margin-top:8px}.profile-wall-compose-row label{margin:0}.profile-wall-post header>div:last-child{display:flex;gap:5px}.profile-wall-post .wall-edit,.profile-wall-post .wall-delete{background:transparent;padding:4px 7px}.profile-wall-post .wall-edit{color:var(--brand)}.profile-wall-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.profile-wall-actions button{padding:6px 10px}.profile-wall-actions button.active{font-weight:800}.profile-wall-comments{display:grid;gap:7px;margin-top:10px}.profile-wall-comment{padding:8px 10px;border-radius:11px;background:#f6f8fc;border:1px solid #e7ebf3}.profile-wall-comment p{margin:0}.profile-wall-comment p:first-child{font-size:12px}.profile-wall-comment p:first-child span,.profile-wall-comment small{color:var(--muted);font-size:11px}.profile-wall-comment button{float:right;background:transparent;color:#a54141;padding:2px 4px;font-size:11px}.profile-wall-comment-form{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:9px}.profile-wall-comment-form input{min-width:0}.profile-wall-comment-form p{grid-column:1/-1;color:#a54141;font-size:12px}
@media(max-width:620px){.profile-wall-compose-row{grid-template-columns:1fr 1fr}.profile-wall-compose-row label{grid-column:1/-1}.profile-wall-comment-form{grid-template-columns:1fr}.vip-billing-card .button-row{display:grid}}

/* v1.18 Discover, Moments, voice notes, room experience, polls, pins and saved messages */
.social-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.social-section-head h2,.discover-block h3,.room-pins h3,.room-polls h3{margin:0}.social-section-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.social-add,.social-quiet-button{border:1px solid #d8e3fa;background:#f5f8ff;color:#1856bd;border-radius:999px;padding:7px 11px;font-weight:750}.social-quiet-button{width:36px;height:36px;padding:0}.moments-home,.discover-home{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.moment-rail{display:flex;gap:10px;overflow-x:auto;padding:3px 1px 8px;scrollbar-width:thin}.moment-card{display:grid;justify-items:center;gap:3px;min-width:78px;max-width:88px;border:0;background:transparent;color:inherit;padding:2px}.moment-card strong,.moment-card small{max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.moment-card strong{font-size:12px}.moment-card small{font-size:9px;color:var(--muted)}.moment-ring{position:relative;width:58px;height:58px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#246bff,#9b43f0,#ff5c76);display:grid;place-items:center}.moment-card.seen .moment-ring{background:#cfd6e4}.moment-ring>.avatar{width:52px;height:52px;border:3px solid #fff}.moment-ring>i{position:absolute;right:-1px;bottom:-1px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dce3ef;font-style:normal;font-size:11px}.moment-ring.own{background:#edf3ff;border:2px dashed #7fa7ef;color:#1e63d1;font-size:25px}.social-empty-inline,.social-loading,.social-empty{color:var(--muted);font-size:13px;padding:15px;border:1px dashed #d8deeb;border-radius:14px;background:#fafbfe}.discover-continue{width:100%;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:11px;text-align:left;border:1px solid #dce4f2;border-radius:17px;padding:13px;background:#fff;color:inherit}.discover-continue>span,.discover-room>span{display:grid;place-items:center;border-radius:13px;font-size:20px;font-weight:850;background:#edf3ff;color:#1e61c9}.discover-continue>span{width:46px;height:46px}.discover-continue small,.discover-continue strong,.discover-continue p{display:block}.discover-continue small{color:#48658e}.discover-continue strong{font-size:16px;margin:2px 0}.discover-continue p{margin:0;color:var(--muted);font-size:12px}.discover-continue>b{font-size:24px;color:#7d8ba4}.discover-block{margin-top:16px}.discover-block>h3{font-size:14px;margin-bottom:8px}.discover-people{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.discover-person{display:flex;align-items:center;gap:8px;min-width:155px;border:1px solid #e2e7f1;background:#fff;border-radius:14px;padding:9px;text-align:left;color:inherit}.discover-person .avatar{width:37px;height:37px}.discover-person>span{min-width:0}.discover-person strong,.discover-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.discover-person small{font-size:10px;color:var(--muted);margin-top:2px}.discover-person i.online{display:inline-block;width:7px;height:7px;border-radius:50%;background:#19b96d;margin-right:4px}.discover-room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.discover-room{display:grid;grid-template-columns:39px 1fr;align-items:center;gap:9px;border:1px solid #e1e7f2;background:#fff;border-radius:14px;padding:10px;text-align:left;color:inherit}.discover-room>span{width:39px;height:39px}.discover-room strong,.discover-room small{display:block}.discover-room small{font-size:10px;color:var(--muted);margin-top:3px}.discover-posts{display:grid;gap:7px}.discover-post{display:grid;grid-template-columns:34px 1fr;gap:8px;border:0;background:#f8faff;border-radius:13px;padding:9px;text-align:left;color:inherit}.discover-post .avatar{width:34px;height:34px}.discover-post span{display:grid;grid-template-columns:1fr auto;min-width:0}.discover-post strong{font-size:12px}.discover-post small{grid-column:1/-1;color:#4d5b73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.discover-post time{font-size:9px;color:var(--muted)}.discover-new-grid,.birthday-grid{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}.discover-new{min-width:105px;border:1px solid #e1e7f2;background:#fff;border-radius:14px;padding:10px;color:inherit}.discover-new .avatar{width:42px;height:42px;margin:auto}.discover-new strong,.discover-new small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.discover-new strong{margin-top:5px;font-size:12px}.discover-new small{font-size:10px;color:var(--muted)}.birthday-card{min-width:150px;display:flex;align-items:center;gap:8px;border:1px solid #f0ddc7;background:#fff9f1;border-radius:14px;padding:10px;text-align:left;color:inherit}.birthday-card strong,.birthday-card small{display:block}.birthday-card small{font-size:10px;color:#8b6d4d}
.room-social-panel{flex:0 0 auto;margin:7px 8px 4px;border:1px solid #dce4f2;border-radius:16px;overflow:auto;max-height:250px;background:#fff;box-shadow:0 4px 16px #243b6a0b}.room-banner{height:105px;background:#eef2fa;overflow:hidden}.room-banner img{width:100%;height:100%;object-fit:cover;display:block}.room-banner span{display:grid;place-items:center;height:100%;color:var(--muted);font-size:12px}.room-social-main{padding:10px}.room-social-title{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center}.room-social-title>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf3ff;font-size:18px;font-weight:900}.room-topic{margin:0;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-social-title small{display:block;color:var(--muted);font-size:10px}.room-social-controls{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.room-social-controls button,.room-poll header button{border:1px solid #dae3f2;background:#f7f9fe;border-radius:9px;padding:5px 7px;font-size:10px;color:#2c4d7d}.room-announcement{display:flex;gap:7px;margin-top:9px;padding:8px 10px;border-radius:11px;background:#fff8df;border:1px solid #f1df9b;font-size:11px}.room-featured{display:flex;align-items:center;gap:6px;overflow-x:auto;margin-top:8px}.room-featured>b{font-size:10px;color:var(--muted)}.room-featured button{display:flex;align-items:center;gap:4px;border:0;background:#f5f7fb;border-radius:999px;padding:3px 7px 3px 3px;color:inherit;font-size:10px}.room-featured .avatar{width:24px;height:24px}.room-pins,.room-polls{margin-top:9px}.room-pins h3,.room-polls h3{font-size:11px;color:#526079;margin-bottom:5px}.room-pins>div{display:grid;gap:5px}.room-pin{display:grid;grid-template-columns:auto 1fr;gap:7px;text-align:left;border:1px solid #e4e8f0;background:#fafbfe;border-radius:10px;padding:7px;color:inherit}.room-pin strong,.room-pin small{display:block}.room-pin small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-poll{border:1px solid #e0e6f1;border-radius:12px;padding:9px;margin-bottom:7px;background:#fbfcff}.room-poll header{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.room-poll header strong,.room-poll header small{display:block}.room-poll header small{font-size:9px;color:var(--muted);margin-top:2px}.poll-closed{font-size:9px;color:#83585e;background:#fbecef;border-radius:8px;padding:3px 6px;height:max-content}.poll-option{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr auto;align-items:center;width:100%;overflow:hidden;text-align:left;border:1px solid #e0e6ef;background:#fff;border-radius:9px;padding:7px 9px;margin-top:5px;color:inherit}.poll-fill{position:absolute;z-index:-1;inset:0 auto 0 0;background:#eaf2ff}.poll-option.selected{border-color:#78a6ee}.poll-label{font-size:11px}.poll-option b{font-size:10px}.theme-violet .room-social-title>span,.theme-violet.discover-room>span,.theme-violet.discover-continue>span{background:#f0eaff;color:#6944b3}.theme-sunset .room-social-title>span,.theme-sunset.discover-room>span,.theme-sunset.discover-continue>span{background:#fff0e6;color:#b75122}.theme-forest .room-social-title>span,.theme-forest.discover-room>span,.theme-forest.discover-continue>span{background:#e7f5ee;color:#1d7556}.theme-midnight .room-social-title>span,.theme-midnight.discover-room>span,.theme-midnight.discover-continue>span{background:#e8ecf5;color:#202b49}.theme-rose .room-social-title>span,.theme-rose.discover-room>span,.theme-rose.discover-continue>span{background:#ffe9f3;color:#a52a69}.theme-ice .room-social-title>span,.theme-ice.discover-room>span,.theme-ice.discover-continue>span{background:#e4f7ff;color:#246f8e}
.social-form{display:grid;gap:11px}.social-form label{display:grid;gap:5px;font-size:12px;font-weight:650}.social-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.social-form textarea{min-height:90px;resize:vertical}.featured-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:6px;max-height:210px;overflow:auto}.featured-choice{display:flex!important;grid-template-columns:none!important;align-items:center;gap:6px!important;border:1px solid #e2e7f0;border-radius:10px;padding:6px!important}.featured-choice .avatar{width:28px;height:28px}.moment-view header{display:flex;align-items:center;gap:10px}.moment-view header .avatar{width:45px;height:45px}.moment-view header strong,.moment-view header small{display:block}.moment-view header small{color:var(--muted);font-size:11px}.moment-view>p{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}.moment-view-media img,.moment-view-media video{width:100%;max-height:60vh;object-fit:contain;border-radius:13px;background:#0f172a}.moment-view-media audio{width:100%}.moment-link{display:block;margin-top:10px;padding:10px;border-radius:11px;background:#eff4ff}.moment-view footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--muted);font-size:11px}.saved-message-list{display:grid;gap:8px}.saved-message{display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid #e0e6f1;border-radius:13px;padding:9px}.saved-open{text-align:left;border:0;background:transparent;color:inherit}.saved-open small,.saved-open time{color:var(--muted);font-size:10px}.saved-open p{margin:5px 0;white-space:pre-wrap}.voice-record-button.recording{background:#e24654!important;color:#fff!important;animation:voicepulse 1s infinite}.message-highlight .bubble{box-shadow:0 0 0 3px #f5b83c,0 8px 20px #f5b83c55}@keyframes voicepulse{50%{transform:scale(.92);opacity:.75}}
@media(max-width:620px){.moments-home,.discover-home{margin-top:15px}.discover-room-grid{grid-template-columns:1fr}.discover-post span{grid-template-columns:1fr}.discover-post time{display:none}.room-social-panel{margin:5px 5px 3px;max-height:210px}.room-social-title{grid-template-columns:34px minmax(0,1fr)}.room-social-title>span{width:34px;height:34px}.room-social-controls{grid-column:1/-1;justify-content:flex-start}.room-banner{height:88px}.social-form-grid{grid-template-columns:1fr}.moment-view-media img,.moment-view-media video{max-height:48vh}.voice-record-button{display:inline-grid!important}}
