/* Keep Discuz's post tables and controls in place for previews, moderation and AJAX replies. */
.flux-thread-view {
    --fx-thread-inset:clamp(16px,1.6vw,26px);
    --fx-thread-author:clamp(144px,10vw,164px);
    --fx-thread-gap:clamp(20px,2vw,38px);
}
.flux-thread-rail { display:none; }
@media (min-width:1320px) {
    .flux-thread-view:has(> .flux-thread-rail) > :is(#wp,#ft.wp) {
        --fx-thread-span:min(var(--fx-page-max),calc(100% - var(--fx-gutter) * 2));
        --fx-thread-rail-width:max(228px,calc((var(--fx-thread-span) - var(--fx-thread-gap)) / 4));
        width:calc(var(--fx-thread-span) - var(--fx-thread-gap) - var(--fx-thread-rail-width));
        margin-inline-start:max(var(--fx-gutter),calc((100% - var(--fx-page-max)) / 2));
        margin-inline-end:auto;
    }
    .flux-thread-view > .flux-thread-rail {
        position:fixed;
        z-index:10;
        inset:calc(var(--fx-top) + var(--fx-content-top)) var(--fx-gutter) var(--fx-content-top) calc(var(--fx-nav) + var(--fx-gutter));
        display:grid;
        grid-template-columns:minmax(0,3fr) minmax(228px,1fr);
        gap:var(--fx-thread-gap);
        max-width:var(--fx-page-max);
        margin-inline:auto;
        pointer-events:none;
    }
    .flux-thread-view:has(> .flux-thread-rail) #postlist > table:first-of-type td.pls:has(.hm) { display:none; }
}

