/* SOGU Crew v1.4: isolated premium chat */
body.sogu-crew-page .entry-header,body.sogu-crew-page .page-header,body.sogu-crew-page .entry-title,body.sogu-crew-page .page-title,body.sogu-crew-page .hero,body.sogu-crew-page .page-hero,body.sogu-crew-page .inner-banner,body.sogu-crew-page .sogu-page-hero{display:none!important}
body.sogu-crew-page .entry-content,body.sogu-crew-page .site-main,body.sogu-crew-page main{padding-top:0!important}
.sogu-crew{width:min(100%,780px);margin:20px auto 56px;padding:0 16px;color:#f5f7fb;font-family:inherit}.sogu-crew *{box-sizing:border-box}.sogu-crew .crew-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 2px 18px}.sogu-crew .crew-eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;color:#c7a96b}.sogu-crew h1{font-size:clamp(22px,3.5vw,29px)!important;line-height:1.15!important;letter-spacing:-.7px!important;margin:5px 0 5px!important;color:#fff!important}.sogu-crew .crew-chat-head p{font-size:12px;color:#8c9bb0;margin:0}.crew-chat-live{border:1px solid #244d3b;border-radius:30px;color:#8ee2b2;background:#0e211b;padding:7px 12px;font-size:10px;font-weight:800;letter-spacing:1.5px}.crew-chat-shell{background:#0d131d;border:1px solid #263244;border-radius:16px;overflow:hidden;box-shadow:0 16px 50px #0005}.crew-chat-bar{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #263244;background:#111a27}.crew-chat-bar strong{font-size:15px;color:#f5f7fc}.crew-chat-bar small{display:block;color:#8797aa;font-size:11px;margin-top:4px}.crew-chat-identity{border:1px solid #4d432f;border-radius:20px;padding:6px 11px;color:#e6c582;font-size:11px;max-width:45%;overflow-wrap:anywhere}.crew-chat-feed{height:clamp(260px,42vh,390px);min-height:0!important;max-height:390px!important;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:18px;background:linear-gradient(180deg,#0f1723,#0c131e)}.crew-chat-message{display:flex;align-items:flex-start;gap:10px}.crew-chat-avatar{height:32px;width:32px;flex:0 0 32px;border-radius:10px;background:#25344a;color:#e6edf7;display:grid;place-items:center;font-size:12px;font-weight:800}.crew-chat-message.mine .crew-chat-avatar{background:#233f34;color:#9de1bc}.crew-chat-bubble{min-width:0;max-width:calc(100% - 42px)}.crew-chat-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:4px}.crew-chat-meta strong{color:#f0f4fa;font-size:12px}.crew-chat-meta time{font-size:10px;color:#78899d}.crew-chat-bubble p{color:#d3ddea;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere}.crew-chat-empty{margin:auto;color:#7f91a6;font-size:13px;text-align:center}.crew-chat-compose{background:#111a27;border-top:1px solid #263244;padding:14px 18px}.crew-chat-compose>form{display:flex;align-items:flex-end;gap:10px}.crew-chat-compose textarea,.crew-nickname-form input{flex:1;min-width:0;background:#0a111c;border:1px solid #354357;border-radius:10px;padding:12px 14px;color:#f5f7fb;font:inherit;font-size:13px;outline:none;resize:vertical}.crew-chat-compose textarea:focus,.crew-nickname-form input:focus{border-color:#d4b773}.sogu-crew .crew-btn{background:#dfbd77;color:#11151b;border:0;border-radius:10px;padding:13px 18px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;text-decoration:none}.crew-chat-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#8091a5;font-size:10px;margin-top:10px}.crew-chat-bottom summary{cursor:pointer;color:#b9c6d7}.crew-chat-bottom details .crew-nickname-form{min-width:230px}.crew-nickname-form{display:flex;gap:8px;flex-wrap:wrap;margin:12px 20px 20px}.crew-chat-shell>h2,.crew-chat-shell>p{margin:20px;color:#f5f7fb}.crew-notice{background:#1b372d;color:#c4ead5;border:1px solid #315643;border-radius:10px;padding:11px 15px;font-size:13px;margin-bottom:15px}@media(max-width:600px){.sogu-crew{margin:8px auto 35px;padding:0 10px}.sogu-crew .crew-chat-head{padding:7px 2px 15px}.crew-chat-feed{height:320px;max-height:320px!important;padding:14px 12px}.crew-chat-bar{padding:13px 14px}.crew-chat-compose{padding:12px}.crew-chat-compose textarea{font-size:16px}.sogu-crew .crew-btn{padding:12px 13px}.crew-chat-identity{font-size:10px}}

/* v1.5 responsive community layout: retain global site header and hide only theme page-title hero */
body.sogu-crew-page .entry-header,body.sogu-crew-page .page-header,body.sogu-crew-page .entry-title,body.sogu-crew-page .page-title{display:none!important}
body.sogu-crew-page .site-content,body.sogu-crew-page .content-area,body.sogu-crew-page .entry-content{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere}
body.sogu-crew-page .sogu-crew{width:min(100%,860px)!important;max-width:100%!important;margin:0 auto 36px!important;padding:12px 12px 0!important;overflow:visible!important}
body.sogu-crew-page .sogu-crew,body.sogu-crew-page .sogu-crew *{box-sizing:border-box!important}
.sogu-crew .crew-chat-head{margin:0!important}.sogu-crew .crew-chat-shell{width:100%!important;min-width:0!important}.sogu-crew .crew-chat-feed{height:clamp(180px,30vh,300px)!important;max-height:300px!important}.sogu-crew .crew-chat-compose textarea{min-height:46px;max-height:105px}.sogu-crew .crew-discussions{margin-top:26px;min-width:0}.sogu-crew .crew-section-heading{margin:0 0 15px}.sogu-crew .crew-section-heading h2{font-size:22px!important;color:#f6f8fc!important;margin:5px 0!important}.sogu-crew .crew-section-heading p{color:#91a1b7;font-size:12px;margin:0}.sogu-crew .crew-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:15px}.sogu-crew .crew-layout main,.sogu-crew .crew-layout aside{min-width:0}.sogu-crew .crew-topic,.sogu-crew .crew-panel,.sogu-crew .crew-replies{background:#111a27;border:1px solid #28374a;border-radius:13px;padding:15px;margin-bottom:12px;color:#d6e0ee}.sogu-crew .crew-topic h3{margin:5px 0!important;font-size:15px!important}.sogu-crew .crew-topic a{color:#f5f7fc!important;text-decoration:none}.sogu-crew .crew-topic p,.sogu-crew .crew-panel p{font-size:12px;line-height:1.55;color:#aebdd0}.sogu-crew .crew-meta,.sogu-crew .crew-footer{font-size:10px;color:#a7b8ca;display:flex;gap:8px;flex-wrap:wrap}.sogu-crew .crew-pin{color:#e8c77f}.sogu-crew .crew-panel input,.sogu-crew .crew-panel textarea,.sogu-crew .crew-replies textarea{display:block;width:100%;min-width:0;background:#0a111c;color:#f4f7fc;border:1px solid #344258;border-radius:9px;padding:10px;margin:9px 0;font:inherit;font-size:13px}.sogu-crew .crew-back{color:#dfbd77}.sogu-crew .crew-comment{padding:12px 0;border-bottom:1px solid #273448}.sogu-crew .crew-comment-top{display:flex;gap:10px;flex-wrap:wrap}.sogu-crew .crew-comment-top time{color:#8294a9;font-size:11px}.sogu-crew .crew-comment p{overflow-wrap:anywhere}.sogu-crew .crew-comment-actions{display:flex;gap:10px}.sogu-crew .crew-comment-actions button{background:transparent;color:#d5b976;border:0;cursor:pointer}.sogu-crew .crew-chat-bottom details{max-width:100%}
@media(max-width:700px){.sogu-crew .crew-layout{grid-template-columns:minmax(0,1fr)}.sogu-crew .crew-chat-feed{height:220px!important;max-height:220px!important}.sogu-crew .crew-chat-compose{padding:10px!important}.sogu-crew .crew-chat-compose>form{align-items:stretch!important}.sogu-crew .crew-chat-compose textarea{width:100%;min-width:0;max-width:100%;resize:none}.sogu-crew .crew-chat-head{padding:8px 0 12px!important}.sogu-crew .crew-chat-head h1{font-size:24px!important}.sogu-crew .crew-discussions{margin-top:20px}}
/* v1.6: scoped responsive refinements; keep theme navigation and actual logo intact */
body.sogu-crew-page .sogu-crew{max-width:760px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
.sogu-crew .crew-inline-status{font-size:12px;color:#b8dfc8;margin:8px 0 0;line-height:1.4}.sogu-crew .crew-inline-status.crew-error{color:#f3a6a6}.sogu-crew .crew-ajax-form button:disabled{opacity:.6;cursor:wait}
.sogu-crew .crew-chat-feed{height:clamp(180px,26vh,275px)!important;max-height:275px!important}
@media(max-width:700px){body.sogu-crew-page .sogu-crew{padding:8px 12px 0!important}.sogu-crew .crew-chat-feed{height:190px!important;max-height:190px!important}.sogu-crew .crew-chat-compose>form{display:flex!important;flex-direction:row!important;align-items:center!important}.sogu-crew .crew-chat-compose textarea{flex:1 1 auto!important;width:1%!important;min-height:44px!important}.sogu-crew .crew-chat-compose .crew-btn{flex:0 0 auto!important}.sogu-crew .crew-chat-head{margin-top:0!important}}
/* v1.7 dedicated page shell: no theme index.php oversized SOGU title. */
body.sogu-crew-page .sogu-crew-main{width:100%;min-width:0;max-width:100%;margin:0;padding:clamp(20px,4vw,44px) 12px 50px;background:radial-gradient(ellipse at 50% 0%,#102236 0%,#060c14 65%);}
body.sogu-crew-page .sogu-crew-main .sogu-crew{width:min(100%,860px)!important;max-width:860px!important;padding:0!important;margin:0 auto!important}
.sogu-crew-main .crew-chat-head{padding:0 0 20px!important}
.sogu-crew-main .crew-chat-head h1{font-size:clamp(25px,4vw,34px)!important;font-weight:800!important}
.sogu-crew-main .crew-chat-shell{border:1px solid #28384b;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.sogu-crew-main .crew-chat-feed{height:clamp(200px,30vh,300px)!important;max-height:300px!important}
.sogu-crew-main .crew-discussions{margin-top:32px!important}
.sogu-crew-main .crew-topic{transition:border-color .15s ease,transform .15s ease}
.sogu-crew-main .crew-topic:hover{border-color:#526981;transform:translateY(-1px)}
.sogu-crew-main .crew-topic h3{font-size:16px!important}
.sogu-crew-main .crew-panel h3{font-size:15px;color:#f6f8fb}
@media(max-width:700px){body.sogu-crew-page .sogu-crew-main{padding:20px 14px 35px!important}.sogu-crew-main .crew-chat-feed{height:210px!important;max-height:210px!important}.sogu-crew-main .crew-chat-head{padding-bottom:15px!important}.sogu-crew-main .crew-layout{display:grid;grid-template-columns:minmax(0,1fr)}.sogu-crew-main .crew-chat-compose textarea{font-size:16px!important}}
/* v1.8 verified admin identity and compact community navigation */
.sogu-crew .crew-admin-badge{display:inline-flex;align-items:center;border:1px solid #98743b;background:rgba(210,162,73,.13);color:#f4cf8a;border-radius:5px;padding:2px 6px;font-size:9px;font-weight:800;letter-spacing:.6px;line-height:1.3;white-space:nowrap}
.sogu-crew .crew-chat-meta,.sogu-crew .crew-comment-top{align-items:center}
.sogu-crew .crew-chat-head{gap:10px}
.sogu-crew .crew-topic:has(.crew-pin){border-color:#655237;background:linear-gradient(135deg,#17202b,#111a27)}
.sogu-crew .crew-replies{line-height:1.55}
.sogu-crew .crew-comment p{font-size:13px;line-height:1.65;white-space:normal}
@media(max-width:700px){.sogu-crew .crew-topic,.sogu-crew .crew-panel,.sogu-crew .crew-replies{padding:14px}.sogu-crew .crew-chat-feed{height:190px!important;max-height:190px!important}.sogu-crew .crew-chat-bar{padding:12px 14px}.sogu-crew .crew-comment p{font-size:13px}}

/* v1.9 premium navigation and mobile refinement */
.sogu-crew .crew-quicknav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:5px;background:#0c1521;border:1px solid #25364b;border-radius:12px}
.sogu-crew .crew-quicknav a{flex:1 1 auto;text-align:center;text-decoration:none!important;color:#cbd6e6!important;font-size:12px;font-weight:700;letter-spacing:.02em;padding:11px 13px;border-radius:9px;transition:background .15s,color .15s}
.sogu-crew .crew-quicknav a:hover,.sogu-crew .crew-quicknav a:focus-visible{background:#20344a;color:#fff!important;outline:2px solid transparent}
.sogu-crew #crew-lounge,.sogu-crew #crew-discussions,.sogu-crew #crew-updates{scroll-margin-top:105px}
.sogu-crew .crew-topic{border-radius:13px!important;padding:16px 18px!important;margin-bottom:10px!important}
.sogu-crew .crew-topic h3{margin:5px 0 7px!important;line-height:1.3!important}
.sogu-crew .crew-topic p{line-height:1.5!important}
.sogu-crew .crew-chat-shell{overflow:hidden}
.sogu-crew .crew-chat-compose textarea{max-width:100%;box-sizing:border-box}
@media(max-width:700px){.sogu-crew .crew-quicknav{gap:3px;padding:4px}.sogu-crew .crew-quicknav a{font-size:11px;padding:10px 5px}.sogu-crew .crew-topic{padding:14px!important}.sogu-crew .crew-chat-feed{height:175px!important;max-height:175px!important}.sogu-crew .crew-chat-compose>form{gap:8px!important}}

/* v2.0 real tab panels: hidden sections are not laid out, including on mobile */
.sogu-crew [data-crew-panel][hidden]{display:none!important}
.sogu-crew .crew-quicknav a[aria-selected="true"]{background:#1d3446!important;color:#fff!important;box-shadow:inset 0 0 0 1px #54788d}
.sogu-crew .crew-updates-only .crew-topic:not([data-crew-official="1"]),.sogu-crew .crew-updates-only .crew-layout aside{display:none!important}
.sogu-crew .crew-updates-only .crew-section-heading p{display:none}
.sogu-crew .crew-updates-only .crew-layout{display:block}
.sogu-crew .crew-updates-only .crew-layout main{width:100%;max-width:100%}

/* v2.1: dedicated official thread view; keep hidden panels hidden regardless of theme CSS. */
.sogu-crew [data-crew-panel][hidden]{display:none!important}
.sogu-crew .crew-official-panel{min-width:0;width:100%}
.sogu-crew .crew-official-panel .crew-section-heading{margin-bottom:16px}
.sogu-crew .crew-official-panel .crew-back{display:none}
.sogu-crew .crew-official-panel .crew-feature{margin-bottom:14px}
/* Suppress the unused blue decorative band between the site navigation and Crew content. */
body.sogu-crew-page .sogu-crew-main{margin-top:-1px!important}
body.sogu-crew-page .sogu-crew-main::before{display:none!important}

/* v2.2 - bounded history and persistent sitewide community discovery */
.sogu-crew .crew-history-controls{position:sticky;top:0;z-index:2;text-align:center;background:#0f1723;padding:4px 0}.sogu-crew .crew-history-controls button{border:1px solid #42506a;background:#192536;color:#e6c582;border-radius:20px;padding:7px 16px;font:600 12px inherit;cursor:pointer}.sogu-crew .crew-history-controls button[hidden]{display:none}.sogu-crew #crew-history-status{font-size:11px;color:#9fb1c5}.sogu-crew-discovery{position:fixed;right:16px;bottom:20px;z-index:9990;display:flex;align-items:center;gap:7px;background:#122235;border:1px solid #b18e51;color:#f5d18c!important;border-radius:30px;padding:10px 15px;font-size:12px;font-weight:800;letter-spacing:.8px;text-decoration:none!important;box-shadow:0 8px 25px #0009}.sogu-crew-discovery:hover{background:#20344a}.admin-bar .sogu-crew-discovery{bottom:20px}@media(max-width:700px){.sogu-crew-discovery{right:12px;bottom:74px;padding:8px 11px;font-size:11px}}

/* v2.2.2: larger, readable mobile chat; overrides legacy compact rules */
body.sogu-crew-page .sogu-crew-main .crew-chat-feed,body.sogu-crew-page .sogu-crew .crew-chat-feed{height:clamp(390px,56vh,560px)!important;max-height:560px!important;overflow-y:auto!important;gap:20px!important;padding:18px 17px!important}
.sogu-crew .crew-chat-bubble p{font-size:16px!important;line-height:1.55!important;color:#e7edf6!important}
.sogu-crew .crew-chat-meta strong{font-size:14px!important}.sogu-crew .crew-chat-meta time{font-size:12px!important}.sogu-crew .crew-chat-avatar{width:38px;height:38px;flex-basis:38px;font-size:15px}
.sogu-crew .crew-edit-trigger{background:transparent;border:0;padding:6px 0;color:#e4c483;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.sogu-crew .crew-edit-form textarea{display:block;width:100%;min-height:85px;background:#0a111c;border:1px solid #b89960;border-radius:9px;color:#fff;padding:10px;font:inherit;font-size:16px}.sogu-crew .crew-edit-actions{display:flex;gap:10px;margin-top:8px}.sogu-crew .crew-edit-actions button{border:1px solid #826c45;border-radius:8px;background:#dcbc78;color:#11151b;font-weight:700;padding:8px 12px;cursor:pointer}.sogu-crew .crew-edit-actions button+button{background:transparent;color:#e1c48e}
@media(max-width:700px){body.sogu-crew-page .sogu-crew-main .crew-chat-feed,body.sogu-crew-page .sogu-crew .crew-chat-feed{height:440px!important;max-height:440px!important;padding:16px 13px!important}.sogu-crew .crew-chat-bubble p{font-size:16px!important}}

/* v2.2.3: balanced mobile chat and invisible but functional scrollbars. */
body.sogu-crew-page .sogu-crew .crew-chat-feed{scrollbar-width:none!important;-ms-overflow-style:none!important;overscroll-behavior-y:contain!important}
body.sogu-crew-page .sogu-crew .crew-chat-feed::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(max-width:700px){body.sogu-crew-page .sogu-crew-main .crew-chat-feed,body.sogu-crew-page .sogu-crew .crew-chat-feed{height:350px!important;max-height:350px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}}

/* v2.2.4: pinned community tabs below the site navigation, without covering chat. */
body.sogu-crew-page .sogu-crew .crew-quicknav{position:sticky!important;top:var(--sogu-crew-header-offset,88px)!important;z-index:80!important;background:#0c1523!important;border:1px solid #34465c!important;box-shadow:0 8px 22px rgba(0,0,0,.45)!important;isolation:isolate!important;margin-bottom:18px!important}
body.sogu-crew-page .sogu-crew .crew-chat-shell{position:relative!important;isolation:isolate!important;overflow:hidden!important}
body.sogu-crew-page .sogu-crew .crew-chat-bar{position:relative!important;z-index:1!important;background:#111a27!important}
body.sogu-crew-page .sogu-crew .crew-history-controls{position:relative!important;top:auto!important;z-index:1!important;background:#0f1723!important;padding:0!important;min-height:0!important;line-height:1!important}
body.sogu-crew-page .sogu-crew .crew-history-controls:has(button[hidden]){display:none!important}
body.sogu-crew-page .sogu-crew .crew-history-controls button:not([hidden]){margin:9px auto!important}
body.sogu-crew-page .sogu-crew .crew-chat-feed{position:relative!important;z-index:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;overscroll-behavior:contain!important;contain:paint!important}
body.sogu-crew-page .sogu-crew .crew-chat-feed::-webkit-scrollbar{display:none!important}
body.sogu-crew-page .sogu-crew .crew-chat-compose{position:relative!important;z-index:1!important;background:#111a27!important}
@media(max-width:700px){body.sogu-crew-page .sogu-crew .crew-quicknav{top:var(--sogu-crew-header-offset,85px)!important;padding:5px!important}body.sogu-crew-page .sogu-crew-main .crew-chat-feed,body.sogu-crew-page .sogu-crew .crew-chat-feed{height:330px!important;max-height:330px!important}}

/* 2.2.5: stable scrolling and contextual replies */
body.sogu-crew-page .sogu-crew .crew-chat-feed{overflow-anchor:none!important;scroll-behavior:auto!important;isolation:isolate!important;}
body.sogu-crew-page .sogu-crew .crew-chat-bar{background:#111a27!important;isolation:isolate!important;}
.sogu-crew .crew-message-actions{display:flex;gap:14px;margin-top:7px;align-items:center}
.sogu-crew .crew-message-actions button{border:0;background:none;padding:3px 2px;color:#d9bb7b;font-size:12px;cursor:pointer;min-height:28px}
.sogu-crew .crew-message-actions button span{margin-left:4px}
.sogu-crew .crew-reply-reference{display:flex;flex-direction:column;gap:3px;max-width:100%;width:100%;text-align:left;border:0;border-left:3px solid #d7b774;border-radius:4px;background:#1c2a3b;padding:7px 10px;margin:5px 0 9px;color:#b7c6d8;font-size:12px;cursor:pointer}
.sogu-crew .crew-reply-reference strong{color:#e5c786;font-size:12px}.sogu-crew .crew-reply-reference span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.sogu-crew .crew-reply-highlight{background:rgba(222,189,119,.12);border-radius:8px}
.sogu-crew .crew-reply-draft{flex:0 0 100%;display:flex;justify-content:space-between;align-items:center;color:#e6c582;font-size:12px;background:#1b2a3a;padding:8px 10px;border-radius:8px}
.sogu-crew .crew-reply-draft[hidden]{display:none!important}.sogu-crew .crew-reply-cancel{border:0;background:none;color:#f3d595;font-size:22px;cursor:pointer}
.sogu-crew .crew-chat-compose>form{flex-wrap:wrap!important}
/* v2.3.0 compact emoji/sticker tray */
.crew-chat-compose .crew-ajax-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.crew-chat-compose .crew-ajax-form textarea{flex:1 1 55%;min-width:0}
.crew-picker-toggle{border:1px solid #bb9657;border-radius:12px;background:#172637;color:#eac77e;font-size:25px;min-width:44px;min-height:46px;cursor:pointer}
.crew-picker{margin:10px 0;padding:12px;background:#101c2b;border:1px solid #31465d;border-radius:16px}
.crew-picker[hidden],.crew-reply-alert[hidden]{display:none!important}
.crew-picker-tabs{display:flex;gap:8px;margin-bottom:10px}
.crew-picker-tabs button{border:1px solid #31465d;border-radius:9px;background:#142234;color:#cbd5e1;padding:8px 12px}
.crew-picker-tabs button.is-active{background:#28435b;color:#f4d18d;border-color:#bd9755}
.crew-picker-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;max-height:240px;overflow-y:auto}
.crew-picker-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:1px solid #31465d;border-radius:12px;background:#1b2b40;color:#e9f0f8;min-height:46px;cursor:pointer}
.crew-sticker{grid-column:span 2;min-height:92px;background:linear-gradient(145deg,#263b50,#111e30)}
.crew-sticker-glyph{font-size:26px;line-height:1.3}
.crew-sticker .crew-sticker-glyph{font-size:35px;animation:crew-sticker-bob 2.5s ease-in-out infinite}
.crew-sticker small{font-size:9px;letter-spacing:.08em;font-weight:800;color:#e9c47c;text-align:center}
@keyframes crew-sticker-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.crew-sticker .crew-sticker-glyph{animation:none}}
.crew-reply-alert button{background:#243b50;border:1px solid #bd9755;color:#f1d49a;border-radius:9px;padding:8px 12px;margin-bottom:8px}
@media(max-width:480px){.crew-picker-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.crew-picker-item{min-height:42px}.crew-sticker{grid-column:span 2}}

/* v2.3.2 custom SOGU image stickers */
.crew-sticker{padding:5px;min-height:90px;overflow:hidden;background:#0b1523}
.crew-sticker img{display:block;width:100%;height:85px;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}
.crew-message-sticker{display:inline-block;vertical-align:middle;width:auto;max-width:min(250px,90%);max-height:185px;height:auto;margin:5px 4px;object-fit:contain}
.crew-chat-bubble p:has(.crew-message-sticker){overflow-wrap:anywhere}

.crew-message-sticker{display:inline-block;max-width:min(240px,85%);max-height:180px;width:auto;height:auto;object-fit:contain;vertical-align:middle;margin:4px 0}

/* v2.3.16: compact Crew navigation, retain existing sticky header offset */
body.sogu-crew-page .sogu-crew .crew-quicknav{margin-top:0!important;margin-bottom:12px!important}
body.sogu-crew-page .sogu-crew .crew-chat-head{display:none!important}
@media(max-width:700px){body.sogu-crew-page .sogu-crew-main{padding-top:8px!important}body.sogu-crew-page .sogu-crew .crew-quicknav a{white-space:nowrap;font-size:clamp(10px,2.8vw,12px)!important;padding:11px 3px!important}}

/* v2.3.17: remove orphaned hero spacing and keep tabs in document flow. */
body.sogu-crew-page .sogu-crew-main{padding-top:0!important;}
body.sogu-crew-page .sogu-crew-main .sogu-crew{margin-top:0!important;}
body.sogu-crew-page .sogu-crew .crew-quicknav{margin-top:0!important;margin-bottom:8px!important;transform:none!important;}
body.sogu-crew-page .sogu-crew .crew-chat-shell{margin-top:0!important;}
body.sogu-crew-page .sogu-crew .crew-chat-feed{scroll-padding-top:12px;}
@media(max-width:700px){body.sogu-crew-page .sogu-crew-main{padding-top:0!important;padding-bottom:24px!important;}body.sogu-crew-page .sogu-crew .crew-quicknav{border-radius:12px!important;}}

/* v2.3.18: mobile page-wrapper and navigation geometry repair. */
body.sogu-crew-page :is(.site-main,.site-content,.content-area,.entry-content,.sogu-crew-main):has(> .sogu-crew),
body.sogu-crew-page :is(.site-main,.site-content,.content-area,.entry-content,.sogu-crew-main):has(.sogu-crew .crew-quicknav){padding-top:0!important;margin-top:0!important;min-height:0!important;}
body.sogu-crew-page .sogu-crew-main:before,body.sogu-crew-page .sogu-crew-main:after{content:none!important;display:none!important;}
body.sogu-crew-page .sogu-crew.crew-chat{padding-top:0!important;margin-top:0!important;}
body.sogu-crew-page .sogu-crew .crew-quicknav{position:sticky!important;top:var(--sogu-crew-header-offset,85px)!important;z-index:80!important;display:flex!important;margin:0 0 0!important;border-radius:13px 13px 0 0!important;box-shadow:none!important;}
body.sogu-crew-page .sogu-crew .crew-chat-shell{border-top:0!important;border-radius:0 0 16px 16px!important;}
body.sogu-crew-page .sogu-crew .crew-chat-bar{display:none!important;}
body.sogu-crew-page .sogu-crew #crew-lounge{scroll-margin-top:145px!important;}
@media(max-width:700px){body.sogu-crew-page .sogu-crew .crew-quicknav{top:var(--sogu-crew-header-offset,85px)!important;margin:0!important;padding:4px!important;}body.sogu-crew-page .sogu-crew.crew-chat{padding-top:0!important;}}

/* v2.3.19: prevent mobile tab overlay. Keep tabs in normal document flow;
   sticky positioning previously covered the history control and stickers. */
@media (max-width: 900px){
 body.sogu-crew-page .sogu-crew .crew-quicknav{
   position:relative!important;top:auto!important;bottom:auto!important;
   inset-block-start:auto!important;z-index:1!important;
   margin:0!important;transform:none!important;
 }
 body.sogu-crew-page .sogu-crew .crew-chat-shell{
   position:relative!important;z-index:0!important;
   overflow:hidden!important;
 }
 body.sogu-crew-page .sogu-crew .crew-history-controls{
   position:relative!important;top:auto!important;z-index:1!important;
 }
 body.sogu-crew-page .sogu-crew #crew-lounge{scroll-margin-top:12px!important;}
}

/* v2.3.20: give the chat more reading room without changing tab positioning. */
@media (max-width:900px){
 body.sogu-crew-page .sogu-crew .crew-chat-feed,
 body.sogu-crew-page .sogu-crew-main .crew-chat-feed{
   height:clamp(430px,58dvh,510px)!important;
   max-height:510px!important;
   overflow-y:auto!important;
   -webkit-overflow-scrolling:touch!important;
 }
}

/* v2.3.24 admin chart attachments */
.crew-image-upload{display:inline-flex;align-items:center;gap:4px;cursor:pointer;color:#d4bd87;font-weight:700;font-size:12px;padding:7px;border:1px solid #75654a;border-radius:8px;white-space:nowrap}.crew-image-selected{font-size:11px;color:#aab5c1;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crew-chart-link{display:block;max-width:320px;margin:7px 0 9px;text-decoration:none!important;border:1px solid #465467;border-radius:9px;overflow:hidden;background:#101b2a}.crew-chart-thumbnail{display:block;max-width:100%;width:auto;height:auto;max-height:180px;object-fit:contain;margin:auto}.crew-chart-link span{display:block;text-align:center;color:#e9cf91;font-size:11px;padding:6px 8px;background:#17283a}.crew-chart-link:hover span{text-decoration:underline}

/* v2.3.26: image viewer with persistent close control on desktop and mobile. */
body.crew-viewer-open{overflow:hidden!important}
.crew-image-viewer{position:fixed;inset:0;z-index:2147483646;background:rgba(0,8,18,.95);display:flex;align-items:center;justify-content:center;padding:72px 14px 24px;box-sizing:border-box}
.crew-image-viewer-img{display:block;max-width:100%;max-height:calc(100dvh - 100px);width:auto;height:auto;object-fit:contain;border-radius:6px}
.crew-image-viewer-close{position:absolute!important;top:max(12px,env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important;z-index:2147483647!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;padding:0!important;border:1px solid #60778a!important;border-radius:50%!important;background:#132a3b!important;color:#fff!important;font:normal 36px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:0 3px 15px #0009!important}
.crew-image-viewer-close:focus-visible{outline:3px solid #8de8d8!important;outline-offset:3px}

/* v2.3.28 compact Discord-style message reactions */
.crew-comment-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 0}.crew-reaction-chip{border:1px solid #31465b;background:#142638;color:#e7f3fc;border-radius:9px;padding:3px 8px;font-size:12px;cursor:pointer}.crew-reaction-chip.is-mine{border-color:#4ec8bd;background:#153c44}.crew-message-actions{position:relative}.crew-reaction-picker{position:absolute;z-index:30;bottom:100%;left:0;display:flex;flex-wrap:wrap;gap:3px;max-width:275px;background:#102438;border:1px solid #34506a;border-radius:11px;padding:7px;box-shadow:0 8px 24px #0005}.crew-reaction-choice{border:0;background:transparent;border-radius:7px;padding:5px;font-size:19px;cursor:pointer}.crew-reaction-choice:hover{background:#28465d}
