/* TWJ Step 8: JEFIT-inspired but authentic UNSEEN-linked community */
.twj8-community{display:grid;gap:11px;padding-bottom:22px;min-width:0}
.twj8-intro{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:5px 1px}
.twj8-intro h2{font-size:26px;line-height:1.15;margin:5px 0}
.twj8-intro p{font-size:12px;line-height:1.5;color:#acbfda;margin:6px 0}
.twj8-alert-btn{display:flex;align-items:center;gap:5px;padding:9px 10px;background:#182c4a;border:1px solid #436290;border-radius:12px;color:#bdd6fc;font-size:18px;min-height:42px}
.twj8-alert-btn span{font-size:11px;font-weight:800;background:#3763ad;color:white;border-radius:100px;padding:3px 7px}
.twj8-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding:5px 1px 9px;border-bottom:1px solid #34435a}
.twj8-tabs::-webkit-scrollbar{display:none}
.twj8-tabs button{font-size:12px;font-weight:850;white-space:nowrap;border-radius:25px;min-height:37px;padding:8px 13px;background:#1d2b41;border:1px solid #334968;color:#aac2ec;scroll-snap-align:start}
.twj8-tabs button.selected{background:#315eac;color:white;border-color:#5a84d0}
.twj8-community .card{margin:0!important;background:#151e2c;border:1px solid #37465e;border-radius:13px;padding:12px!important;min-width:0}
.twj8-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-size:14px;font-weight:800;min-height:41px}
.twj8-fold>summary::-webkit-details-marker{display:none}
.twj8-fold>summary small{font-size:10px;color:#a7bad6;font-weight:650;margin-left:auto}
.twj8-fold>summary:after{content:'⌄';font-size:20px;color:#aac7ef}
.twj8-fold[open]>summary:after{content:'⌃'}
.twj8-composer form{display:grid;gap:11px;border-top:1px solid #3a4a63;margin-top:9px;padding-top:12px}
.twj8-composetypes{display:flex;gap:6px;flex-wrap:wrap}
.twj8-composetypes label{display:flex;align-items:center;gap:5px;font-size:11px;padding:7px 9px;border:1px solid #455c7e;border-radius:9px}
.twj8-composetypes input{margin:0;accent-color:#71a5ff}
.twj8-textlabel{font-size:12px;color:#c3d4ec;font-weight:800}
.twj8-textlabel textarea{margin-top:6px;display:block;width:100%;border:1px solid #425777;background:#101928;color:#eef5ff;border-radius:10px;padding:10px;font-size:13px;resize:vertical}
.twj8-composer button.primary{min-height:43px;font-size:12px}
.twj8-composer .msg{font-size:11px;color:#ffc4b9}
.twj8-sub,.twj8-footer{font-size:10px;color:#a8b8d0;line-height:1.6;margin:6px 0}
.twj8-footer{text-align:center;padding:4px 10px}
.twj8-feedlabel{font-size:12px;font-weight:800;color:#c4d8f6;margin:0 2px 1px}
.twj8-post{display:grid;gap:12px}
.twj8-posttop{display:flex;align-items:center;gap:9px;min-width:0}
.twj8-avatar,.twj8-comment-avatar{height:40px;width:40px;min-width:40px;background:#315d9e;color:#ecf5ff;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:900}
.twj8-poster{flex:1;min-width:0;display:grid;gap:5px}
.twj8-poster strong{font-size:13px;overflow-wrap:anywhere;line-height:1.25}
.twj8-poster small{font-size:10px;color:#a5b9d6}
.twj8-follow,.twj8-contacts button{border:1px solid #4a73a9;background:#1f385b;border-radius:8px;color:#b5d1ff;min-height:35px;padding:6px 8px;font-size:10px;font-weight:800}
.twj8-owner{font-size:10px;color:#92c0ff}
.twj8-postbody{font-size:13px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;margin:0}
.twj8-linebreak{display:block;height:3px}
.twj8-workout-metrics{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#b9d1ef;background:#1e2a3e;border-radius:9px;padding:9px}
.twj8-poststats{display:flex;gap:10px;justify-content:space-between;font-size:10px;color:#a6b8cf}
.twj8-postactions{display:flex;border-top:1px solid #33465f;padding-top:7px;gap:3px}
.twj8-postactions button{border:0;background:transparent;color:#b5c7e2;font-size:11px;min-height:37px;flex:1;padding:5px}
.twj8-postactions button.is-on,.twj8-comment button.is-on{color:#8dbdff;font-weight:800}
.twj8-thread{display:grid;gap:10px;border-top:1px solid #3a4b63;padding-top:11px}
.twj8-comment{display:flex;gap:9px;align-items:flex-start}
.twj8-comment.is-reply{padding-left:30px}
.twj8-comment-avatar{height:29px;width:29px;min-width:29px;font-size:11px}
.twj8-comment>div{min-width:0;flex:1;background:#202d40;border-radius:10px;padding:9px}
.twj8-comment strong{font-size:11px}
.twj8-comment small{font-size:9px;color:#abbdd7}
.twj8-comment p{font-size:11px;line-height:1.5;overflow-wrap:anywhere;margin:5px 0}
.twj8-comment button{border:0;background:none;color:#b3cae9;font-size:10px;margin:0 10px 0 0;padding:5px 0;min-height:25px}
.twj8-composecomment{display:flex;gap:7px;align-items:center}
.twj8-composecomment input{flex:1;min-width:0;min-height:43px;border-radius:9px;background:#111b2b;color:#fff;border:1px solid #465b7a;font-size:12px;padding:8px}
.twj8-composecomment button{flex-shrink:0;min-height:43px;padding:8px 12px;font-size:11px}
.twj8-replyhint{font-size:10px;color:#b6cef4}
.twj8-replyhint button{background:none;border:0;color:#fff;margin-left:8px;font-size:17px}
.twj8-contacts,.twj8-alertlist{display:grid;margin-top:8px}
.twj8-contacts>div,.twj8-alertlist>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #32455f}
.twj8-contacts strong{font-size:11px;overflow-wrap:anywhere}
.twj8-contacts button{flex-shrink:0}
.twj8-alertlist>div>span{display:grid;gap:5px;font-size:11px;min-width:0}
.twj8-alertlist small{font-size:10px;color:#a9bfdb}
.twj8-alertlist button{font-size:10px;flex-shrink:0;padding:7px;background:#253d61;color:#c3dcff;border:1px solid #4b6b96;border-radius:8px}
.twj8-articleintro{display:grid;gap:5px;padding:3px}
.twj8-articleintro strong{font-size:13px}
.twj8-articleintro small{font-size:10px;color:#a3bbd8}
.twj8-article{display:grid;gap:8px}
.twj8-article small,.twj8-reader small{font-size:10px;color:#a6bedb}
.twj8-article h3,.twj8-reader h3,.twj8-meal h3{font-size:18px;margin:0}
.twj8-article p,.twj8-meal p{font-size:12px;line-height:1.6;color:#bfd0e5;margin:0}
.twj8-article button,.twj8-reader button{justify-self:start;border:0;background:none;color:#9bc4ff;font-size:12px;font-weight:800;padding:7px 0}
.twj8-reader{display:grid;gap:14px}
.twj8-articlebody{font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.twj8-reader a,.twj8-meal-link{color:#9ac7ff;font-size:12px;font-weight:800}
.twj8-meal{display:grid;gap:13px}
.twj8-empty{text-align:left;padding:18px!important}
.twj8-empty h3{margin:0 0 6px;font-size:15px}
.twj8-empty p{font-size:12px;color:#aec0da;line-height:1.6}
.twj8-more{width:100%;min-height:44px;font-size:12px}
.twj8-error{font-size:11px;color:#ffd1cc;border:1px solid #a66770;border-radius:9px;padding:9px}
@media(max-width:380px){.twj8-intro h2{font-size:23px}.twj8-tabs button{padding:8px 11px;font-size:11px}.twj8-postactions button{font-size:10px}.twj8-contacts strong{font-size:10px}}