.flux-thread-overview {
    box-sizing:border-box;
    grid-column:2;
    align-self:start;
    max-height:100%;
    overflow:auto;
    overscroll-behavior-y:contain;
    pointer-events:auto;
    padding:20px;
    border:1px solid var(--fx-line);
    border-radius:16px;
    background:var(--fx-paper);
}
.flux-thread-overview h2 { margin:0 0 12px; color:var(--fx-ink); font-size:17px; line-height:1.4; }
.flux-thread-board, .flux-thread-reply-link {
    display:flex;
    align-items:center;
    gap:8px;
    border-radius:8px;
    font-size:13px;
    overflow-wrap:anywhere;
}
.flux-thread-board { padding:7px 9px; background:var(--fx-soft); color:var(--fx-muted); }
.flux-thread-board .flux-icon, .flux-thread-reply-link .flux-icon { color:var(--fx-active); }
.flux-thread-stats {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:16px 0 0;
    padding:0 0 14px;
}
.flux-thread-stats > div + div { padding-inline-start:14px; border-inline-start:1px solid var(--fx-line); }
.flux-thread-stats dt { display:flex; align-items:center; gap:6px; color:var(--fx-muted); font-size:12px; }
.flux-thread-stats dd { margin-top:4px; color:var(--fx-ink); font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.flux-thread-view .flux-thread-reply-link {
    padding:9px 10px;
    border:1px solid var(--fx-line);
    color:var(--fx-ink);
    text-decoration:none;
}
.flux-thread-view .flux-thread-reply-link:hover { background:var(--fx-soft); color:var(--fx-active); }

.flux-thread-view #pt { margin-bottom:10px; }
.flux-thread-view #pgt.flux-pgt-merged #pt { flex:1 1 auto; min-width:0; margin:0 auto 0 0; }
.flux-thread-view #pt .z > :is(em:last-of-type, a:last-of-type) { display:none; }
.flux-thread-view #pt .z > a:nth-last-of-type(2) { color:var(--fx-text); font-weight:600; }
.flux-thread-view #ct > .pgs {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-block:0 12px;
    padding:0 !important;
    border:0 !important;
}
.flux-thread-view #ct > .pgs::after { display:none; }
.flux-thread-view #ct > .pgs .pgt:empty { display:none; }
.flux-thread-view #pgt .pgb { display:none; }
.flux-thread-view #pgt > :is(a.pgsbtn, button#newspecial) { margin-inline-start:0; }
.flux-thread-view #pgt > a.pgsbtn:first-of-type,
.flux-thread-view #pgt > button#newspecial:first-of-type { margin-inline-start:auto; }
.flux-thread-view #ct > .pgs:not(#pgt) .pgb { margin-inline-start:auto; }
.flux-thread-view .pg :is(a,strong,label), .flux-thread-view .pgb a, .flux-thread-view .pgs a.pgsbtn {
    box-sizing:border-box;
    min-height:34px;
    border:1px solid var(--fx-line);
    border-radius:8px;
    background:var(--fx-paper);
    color:var(--fx-text);
    font-size:13px;
    font-weight:500;
    line-height:32px;
    transition:border-color .14s ease, background-color .14s ease, color .14s ease;
}
.flux-thread-view .pg { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.flux-thread-view #pgt :is(.pg,.pgb) { margin-top:0; }
.flux-thread-view .pg :is(a,strong,label) { height:34px; margin-left:0; }
.flux-thread-view .pg strong { border-color:var(--fx-soft); background:var(--fx-soft); color:var(--fx-ink); }
.flux-thread-view .pg a:is(.prev,.nxt) { display:inline-flex; align-items:center; gap:4px; padding-inline:8px; }
.flux-thread-view .pg a.prev { justify-content:center; width:34px; font-size:0; }
.flux-thread-view .pg a:is(.prev,.nxt)::after {
    content:"";
    width:14px;
    height:14px;
    margin:0;
    border:0;
    background-color:currentColor;
    -webkit-mask:var(--fx-thread-icon) center / contain no-repeat;
    mask:var(--fx-thread-icon) center / contain no-repeat;
}
.flux-thread-view .pgbtn a { border-color:var(--fx-line); border-radius:8px; }
.flux-thread-view .pgb a, .flux-thread-view .pgs a.pgsbtn {
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:auto;
    margin:0;
    padding:0 10px;
    letter-spacing:normal;
    white-space:nowrap;
    text-decoration:none;
}
.flux-thread-view .pgs a.pgsbtn.showmenu { padding-right:10px; background-image:none; }
.flux-thread-view .pgs a.pgsbtn.showmenu::after {
    content:"";
    width:12px;
    height:12px;
    margin:0;
    border:0;
    background-color:currentColor;
    transform:rotate(180deg);
    -webkit-mask:url("../images/lucide/chevron-up.svg") center / contain no-repeat;
    mask:url("../images/lucide/chevron-up.svg") center / contain no-repeat;
}
.flux-thread-view :is(.pgb a,.pgs a.pgsbtn,.pg a):hover { border-color:var(--fx-active); background:var(--fx-soft); color:var(--fx-active); }
.flux-thread-view .pgs a.pgsbtn[id^="post_reply"], .flux-thread-view :is(#fastpostsubmit,#fwin_reply #postsubmit) {
    border-color:var(--fx-active);
    background:var(--fx-active);
    color:var(--fx-paper);
    font-weight:600;
}
.flux-thread-view .pgs a.pgsbtn[id^="post_reply"]:hover, .flux-thread-view :is(#fastpostsubmit,#fwin_reply #postsubmit):hover { border-color:var(--fx-active); background:var(--fx-active); color:var(--fx-paper); opacity:.88; }
.flux-thread-view .pgsbtn:focus-visible { outline:2px solid var(--fx-active); outline-offset:3px; }
.flux-thread-view :is(#modmenu, #postlist + .xi2.mbm.pbm.bbs) {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
    margin:0 0 12px;
    padding:8px 10px !important;
    border:1px solid var(--fx-line) !important;
    border-radius:12px;
    background:var(--fx-paper);
    line-height:1.4;
}
.flux-thread-view :is(#modmenu, #postlist + .xi2.mbm.pbm.bbs) .pipe { display:none; }
.flux-thread-view :is(#modmenu, #postlist + .xi2.mbm.pbm.bbs) a {
    display:inline-flex;
    align-items:center;
    height:26px;
    padding:0 9px;
    border-radius:6px;
    background:var(--fx-soft);
    color:var(--fx-muted);
    font-size:12px;
    font-weight:500;
    text-decoration:none;
    transition:background-color .14s ease, color .14s ease;
}
.flux-thread-view :is(#modmenu, #postlist + .xi2.mbm.pbm.bbs) a:hover { background:var(--fx-active); color:var(--fx-paper); }
.flux-thread-view :is(#modmenu, #postlist + .xi2.mbm.pbm.bbs) a:is([onclick*="'delete'"],[onclick*="'ban'"],[onclick*="'warn'"]):hover { background:#dc2626; color:#fff; }

.flux-thread-view #postlist { margin:0 0 14px; border:0; background:transparent; }
.flux-thread-view #postlist > table:first-of-type,
.flux-thread-view #postlist table[id^="pid"],
.flux-thread-view #f_pst {
    border:1px solid var(--fx-line);
    border-radius:16px;
    background:var(--fx-paper);
}
.flux-thread-view #postlist > table:first-of-type { display:block; box-sizing:border-box; margin-bottom:14px; }
.flux-thread-view #postlist > table:first-of-type > tbody { display:block; }
.flux-thread-view #postlist > table:first-of-type > tbody > tr {
    position:relative;
    display:flex;
    flex-direction:column;
    padding:var(--fx-thread-inset);
}
.flux-thread-view #postlist > table:first-of-type .vwthd {
    position:static !important;
    order:-1;
    display:flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:8px 14px;
    min-width:0;
    padding:0 !important;
}
.flux-thread-view #postlist .ts {
    order:-2;
    flex:1 1 62%;
    min-width:0;
    padding:0;
    color:var(--fx-ink);
    font:700 clamp(21px,1.75vw,28px)/1.38 var(--flux-heading);
    overflow-wrap:anywhere;
}
.flux-thread-view #postlist .ts a { color:var(--fx-active); text-decoration:none; }
.flux-thread-view #postlist .vwthd > .y {
    display:flex;
    flex:none;
    align-items:center;
    gap:2px;
    margin:0 0 0 auto;
    padding:3px;
    border:1px solid var(--fx-line);
    border-radius:9px;
    background:var(--fx-soft);
}
.flux-thread-view #postlist .vwthd:has(.comiis_code) > .y { margin-right:34px; }
.flux-thread-view #postlist .vwthd .comiis_code { top:0; right:0; border-start-end-radius:15px; overflow:hidden; }
.flux-thread-view #postlist #comiis_code_menu {
    top:8px; right:8px; border-color:var(--fx-line); border-radius:14px;
    background:var(--fx-paper); color:var(--fx-text); cursor:default;
    box-shadow:0 12px 32px light-dark(rgb(16 21 18 / .16),rgb(0 0 0 / .42));
}
.flux-thread-view #postlist #comiis_code_vrimg > :is(img:not(.comiis_qrcode_logo),svg,canvas) { background-color:#fff; }
.flux-thread-view #postlist #comiis_code_menu .km_txt1 { color:var(--fx-text); }
.flux-thread-view #postlist #comiis_code_menu .km_txt2 { color:var(--fx-muted); }
.flux-thread-view #postlist #comiis_code_menu .km_txt3 > a {
    display:inline-block; box-sizing:border-box; max-width:100%; padding:4px 8px;
    border:1px solid var(--fx-line); border-radius:7px; background:var(--fx-soft);
    color:var(--fx-muted); font-size:12px; line-height:1.4; overflow-wrap:anywhere; text-decoration:none;
}
.flux-thread-view #postlist #comiis_code_menu .km_txt3 > a:is(:hover,:focus-visible) {
    border-color:var(--fx-active); color:var(--fx-active);
}
.flux-thread-view #postlist #comiis_code_menu .km_txt3 > a:focus-visible { outline-offset:-2px; }
.flux-thread-view #postlist .vwthd > .xg1 { min-width:0; color:var(--fx-muted) !important; }
.flux-thread-view #postlist .vwthd > .xg1:not(.side_btn) { flex-basis:100%; }
.flux-thread-view #postlist .vwthd > .xg1[hidden] { display:none !important; }
.flux-thread-view #postlist .vwthd a[onclick^="return copyThreadUrl"] { display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 8px; border-radius:6px; background:var(--fx-soft); color:var(--fx-muted) !important; font-size:12px; font-weight:500; text-decoration:none; }
.flux-thread-view #postlist .vwthd > .y a, .flux-thread-view #postlist .vwthd .side_btn a {
    position:static;
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:7px;
    background:none;
    color:var(--fx-muted);
    font-size:15px;
}
.flux-thread-view #postlist .vwthd > .y a.flux-copy-btn {
    display:inline-flex;
    align-items:center;
    gap:4px;
    width:auto;
    padding:0 9px;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
    text-decoration:none;
}
.flux-thread-view #postlist .vwthd > .y a.flux-copy-btn::before { margin:0; }
.flux-thread-view #postlist .vwthd .side_btn { position:static; }
.flux-thread-view #postlist .vwthd .side_btn svg { display:none; }
.flux-thread-view #postlist .vwthd > .y a:hover,
.flux-thread-view #postlist .vwthd .side_btn a:hover { background:var(--fx-paper); color:var(--fx-active); }
.flux-thread-view #postlist > table:first-of-type .pls {
    width:auto;
    padding:7px 0 0;
    border:0;
    background:none;
    color:var(--fx-muted);
}
.flux-thread-view #postlist > table:first-of-type :is(.hm,#tath) { margin:0; padding:0; text-align:left; }
.flux-thread-view #postlist > table:first-of-type .hm .xg1 { color:var(--fx-muted) !important; }
.flux-thread-view #postlist > table:first-of-type .hm .xi1 { color:var(--fx-text); }
.flux-thread-view #postlist #tath img { width:24px; height:24px; margin-right:5px; border-radius:50%; vertical-align:middle; }

