/* Shared frontend community screens and main-page integration. */
/* Board pages own their layout; the drawing screen's generic main/aside grid
   must not squeeze the whole board into its narrow right-hand column. */
body > main.community-main{display:block;min-width:0;box-sizing:border-box}
.community-main > .community-heading{min-width:0}
.community-main > .community-layout{width:100%;min-width:0}
.community-layout > .member-panel{display:block;min-width:0}
.community-layout > .community-board{min-width:0}
@media(max-width:760px){.community-layout > .community-board{order:-1}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.community-main{font-size:16px}.community-main button,.community-main input,.community-main select,.community-main textarea,.auth-card button,.auth-card input{font:inherit}.community-main input,.community-main textarea,.community-main select{width:100%;padding:11px 12px;color:#effbf8;background:#061f23;border:1px solid #337e70;border-radius:4px;min-width:0}.community-main textarea{min-height:180px;resize:vertical;line-height:1.6}.community-main button,.community-primary{min-height:42px;padding:10px 17px;border:1px solid #58bba3;border-radius:4px;background:linear-gradient(#247b64,#15513f);color:white;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}.community-main button:disabled,.auth-card button:disabled{opacity:.5;cursor:wait}.member-actions button{border:1px solid #50987f;border-radius:3px;background:#13392f;color:#d8f5e8;font-size:12px;padding:6px 10px;cursor:pointer}.member-actions .signed-user{font-size:12px;color:#d3efdf;background:#071f22bb;padding:6px 10px;border-radius:3px}.community-board-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border-bottom:1px solid #285f58}.community-board-head h2{font-size:21px}.community-board-head p{margin:9px 0 0;color:#9fbbb3;font-size:14px;line-height:1.65}.community-primary{white-space:nowrap}.community-eyebrow{font-size:12px;color:#70d9b6;letter-spacing:1px;display:block;margin-bottom:13px}.community-main .member-copy{font-size:14px}.community-demo-note{margin:20px 0;padding:14px;border:1px solid #486a56;background:#18342b;color:#c3d5b7;font-size:13px;line-height:1.65}.community-admin-button{display:block;color:#75dab8;font-size:14px;margin-top:15px}.public-search{display:flex;gap:9px;align-items:center;padding:18px 24px;border-bottom:1px solid #285f58}.public-search input{flex:1}.public-search select{max-width:130px}.public-search button{background:#123d36;font-weight:400}.community-compose{margin:22px;padding:22px;border:1px solid #54b796;border-radius:6px;background:#082724}.community-compose[hidden]{display:none}.community-compose h3{margin:0 0 19px;font-size:18px}.community-compose label{display:grid;gap:7px;margin-bottom:16px;color:#bfdbd0;font-size:14px}.community-compose .form-actions{display:flex;justify-content:flex-end;gap:10px}.public-policy{font-size:13px;color:#99c6af}.public-post-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;border-bottom:1px solid #285c53}.public-post-row:hover{background:#103c37}.public-post-row>div{min-width:0}.public-post-row strong{display:block;font-size:17px;color:#f4fff8;margin-top:9px;overflow-wrap:anywhere}.public-post-row p{font-size:14px;color:#adc7bc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50vw;margin:7px 0}.public-post-row small{font-size:12px;color:#88ab9c}.public-post-row>span{color:#70cdae;font-size:13px;white-space:nowrap}.community-status{display:inline-flex;align-items:center;font-size:12px;padding:3px 9px;border:1px solid #477a61;color:#bce0c7;border-radius:15px}.community-status.pending,.community-status.review{border-color:#967344;color:#f7d69d}.community-status.hidden{border-color:#92616c;color:#efb3c2}.community-pin{margin-left:8px;font-size:12px;color:#9ecfb7}.community-empty{padding:40px 24px;text-align:center;color:#adccbd;font-size:14px}.community-empty h2,.community-empty h3{font-size:18px}.community-empty a{color:#73deb6}.public-post-detail{padding:28px}.public-post-meta{display:flex;gap:12px;align-items:center;font-size:13px;color:#99bbaa}.public-post-detail h2{font-size:25px;line-height:1.5;margin-top:18px;overflow-wrap:anywhere}.public-post-summary{font-size:15px;color:#b0cbbb}.public-post-content{font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;min-height:180px;padding:22px 0;border-top:1px solid #356251;margin-top:20px}.public-reply{padding:21px;background:#123a2e;border:1px solid #46785c;border-radius:5px;margin-top:20px}.public-reply strong{color:#80dbae}.public-reply p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}.public-post-actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px;border-top:1px solid #315944;padding-top:20px;font-size:14px}.public-post-actions a{color:#80d9b5}.public-post-actions button{font-size:13px;background:#35242a;border-color:#8b5c62}.auth-card>p{font-size:14px;line-height:1.6}.auth-form label{font-size:14px}.auth-form input{min-height:46px}.auth-foot{font-size:14px}.auth-check{font-size:13px!important}.error-message,#public-error{color:#ffbcc2;font-size:14px}.admin-demo-link{font-size:12px;color:#98cab6!important;margin-left:15px}.community-main+footer{flex-wrap:wrap;gap:12px}.watch-grid.single-panel{grid-template-columns:1fr}.watch-grid [hidden]{display:none!important}.watch-grid .community-empty{width:290px;white-space:normal}.scam-watch-track,.member-watch-track{animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate}.scam-watch-window:focus-within .scam-watch-track,.member-watch-window:focus-within .member-watch-track{animation-play-state:paused!important}@keyframes communityHorizontal{to{transform:translateX(var(--community-shift,0px))}}@keyframes communityVertical{to{transform:translateY(var(--community-shift,0px))}}#community-toast{position:fixed;z-index:100;bottom:22px;right:22px;max-width:calc(100vw - 32px);padding:15px 20px;border:1px solid #56b893;background:#153b2e;color:#e0ffe9;font-size:14px;border-radius:5px;box-shadow:0 10px 40px #0006;opacity:0;pointer-events:none;transition:opacity .2s}#community-toast.show{opacity:1}#community-toast.error{background:#41272d;border-color:#ad6774}
@media(max-width:760px){.community-board-head{align-items:start;padding:18px;gap:12px}.community-board-head h2{font-size:19px}.community-board-head p{font-size:13px}.community-primary{padding:9px 12px}.public-search{padding:15px;flex-wrap:wrap}.public-search input{flex-basis:100%}.public-search select{flex:1;max-width:none}.public-post-row{padding:18px}.public-post-row>span{display:none}.public-post-row p{max-width:70vw}.public-post-row strong{font-size:16px}.public-post-detail{padding:20px}.public-post-detail h2{font-size:21px}.public-post-meta{flex-wrap:wrap}.community-compose{margin:14px;padding:16px}.admin-demo-link{margin-left:0}.public-post-content{min-height:130px}.member-actions .signed-user{max-width:95px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.community-main .member-panel{padding:18px}.auth-form button{min-height:45px}}
@media(prefers-reduced-motion:reduce){.scam-watch-track,.member-watch-track{animation:none!important}.scam-watch-window{overflow-x:auto}.member-watch-window{overflow-y:auto}}

/* Easy demo entry stays separate from the regular member form. */
.easy-test-account{margin:24px 0;padding:20px;border:1px solid #56c4a6;border-radius:8px;background:linear-gradient(135deg,#12483f,#0a2d2c);box-shadow:inset 0 1px 0 #a2ffe51a}
.easy-test-account .community-eyebrow{margin-bottom:14px;letter-spacing:.04em;font-weight:700}
.easy-test-account dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 18px}
.easy-test-account dl>div{min-width:0}
.easy-test-account dt{font-size:12px;color:#b2d2c9;margin-bottom:5px}
.easy-test-account dd{margin:0;color:#fff;font-size:24px;font-weight:750;letter-spacing:.04em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.easy-test-account button{width:100%;min-height:48px;padding:12px;border:1px solid #98ebce;border-radius:5px;background:#9ae6cd;color:#092e28;font-weight:750;cursor:pointer;line-height:1.5}
.easy-test-account button:hover{background:#b8f4e0}
.easy-test-account button:focus-visible{outline:3px solid #e8fff6;outline-offset:3px}
.easy-test-account small{display:block;margin-top:12px;color:#bad3cb;font-size:12px;line-height:1.6;text-align:center}
.easy-test-account>p{font-size:14px;line-height:1.7;color:#ffccd0;margin:0}
@media(max-width:480px){.easy-test-account{padding:16px}.easy-test-account dd{font-size:21px}.easy-test-account button{font-size:14px}}

/* Writing and watching share the same home surface. */
.home-write-panel{margin:24px 0 18px;padding:26px;border:1px solid #409d8d;border-top:3px solid #77debd;border-radius:8px;background:linear-gradient(135deg,#113c3b,#09292c);color:#e9fcf5;scroll-margin-top:20px}
.home-write-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.home-write-heading .community-eyebrow{margin-bottom:7px}
.home-write-heading h2{margin:0;font-size:24px;color:#f1fff9}
.home-write-heading p{margin:8px 0 0;font-size:14px;line-height:1.7;color:#b4d5cb}
.home-write-heading>a{font-size:14px;color:#baf3df;white-space:nowrap}
.compose-session{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 16px;margin-bottom:20px;background:#051e2299;border:1px solid #37766c;border-radius:5px;font-size:14px;line-height:1.6;color:#c5e3d9}
.compose-session strong{color:#c5f6e1}.compose-session a{color:#a8e9d4;text-decoration:underline;text-underline-offset:3px}
.compose-session button,.home-write-panel button{font:inherit;cursor:pointer}
.compose-session button{border:1px solid #7fdbb9;border-radius:4px;background:#205b4a;padding:8px 13px;color:#effff5;font-weight:700;min-height:42px}
.home-compose-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.home-compose-fields{display:grid;gap:16px}.home-compose-selects{display:grid;grid-template-columns:1.15fr 1fr;gap:14px}
.home-write-panel label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;min-width:0;color:#d2e8df}
.home-write-panel input,.home-write-panel select,.home-write-panel textarea{font:inherit;font-weight:400;font-size:16px;width:100%;min-width:0;border:1px solid #54867b;border-radius:5px;background:#f2f9f6;color:#112c2b;padding:12px;line-height:1.5;box-sizing:border-box}
.home-write-panel input::placeholder,.home-write-panel textarea::placeholder{color:#5c7670;opacity:1}
.home-write-panel textarea{flex:1;min-height:200px;resize:vertical}.home-write-panel .field-optional{display:inline;color:#a1bfb4;font-size:12px;font-weight:400}
.home-write-panel input:focus,.home-write-panel select:focus,.home-write-panel textarea:focus{outline:2px solid #81e8c3;outline-offset:2px}
.home-write-policy{font-size:14px;color:#a7d9c9;line-height:1.7;margin:18px 0 0}
.home-write-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:18px;border-top:1px solid #32635b;margin-top:18px}
.home-write-actions>span{font-size:12px;color:#a4c4b8;flex:1}.home-write-actions>button{min-height:46px;border:1px solid #629e89;border-radius:5px;background:#143e35;color:#e6fff4;padding:10px 17px;font-size:14px;font-weight:700}
.home-write-actions>.community-primary{background:#9ae6cd;color:#092e28;border-color:#b1f4da}
.home-write-panel button:disabled,.compose-session button:disabled{opacity:.55;cursor:wait}
#home-write-status:empty,#home-write-error:empty{display:none}#home-write-status{margin-top:18px;padding:16px;border:1px solid #64bc9b;border-radius:5px;background:#154937;font-size:14px;line-height:1.8;color:#e0ffef}#home-write-status a{color:#bef3d8;text-decoration:underline;margin-left:8px}
.watch-tools{display:flex;align-items:center;gap:10px;padding:11px 16px;border-bottom:1px solid #80565566;background:#1b1317;font-size:13px;color:#e2b5b5}
.member-watch .watch-tools{background:#21190f;color:#eac591;border-color:#8a693955}
.watch-tools>span{margin-right:auto}.watch-tools button,.watch-tools a{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:7px 13px;border:1px solid #ad7878;border-radius:4px;color:#f9e6e6;background:#3b2229;font:inherit;cursor:pointer;margin:0}
.watch-tools a{background:#efc5ba;color:#391a1e;font-weight:800;border-color:#ffd8ca}.member-watch .watch-tools a{background:#f0ca88;color:#35230d;border-color:#ffe0a6}.member-watch .watch-tools button{background:#3e2e19;color:#ffe6bd;border-color:#a18456}
.watch-tools button:disabled{opacity:.5;cursor:default}.watch-panel{scroll-margin-top:20px}.watch-post-copy{min-width:0}.watch-post-copy strong{font-size:16px;white-space:normal;overflow-wrap:anywhere;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.watch-post-copy small{font-size:14px;line-height:1.7;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.watch-author{display:block;color:#c6a7a6;font-size:12px;line-height:1.5;margin-top:12px}.member-row .watch-author{color:#d3b992;margin-top:6px}.member-row .watch-post-copy small{-webkit-line-clamp:2}.member-row{min-height:105px}.member-row>em{max-width:65px;overflow-wrap:anywhere;font-size:12px}.recently-posted{border-color:#ffdf9a!important;box-shadow:inset 0 0 0 1px #ffdf9a,0 0 18px #ffd48126!important}.recently-posted .rank,.recently-posted .member-no{font-size:12px;background:#eaca89;color:#2a190f}
.watch-foot,.member-watch .watch-foot{height:auto;min-height:50px;font-size:12px;line-height:1.6;padding:14px 16px}.post-next-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:22px;font-size:14px;color:#b2edcd}
@media(max-width:900px){.home-compose-grid{grid-template-columns:1fr;gap:18px}.home-write-panel textarea{min-height:180px}}
@media(max-width:600px){.home-write-panel{padding:18px 14px}.home-write-heading{align-items:flex-start;gap:12px}.home-write-heading h2{font-size:22px}.home-write-heading>a{font-size:12px;white-space:normal;max-width:86px}.home-compose-selects{grid-template-columns:1fr}.compose-session{padding:12px;gap:10px}.compose-session>span{width:100%}.home-write-actions>span{flex-basis:100%}.home-write-actions>button{flex:1;padding:10px;font-size:14px}.watch-tools{padding:10px 12px}.watch-tools a,.watch-tools button{padding:8px 10px;font-size:14px}.member-row{grid-template-columns:38px minmax(0,1fr);padding:12px 10px}.member-row>em{grid-column:2;max-width:none}.member-row .member-no{width:34px;height:34px}.watch-post-copy strong{font-size:15px}.watch-post-copy small{font-size:14px}.watch-head a{font-size:13px}}

/* Native scroll makes automatic and manual movement share one position. */
.scam-watch-window.manual-watch{overflow-x:auto;overflow-y:hidden;cursor:grab;scrollbar-width:thin;scrollbar-color:#be7d7c #27171c}
.member-watch-window.manual-watch{overflow-y:auto;overflow-x:hidden;cursor:grab;scrollbar-width:thin;scrollbar-color:#c89c5d #281e12}
.manual-watch{scroll-behavior:auto;user-select:none;-webkit-user-select:none;touch-action:auto;overflow-anchor:none}
.manual-watch .scam-watch-track,.manual-watch .member-watch-track{animation:none!important;transform:none!important}
.manual-watch.is-dragging,.manual-watch.is-dragging a{cursor:grabbing!important}
.manual-watch:focus-visible{outline:2px solid #ffe1a5;outline-offset:-3px}
.manual-watch::-webkit-scrollbar{width:8px;height:8px}.manual-watch::-webkit-scrollbar-track{background:#24191b}.manual-watch::-webkit-scrollbar-thumb{background:#a67b67;border:2px solid #24191b;border-radius:8px}
.watch-arrival{padding:12px 16px;background:linear-gradient(90deg,#f7dfaa,#d9b66e);color:#372511;font-size:14px;line-height:1.6;font-weight:800;border-bottom:1px solid #ffe6af}
.watch-arrival[hidden]{display:none}.post-new-label{display:inline-block!important;width:max-content;max-width:100%;padding:4px 9px;border-radius:4px;background:#ffe2a1;color:#402b14;font-size:12px;font-weight:800;line-height:1.4;margin-bottom:8px}
.recently-posted{border:2px solid #ffe5ae!important;box-shadow:inset 0 0 0 1px #ffe3a966,0 0 20px #f2cb7545!important;animation:newPostGlow 2.5s ease-in-out 3}
.recently-posted .watch-post-copy>strong{font-size:18px;color:#fff7e1}.post-arrived{border-color:#ffe5a6!important}
@keyframes newPostGlow{0%,100%{box-shadow:inset 0 0 0 1px #ffe3a966,0 0 12px #f2cb7533}50%{box-shadow:inset 0 0 0 1px #fff0cbbb,0 0 28px #f2cb7577}}
#post-success{position:fixed;z-index:150;right:24px;bottom:24px;display:grid;grid-template-columns:54px minmax(0,1fr) 28px;gap:16px;width:min(470px,calc(100vw - 32px));padding:24px;box-sizing:border-box;border:1px solid #f2d598;border-top:4px solid #ffe1a0;border-radius:12px;background:linear-gradient(135deg,#164f44,#082d2e);color:#f1fff6;box-shadow:0 18px 70px #0009,0 0 30px #edc97b26}
#post-success[hidden]{display:none}.success-seal{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:linear-gradient(#ffebba,#d7ad5c);color:#29432a;font-size:30px;font-weight:800}
.success-copy{min-width:0}.success-kicker{display:block;font-size:12px;letter-spacing:.07em;font-weight:800;color:#fce1a4;margin-bottom:7px}.success-copy h2{font-size:24px;line-height:1.3;margin:0 0 10px;color:#fff9e7}.success-copy>strong{display:block;font-size:17px;line-height:1.6;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.success-copy p{font-size:14px;line-height:1.7;color:#c2e3d5;margin:10px 0 14px}.success-copy a{font-size:14px;font-weight:700;color:#ffe2a4;text-decoration:underline;text-underline-offset:4px}
#post-success>button{align-self:start;width:28px;height:28px;border:0;background:transparent;color:#e4eee5;font-size:24px;line-height:1;cursor:pointer;border-radius:4px}#post-success>button:focus-visible{outline:2px solid #ffe2a4}
.success-enter{animation:postSuccessEnter .35s ease-out both}@keyframes postSuccessEnter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){#post-success{right:12px;bottom:12px;width:calc(100vw - 24px);padding:18px 14px;gap:12px;grid-template-columns:42px minmax(0,1fr) 24px}.success-seal{width:42px;height:42px;font-size:25px}.success-copy h2{font-size:21px}.success-copy>strong{font-size:16px}.watch-arrival{padding:10px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.recently-posted,.success-enter{animation:none!important}}
