:root{color-scheme:dark;--g-bg:#101014;--g-panel:#1b1b22;--g-border:#30303a;--g-muted:#a8a8b8;--g-pink:#ff0057}*{box-sizing:border-box}body{margin:0;background:var(--g-bg);color:#fff;font:15px/1.45 system-ui,-apple-system,sans-serif;padding-bottom:calc(78px + env(safe-area-inset-bottom));overflow-x:hidden}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ff3385;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:21px}h2{font-size:20px}h3{font-size:16px}small{font-size:12px;color:var(--g-muted)}svg{height:24px;width:24px;fill:none;stroke:currentColor;stroke-width:1.8}.g-top{padding:calc(8px + env(safe-area-inset-top)) 16px 4px;max-width:1100px;margin:auto}.g-top nav{display:flex;gap:clamp(8px,4vw,26px);align-items:center;justify-content:center;white-space:nowrap}.g-top a{font-size:13px;font-weight:700;min-height:44px;display:grid;place-items:center;border-bottom:3px solid transparent}.g-top a.active{border-color:var(--g-pink)}#groups-root{max-width:1068px;margin:auto;padding:16px;min-height:60vh}#groups-status{position:fixed;top:calc(56px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:90;background:#3a1625;color:#fff;border:1px solid #ff3385;border-radius:12px;padding:12px;width:min(92vw,480px);box-shadow:0 5px 30px #0008}.g-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.g-section-head p{font-size:12px;color:var(--g-muted)}.g-primary,.g-secondary{border-radius:12px;padding:12px 16px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:6px;font-weight:650}.g-primary{background:var(--g-pink);color:#fff}.g-secondary{background:#2a2a34;color:#eee;border:1px solid var(--g-border)}.g-search,input,select,textarea{background:#202028;border:1px solid var(--g-border);color:#fff;padding:12px;border-radius:12px;min-height:44px;min-width:0;max-width:100%}.g-search{width:100%;margin:0 0 14px}.g-categories{display:flex;gap:8px;overflow-x:auto;padding-bottom:14px;margin-bottom:10px;scrollbar-width:none}.g-chip{background:#24242d;border:1px solid var(--g-border);border-radius:22px;min-height:44px;padding:8px 14px;white-space:nowrap}.g-chip[aria-pressed=true]{background:var(--g-pink);border-color:var(--g-pink)}.g-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px;margin-bottom:24px}.g-card{background:var(--g-panel);border:1px solid var(--g-border);border-radius:18px;padding:14px;display:flex;align-items:center;gap:12px;min-height:100px;transition:border-color .15s}.g-card:active{border-color:var(--g-pink)}.g-card>div{min-width:0;flex:1}.g-card p{margin-top:6px;color:var(--g-muted);font-size:13px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.g-avatar{display:grid;place-items:center;border-radius:18px;background:linear-gradient(140deg,#5b1641,#a80c4a);color:white;width:54px;height:54px;flex-shrink:0;font-size:23px;font-weight:750}.g-badge{background:var(--g-pink);color:white;min-width:23px;border-radius:20px;text-align:center;padding:3px;font-size:11px}.g-empty{padding:22px 12px;text-align:center;color:var(--g-muted);font-size:14px}.g-dialog{width:min(94vw,520px);max-height:85dvh;background:#191920;color:#fff;border:1px solid var(--g-border);border-radius:24px;padding:0}.g-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.g-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--g-border);position:sticky;top:0;background:#191920;z-index:2}.g-dialog-body{padding:16px}.g-close,.g-more,.g-back{height:44px;min-width:44px;background:transparent;display:grid;place-items:center;font-size:27px}.g-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.g-field>span{font-size:13px;color:#d2d2df}.g-field textarea{resize:vertical;min-height:90px}.g-field input,.g-field select{width:100%}.g-dialog form>.g-primary{width:100%}.g-join-card{max-width:520px;margin:36px auto;background:var(--g-panel);border:1px solid var(--g-border);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}.g-cover{background:linear-gradient(130deg,#2c1525,#191921);border:1px solid var(--g-border);border-radius:20px;padding:14px;margin-bottom:12px}.g-room-head{display:flex;align-items:center;gap:10px}.g-room-head>div{flex:1;min-width:0}.g-room-head h1{overflow-wrap:anywhere}.g-cover>p{font-size:13px;color:#ccc;margin:10px 6px 0}.g-cover .g-rules{max-height:85px;overflow:auto;color:var(--g-muted);white-space:pre-wrap}.g-inner-tabs{display:flex;gap:8px;border-bottom:1px solid var(--g-border);margin:0 0 8px}.g-inner-tabs button{background:transparent;min-height:44px;min-width:74px;border-bottom:3px solid transparent}.g-inner-tabs button.selected{border-color:var(--g-pink);color:#ff66a0}.g-room-content{min-width:0}.g-connection{font-size:11px;color:var(--g-muted);text-align:center;height:24px}.g-message-search{padding:7px 12px;min-height:36px;font-size:13px;margin-bottom:4px}.g-messages{height:clamp(230px,calc(100dvh - 455px - env(safe-area-inset-bottom)),600px);min-height:200px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 2px;scroll-behavior:auto}.g-message{display:flex;gap:7px;align-items:flex-end;margin:12px 0;scroll-margin:15px}.g-message>.g-avatar{width:27px;height:27px;font-size:12px;border-radius:50%}.g-bubble{background:#252530;border-radius:16px 16px 16px 4px;padding:9px 12px;max-width:85%;min-width:110px;position:relative}.g-message.mine{justify-content:flex-end}.g-message.mine>.g-avatar{display:none}.g-message.mine .g-bubble{background:#ac124d;border-radius:16px 16px 4px 16px}.g-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;padding-right:18px}.g-sender{display:block;font-size:11px;font-weight:700;color:#ffb4d2;padding-right:28px;margin-bottom:4px}.g-meta{display:block;text-align:right;font-size:10px;color:#d3c4cc;margin-top:4px}.g-reactions{display:inline-block;background:#12121870;padding:1px 7px;border-radius:20px;font-size:13px}.g-message-more{position:absolute;right:0;top:0;width:44px;height:32px;background:transparent;color:#ddd}.g-quote{display:block;text-align:left;font-size:12px;border-left:2px solid #ff82ae;background:#0003;width:100%;padding:7px;border-radius:6px;color:#eee;overflow:hidden}.g-older{display:block;margin:auto;background:transparent;color:#fca4c4;min-height:34px;font-size:12px}.g-compose{display:grid;grid-template-columns:1fr 46px;gap:8px;padding:8px 0 max(10px,env(safe-area-inset-bottom));background:var(--g-bg);position:sticky;bottom:calc(68px + env(safe-area-inset-bottom));z-index:5}.g-compose textarea{resize:none;border-radius:24px;width:100%;padding:11px 16px}.g-compose>.g-primary{padding:8px;border-radius:50%;height:46px;font-size:24px}.g-reply-preview{grid-column:1/-1;display:flex;align-items:center;gap:4px;border-left:2px solid var(--g-pink);padding-left:8px;font-size:12px;color:#ccc}.g-reply-preview>span{flex:1}.g-reply-preview button{background:transparent;min-width:44px;height:32px}.g-menu-row{display:block;width:100%;text-align:left;min-height:48px;background:transparent;padding:12px;border-radius:10px}.g-menu-row:active{background:#333340}.g-danger{color:#ff82ae}.g-react-row{display:flex;justify-content:space-between}.g-react-row button{background:#292932;border-radius:50%;font-size:23px;width:44px;height:44px}.g-member{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--g-border);flex-wrap:wrap}.g-member>a,.g-member>strong{flex:1;min-width:90px}.g-member .g-avatar{width:38px;height:38px;font-size:17px;border-radius:50%}.g-member small{font-size:11px}.g-member .g-secondary{font-size:12px;padding:8px}.g-invite{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.g-dialog-body>input{width:100%;margin:12px 0}.g-dialog-body>.g-secondary,.g-dialog-body>.g-primary{margin:4px}.g-chat-open #groups-root{max-width:820px}.g-chat-open .g-cover>.g-rules,.g-chat-open .g-cover>p{display:none}@media(max-width:380px){#groups-root{padding:10px}.g-section-head>.g-primary{font-size:12px;padding:10px}.g-top{padding-inline:8px}.g-top nav{gap:14px}.g-top a{font-size:12px}.g-room-head .g-avatar{width:40px;height:40px;font-size:19px}.g-room-head h1{font-size:18px}.g-bubble{max-width:87%}}@media(min-width:760px){.g-messages{height:calc(100dvh - 425px);min-height:280px}.g-room-content{padding:0 14px}.g-dialog{border-radius:24px}.g-card-grid{gap:14px}}@media(max-height:550px){.g-chat-open .g-top,.g-chat-open .g-cover{display:none}.g-messages{height:calc(100dvh - 255px)}.g-compose{bottom:0}.g-chat-open .app-tabs{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.app-tabs{position:fixed;display:flex;z-index:20;justify-content:space-around}.g-post{background:var(--g-panel);border:1px solid var(--g-border);padding:16px;border-radius:18px;margin:12px 0}.g-post>header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.g-post>p{white-space:pre-wrap;overflow-wrap:anywhere}.g-post-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.g-post-actions button{font-size:12px}.g-post-form textarea{width:100%;min-height:90px;resize:vertical}.g-post-form .g-primary{margin-top:8px}.g-comment{border-bottom:1px solid var(--g-border);padding:12px 0}.g-comment p{white-space:pre-wrap}.g-notification{display:block;border:1px solid var(--g-border);background:var(--g-panel);border-radius:14px;padding:14px;margin:8px 0}.g-notification.unread{border-color:#c72466}.g-notification p{font-size:13px;color:var(--g-muted)}

.g-attachment-composer{grid-column:1/-1}.g-attach-button{background:transparent;min-height:36px;color:#ff9fc1;padding:4px 12px;font-size:13px}.g-attachment-previews{display:flex;gap:8px;overflow-x:auto}.g-attachment-item{position:relative;flex-shrink:0;width:110px;padding-bottom:4px}.g-attachment-item img{width:110px;height:85px;object-fit:cover;border-radius:12px}.g-attachment-item small{font-size:10px;display:block}.g-attachment-item .g-secondary{font-size:10px;min-height:28px;padding:4px}.g-attachment-remove{position:absolute;right:1px;top:1px;background:#000b;border-radius:50%;height:28px;width:28px}.g-message-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:4px 0;max-width:330px}.g-message-media:has(> :only-child){grid-template-columns:1fr}.g-media-button{padding:0;background:none;border:0;min-width:0;border-radius:10px;overflow:hidden}.g-media-button img{display:block;width:100%;height:160px;object-fit:cover}.g-full-image{width:100%;max-height:70dvh;object-fit:contain;border-radius:10px}.g-room-content>.g-message-media{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.g-room-content>.g-message-media img{height:150px}.g-message-media+.g-message-text{font-size:12px}

.g-attachment-remove{width:44px;height:44px;font-size:20px}.g-section-head{flex-wrap:wrap}.g-section-head>div{flex:1;min-width:150px}.g-inner-tabs{overflow-x:auto}.g-inner-tabs button{flex-shrink:0}.g-dialog .g-dialog-body{overflow-wrap:anywhere}

/* Full-screen group rooms only. Directory and the rest of SYOPER retain their theme. */
body.g-room-open{color-scheme:light;--g-bg:#F7F6F4;--g-panel:#fff;--g-border:#17171c12;--g-muted:#6B7280;background:var(--g-bg);color:#17171C;padding:0;overflow:hidden;overscroll-behavior:none}
.g-room-open .g-top,.g-room-open .app-tabs,.g-room-open [data-bottom-navigation],.g-room-open #bottom-navigation{display:none!important}
.g-room-open #groups-root{position:fixed;inset:var(--g-view-top,0px) 0 auto;height:var(--g-view-height,100dvh);width:100%;max-width:none;min-height:0;margin:0;padding:env(safe-area-inset-top) 0 0;display:flex;flex-direction:column;background:#F7F6F4;overflow:hidden}
.g-room-open .g-cover{display:block;background:none;border:0;border-radius:0;margin:0;padding:8px 12px 2px;flex:none}
.g-room-open .g-room-head{gap:8px;max-width:960px;margin:auto;min-height:56px}
.g-room-open .g-room-head .g-avatar{width:42px;height:42px;border-radius:14px;font-size:23px;background:#880e38}
.g-room-open .g-room-head h1{font-size:19px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-room-open .g-room-head small{font-size:12px}
.g-room-open .g-back,.g-room-open .g-more,.g-room-search{background:transparent;color:#17171C;width:44px;min-width:44px;height:44px;padding:8px;flex-shrink:0}
.g-room-open .g-back{font-size:36px;line-height:1}.g-room-open .g-more{font-size:28px}.g-room-search svg{display:block;margin:auto}
.g-room-open .g-inner-tabs{flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:0;width:100%;margin:0;border-bottom:1px solid var(--g-border);padding:0 max(12px,calc((100% - 960px)/2));overflow:visible}
.g-room-open .g-inner-tabs button{min-width:0;min-height:44px;border-bottom-width:2px;color:#17171C;font-size:14px;padding:8px}
.g-room-open .g-inner-tabs button.selected{color:var(--g-pink);font-weight:700}
.g-room-open .g-room-content{position:relative;flex:1;min-height:0;overflow:auto;width:100%;max-width:960px;margin:auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom));overscroll-behavior:contain}
.g-room-open.g-chat-open .g-room-content{display:flex;flex-direction:column;overflow:hidden;padding:0}
.g-room-open .g-connection{height:auto;flex:none;padding:4px;font-size:12px;background:#eceae8}
.g-room-open .g-message-search{width:calc(100% - 32px);margin:8px 16px;flex:none;font-size:16px}
.g-room-open .g-messages{height:auto;flex:1;min-height:0;padding:4px 14px 12px;overflow:auto;overflow-anchor:none;scroll-padding-block:12px;-webkit-overflow-scrolling:touch}
.g-room-open .g-date{display:table;clear:both;margin:14px auto 16px;padding:3px 18px;border-radius:20px;background:#ECEAE8;color:#6B7280;font-size:11px;text-align:center}
.g-room-open .g-message{margin:10px 0;align-items:flex-start;gap:8px}
.g-room-open .g-message>.g-avatar{background:#880e38;width:32px;height:32px;font-size:16px;border-radius:50%}
.g-room-open .g-message.continued{margin-top:3px}.g-room-open .g-message.continued>.g-avatar{visibility:hidden}
.g-room-open .g-bubble{min-width:0;width:fit-content;max-width:calc(85% - 16px);padding:7px 10px 6px;border-radius:15px;background:#fff;border:1px solid #17171c04;box-shadow:0 2px 9px #17171c04}
.g-room-open .g-message.mine .g-bubble{max-width:85%;background:#ECEAE8;border-radius:15px}
.g-room-open .g-sender{font-size:12px;line-height:1.3;color:#880e38;padding-right:20px;margin-bottom:4px}
.g-room-open .g-message-text{font-size:15px;line-height:1.45;padding:0;overflow-wrap:anywhere}
.g-room-open .g-meta{font-size:10px;line-height:1.3;color:#6B7280;margin-top:4px;white-space:nowrap}.g-room-open .g-sent{color:var(--g-pink)}
.g-room-open .g-message-more{color:#6B7280;top:-8px;right:0;min-height:44px;height:44px;width:28px;font-size:16px;opacity:0}.g-room-open .g-bubble:hover .g-message-more,.g-room-open .g-message-more:focus-visible{opacity:1}
.g-room-open .g-quote{background:#ECEAE8;color:#6B7280;border-left-color:var(--g-pink);margin-bottom:5px}
.g-room-open .g-reactions{background:#f7f6f4;color:#17171C}.g-room-open .g-older{color:#6B7280;min-height:44px}
.g-room-open .g-compose{position:relative;bottom:auto;flex:none;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px 8px;align-items:end;background:#F7F6F4;padding:10px 12px max(10px,env(safe-area-inset-bottom));margin:0;width:100%;z-index:5}
.g-room-open .g-compose-entry{display:flex;align-items:flex-end;background:#fff;border-radius:26px;border:1px solid #17171c04;min-width:0;padding:2px 6px 2px 0}
.g-room-open .g-compose textarea{background:none;border:0;color:#17171C;border-radius:0;min-height:42px;max-height:120px;line-height:22px;font-size:16px;padding:10px 8px 10px 2px;overflow:auto;flex:1;width:0;box-shadow:none}
.g-room-open .g-compose textarea:focus-visible{outline:0}.g-room-open .g-compose-entry:focus-within{box-shadow:0 0 0 1px #ff00572e}
.g-room-open .g-attach-button{color:var(--g-pink);font-size:28px;background:none;width:44px;min-width:44px;min-height:44px;height:44px;line-height:1;padding:0}
.g-room-open .g-compose>.g-primary{width:44px;height:44px;min-height:44px;padding:0;font-size:30px;font-weight:500;line-height:1;align-self:end;margin-bottom:2px}
.g-room-open .g-reply-preview{color:#6B7280;min-width:0}.g-room-open .g-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-room-open .g-new-messages{position:absolute;bottom:90px;right:18px;z-index:6;min-height:44px;padding:10px 16px;border-radius:22px;color:var(--g-pink);background:#fff;box-shadow:0 3px 14px #17171c20;border:1px solid #17171c0d}
.g-room-open .g-message-media{display:flex;flex-direction:column;gap:5px;margin:2px 0;width:min(280px,55vw);max-width:100%}
.g-room-open .g-media-button{display:block;position:relative;width:100%;max-height:340px;background:#ECEAE8;border-radius:9px;overflow:hidden;flex:none}
.g-room-open .g-media-button img{width:100%;height:100%;max-height:340px;object-fit:contain;display:block}.g-room-open .g-media-button.loaded{width:auto;max-width:100%;align-self:flex-start}
.g-room-open .g-media-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:12px;color:#6B7280;font-size:12px;text-align:center;background:#ECEAE8}.g-room-open .g-media-button.loaded .g-media-placeholder{display:none}
.g-room-open .g-room-content>.g-message-media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:none}.g-room-open .g-room-content>.g-message-media img{height:100%;max-height:240px}
.g-room-open .g-dialog,.g-room-open .g-dialog>header{background:#F7F6F4;color:#17171C;border-color:#17171c12}
.g-room-open input,.g-room-open select,.g-room-open textarea{background:#fff;color:#17171C;border-color:#17171c15}
.g-room-open .g-secondary{background:#ECEAE8;color:#17171C}.g-room-open .g-field>span{color:#6B7280}.g-room-open .g-react-row button{background:#ECEAE8}.g-room-open .g-menu-row:active{background:#ECEAE8}.g-room-open .g-danger{color:#b51948}
.g-room-open .g-join-info{padding:20px;overflow:auto}.g-room-open .g-join-info p{margin-bottom:12px}
.g-room-open #groups-status{top:calc(60px + env(safe-area-inset-top));background:#fff;color:#17171C;border-color:#ff00574d;font-size:13px}
@media(max-width:360px){.g-room-open .g-cover{padding-inline:6px}.g-room-open .g-room-head{gap:4px}.g-room-open .g-room-head h1{font-size:17px}.g-room-open .g-room-head .g-avatar{width:36px;height:36px}.g-room-open .g-messages{padding-inline:10px}.g-room-open .g-bubble{max-width:calc(85% - 10px)}}