.flux-thread-view #postlist table[id^="pid"] {
    box-sizing:border-box;
    margin-bottom:12px;
    border-collapse:separate;
    border-spacing:0;
}
.flux-thread-view #postlist .pls, .flux-thread-view #f_pst .pls {
    box-sizing:border-box;
    width:var(--fx-thread-author);
    border-right:1px solid var(--fx-line);
    background:var(--fx-soft);
    overflow:visible;
    overflow-wrap:anywhere;
}
.flux-thread-view #postlist table[id^="pid"] td.pls { position:static !important; }
.flux-thread-view #postlist table[id^="pid"] td.pls:has(.favatar) { background:var(--fx-shell); }
.flux-thread-view #postlist table[id^="pid"] > tbody > tr:first-child > .pls,
.flux-thread-view #f_pst .pls { border-start-start-radius:15px; }
.flux-thread-view #postlist table[id^="pid"] > tbody > tr:last-child > .pls,
.flux-thread-view #f_pst .pls { border-end-start-radius:15px; }
.flux-thread-view #postlist .plc { background:transparent; padding-inline:var(--fx-thread-inset); }
.flux-thread-view #postlist .ad :is(.pls,.plc) { height:0; background:transparent; }
.flux-thread-view #postlist .favatar {
    position:sticky !important;
    top:calc(var(--fx-top) + 8px) !important;
    bottom:auto !important;
    display:flex;
    flex-direction:column;
    gap:7px;
    width:100%;
    max-width:100%;
    padding:13px 10px;
    border:0;
    background:transparent;
    color:var(--fx-text);
    font-size:12px;
    line-height:1.4;
}
.flux-thread-view #postlist .favatar::after,
.flux-thread-view #postlist .favatar > :is(.o,.pil,.cp_pls)::after { display:none; }
.flux-thread-view #postlist .favatar > :is(p,.tns,.pil,.o) { margin:0; }
.flux-thread-view #postlist .favatar > .pi {
    margin:0; padding:0; border:0; color:var(--fx-ink); font-size:13px;
    font-weight:650; line-height:1.4; text-align:center; overflow:visible; overflow-wrap:anywhere;
}
.flux-thread-view #postlist .favatar > .pi .authi { color:var(--fx-ink); }
.flux-thread-view #postlist .favatar > div:has(> .avatar) { position:relative; text-align:center; }
.flux-thread-view #postlist .favatar > div > .avatar { margin:0; color:var(--fx-muted); }
.flux-thread-view #postlist .favatar > div > .avatar a { display:inline-block; border-radius:50%; vertical-align:top; }
.flux-thread-view #postlist .favatar > div > .avatar img { display:block; width:52px; height:52px; }
.flux-thread-view #postlist .favatar > div > .mobile-type {
    top:0; right:0; margin:0; transform:scale(.5); transform-origin:top right; pointer-events:none;
}
.flux-thread-view #postlist .favatar > .tns {
    padding:0;
    border:1px solid var(--fx-line);
    border-radius:9px;
    background:var(--fx-paper);
    color:var(--fx-muted);
    font-variant-numeric:tabular-nums;
}
.flux-thread-view #postlist .favatar > .tns :is(th,td) { padding:5px 2px; border:0; font-size:10.5px; }
.flux-thread-view #postlist .favatar > .tns tr > :not(:last-child) { border-inline-end:1px solid var(--fx-line); }
.flux-thread-view #postlist .favatar .tns p { margin:0 0 1px; font-size:12px; font-weight:650; }
.flux-thread-view #postlist .favatar .tns a { display:inline-block; color:var(--fx-ink); text-decoration:none; }
.flux-thread-view #postlist .favatar .tns a:hover { color:var(--fx-active); }
.flux-thread-view #postlist .favatar > p { text-align:center; }
.flux-thread-view #postlist .favatar > p a[href*="ac=usergroup"]:not(:has(img,i)) {
    display:inline-block; box-sizing:border-box; max-width:100%; padding:3px 7px;
    border:1px solid var(--fx-line); border-radius:7px; background:var(--fx-paper);
    color:var(--fx-active); font-size:11px; font-weight:600; text-decoration:none;
}
.flux-thread-view #postlist .favatar > p a[href*="ac=usergroup"]:hover { border-color:var(--fx-active); }
.flux-thread-view #postlist .favatar > p .fc-l { color:var(--fx-active); }
.flux-thread-view #postlist .favatar > p .pbg2 {
    box-sizing:border-box; width:100%; max-width:100%; height:5px; margin:0;
    border-radius:999px; background:var(--fx-line);
}
.flux-thread-view #postlist .favatar > p .pbr2 { max-width:100%; height:100%; border-radius:inherit; background:var(--fx-active); }
.flux-thread-view #postlist .favatar > .pil {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:3px 6px;
    color:var(--fx-muted);
}
.flux-thread-view #postlist .favatar > .pil:empty { display:none; }
.flux-thread-view #postlist .favatar > .pil :is(dt,dd) { width:auto; min-width:0; height:auto; margin:0; overflow:visible; }
.flux-thread-view #postlist .favatar > .pil dd { color:var(--fx-text); text-align:right; }
.flux-thread-view #postlist .favatar > :is(.o,.cp_pls) {
    display:flex;
    flex-wrap:wrap;
    gap:4px;
}
.flux-thread-view #postlist .favatar > .o > li { flex:1 1 auto; width:auto; height:auto; margin:0; overflow:visible; }
.flux-thread-view #postlist .favatar > .o > li::before { content:none; }
.flux-thread-view #postlist .favatar > .o > li > a,
.flux-thread-view #postlist .favatar > .cp_pls > a {
    display:flex; align-items:center; justify-content:center; gap:4px; box-sizing:border-box;
    min-height:27px; margin:0; padding:3px 5px; border:1px solid var(--fx-line); border-radius:7px;
    background:var(--fx-paper); color:var(--fx-muted); line-height:1.4; text-decoration:none;
}
.flux-thread-view #postlist .favatar > .o > li > a { font-size:11px; }
.flux-thread-view #postlist .favatar > .cp_pls { padding-top:7px; border-top:1px solid var(--fx-line); }
.flux-thread-view #postlist .favatar > .cp_pls > a { float:none; min-height:24px; background:transparent; font-size:11px; }
.flux-thread-view #postlist .favatar > .o > li > a:hover,
.flux-thread-view #postlist .favatar > .cp_pls > a:hover {
    border-color:var(--fx-active); background:var(--fx-soft); color:var(--fx-active);
}
@media (max-height:540px) {
    .flux-thread-view #postlist .favatar { position:static !important; }
}
.flux-thread-view #postlist .pls .avatar img, .flux-thread-view #f_pst .avatar img {
    box-sizing:border-box;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--fx-line);
    border-radius:50%;
    background:var(--fx-paper);
    box-shadow:none;
    object-fit:cover;
}
.flux-thread-view #postlist .pi {
    height:auto;
    min-height:0;
    padding-block:12px 9px;
    border-bottom:1px solid var(--fx-line);
    line-height:1.65;
}
.flux-thread-view #postlist .pi .authi, .flux-thread-view #postlist .pi em { color:var(--fx-muted); }
.flux-thread-view #postlist .pi > strong > a {
    display:inline-block;
    padding:0 7px;
    border:1px solid var(--fx-line);
    border-radius:6px;
    background:var(--fx-soft);
    color:var(--fx-muted);
    font-variant-numeric:tabular-nums;
}
.flux-thread-view #postlist .pi:has(> #fj) > strong > a {
    display:inline-flex; align-items:center; box-sizing:border-box; height:34px; margin-top:0;
}
.flux-thread-view #postlist .pi:has(> #fj) > .pti { padding-block:6px; }
.flux-thread-view #postlist #fj {
    display:inline-flex; align-items:center; gap:4px; box-sizing:border-box; min-height:34px;
    margin:0 0 0 7px; padding:3px; border:1px solid var(--fx-line); border-radius:8px;
    background:var(--fx-soft); color:var(--fx-muted); font-size:12px; line-height:1.35;
}
.flux-thread-view #postlist #fj label { float:none; height:auto; margin:0; padding:0 4px; line-height:inherit; white-space:nowrap; }
.flux-thread-view #postlist #fj input:not([type=hidden]) {
    float:none; width:52px; height:26px; min-height:0; margin:0; padding:0 5px; border-radius:5px;
    background:var(--fx-paper); color:var(--fx-text); font-size:12px; line-height:normal;
    text-align:center; font-variant-numeric:tabular-nums;
}
.flux-thread-view #postlist #fj input::placeholder { color:var(--fx-muted); }
.flux-thread-view #postlist #fj_btn {
    float:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
    min-width:28px; min-height:26px; padding:0 7px; border:0; border-radius:5px; background:transparent;
    color:var(--fx-active); font-size:12px; font-weight:600; line-height:1; cursor:pointer; text-decoration:none;
}
.flux-thread-view #postlist #fj_btn:hover { background:var(--fx-paper); }
.flux-thread-view #postlist #fj_btn:focus-visible { outline-offset:-2px; }
.flux-thread-view #postlist .pcb { margin-right:0; }
.flux-thread-view #postlist .t_fsz { min-height:0; }
.flux-thread-view #postlist .t_f { color:var(--fx-text); font-size:15px; line-height:1.85; overflow-wrap:anywhere; }
.flux-thread-view #postlist .t_f a { color:var(--fx-active); }
.flux-thread-view #postlist .t_f img { max-width:100%; height:auto; }
.flux-thread-view #postlist .t_f pre, .flux-thread-view #postlist .blockcode { max-width:100%; overflow:auto; }
.flux-thread-view #postlist :is(.quote,.blockcode,.locked), .flux-thread-view #fwin_reply .quote {
    box-sizing:border-box;
    border:1px solid var(--fx-line);
    border-radius:9px;
    background:var(--fx-soft);
    color:var(--fx-muted);
}
.flux-thread-view :is(#postlist,#fwin_reply) .quote { padding:12px; }
.flux-thread-view :is(#postlist,#fwin_reply) .quote blockquote { padding:0; background:none; }
.flux-thread-view #postlist .ptg { padding-left:0; background:none; color:var(--fx-muted); }
.flux-thread-view #postlist .ptg a {
    display:inline-block;
    margin:0 4px 4px 0;
    padding:0 6px;
    border-radius:5px;
    background:var(--fx-soft);
    color:var(--fx-active);
}
.flux-thread-view #postlist .po { border-top:1px solid var(--fx-line); opacity:1; }
.flux-thread-view #postlist .pob { line-height:1.65; }
.flux-thread-view #postlist .pob em a {
    display:inline-flex;
    align-items:center;
    gap:5px;
    height:auto;
    margin:5px 5px 5px 0;
    padding:5px 6px;
    border-radius:6px;
    color:var(--fx-muted);
    text-decoration:none;
}
.flux-thread-view #postlist .pob em a:hover { color:var(--fx-active); background:var(--fx-soft); }
.flux-thread-view #postlist .po > .y { color:var(--fx-muted); }
.flux-thread-view #p_btn { margin:14px 0 10px; padding:0; text-align:left; line-height:1.6; }
.flux-thread-view #p_btn > a {
    margin:0 4px 5px 0;
    padding:0;
    border:1px solid var(--fx-line);
    border-radius:7px;
    background:var(--fx-paper);
    color:var(--fx-muted);
}
.flux-thread-view #p_btn > a i { display:flex; align-items:center; gap:5px; padding:4px 8px; }
.flux-thread-view #p_btn > a em { float:none; margin:0; color:inherit; }
.flux-thread-view #p_btn > a:hover { background:var(--fx-soft); color:var(--fx-active); }

