/* forum-ui.css — Forums feed, Create Post, Post page (shared by forums.html and the worker-rendered /post/ page) */
.fm{max-width:1180px;width:100%;margin:0 auto;padding:22px 36px 70px}
/* pinned */
.fm-pins{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fm-pin{border:1px solid var(--vx-bd-e3e3e3,#e3e3e3);border-radius:18px;padding:16px 18px 14px;background:var(--vx-bg-ffffff,#fff);min-width:0}
.fm-pin .pn{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--vx-tx-555555,#555)}
.fm-dot{width:12px;height:12px;border-radius:3px;background:var(--vx-red);display:inline-grid;place-items:center}
.fm-dot::after{content:"";width:3px;height:3px;border-radius:50%;background:var(--vx-bg-ffffff,#fff)}
.fm-pin h3{font-size:22px;font-weight:500;color:var(--vx-tx-3a3a3a,#3a3a3a);margin:12px 0 8px;line-height:1.25}
.fm-pin p{font-size:13.5px;line-height:1.55;color:var(--vx-tx-9a9a9a,#9a9a9a);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fm-acts{display:flex;align-items:center;gap:18px;font-size:13.5px;color:var(--vx-tx-7f7f7f,#7f7f7f);margin-top:14px}
.fm-acts>span,.fm-acts>button{display:inline-flex;align-items:center;gap:6px}
.fm-acts svg{width:17px;height:17px;stroke-width:1.7}
/* tabs */
.fm-tabs{display:flex;align-items:center;gap:30px;margin-top:26px;overflow-x:auto;scrollbar-width:none}
.fm-tabs::-webkit-scrollbar{display:none}
.fm-tab{font-size:15px;color:var(--vx-tx-8f8f8f,#8f8f8f);padding:6px 0 7px;border-bottom:2px solid transparent;white-space:nowrap}
.fm-tab.on{color:var(--vx-tx-2f2f2f,#2f2f2f);font-weight:500;border-color:var(--vx-red)}
.fm-new{margin-left:auto;font-size:15px;font-weight:500;color:var(--vx-tx-2f2f2f,#2f2f2f);white-space:nowrap;padding:6px 0}
/* post rows */
.fp{padding:22px 0 18px;border-bottom:1px solid var(--vx-bd-e9e9e9,#e9e9e9);cursor:pointer;position:relative}
.fp-h{display:flex;align-items:center;gap:12px}
.fp-av,.av.avr{width:36px;height:36px;border-radius:10px;overflow:hidden;display:inline-grid;place-items:center;color:#fff;font-weight:600;font-size:15px;background:#bf0016;flex:none;position:relative}
.fp-m{font-size:12.5px;font-weight:500;color:var(--vx-tx-707070,#707070);line-height:1.45;min-width:0}
.fp-u{display:flex;align-items:center;gap:5px;color:var(--vx-tx-7f7f7f,#7f7f7f)}
.fp-u img,.tick{width:15px;height:15px;display:inline-block}
.fp-t{font-size:22px;font-weight:500;color:var(--vx-tx-3a3a3a,#3a3a3a);margin:14px 0 6px;line-height:1.3;overflow-wrap:anywhere}
.fp-d{font-size:14.5px;line-height:1.6;color:var(--vx-tx-5f5f5f,#5f5f5f);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.fp .fm-acts{margin-top:14px}
.fp .fm-acts button{color:inherit}
.fp .fm-acts .on{color:var(--vx-red)}
.fp .fm-acts .on svg{fill:var(--vx-red);stroke:var(--vx-red)}
.fp-dots{position:absolute;right:0;top:20px;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--vx-tx-9f9f9f,#9f9f9f)}
.fp-dots:hover{background:var(--vx-bg-f5f5f5,#f5f5f5)}
.fm-msg{padding:40px 0;color:var(--vx-tx-8f8f8f,#8f8f8f);font-size:15px;text-align:center}
.fm-menu{position:fixed;z-index:99999;min-width:150px;background:var(--vx-bg-ffffff,#fff);border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:14px;box-shadow:0 12px 32px #0000001a;padding:6px}
.fm-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:9px;font-size:14px;color:var(--vx-tx-4f4f4f,#4f4f4f);text-align:left;white-space:nowrap}
.fm-menu button:hover{background:var(--vx-bg-f5f5f5,#f5f5f5)}.fm-menu .dng{color:var(--vx-red)}
.fm-menu .ask{padding:8px 12px 4px;font-size:13px;color:var(--vx-tx-6f6f6f,#6f6f6f)}
.fm-menu .row{display:flex;gap:8px;padding:6px 4px 4px}
.fm-menu .row button{justify-content:center;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5)}
.fm-menu .row .sure{background:var(--vx-red);color:#fff;border-color:var(--vx-red)}
/* create */
.fc{display:flex;gap:44px;padding:36px 44px 70px;align-items:flex-start;width:100%}
.fc-main{flex:1;min-width:0;max-width:700px}
.fc-main h2{font-size:22px;font-weight:400;display:flex;align-items:center;gap:8px;margin-bottom:26px;color:var(--vx-tx-2f2f2f,#2f2f2f)}
.fc-in,.fc-box{border:1px solid var(--vx-bd-e3e3e3,#e3e3e3);border-radius:16px;background:var(--vx-bg-ffffff,#fff);width:100%}
.fc-in{height:60px;padding:0 20px;font:400 17px Poppins,sans-serif;color:var(--vx-tx-1f1f1f,#1f1f1f);outline:0;display:block}
.fc-box{margin-top:14px;padding:0}
.fc-box textarea{display:block;width:100%;min-height:240px;max-height:520px;border:0;outline:0;resize:none;background:transparent;padding:18px 20px;font:400 15px/1.65 Poppins,sans-serif;color:var(--vx-tx-1f1f1f,#1f1f1f);border-radius:16px}
.fc-in::placeholder,.fc-box textarea::placeholder{color:var(--vx-tx-8f8f8f,#8f8f8f)}
.fc-tools{display:inline-flex;gap:4px;padding:6px 10px;border:1px solid var(--vx-bd-e3e3e3,#e3e3e3);border-top:0;border-radius:0 0 16px 16px;margin-left:0}
.fc-tools button{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;color:var(--vx-tx-6f6f6f,#6f6f6f)}
.fc-tools button:hover{background:var(--vx-bg-f5f5f5,#f5f5f5)}
.fc-tools svg{width:19px;height:19px;stroke-width:1.7}
.fc-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.fc-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 12px;border-radius:999px;background:var(--vx-bg-f3f3f3,#f3f3f3);font-size:13px;color:var(--vx-tx-4f4f4f,#4f4f4f)}
.fc-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-chip button{color:var(--vx-tx-8f8f8f,#8f8f8f);font-size:16px;line-height:1}
.fc-btns{display:flex;gap:12px;margin-top:26px}
.fc-pub{height:44px;padding:0 28px;border-radius:12px;background:var(--vx-red);color:#fff;font-size:15px;font-weight:500;display:inline-flex;align-items:center;gap:8px}
.fc-pub:disabled{opacity:.6;cursor:default}
.fc-del{height:44px;padding:0 24px;border-radius:12px;border:1.5px solid #4f4f4f;background:var(--vx-bg-ffffff,#fff);font-size:15px;display:inline-flex;align-items:center;gap:8px;color:var(--vx-tx-2f2f2f,#2f2f2f)}
.fc-btns svg{width:17px;height:17px}
/* side card (create + post) */
.side{width:340px;position:sticky;top:84px;flex:none}
.side .card{border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:22px;background:var(--vx-bg-ffffff,#fff);padding:28px 28px 26px}
.side h4{font-size:24px;font-weight:600;line-height:1.25;color:var(--vx-tx-1f1f1f,#1f1f1f)}
.side p.s{font-size:15px;color:var(--vx-tx-7f7f7f,#7f7f7f);line-height:1.55;margin-top:8px}
.stat{display:flex;margin:24px 0 22px}.stat div{flex:1}.stat div+div{border-left:1px solid var(--vx-bd-dcdcdc,#dcdcdc);padding-left:22px}
.stat b{font-size:30px;font-weight:600;display:block;line-height:1.1;color:var(--vx-tx-1f1f1f,#1f1f1f)}.stat span{font-size:14px;color:var(--vx-tx-bebebe,#bebebe)}
.redb{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border-radius:999px;background:var(--vx-red);color:#fff;font-size:17px;font-weight:500}
.redb svg{width:18px;height:18px}
/* ---- post page ---- */
.wrap{display:flex;gap:44px;padding:30px 44px 90px;max-width:1280px;margin:0 auto;width:100%;align-items:flex-start}
.main{flex:1;min-width:0;max-width:760px}
.i{flex:none;display:inline-block;vertical-align:middle}
.hdr{display:flex;align-items:center;gap:14px}
.back{width:34px;height:40px;border-radius:9px;background:var(--vx-bg-efefef,#efefef);display:grid;place-items:center;color:var(--vx-tx-1f1f1f,#1f1f1f);flex:none}
.av{border-radius:50%;display:inline-grid;place-items:center;color:#fff;background:#1f2a44;font-weight:600;flex:none;overflow:hidden;position:relative}
.av.avr{width:auto;height:auto;border-radius:11px}
.hm{font-size:14.5px;font-weight:500;color:var(--vx-tx-6f6f6f,#6f6f6f);line-height:1.45;min-width:0}
.hu{display:flex;align-items:center;gap:5px}
h1{font-size:27px;line-height:1.3;font-weight:500;margin:22px 0 12px;color:var(--vx-tx-2f2f2f,#2f2f2f);overflow-wrap:anywhere}
.desc{font-size:16px;line-height:1.75;color:var(--vx-tx-4f4f4f,#4f4f4f);white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:16px}
.pimgs{display:flex;flex-direction:column;gap:12px;margin:6px 0 16px}
.pimgs a{display:block;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:16px;overflow:hidden;background:var(--vx-bg-fafafa,#fafafa)}
.pimgs img{display:block;max-width:100%;max-height:640px;margin:0 auto}
.files{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 16px}
.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:12px;padding:8px 14px;font-size:14px;font-weight:500;color:var(--vx-tx-4f4f4f,#4f4f4f);background:var(--vx-bg-ffffff,#fff);max-width:100%}
.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar{display:flex;align-items:center;gap:10px;margin:18px 0 18px;color:var(--vx-tx-6f6f6f,#6f6f6f);font-size:15px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 16px;border-radius:12px;background:var(--vx-bg-f3f3f3,#f3f3f3);color:var(--vx-tx-6f6f6f,#6f6f6f);font-size:15px}
.pill .i{cursor:pointer}.pill .i.on{fill:var(--vx-red);stroke:var(--vx-red);color:var(--vx-red)}
.note{border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:12px;padding:11px 18px;margin-bottom:24px;font-size:14px;color:var(--vx-tx-7f7f7f,#7f7f7f);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch{display:flex;justify-content:space-between;align-items:center;margin:8px 0 22px;position:relative}
.ch h2{font-size:19px;font-weight:600;color:var(--vx-tx-1f1f1f,#1f1f1f)}.ch h2 em{font-style:normal;color:var(--vx-tx-9f9f9f,#9f9f9f);font-weight:400}
.sort{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--vx-tx-6f6f6f,#6f6f6f);border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:10px;padding:7px 12px}
.sort b{color:var(--vx-tx-1f1f1f,#1f1f1f);font-weight:600}
.dd{display:none;position:absolute;right:0;top:46px;width:170px;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:14px;background:var(--vx-bg-ffffff,#fff);box-shadow:0 12px 32px #0000001a;padding:6px;z-index:5}
.dd.open{display:block}
.dd button{display:flex;justify-content:space-between;width:100%;padding:9px 12px;border-radius:9px;font-size:14px;color:var(--vx-tx-4f4f4f,#4f4f4f);text-align:left}
.dd button.on{background:var(--vx-bg-f5f5f5,#f5f5f5);color:var(--vx-tx-1f1f1f,#1f1f1f);font-weight:600}
.cm{display:flex;gap:12px;margin-bottom:20px}
.cm .col{flex:1;min-width:0}
.mh{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:4px;flex-wrap:wrap}
.mh .un{font-weight:600;color:var(--vx-tx-1f1f1f,#1f1f1f)}.mh time{color:var(--vx-tx-aaaaaa,#aaa);font-size:13px}.mh .d{width:3px;height:3px;border-radius:50%;background:var(--vx-bg-cccccc,#ccc)}
.mh .ed{color:var(--vx-tx-aaaaaa,#aaa);font-size:13px}
.mb{font-size:15px;line-height:1.65;color:var(--vx-tx-3f3f3f,#3f3f3f);white-space:pre-wrap;overflow-wrap:anywhere}
.cimgs{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.cimgs img{display:block;max-width:100%;max-height:320px;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:14px}
.ma{display:flex;gap:6px;align-items:center;margin:4px 0 0;font-size:13px;color:var(--vx-tx-8f8f8f,#8f8f8f);font-weight:500}
.ma button{display:inline-flex;gap:6px;align-items:center;padding:5px 8px 5px 0;margin-right:8px;color:var(--vx-tx-8f8f8f,#8f8f8f);font-size:13px;font-weight:500}
.ma button:hover,details.rep summary:hover{color:var(--vx-tx-4f4f4f,#4f4f4f)}
details.rep{margin-top:2px}
details.rep summary{list-style:none;cursor:pointer;display:inline-flex;color:var(--vx-tx-9a9a9a,#9a9a9a);font-size:13px;padding:4px 0}
details.rep summary::-webkit-details-marker{display:none}
details.rep summary span{display:inline-flex;align-items:center;gap:6px}
details.rep .ho{display:none}details.rep[open]>summary .ho{display:inline-flex}details.rep[open]>summary .vo{display:none}
details.rep[open]>summary .ho .i{transform:rotate(180deg)}
.thread{margin:10px 0 0 4px;padding-left:22px;border-left:1px solid var(--vx-bd-e5e5e5,#e5e5e5)}
.thread .cm{margin-top:16px;margin-bottom:6px}
.thread.flat{margin-left:0;padding-left:0;border-left:0}
.empty{color:var(--vx-tx-9f9f9f,#9f9f9f);font-size:14px}
.comp{border:1px solid var(--vx-bd-e3e3e3,#e3e3e3);border-radius:18px;padding:16px 18px 12px;margin:12px 0 4px;background:var(--vx-bg-ffffff,#fff)}
.comp.top{margin:0 0 30px}
.comp:focus-within{border-color:var(--vx-bd-cfcfcf,#cfcfcf)}
.comp textarea{display:block;width:100%;border:0;outline:0;resize:none;font:inherit;font-size:15px;line-height:1.6;color:var(--vx-tx-3f3f3f,#3f3f3f);min-height:46px;max-height:420px;background:transparent}
.comp textarea::placeholder{color:var(--vx-tx-aaaaaa,#aaa)}
.prev{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.prev div{width:72px;height:72px;border-radius:12px;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);position:relative;overflow:hidden;background:var(--vx-bg-fafafa,#fafafa)}
.prev img{width:100%;height:100%;object-fit:cover;display:block}
.prev button{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#1f1f1fcc;color:#fff;font-size:13px;line-height:20px;text-align:center}
.cr{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.tools button{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--vx-tx-8f8f8f,#8f8f8f)}
.tools button:hover{background:var(--vx-bg-f5f5f5,#f5f5f5)}
.acts{display:flex;gap:12px;align-items:center}
.cancel{color:var(--vx-tx-8f8f8f,#8f8f8f);font-size:14px;font-weight:500}
.sbtn{width:38px;height:38px;border-radius:50%;background:var(--vx-red);color:#fff;display:grid;place-items:center}
.sbtn[disabled]{background:var(--vx-bg-ececec,#ececec);color:var(--vx-tx-aaaaaa,#aaa);cursor:default}
.login{border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:12px;padding:12px 18px;margin-bottom:28px;font-size:14px;color:var(--vx-tx-7f7f7f,#7f7f7f)}
.login a{color:var(--vx-tx-1f1f1f,#1f1f1f);font-weight:500}
[data-auth="1"] .login{display:none}[data-auth="0"] .comp,[data-auth="0"] .js-reply{display:none}
.cm.del .mb{color:var(--vx-tx-aaaaaa,#aaa);font-style:italic;font-size:14px}.cm.del .av{background:var(--vx-bg-cfcfcf,#cfcfcf)}.cm.del .un{color:var(--vx-tx-aaaaaa,#aaa);font-weight:500}
.mh .more{margin-left:auto;position:relative}
.mbtn{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:var(--vx-tx-9a9a9a,#9a9a9a)}
.mbtn:hover,.mbtn.on{background:var(--vx-bg-f5f5f5,#f5f5f5);color:var(--vx-tx-4f4f4f,#4f4f4f)}
.cmenu{position:absolute;right:0;top:34px;min-width:132px;background:var(--vx-bg-ffffff,#fff);border:1px solid var(--vx-bd-e5e5e5,#e5e5e5);border-radius:14px;box-shadow:0 12px 32px #0000001a;padding:6px;z-index:6}
.cmenu button{display:flex;gap:10px;align-items:center;width:100%;padding:9px 12px;border-radius:9px;font-size:14px;color:var(--vx-tx-4f4f4f,#4f4f4f);text-align:left;font-weight:500;white-space:nowrap}
.cmenu button:hover{background:var(--vx-bg-f5f5f5,#f5f5f5)}.cmenu .dng{color:var(--vx-red)}
.cmenu .ask{padding:8px 12px 4px;font-size:13px;color:var(--vx-tx-6f6f6f,#6f6f6f);white-space:nowrap}
.cmenu .row{display:flex;gap:8px;padding:6px 6px 4px}
.cmenu .row button{justify-content:center;padding:8px 10px;border:1px solid var(--vx-bd-e5e5e5,#e5e5e5)}
.cmenu .row .sure{background:var(--vx-red);color:#fff;border-color:var(--vx-red)}
.comp.edit{margin:8px 0 4px}
.savebtn{background:var(--vx-red);color:#fff;border-radius:999px;padding:7px 18px;font-size:14px;font-weight:500}
.savebtn[disabled]{background:var(--vx-bg-ececec,#ececec);color:var(--vx-tx-aaaaaa,#aaa);cursor:default}
/* portrait / phones */
@media (max-width: 1024px),(max-width:980px){
  .side{display:none}
  .fm{padding:14px 16px 60px}
  .fm-pins{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px;scrollbar-width:none;gap:12px}
  .fm-pins::-webkit-scrollbar{display:none}
  .fm-pin{flex:0 0 82%;scroll-snap-align:start}
  .fm-tabs{gap:22px;margin-top:20px}
  .fp-t{font-size:20px}.fp-d{font-size:14px}
  .fc{padding:18px 16px 60px;gap:0}
  .fc-main h2{font-size:20px;margin-bottom:18px}
  .fc-in{height:54px}.fc-box textarea{min-height:200px}
  .wrap{padding:14px 16px 80px;gap:0}
  h1{font-size:22px;margin:16px 0 10px}.desc{font-size:15px;line-height:1.7}
  .mb{font-size:14.5px}.mh{font-size:13.5px}.hm{font-size:13.5px}
  .pill{height:38px;padding:0 13px;font-size:14px}
  .note{font-size:12.5px}.thread{padding-left:14px}
}