.flux-thread-view #f_pst,
.flux-thread-view #postlist :is([id^="post_"],a[name]) { scroll-margin-top:calc(var(--fx-top) + 14px); }
.flux-thread-view #f_pst .plc { padding:var(--fx-thread-inset); }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt {
    border:1px solid var(--fx-line);
    border-radius:10px;
    background:var(--fx-paper);
}
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt:focus-within { border-color:var(--fx-active); }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px; box-sizing:border-box; height:auto; min-height:36px; padding:4px 7px; border-bottom-color:var(--fx-line); border-radius:9px 9px 0 0; background:var(--fx-soft); color:var(--fx-muted); line-height:1.5; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .bar > .fpd { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .bar > .y { order:2; float:none; padding:0 4px; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .area {
    padding:3px 8px;
    border-radius:0 0 9px 9px;
    background:var(--fx-paper);
}
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .area .pt { background-color:var(--fx-paper); color:var(--fx-text); font-size:14px; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .area textarea.pt { display:block; margin:0; border:0; border-radius:0; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .tedt .area textarea.pt:focus { box-shadow:none; }
.flux-thread-view #fastposteditor .area .hm a { color:var(--fx-active); }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .fpd a:is(.fbld,.fclr,.fmg,.flnk,.fqt,.fcd,.fsml,.fat) {
    position:relative;
    float:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:27px;
    height:27px;
    margin:0;
    border-radius:6px;
    background:none;
    color:var(--fx-muted);
    font-size:0;
    line-height:0;
    text-indent:0;
    overflow:hidden;
}
.flux-thread-view :is(#fastposteditor,#fwin_reply) .fpd a:is(:hover,:focus-visible) {
    background:var(--fx-paper);
    color:var(--fx-active);
}
.flux-thread-view :is(#fastpostsubmit,#fwin_reply #postsubmit) {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:0 10px;
    border-radius:8px;
    line-height:1.5;
}
.flux-thread-view :is(#fastpostsubmit,#fwin_reply #postsubmit) strong { padding:0; }

.flux-reply-composer {
    --fx-reply-pad:clamp(16px,1.6vw,24px);
    position:relative; box-sizing:border-box; margin-bottom:14px; padding:var(--fx-reply-pad);
    border:1px solid var(--fx-line); border-radius:16px; background:var(--fx-paper);
}
.flux-reply-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:32px; margin-bottom:12px; }
.flux-reply-heading h2 { margin:0; color:var(--fx-ink); font:650 20px/1.4 var(--flux-heading); }
.flux-reply-heading .flux-reply-author { min-width:0; color:var(--fx-muted); font-size:13px; overflow-wrap:anywhere; }
.flux-reply-composer:has(#fastpostform > table .pls > .avatar img) > .flux-reply-heading { padding-inline-end:40px; }
.flux-reply-composer #f_pst { margin:0; padding:0; border:0; background:none; scroll-margin-top:calc(var(--fx-top) + 76px); }
.flux-reply-composer #fastpostform > table,
.flux-reply-composer #fastpostform > table > tbody,
.flux-reply-composer #fastpostform > table > tbody > tr { display:block; width:100%; }
.flux-reply-composer #f_pst #fastpostform > table > tbody > tr > :is(.pls,.plc) {
    display:block; box-sizing:border-box; width:auto; padding:0; border:0; background:none;
}
.flux-reply-composer #f_pst .pls > .avatar {
    position:absolute; inset-block-start:var(--fx-reply-pad); inset-inline-end:var(--fx-reply-pad); margin:0;
}
.flux-reply-composer #f_pst .pls > .avatar img { display:block; width:32px; height:32px; }
.flux-reply-composer .plc > .cl:has(> #fastposteditor) { display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px; }
.flux-reply-composer .plc > .cl:has(> #fastposteditor)::after { display:none; }
.flux-reply-composer #fastposteditor { flex:1 1 300px; min-width:0; }
.flux-reply-composer #fastposteditor.hasfsl,.flux-reply-composer .upfl.hasfsl { margin-right:0; }
.flux-reply-composer #fastsmiliesdiv { order:1; float:none; }
.flux-reply-composer #fastsmiliesdiv:not(:has(#fastsmilies img)) { display:none; }
.flux-reply-composer #f_pst #fastposteditor .tedt {
    margin:0 !important; border:1px solid var(--fx-line); border-radius:12px; background:var(--fx-paper);
}
.flux-reply-composer #f_pst #fastposteditor .tedt:focus-within {
    border-color:var(--fx-active); box-shadow:0 0 0 2px var(--fx-focus-ring);
}
.flux-reply-composer #fastposteditor .tedt .bar {
    min-height:42px; padding:5px 9px; border-radius:11px 11px 0 0; background:var(--fx-shell);
}
.flux-reply-composer #fastposteditor .bar .y > a {
    display:inline-flex; align-items:center; gap:5px; padding:4px 5px;
    color:var(--fx-muted); font-size:12px; text-decoration:none;
}
.flux-reply-composer #fastposteditor .bar .y > a:hover { color:var(--fx-active); }
.flux-reply-composer #fastposteditor a[onclick*="switchAdvanceMode"]::after {
    content:""; width:12px; height:12px; background:currentColor;
    -webkit-mask:url("../images/lucide/arrow-right.svg") center / contain no-repeat;
    mask:url("../images/lucide/arrow-right.svg") center / contain no-repeat;
}
.flux-reply-composer #fastposteditor .tedt .area { padding:12px 14px; border-radius:0 0 11px 11px; }
.flux-reply-composer #fastpostmessage { box-sizing:border-box; width:100%; height:100px; min-height:80px; line-height:1.65; resize:vertical; }
.flux-reply-composer #fastpostmessage::placeholder { color:var(--fx-muted); }
.flux-reply-composer #fastposteditor .area .hm { box-sizing:border-box; align-content:center; min-height:100px; height:auto; line-height:1.8; }
.flux-reply-composer #fastpostform .pnpost { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:0; padding-top:12px !important; }
.flux-reply-composer .pnpost > label { display:inline-flex; align-items:center; gap:5px; color:var(--fx-muted); font-size:12px; cursor:pointer; }
.flux-reply-composer .pnpost input.pc { margin:0; accent-color:var(--fx-active); }
.flux-reply-composer .pnpost > a.y { order:1; float:none; margin-inline-start:auto; color:var(--fx-muted); font-size:12px; }
.flux-reply-composer .pnpost > a.y:hover { color:var(--fx-active); }
.flux-reply-composer #f_pst #fastpostsubmit { order:2; min-height:38px; margin:0; padding-inline:16px; font-size:14px; }

.flux-thread-view #fwin_reply > table { border-collapse:separate; border-spacing:0; }
.flux-thread-view #fwin_reply :is(.t_l,.t_c,.t_r,.m_l,.m_r,.b_l,.b_c,.b_r) { background:none; }
.flux-thread-view #fwin_reply .m_c {
    border:1px solid var(--fx-line);
    border-radius:16px;
    overflow:hidden;
    background:var(--fx-paper);
    box-shadow:var(--fx-shadow-modal);
}
.flux-thread-view #fwin_reply .f_c .o { border-color:var(--fx-line); background:var(--fx-soft); }
.flux-thread-view #fwin_reply .flbc {
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:6px;
    background:var(--fx-soft);
    color:var(--fx-muted);
}
.flux-thread-view #fwin_reply .flbc:hover { color:var(--fx-active); }

/* Replace native glyphs on the existing links and editor controls with local Lucide masks. */
.flux-thread-overview .flux-thread-icon-arrow-down { --fx-icon:url("../images/lucide/arrow-down.svg"); }
.pgb a { --fx-thread-icon:url("../images/lucide/arrow-left.svg"); }
.pgsbtn[id^="newspecial"] { --fx-thread-icon:url("../images/lucide/pencil-line.svg"); }
.pgsbtn[id^="post_reply"] { --fx-thread-icon:url("../images/lucide/message-circle.svg"); }
.vwthd .fico-print { --fx-thread-icon:url("../images/lucide/printer.svg"); }
.vwthd .fico-left, .pg .prev { --fx-thread-icon:url("../images/lucide/chevron-left.svg"); }
.vwthd .fico-right, .pg .nxt { --fx-thread-icon:url("../images/lucide/chevron-right.svg"); }
.vwthd .btn_s_close { --fx-thread-icon:url("../images/lucide/panel-left-close.svg"); }
.vwthd .btn_s_open { --fx-thread-icon:url("../images/lucide/panel-left-open.svg"); }
.vwthd a[onclick^="return copyThreadUrl"], .fpd .flnk { --fx-thread-icon:url("../images/lucide/link-2.svg"); }
.vwthd .fico-lock { --fx-thread-icon:url("../images/lucide/lock.svg"); }
.authicn.fico-person { --fx-thread-icon:url("../images/lucide/user-round.svg"); }
.favatar .addflw { --fx-thread-icon:url("../images/lucide/radio.svg"); }
.favatar .pm2 { --fx-thread-icon:url("../images/lucide/message-circle.svg"); }
#fj .fico-down { --fx-thread-icon:url("../images/lucide/arrow-down.svg"); }
#postlist .ptg { --fx-thread-icon:url("../images/lucide/tag.svg"); }
#p_btn .fico-star { --fx-thread-icon:url("../images/lucide/star.svg"); }
#p_btn .fico-task { --fx-thread-icon:url("../images/lucide/clipboard-check.svg"); }
#p_btn .fico-launch, #fastpostsubmit, #fwin_reply #postsubmit { --fx-thread-icon:url("../images/lucide/send.svg"); }
#p_btn .fico-share { --fx-thread-icon:url("../images/lucide/share-2.svg"); }
#p_btn .fico-collection { --fx-thread-icon:url("../images/lucide/bookmark.svg"); }
#p_btn .fico-thumbup, .pob .replyadd { --fx-thread-icon:url("../images/lucide/thumbs-up.svg"); }
#p_btn .fico-thumbdown, .pob .replysubtract { --fx-thread-icon:url("../images/lucide/thumbs-down.svg"); }
.pob em :is(.fastre,.cmmnt) { --fx-thread-icon:url("../images/lucide/message-circle.svg"); }
.pob em .fastre[href*="repquote="], .fpd .fqt { --fx-thread-icon:url("../images/lucide/quote.svg"); }
.pob em :is(.editp,.appendp) { --fx-thread-icon:url("../images/lucide/pencil-line.svg"); }
.pob em .push { --fx-thread-icon:url("../images/lucide/book-open.svg"); }
.pob a[onclick*="miscreport"] { --fx-thread-icon:url("../images/lucide/flag.svg"); }
.fpd .fbld { --fx-thread-icon:url("../images/lucide/type.svg"); }
.fpd .fclr { --fx-thread-icon:url("../images/lucide/palette.svg"); }
.fpd .fmg { --fx-thread-icon:url("../images/lucide/image.svg"); }
.fpd .fcd { --fx-thread-icon:url("../images/lucide/code.svg"); }
.fpd .fsml { --fx-thread-icon:url("../images/lucide/face-slightly-smiling.svg"); }
.fpd .fat { --fx-thread-icon:url("../images/lucide/at-sign.svg"); }
#fwin_reply .flbc { --fx-thread-icon:url("../images/lucide/x.svg"); }

.flux-thread-view :is(
    .pgb a, .pgsbtn[id^="newspecial"], .pgsbtn[id^="post_reply"],
    .vwthd :is(.fico-print,.fico-left,.fico-right,.fico-lock,.side_btn a,a[onclick^="return copyThreadUrl"]),
    .authicn.fico-person, .favatar .o :is(.addflw,.pm2) > a, #fj .fico-down, #postlist .ptg,
    #p_btn em:is(.fico-star,.fico-task,.fico-launch,.fico-share,.fico-collection,.fico-thumbup,.fico-thumbdown),
    .pob em a:is(.fastre,.cmmnt,.editp,.appendp,.push,.replyadd,.replysubtract),
    .pob a[onclick*="miscreport"],
    :is(#fastposteditor,#fwin_reply) .fpd a:is(.fbld,.fclr,.fmg,.flnk,.fqt,.fcd,.fsml,.fat),
    #fastpostsubmit, #fwin_reply :is(#postsubmit,.flbc)
)::before {
    content:"";
    display:inline-block;
    width:15px;
    height:15px;
    margin:0;
    border:0;
    background-color:currentColor;
    color:inherit;
    flex:none;
    transform:none;
    vertical-align:-.16em;
    -webkit-mask:var(--fx-thread-icon) center / contain no-repeat;
    mask:var(--fx-thread-icon) center / contain no-repeat;
}
.flux-thread-view .vwthd a[onclick^="return copyThreadUrl"]::before,
.flux-thread-view #postlist .ptg::before { margin-inline-end:5px; }
.flux-thread-view :is(#fastposteditor,#fwin_reply) .fpd a::before { width:16px; height:16px; }
