/*
 * MS Tech Article UI v1.0
 * Discuz! X5.0 / N7
 * Focus: long-form technical tutorials, images, code and knowledge-base reading.
 */

/* =========================================================
   Design tokens
   ========================================================= */
.pg_viewthread {
    --ms-page: #f6f8fb;
    --ms-card: #ffffff;
    --ms-text: #344054;
    --ms-heading: #101828;
    --ms-muted: #98a2b3;
    --ms-muted-strong: #667085;
    --ms-border: #eaecf0;
    --ms-border-soft: #f0f2f5;
    --ms-primary: #2563eb;
    --ms-primary-soft: #eff6ff;
    --ms-radius: 10px;
    --ms-shadow: 0 2px 10px rgba(16, 24, 40, .035);
    background: var(--ms-page) !important;
    color: var(--ms-text);
}

/* Avoid old dark-extension values leaking into the redesigned page. */
.pg_viewthread,
.pg_viewthread .ms-tech-viewthread {
    color-scheme: light;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.pg_viewthread #pt {
    margin: 13px 0 11px;
    min-height: 24px;
    line-height: 24px;
    font-size: 12px;
    background: transparent;
    border: 0;
}

.pg_viewthread #pt .z,
.pg_viewthread #pt .z a,
.pg_viewthread #pt .z em,
.pg_viewthread #pt .z span {
    color: #98a2b3 !important;
}

.pg_viewthread #pt .z a:hover {
    color: var(--ms-primary) !important;
}

.pg_viewthread #pt .nvhm {
    opacity: .72;
}

/* =========================================================
   Top actions
   ========================================================= */
.pg_viewthread .ms-tech-actions {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 0 0 14px !important;
    padding: 0;
}

.pg_viewthread .ms-tech-actions .pgt {
    margin-left: auto;
}

.pg_viewthread .ms-tech-actions .pgb {
    order: -1;
    margin: 0 10px 0 0;
}

.pg_viewthread .ms-tech-actions .pgb a,
.pg_viewthread .ms-tech-actions .pgsbtn,
.pg_viewthread .ms-tech-actions #newspecial,
.pg_viewthread .ms-tech-actions #post_reply,
.pg_viewthread .ms-tech-actions .comiis_tzgl {
    box-sizing: border-box;
    height: 36px;
    line-height: 34px;
    margin: 0 8px 0 0 !important;
    padding: 0 14px;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px;
    background: #fff !important;
    color: #475467 !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 500;
}

.pg_viewthread .ms-tech-actions #newspecial {
    border-color: var(--ms-primary) !important;
    background: var(--ms-primary) !important;
    color: #fff !important;
}

.pg_viewthread .ms-tech-actions #post_reply {
    color: var(--ms-primary) !important;
}

.pg_viewthread .ms-tech-actions .comiis_tzgl {
    color: #667085 !important;
}

.pg_viewthread .ms-tech-actions .pgb a:hover,
.pg_viewthread .ms-tech-actions .pgsbtn:hover {
    transform: translateY(-1px);
    border-color: #d0d5dd !important;
    opacity: 1;
}

.pg_viewthread .ms-tech-actions #newspecial:hover {
    border-color: #1d4ed8 !important;
    background: #1d4ed8 !important;
}

/* =========================================================
   Page columns
   ========================================================= */
.pg_viewthread .ms-tech-viewthread .mn {
    min-width: 0;
}

.pg_viewthread .ms-tech-viewthread .sd {
    box-sizing: border-box;
}

/* =========================================================
   Article title card
   ========================================================= */
.pg_viewthread #postlist {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.pg_viewthread #postlist > .ms-tech-article-head {
    width: 100%;
    margin: 0 0 14px;
    border: 1px solid var(--ms-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    background: var(--ms-card);
    box-shadow: var(--ms-shadow);
    overflow: hidden;
}

.pg_viewthread .ms-tech-article-head .pls {
    border-right-color: var(--ms-border);
    background: #fbfcfd;
}

.pg_viewthread .ms-tech-article-head .plc.vwthd {
    position: relative;
    padding: 26px 30px 24px !important;
}

.pg_viewthread .ms-tech-article-head h1.ts {
    max-width: calc(100% - 112px);
    margin: 0 0 11px;
    color: var(--ms-heading);
    font-size: 29px !important;
    font-weight: 700 !important;
    line-height: 1.38;
    letter-spacing: -.018em;
    word-break: break-word;
}

.pg_viewthread .ms-tech-article-head h1.ts a {
    color: var(--ms-primary);
    font-size: 14px;
    font-weight: 600;
}

.pg_viewthread .ms-tech-article-head h1.ts + .xg1 {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    color: var(--ms-muted) !important;
    font-size: 12px;
}

.pg_viewthread .ms-tech-article-head h1.ts + .xg1 a {
    color: #98a2b3 !important;
}

.pg_viewthread .ms-tech-article-head h1.ts + .xg1 a:hover {
    color: var(--ms-primary) !important;
}

.pg_viewthread .ms-tech-article-head .plc.vwthd > .y {
    position: absolute;
    top: 27px;
    right: 28px;
    display: flex;
    gap: 6px;
}

.pg_viewthread .ms-tech-article-head .plc.vwthd > .y a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid #eaecf0;
    border-radius: 7px;
    background: #fff;
    color: #98a2b3;
}

.pg_viewthread .ms-tech-article-head .plc.vwthd > .y a:hover {
    border-color: #d6e4ff;
    background: var(--ms-primary-soft);
    color: var(--ms-primary);
}

/* =========================================================
   First post = article card
   ========================================================= */
.pg_viewthread #postlist > .comiis_vone {
    margin: 0 0 18px;
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    background: var(--ms-card);
    box-shadow: var(--ms-shadow);
    overflow: hidden;
}

.pg_viewthread #postlist > .comiis_vone > table.plhin {
    width: 100%;
    background: transparent;
}

.pg_viewthread #postlist > .comiis_vone .plc {
    padding: 0 30px 30px !important;
}

.pg_viewthread #postlist > .comiis_vone .pi {
    box-sizing: border-box;
    height: auto !important;
    min-height: 46px;
    margin: 0 0 25px !important;
    padding: 13px 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ms-border-soft) !important;
    overflow: visible;
}

.pg_viewthread #postlist > .comiis_vone .plc .authi {
    min-height: 30px;
    height: auto;
    line-height: 30px;
    color: var(--ms-muted);
    font-size: 12px;
}

.pg_viewthread #postlist > .comiis_vone .plc .authi a,
.pg_viewthread #postlist > .comiis_vone .plc .authi em,
.pg_viewthread #postlist > .comiis_vone .plc .authi span {
    color: var(--ms-muted-strong);
}

.pg_viewthread #postlist > .comiis_vone .plc .authi a:hover {
    color: var(--ms-primary) !important;
}

.pg_viewthread #postlist > .comiis_vone .plc em.kmrtxt {
    margin-top: 2px;
    margin-left: 12px;
    padding-left: 23px;
    color: #98a2b3;
    font-size: 12px;
    background-size: 16px;
}

.pg_viewthread #postlist > .comiis_vone .pct,
.pg_viewthread #postlist > .comiis_vone .pcb {
    margin-left: 0 !important;
    padding-bottom: 0;
}

/* =========================================================
   Article typography
   ========================================================= */
.pg_viewthread #postlist > .comiis_vone .t_fsz,
.pg_viewthread #postlist > .comiis_vone .t_f {
    color: var(--ms-text) !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
    word-break: break-word;
}

.pg_viewthread #postlist > .comiis_vone .t_f {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

.pg_viewthread #postlist > .comiis_vone .t_f a {
    color: var(--ms-primary);
    text-decoration: none;
}

.pg_viewthread #postlist > .comiis_vone .t_f a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Keep editor underline below underscore glyphs such as [u]J4_C[/u].
   The "_" remains the character's own stroke; the editor underline is
   explicitly placed underneath it so the two lines do not visually merge. */
.pg_viewthread #postlist > .comiis_vone .t_f u,
.pg_viewthread #postlist > .comiis_vone .t_f .cdx-underline {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-position: under;
    text-underline-offset: 0.12em;
    text-decoration-skip-ink: none;
}

.pg_viewthread #postlist > .comiis_vone .t_f h2 {
    position: relative;
    margin: 42px 0 20px !important;
    padding: 0 0 0 15px !important;
    border: 0 !important;
    color: var(--ms-heading) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: -.01em;
}

.pg_viewthread #postlist > .comiis_vone .t_f h2::before {
    content: "";
    position: absolute;
    top: .22em;
    bottom: .22em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--ms-primary);
}

.pg_viewthread #postlist > .comiis_vone .t_f h3 {
    margin: 31px 0 15px !important;
    color: #1d2939 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.pg_viewthread #postlist > .comiis_vone .t_f h4 {
    margin: 25px 0 12px !important;
    color: #344054 !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

/* MS TOC headings inherit the same article hierarchy. */
.pg_viewthread #postlist > .comiis_vone .t_f h2.ms-toc-heading,
.pg_viewthread #postlist > .comiis_vone .t_f h3.ms-toc-heading,
.pg_viewthread #postlist > .comiis_vone .t_f h4.ms-toc-heading {
    scroll-margin-top: 86px;
}

.pg_viewthread #postlist > .comiis_vone .t_f ul,
.pg_viewthread #postlist > .comiis_vone .t_f ol {
    margin: 14px 0 20px;
    padding-left: 1.55em;
}

.pg_viewthread #postlist > .comiis_vone .t_f li {
    margin: 5px 0;
    line-height: 1.82;
}

.pg_viewthread #postlist > .comiis_vone .t_f hr {
    height: 1px;
    margin: 30px 0;
    border: 0;
    background: var(--ms-border);
}

.pg_viewthread #postlist > .comiis_vone .t_f code {
    padding: 2px 6px;
    border: 1px solid #e4e7ec;
    border-radius: 5px;
    background: #f2f4f7;
    color: #b42318;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .88em;
}

.pg_viewthread #postlist > .comiis_vone .t_f .quote {
    margin: 20px 0;
    padding: 15px 18px;
    border: 0;
    border-left: 4px solid #84adff;
    border-radius: 0 8px 8px 0;
    background: #f8faff;
    color: #475467;
}

.pg_viewthread #postlist > .comiis_vone .t_f .quote blockquote {
    margin: 0;
}

.pg_viewthread #postlist > .comiis_vone .pcb img[id*="aimg"] {
    display: block;
    max-width: 100%;
    margin: 22px 0;
    border: 1px solid var(--ms-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .055);
}

/* Respect Discuz [align] instead of forcing every attachment image to center. */
.pg_viewthread #postlist > .comiis_vone .t_f [align="left"] img[id*="aimg"] {
    margin-left: 0;
    margin-right: auto;
}

.pg_viewthread #postlist > .comiis_vone .t_f [align="center"] img[id*="aimg"] {
    margin-left: auto;
    margin-right: auto;
}

.pg_viewthread #postlist > .comiis_vone .t_f [align="right"] img[id*="aimg"] {
    margin-left: auto;
    margin-right: 0;
}

/* User tables inside posts */
.pg_viewthread #postlist > .comiis_vone .t_f .t_table {
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ms-border);
    border-radius: 8px;
    overflow: hidden;
}

.pg_viewthread #postlist > .comiis_vone .t_f .t_table td,
.pg_viewthread #postlist > .comiis_vone .t_f .t_table th {
    padding: 10px 12px;
    border-color: var(--ms-border);
}

.pg_viewthread #postlist > .comiis_vone .t_f .t_table th {
    background: #f8fafc;
    color: #344054;
}

/* =========================================================
   Existing MS plugins blend with article UI
   ========================================================= */
.pg_viewthread #postlist > .comiis_vone .ms-notice {
    margin: 22px 0;
    border-radius: 9px;
    box-shadow: none;
}

.pg_viewthread #postlist > .comiis_vone .blockcode.ms-code-block {
    margin: 22px 0;
    border-radius: 8px;
}

.pg_viewthread #postlist > .comiis_vone .ms-toc-card--mobile {
    border-color: var(--ms-border);
    border-radius: 9px;
}

/* =========================================================
   Tags
   ========================================================= */
.pg_viewthread #postlist > .comiis_vone .comiis_tag {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 28px 0 5px;
}

.pg_viewthread #postlist > .comiis_vone .comiis_tag a {
    float: none;
    margin: 0;
    padding: 3px 9px;
    line-height: 22px;
    border: 1px solid #dbe7ff;
    border-radius: 999px;
    background: #f5f8ff;
    color: #3568c8;
    font-size: 12px;
}

/* =========================================================
   Sidebar
   ========================================================= */
.pg_viewthread .ms-tech-viewthread .sd > * {
    box-sizing: border-box;
}

.pg_viewthread .comiis_lzinfo,
.pg_viewthread .ms-toc-card--desktop,
.pg_viewthread #comiis_list_r01 .bm,
.pg_viewthread #comiis_viewthread_sidetop_div .bm,
.pg_viewthread #comiis_viewthread_sidebottom_div .bm {
    border: 1px solid var(--ms-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: var(--ms-shadow) !important;
}

.pg_viewthread .comiis_lzinfo {
    margin-bottom: 14px;
    padding: 16px;
}

.pg_viewthread .comiis_lzinfo_bg {
    display: none !important;
}

.pg_viewthread .comiis_lzinfo_bgbox .comiis_lzinfo_one .lzinfo_img {
    margin-top: 0 !important;
}

.pg_viewthread .comiis_lzinfo_one {
    margin: 0;
}

.pg_viewthread .comiis_lzinfo_one .lzinfo_txbox {
    padding: 0;
}

.pg_viewthread .comiis_lzinfo_one .lzinfo_txbox .lzinfo_img {
    width: 58px;
    height: 58px;
    margin-right: 11px;
}

.pg_viewthread .comiis_lzinfo_one .lzinfo_txbox .lzinfo_img a {
    width: 54px;
    height: 54px;
    margin: 2px;
}

.pg_viewthread .comiis_lzinfo_one .lzinfo_txbox .km_tit {
    padding-top: 3px;
    color: var(--ms-heading);
    font-size: 15px;
    font-weight: 700;
}

.pg_viewthread .comiis_lzinfo_one .lzinfo_txbox .km_txt {
    color: var(--ms-muted);
}

.pg_viewthread .comiis_lzinfo .tns {
    margin-top: 15px;
    padding: 14px 0 2px;
    border-top: 1px solid var(--ms-border-soft);
}

.pg_viewthread .comiis_lzinfo .tns th,
.pg_viewthread .comiis_lzinfo .tns td {
    color: var(--ms-muted) !important;
}

.pg_viewthread .comiis_lzinfo .tns th p,
.pg_viewthread .comiis_lzinfo .tns td p,
.pg_viewthread .comiis_lzinfo .tns th p a,
.pg_viewthread .comiis_lzinfo .tns td p a {
    color: #344054 !important;
    font-size: 17px;
}

.pg_viewthread .comiis_lzinfo_one .km_btn {
    display: none !important;
}

/* TOC plugin visual integration */
.pg_viewthread .ms-toc-card--desktop {
    padding: 15px 16px 14px;
}

.pg_viewthread .ms-toc-card__head {
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom-color: var(--ms-border-soft);
}

.pg_viewthread .ms-toc-link {
    border-radius: 6px;
}

.pg_viewthread .ms-toc-link.is-active {
    background: var(--ms-primary-soft);
    color: var(--ms-primary) !important;
}

/* DIY latest-post card */
.pg_viewthread #comiis_list_r01 {
    margin-top: 0;
}

.pg_viewthread #comiis_list_r01 .bm {
    margin-bottom: 14px;
}

.pg_viewthread #comiis_list_r01 .bm_h {
    height: auto;
    min-height: 28px;
    padding: 14px 16px 10px;
    border-bottom: 0;
    background: transparent;
    color: #1d2939;
}

.pg_viewthread #comiis_list_r01 .bm_h h2 {
    position: relative;
    padding-left: 11px;
    font-size: 15px;
    font-weight: 700;
}

.pg_viewthread #comiis_list_r01 .bm_h h2::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--ms-primary);
}

.pg_viewthread #comiis_list_r01 .bm_c {
    padding: 0 16px 14px;
}

/* =========================================================
   Replies / discussion
   ========================================================= */
.pg_viewthread .comiis_viewtitle {
    margin: 18px 0 10px;
    padding: 0 4px;
}

.pg_viewthread .comiis_viewtitle h2 {
    height: 44px;
    line-height: 44px;
    color: #1d2939;
    font-size: 17px;
    font-weight: 700;
}

.pg_viewthread .comiis_viewtitle h2 em {
    border-radius: 999px;
    background: var(--ms-primary-soft);
    color: var(--ms-primary);
}

.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) {
    margin-bottom: 12px;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) .plc {
    padding: 0 22px;
}

/* =========================================================
   Fast reply
   ========================================================= */
.pg_viewthread #f_pst,
.pg_viewthread .comiis_f_pstb {
    border: 1px solid var(--ms-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1050px) {
    .pg_viewthread .ms-tech-article-head h1.ts {
        max-width: calc(100% - 90px);
        font-size: 26px !important;
    }

    .pg_viewthread #postlist > .comiis_vone .plc {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 800px) {
    .pg_viewthread .ms-tech-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pg_viewthread .ms-tech-article-head .plc.vwthd {
        padding: 21px 20px !important;
    }

    .pg_viewthread .ms-tech-article-head h1.ts {
        max-width: 100%;
        padding-right: 0;
        font-size: 23px !important;
    }

    .pg_viewthread .ms-tech-article-head .plc.vwthd > .y {
        position: static;
        margin-top: 10px;
    }

    .pg_viewthread #postlist > .comiis_vone .plc {
        padding: 0 18px 24px !important;
    }

    .pg_viewthread #postlist > .comiis_vone .t_fsz,
    .pg_viewthread #postlist > .comiis_vone .t_f {
        font-size: 15.5px !important;
        line-height: 1.86 !important;
    }

    .pg_viewthread #postlist > .comiis_vone .t_f h2 {
        margin-top: 34px !important;
        font-size: 21px !important;
    }

    .pg_viewthread #postlist > .comiis_vone .t_f h3 {
        font-size: 18px !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.1
   ========================================================= */

/* Wider, more balanced reading layout */
.comiis_wide .pg_viewthread .ms-tech-viewthread .sd,
.pg_viewthread.comiis_wide .ms-tech-viewthread .sd {
    width: 280px;
}

.comiis_wide .pg_viewthread .ms-tech-viewthread .mn,
.pg_viewthread.comiis_wide .ms-tech-viewthread .mn {
    width: 905px;
}

.pg_viewthread .ms-tech-viewthread .sd {
    margin-left: 15px;
}

/* ---------------------------------------------------------
   Top toolbar: content first, controls second
   --------------------------------------------------------- */
.pg_viewthread .ms-tech-actions {
    margin-bottom: 12px !important;
}

.pg_viewthread .ms-tech-actions .pgb {
    float: none !important;
    margin-right: auto !important;
}

.pg_viewthread .ms-tech-actions .pgb a {
    height: 32px;
    line-height: 30px;
    padding: 0 9px;
    border-color: transparent !important;
    background: transparent !important;
    color: #667085 !important;
}

.pg_viewthread .ms-tech-actions .pgb a::before {
    content: "← ";
}

.pg_viewthread .ms-tech-actions .pgb a:hover {
    border-color: transparent !important;
    background: #eef2f6 !important;
    color: #344054 !important;
    transform: none;
}

.pg_viewthread .ms-tech-actions #newspecial,
.pg_viewthread .ms-tech-actions #post_reply,
.pg_viewthread .ms-tech-actions .comiis_tzgl {
    height: 32px;
    line-height: 30px;
    padding: 0 11px;
    margin-right: 6px !important;
    border-radius: 7px;
    font-size: 12px;
}

.pg_viewthread .ms-tech-actions #newspecial {
    padding-left: 13px;
    padding-right: 13px;
}

.pg_viewthread .ms-tech-actions #post_reply {
    border-color: #dbe4f3 !important;
    background: #fff !important;
}

.pg_viewthread .ms-tech-actions .comiis_tzgl {
    width: 34px;
    padding: 0;
    text-align: center;
}

.pg_viewthread .ms-tech-more-dots {
    display: block;
    margin-top: -3px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #667085;
}

/* ---------------------------------------------------------
   Visually merge title + article into one reading card
   --------------------------------------------------------- */
.pg_viewthread #postlist > .ms-tech-article-head {
    margin-bottom: 0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;

    /*
     * N7/Chromium rounded-table fix:
     * this node is a <table>. A blurred shadow on the same rounded table
     * is anti-aliased separately from its 1px border and can show as a
     * second pale arc at the two top corners. The lower article card
     * already owns the visual elevation, so keep the title table to one
     * crisp border layer and clip its cells to the same curve.
     */
    box-shadow: none;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

/* Clip table-cell backgrounds to the outer top curve. This also neutralizes
   N7's generic .pls border-radius when the left author column is visible. */
.pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:first-child {
    border-radius: 11px 0 0 0 !important;
}

.pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:last-child {
    border-radius: 0 11px 0 0 !important;
}

.pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:first-child:last-child {
    border-radius: 11px 11px 0 0 !important;
}

.pg_viewthread #postlist > .comiis_vone {
    margin-top: 0;
    border-top: 1px solid #f0f2f5;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 7px 22px rgba(16,24,40,.035);
}

.pg_viewthread .ms-tech-article-head .plc.vwthd {
    padding: 26px 30px 23px !important;
}

.pg_viewthread .ms-tech-article-head h1.ts {
    margin-bottom: 0;
}

.pg_viewthread #postlist > .comiis_vone .plc {
    padding: 0 30px 26px !important;
}

/* Metadata becomes the article byline */
.pg_viewthread #postlist > .comiis_vone .pi {
    min-height: 42px;
    margin-bottom: 26px !important;
    padding: 11px 0 10px !important;
    border-bottom: 1px solid #f0f2f5 !important;
}

.pg_viewthread #postlist > .comiis_vone .plc .authi {
    color: #98a2b3;
    font-size: 12px;
}

/* Reduce the "empty forum-post" feel on short articles */
.pg_viewthread #postlist > .comiis_vone .t_fsz,
.pg_viewthread #postlist > .comiis_vone .pcb,
.pg_viewthread #postlist > .comiis_vone .pcbs {
    min-height: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone .pct {
    padding-bottom: 0 !important;
}

/* ---------------------------------------------------------
   Article hierarchy
   --------------------------------------------------------- */
.pg_viewthread #postlist > .comiis_vone .t_f h2 {
    margin-top: 36px !important;
    margin-bottom: 16px !important;
}

.pg_viewthread #postlist > .comiis_vone .t_f h2:first-child {
    margin-top: 8px !important;
}

.pg_viewthread #postlist > .comiis_vone .t_f h3 {
    margin-top: 26px !important;
    margin-bottom: 12px !important;
}

.pg_viewthread #postlist > .comiis_vone .t_f h4 {
    margin-top: 20px !important;
    margin-bottom: 9px !important;
}

.pg_viewthread #postlist > .comiis_vone .t_f p {
    margin: 13px 0;
}

/* ---------------------------------------------------------
   Article action footer: support / oppose / favorite etc.
   --------------------------------------------------------- */
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: 30px 0 0 !important;
    padding: 18px 0 2px !important;
    border-top: 1px solid #f0f2f5;
    text-align: left !important;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna::before {
    content: "这篇内容对你有帮助吗？";
    margin-right: auto;
    color: #98a2b3;
    font-size: 12px;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna .tshare {
    margin-right: auto;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #e4e7ec;
    border-radius: 7px;
    background: #fff;
    color: #667085;
    line-height: 18px;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna a:hover {
    border-color: #cfd8e6;
    background: #f8fafc;
    color: #344054;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna i {
    display: inline-flex;
    align-items: center;
    padding: 0 !important;
    text-align: left;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna em {
    display: inline-block;
    margin: 0 4px 0 0 !important;
    font-size: 16px;
    line-height: 18px;
}

.pg_viewthread #postlist > .comiis_vone #p_btn #recommend_add {
    color: #2563eb;
}

.pg_viewthread #postlist > .comiis_vone #p_btn #recommend_subtract {
    color: #667085;
}

/* ---------------------------------------------------------
   Sidebar refinements
   --------------------------------------------------------- */
.pg_viewthread .ms-tech-viewthread .sd {
    width: 280px;
}

.pg_viewthread .ms-toc-card--desktop,
.pg_viewthread .comiis_lzinfo,
.pg_viewthread #comiis_list_r01 .bm {
    border-radius: 9px !important;
}

.pg_viewthread .ms-toc-card--desktop {
    margin-bottom: 14px;
}

.pg_viewthread .ms-toc-card__head strong {
    font-size: 15px;
}

.pg_viewthread .ms-toc-nav {
    max-height: min(52vh, 520px);
}

.pg_viewthread .ms-toc-link {
    min-height: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.pg_viewthread #comiis_list_r01 .bm_c li,
.pg_viewthread #comiis_list_r01 .bm_c li a {
    line-height: 1.65;
}

.pg_viewthread #comiis_list_r01 .bm_c li {
    margin: 4px 0;
}

/* ---------------------------------------------------------
   Remove duplicate bottom post/reply toolbar; keep page nav
   and return-list navigation.
   --------------------------------------------------------- */
.pg_viewthread .ms-tech-bottom-actions {
    min-height: 32px;
    margin: 8px 0 12px !important;
}

.pg_viewthread .ms-tech-bottom-actions > #newspecial,
.pg_viewthread .ms-tech-bottom-actions > #post_reply,
.pg_viewthread .ms-tech-bottom-actions > .pgsbtn,
.pg_viewthread .ms-tech-bottom-actions .comiis_tzgl {
    display: none !important;
}

.pg_viewthread .ms-tech-bottom-actions .pgb a {
    height: 28px;
    line-height: 26px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 12px;
}

.pg_viewthread .ms-tech-bottom-actions .pgb a::before {
    content: "← ";
}

/* ---------------------------------------------------------
   Discussion / fast reply
   --------------------------------------------------------- */
.pg_viewthread #f_pst,
.pg_viewthread .comiis_f_pstb {
    margin-top: 10px;
    border-radius: 11px !important;
    overflow: hidden;
}

.pg_viewthread #f_pst .bm_h,
.pg_viewthread .comiis_f_pstb .bm_h {
    min-height: 0;
    height: auto;
    margin: 0 !important;
    padding: 17px 20px 13px !important;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.pg_viewthread #f_pst .ms-tech-reply-head h2 {
    height: auto;
    line-height: 1.35;
    margin: 0;
    padding: 0 0 3px 12px;
    border-left: 3px solid #2563eb;
    color: #1d2939;
    font-size: 16px;
    font-weight: 700;
}

.pg_viewthread #f_pst .ms-tech-reply-head p {
    margin: 4px 0 0 15px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.5;
}

.pg_viewthread #f_pst table {
    background: #fff;
}

.pg_viewthread #f_pst .pls {
    width: 58px;
    padding: 16px 0 0 18px;
    border-right: 0 !important;
    background: #fff !important;
}

.pg_viewthread #f_pst .pls .avatar img {
    width: 38px;
    height: 38px;
    border: 1px solid #eaecf0;
    border-radius: 50%;
}

.pg_viewthread #f_pst .plc {
    padding: 14px 18px 17px 8px !important;
}

.pg_viewthread #f_pst .tedt {
    border: 1px solid #e4e7ec !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

.pg_viewthread #f_pst .tedt .bar {
    min-height: 36px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
}

.pg_viewthread #f_pst .tedt .area {
    background: #fff;
}

.pg_viewthread #f_pst .tedt textarea {
    min-height: 112px !important;
    padding: 11px 12px !important;
    color: #344054;
    font-size: 14px;
    line-height: 1.7;
}

.pg_viewthread #f_pst .pnpost {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px !important;
    padding-top: 0 !important;
}

.pg_viewthread #f_pst #fastpostsubmit {
    height: 34px;
    padding: 0 17px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    box-shadow: none;
}

.pg_viewthread #f_pst #fastpostsubmit:hover {
    background: #1d4ed8;
}

.pg_viewthread #f_pst .pnpost > .y {
    margin-left: auto;
    color: #98a2b3;
    font-size: 11px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1050px) {
    .pg_viewthread .ms-tech-viewthread .sd {
        width: 250px;
    }

    .pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna::before {
        display: none;
    }
}

@media (max-width: 800px) {
    .pg_viewthread #postlist > .ms-tech-article-head {
        border-radius: 10px 10px 0 0;
    }

    .pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:first-child {
        border-radius: 9px 0 0 0 !important;
    }

    .pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:last-child {
        border-radius: 0 9px 0 0 !important;
    }

    .pg_viewthread #postlist > .ms-tech-article-head > tbody > tr:first-child > td:first-child:last-child {
        border-radius: 9px 9px 0 0 !important;
    }

    .pg_viewthread #postlist > .comiis_vone {
        border-radius: 0 0 10px 10px;
    }

    .pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pg_viewthread #f_pst .pls {
        display: none;
    }

    .pg_viewthread #f_pst .plc {
        padding-left: 16px !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.2 - visual bug fixes
   ========================================================= */

/* The top toolbar now lives inside .mn in sidebar mode. */
.pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px !important;
}

/* Single glyph; never wrap the moderator-more icon. */
.pg_viewthread .ms-tech-more-dots {
    display: block;
    width: 100%;
    margin: -2px 0 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 19px;
    line-height: 27px;
    letter-spacing: 0;
    text-align: center;
}

/* Cleaner comments heading: old elevator UI is removed in template. */
.pg_viewthread #comiis_allreplies.comiis_viewtitle {
    margin: 0 !important;
    padding: 0 20px;
    border-bottom: 1px solid #f0f2f5;
}

.pg_viewthread #comiis_allreplies.comiis_viewtitle h2 {
    display: flex;
    align-items: center;
    min-height: 48px;
    height: auto;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 700;
    color: #1d2939;
}

.pg_viewthread #comiis_allreplies.comiis_viewtitle h2::before {
    margin: 0 10px 0 0 !important;
    height: 15px !important;
}

.pg_viewthread #comiis_allreplies .comiis_hfpx {
    order: 3;
    margin: 0 0 0 8px !important;
    height: 28px;
    line-height: 26px;
    padding: 0 7px 0 9px;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #fff;
}

.pg_viewthread #comiis_allreplies .comiis_hfpx a {
    color: #667085 !important;
    font-size: 12px;
}

.pg_viewthread #comiis_allreplies .comiis_hfpx:hover {
    border-color: #d0d5dd;
    background: #f8fafc;
}

/* Reply card: reduce the remaining old-forum spacing. */
.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) .pi {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
}

.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) .t_fsz {
    min-height: 26px !important;
}

.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) .pct {
    padding-bottom: 8px;
}

.pg_viewthread .comiis_postlist .comiis_vpost:not(.comiis_vone) .plc .po {
    padding-bottom: 8px;
}

/* Reply composer title used two blue bars:
   N7 adds ::before, v1.1 added border-left. Keep only one. */
.pg_viewthread #f_pst .ms-tech-reply-head h2::before {
    display: none !important;
    content: none !important;
}

.pg_viewthread #f_pst .ms-tech-reply-head h2 {
    border-left: 3px solid #2563eb;
    padding-left: 10px;
}

/* Make the composer table/columns line up cleanly. */
.pg_viewthread #f_pst > form > table {
    width: 100%;
    table-layout: fixed;
}

.pg_viewthread #f_pst .pls {
    width: 48px !important;
    padding: 16px 0 0 16px !important;
    vertical-align: top;
}

.pg_viewthread #f_pst .plc {
    width: auto !important;
    padding: 14px 16px 17px 8px !important;
}

.pg_viewthread #f_pst .pls .avatar,
.pg_viewthread #f_pst .pls .avatar img {
    width: 34px !important;
    height: 34px !important;
}

/* Fast reply action row:
   submit first, options next, credit rules at far right. */
.pg_viewthread #f_pst .pnpost {
    justify-content: flex-start;
}

.pg_viewthread #f_pst #fastpostsubmit {
    order: 1;
    flex: 0 0 auto;
}

.pg_viewthread #f_pst .pnpost > label {
    order: 2;
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 11px;
}

.pg_viewthread #f_pst .pnpost > a.y {
    order: 99;
    float: none !important;
    margin-left: auto !important;
    color: #98a2b3 !important;
    font-size: 11px;
}

/* Bottom action strip should disappear completely when there is no pager. */
.pg_viewthread .ms-tech-bottom-actions {
    margin-top: 6px !important;
    min-height: 0;
}

.pg_viewthread .ms-tech-bottom-actions:empty {
    display: none;
}

/* Latest-post list: prevent long titles from visually colliding/clipping. */
.pg_viewthread #comiis_list_r01 .bm_c li {
    min-width: 0;
    overflow: hidden;
}

.pg_viewthread #comiis_list_r01 .bm_c li a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article action buttons: keep the two main recommend buttons compact. */
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    min-height: 37px;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna #recommend_add,
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna #recommend_subtract {
    min-height: 30px;
    box-sizing: border-box;
}

/* At narrower desktop widths, top actions still stay in the article column. */
@media (max-width: 1050px) {
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions {
        padding-right: 0;
    }
}

@media (max-width: 800px) {
    .pg_viewthread #comiis_allreplies.comiis_viewtitle {
        padding: 0 14px;
    }

    .pg_viewthread #comiis_allreplies .comiis_hfpx {
        margin-left: auto !important;
    }

    .pg_viewthread #f_pst .pls {
        display: none;
    }

    .pg_viewthread #f_pst .plc {
        padding-left: 14px !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.3
   Compact single-line toolbars
   ========================================================= */

/* ---------------------------------------------------------
   Top toolbar: all controls form one compact line instead
   of sitting at opposite ends of a wide empty strip.
   --------------------------------------------------------- */
.pg_viewthread .ms-tech-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px;
    width: 100%;
    min-height: 34px;
}

.pg_viewthread .ms-tech-actions > * {
    float: none !important;
}

.pg_viewthread .ms-tech-actions .pgt {
    display: inline-flex;
    order: 99;
    margin-left: auto;
}

.pg_viewthread .ms-tech-actions .pgb {
    order: 1;
    margin: 0 4px 0 0 !important;
}

.pg_viewthread .ms-tech-actions #newspecial {
    order: 2;
}

.pg_viewthread .ms-tech-actions #post_reply {
    order: 3;
}

.pg_viewthread .ms-tech-actions .comiis_tzgl {
    order: 4;
}

.pg_viewthread .ms-tech-actions .pgb a,
.pg_viewthread .ms-tech-actions #newspecial,
.pg_viewthread .ms-tech-actions #post_reply,
.pg_viewthread .ms-tech-actions .comiis_tzgl {
    flex: 0 0 auto;
}

.pg_viewthread .ms-tech-actions .pgb a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    line-height: 32px;
    padding: 0 8px !important;
}

.pg_viewthread .ms-tech-actions .pgb a::before {
    content: "←";
    margin-right: 5px;
}

/* ---------------------------------------------------------
   First article footer:
   left = 回复 / 编辑 / 推荐 ...
   right = 有帮助吗？ 支持 / 反对
   Both are now visually one single horizontal line.
   --------------------------------------------------------- */
.pg_viewthread #postlist > .comiis_vone {
    position: relative;
    padding-bottom: 58px;
}

/* Collapse the two legacy table rows: their controls are
   absolutely placed into the same visual footer. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-reaction-row,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po-row {
    height: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-reaction-cell,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po-row > td {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
}

/* A single subtle separator above the unified footer. */
.pg_viewthread #postlist > .comiis_vone::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 56px;
    height: 1px;
    background: #f0f2f5;
    pointer-events: none;
}

/* Left-side article actions */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po {
    position: absolute;
    z-index: 4;
    left: 30px;
    bottom: 16px;
    display: flex;
    align-items: center;
    width: auto;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    margin: 0;
    padding: 0;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob em,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob p {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 4px 7px !important;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #98a2b3 !important;
    font-size: 12px;
    line-height: 19px;
    opacity: 1 !important;
    text-decoration: none !important;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a:hover {
    border-color: #e4e7ec;
    background: #f8fafc;
    color: #475467 !important;
}

/* Right-side helpful / support / against actions */
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    position: absolute;
    z-index: 4;
    right: 30px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: auto;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna::before {
    content: "这篇内容对你有帮助吗？";
    flex: 0 0 auto;
    margin: 0 6px 0 0;
    color: #98a2b3;
    font-size: 12px;
    white-space: nowrap;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna .tshare {
    display: inline-flex;
    align-items: center;
    margin: 0 4px 0 0 !important;
}

.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna a {
    min-height: 29px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 4px 9px !important;
}

/* The original first-post footer row must not reserve visible
   forum-style whitespace anymore. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po-row .plc {
    overflow: visible !important;
}

/* ---------------------------------------------------------
   Medium widths: keep one line, but shorten the helper label.
   --------------------------------------------------------- */
@media (max-width: 1000px) {
    .pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna::before {
        content: "有帮助吗？";
    }

    .pg_viewthread #postlist > .comiis_vone .ms-tech-first-po {
        left: 24px;
    }

    .pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
        right: 24px;
    }

    .pg_viewthread #postlist > .comiis_vone::after {
        left: 24px;
        right: 24px;
    }
}

/* Mobile: one-line desktop footer becomes two compact rows only
   when there genuinely isn't enough horizontal room. */
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-actions {
        flex-wrap: wrap;
    }

    .pg_viewthread #postlist > .comiis_vone {
        padding-bottom: 94px;
    }

    .pg_viewthread #postlist > .comiis_vone::after {
        left: 18px;
        right: 18px;
        bottom: 91px;
    }

    .pg_viewthread #postlist > .comiis_vone .ms-tech-first-po {
        left: 18px;
        right: 18px;
        bottom: 51px;
    }

    .pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
        left: 18px;
        right: auto;
        bottom: 14px;
        justify-content: flex-start;
    }
}


/* =========================================================
   MS Tech Article UI v1.4
   Left floating action rail
   ========================================================= */

/* Desktop: transform the original top action bar into a left rail. */
@media (min-width: 1180px) {
    .pg_viewthread .ms-tech-viewthread {
        position: relative;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions,
    .pg_viewthread > .ms-tech-actions {
        position: fixed !important;
        z-index: 90;
        top: 118px;
        left: max(14px, calc((100vw - 1200px) / 2 - 68px));
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start !important;
        gap: 8px;
        width: 48px !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Only one toolbar should visually show when N7 duplicates it. */
    .pg_viewthread > .ms-tech-actions {
        display: none !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions > * {
        float: none !important;
        order: initial !important;
        margin: 0 !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgt {
        display: contents;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        padding: 0 !important;
        border: 1px solid #e4e7ec !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 5px 16px rgba(16,24,40,.06) !important;
        color: #667085 !important;
        line-height: 1 !important;
        text-align: center;
        text-decoration: none !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition:
            transform .16s ease,
            border-color .16s ease,
            color .16s ease,
            background .16s ease,
            opacity .16s ease;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: inherit !important;
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb a::before {
        content: "←";
        margin: 0;
        color: currentColor;
        font-size: 21px;
        font-weight: 500;
    }

    /* New post */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial {
        font-size: 0;
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #fff !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::before {
        content: "+";
        font-size: 27px;
        font-weight: 400;
        line-height: 1;
    }

    /* Reply */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply {
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::before {
        content: "↩";
        font-size: 21px;
        line-height: 1;
    }

    /* More */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl {
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-more-dots {
        margin: 0 !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    /* Back to top */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop span {
        display: block;
        font-size: 22px;
        line-height: 1;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop em {
        display: none;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover {
        transform: translateY(-1px);
        border-color: #cfd8e6 !important;
        color: #2563eb !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover {
        border-color: #1d4ed8 !important;
        background: #1d4ed8 !important;
        color: #fff !important;
    }

    /* Native text labels are hidden, but provide tooltip-like label on hover. */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        position: relative;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop::after {
        position: absolute;
        left: 56px;
        top: 50%;
        z-index: 2;
        padding: 5px 8px;
        border-radius: 6px;
        background: #101828;
        color: #fff;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transform: translate(3px,-50%);
        transition: opacity .13s ease, transform .13s ease;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb::after {
        content: "返回列表";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::after {
        content: "发布新帖";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::after {
        content: "回复";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl::after {
        content: "帖子管理";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop::after {
        content: "回到顶部";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover::after {
        opacity: 1;
        transform: translate(0,-50%);
    }
}

/* Mid-size desktops: keep the v1.3 horizontal toolbar so it never overlaps content. */
@media (min-width: 801px) and (max-width: 1179px) {
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions {
        position: static !important;
        display: flex !important;
        flex-direction: row;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        display: none !important;
    }
}

/* Mobile: no floating rail. */
@media (max-width: 800px) {
    .pg_viewthread .ms-tech-backtop {
        display: none !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.5
   Horizontal floating tools + icon-style article footer
   ========================================================= */

/* ---------------------------------------------------------
   Desktop floating tools:
   keep following the page, but arrange horizontally.
   --------------------------------------------------------- */
@media (min-width: 1180px) {
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions {
        position: fixed !important;
        z-index: 90;
        top: 92px;
        left: max(18px, calc((100vw - 1200px) / 2 - 20px));
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 6px !important;
        border: 1px solid #e4e7ec !important;
        border-radius: 11px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 7px 22px rgba(16,24,40,.08) !important;
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb a {
        width: 38px !important;
        height: 38px !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial {
        background: #2563eb !important;
        color: #fff !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover {
        background: #1d4ed8 !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover {
        background: #f2f4f7 !important;
        transform: none !important;
    }

    /* Tooltips now appear below the horizontal row. */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop::after {
        left: 50% !important;
        top: 47px !important;
        transform: translate(-50%, 3px) !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover::after {
        transform: translate(-50%, 0) !important;
    }

    /* Back-to-top still appears only after scrolling. */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        width: 0 !important;
        min-width: 0 !important;
        margin-left: -6px !important;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        padding: 0 !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop.is-visible {
        width: 38px !important;
        min-width: 38px !important;
        margin-left: 0 !important;
        opacity: 1;
        pointer-events: auto;
    }
}

/* ---------------------------------------------------------
   First-post unified footer:
   make every action a consistent icon button.
   --------------------------------------------------------- */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob {
    gap: 6px;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a {
    min-width: 34px;
    height: 30px;
    padding: 0 9px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #667085 !important;
    font-size: 0 !important;
    line-height: 28px !important;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a:hover {
    border-color: #cfd8e6 !important;
    background: #f8fafc !important;
    color: #2563eb !important;
}

/* Reply */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.replyadd::before,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.fastre::before,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="action=reply"]::before {
    content: "💬";
    font-size: 15px;
    line-height: 1;
}

/* Edit */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.editp::before,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="action=edit"]::before {
    content: "✎";
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

/* Recommend/share-like action */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.recommend::before,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="recommend"]::before {
    content: "↗";
    font-size: 17px;
    line-height: 1;
}

/* Generic fallback for icon-only links that still have background icons. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a i,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a span {
    font-size: 14px !important;
}

/* Add small tooltip labels for the common first-post actions. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a {
    position: relative;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a::after {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 6;
    padding: 4px 7px;
    border-radius: 5px;
    background: #101828;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 3px);
    transition: opacity .12s ease, transform .12s ease;
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.replyadd::after,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.fastre::after,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="action=reply"]::after {
    content: "回复";
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.editp::after,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="action=edit"]::after {
    content: "编辑";
}

.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a.recommend::after,
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a[href*="recommend"]::after {
    content: "推荐";
}

/* Helpful/support/against keeps text, but matches the same button geometry. */
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna a {
    height: 30px;
    min-height: 30px;
    padding: 0 9px !important;
    line-height: 28px !important;
    border-radius: 7px !important;
}

/* Keep everything visually on one baseline. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po,
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    bottom: 15px;
    height: 30px;
}

/* Mobile remains compact but can wrap if necessary. */
@media (max-width: 680px) {
    .pg_viewthread #postlist > .comiis_vone .ms-tech-first-po .pob a {
        min-width: 32px;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.4
   Left floating action rail
   ========================================================= */

/* Desktop: transform the original top action bar into a left rail. */
@media (min-width: 1180px) {
    .pg_viewthread .ms-tech-viewthread {
        position: relative;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions,
    .pg_viewthread > .ms-tech-actions {
        position: fixed !important;
        z-index: 90;
        top: 118px;
        left: max(14px, calc((100vw - 1200px) / 2 - 68px));
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start !important;
        gap: 8px;
        width: 48px !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Only one toolbar should visually show when N7 duplicates it. */
    .pg_viewthread > .ms-tech-actions {
        display: none !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions > * {
        float: none !important;
        order: initial !important;
        margin: 0 !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgt {
        display: contents;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        padding: 0 !important;
        border: 1px solid #e4e7ec !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 5px 16px rgba(16,24,40,.06) !important;
        color: #667085 !important;
        line-height: 1 !important;
        text-align: center;
        text-decoration: none !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition:
            transform .16s ease,
            border-color .16s ease,
            color .16s ease,
            background .16s ease,
            opacity .16s ease;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: inherit !important;
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb a::before {
        content: "←";
        margin: 0;
        color: currentColor;
        font-size: 21px;
        font-weight: 500;
    }

    /* New post */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial {
        font-size: 0;
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #fff !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::before {
        content: "+";
        font-size: 27px;
        font-weight: 400;
        line-height: 1;
    }

    /* Reply */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply {
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::before {
        content: "↩";
        font-size: 21px;
        line-height: 1;
    }

    /* More */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl {
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-more-dots {
        margin: 0 !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    /* Back to top */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
        font-size: 0;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop span {
        display: block;
        font-size: 22px;
        line-height: 1;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop em {
        display: none;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover {
        transform: translateY(-1px);
        border-color: #cfd8e6 !important;
        color: #2563eb !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover {
        border-color: #1d4ed8 !important;
        background: #1d4ed8 !important;
        color: #fff !important;
    }

    /* Native text labels are hidden, but provide tooltip-like label on hover. */
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        position: relative;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop::after {
        position: absolute;
        left: 56px;
        top: 50%;
        z-index: 2;
        padding: 5px 8px;
        border-radius: 6px;
        background: #101828;
        color: #fff;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transform: translate(3px,-50%);
        transition: opacity .13s ease, transform .13s ease;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb::after {
        content: "返回列表";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial::after {
        content: "发布新帖";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply::after {
        content: "回复";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl::after {
        content: "帖子管理";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop::after {
        content: "回到顶部";
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .pgb:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #newspecial:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions #post_reply:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .comiis_tzgl:hover::after,
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop:hover::after {
        opacity: 1;
        transform: translate(0,-50%);
    }
}

/* Mid-size desktops: keep the v1.3 horizontal toolbar so it never overlaps content. */
@media (min-width: 801px) and (max-width: 1179px) {
    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions {
        position: static !important;
        display: flex !important;
        flex-direction: row;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions .ms-tech-backtop {
        display: none !important;
    }
}

/* Mobile: no floating rail. */
@media (max-width: 800px) {
    .pg_viewthread .ms-tech-backtop {
        display: none !important;
    }
}


/* =========================================================
   MS Tech Article UI v1.6
   顶部/左侧 + 首帖底部操作合并为一条吸顶工具栏
   ========================================================= */

.pg_viewthread .ms-tech-actions {
    display: none !important;
}

.pg_viewthread #postlist > .comiis_vone.ms-tech-unified-ready {
    padding-bottom: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone.ms-tech-unified-ready::after {
    display: none !important;
}

/* 一整行，滚动时跟随。 */
.pg_viewthread .ms-tech-unified-toolbar {
    position: sticky;
    z-index: 88;
    top: 58px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 6px 20px rgba(16,24,40,.07);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    scrollbar-width: none;
}

.pg_viewthread .ms-tech-unified-toolbar::-webkit-scrollbar {
    display: none;
}

.pg_viewthread .ms-tech-unified-toolbar .ms-tech-uitem {
    display: inline-flex !important;
    vertical-align: middle;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #667085 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.pg_viewthread .ms-tech-unified-toolbar button.ms-tech-uitem {
    font-family: inherit;
}

.pg_viewthread .ms-tech-unified-toolbar .ms-tech-uitem:hover {
    border-color: #cfd8e6 !important;
    background: #f8fafc !important;
    color: #2563eb !important;
}

.pg_viewthread .ms-tech-unified-toolbar .ms-tech-uicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    font-size: 15px;
    font-style: normal;
    line-height: 1;
}

.pg_viewthread .ms-tech-unified-toolbar .ms-tech-ulabel {
    display: inline-block;
}

/* “发表”保持主按钮视觉。 */
.pg_viewthread .ms-tech-unified-toolbar .is-publish {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
}

.pg_viewthread .ms-tech-unified-toolbar .is-publish:hover {
    border-color: #1d4ed8 !important;
    background: #1d4ed8 !important;
    color: #fff !important;
}

.pg_viewthread .ms-tech-unified-toolbar .is-support {
    color: #2563eb !important;
}

.pg_viewthread .ms-tech-unified-toolbar .is-against {
    color: #667085 !important;
}

.pg_viewthread .ms-tech-unified-toolbar .ms-tech-ucount {
    margin-left: -2px;
    font-size: 11px;
    color: currentColor;
}

/* 三组操作之间加很轻的分隔，但仍是一整行。 */
.pg_viewthread .ms-tech-unified-toolbar .is-publish,
.pg_viewthread .ms-tech-unified-toolbar .is-support {
    margin-left: 6px !important;
    position: relative;
}

.pg_viewthread .ms-tech-unified-toolbar .is-publish::before,
.pg_viewthread .ms-tech-unified-toolbar .is-support::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 1px;
    height: 18px;
    background: #eaecf0;
}

.pg_viewthread .ms-tech-unified-toolbar .is-publish::before {
    background: #d0d5dd;
}

/* 回顶部继续保留在最后，只有滚动后出现。 */
.pg_viewthread .ms-tech-unified-toolbar .is-backtop {
    display: none !important;
}

.pg_viewthread .ms-tech-unified-toolbar .is-backtop.is-visible {
    display: inline-flex !important;
}

/* 旧的首帖底部定位规则作废。 */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po,
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    position: static !important;
}

/* 手机不吸顶，只保留单行横向滚动，避免遮挡正文。 */
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-unified-toolbar {
        position: static;
        width: 100%;
        margin-bottom: 10px;
    }
}


/* =========================================================
   MS Tech Article UI v1.7
   Final article-bottom action bar
   ========================================================= */

/* 彻底清理前几版顶部/左侧悬浮工具。 */
.pg_viewthread .ms-tech-actions,
.pg_viewthread .ms-tech-backtop,
.pg_viewthread #ms-tech-backtop,
.pg_viewthread #ms-tech-unified-toolbar {
    display: none !important;
}

/* 前一版 sticky 工具栏完全停用。 */
.pg_viewthread .ms-tech-unified-toolbar {
    display: none !important;
}

/* 首帖恢复正常底部空间，由新的操作栏自己占位。 */
.pg_viewthread #postlist > .comiis_vone.ms-tech-bottom-toolbar-ready {
    padding-bottom: 0 !important;
}

.pg_viewthread #postlist > .comiis_vone.ms-tech-bottom-toolbar-ready::after {
    display: none !important;
}

/* 最终单行操作栏：位于文章正文卡片最下面。 */
.pg_viewthread .ms-tech-bottom-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    width: calc(100% - 60px);
    min-height: 50px;
    margin: 24px 30px 0;
    padding: 10px 0 8px;
    overflow-x: auto;
    border-top: 1px solid #f0f2f5;
    background: transparent;
    scrollbar-width: none;
}

.pg_viewthread .ms-tech-bottom-toolbar::-webkit-scrollbar {
    display: none;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem {
    display: inline-flex !important;
    vertical-align: middle;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #667085 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color .14s ease,
        background .14s ease,
        color .14s ease;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem:hover {
    border-color: #cfd8e6 !important;
    background: #f8fafc !important;
    color: #2563eb !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    font-size: 15px;
    font-style: normal;
    line-height: 1;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-ulabel {
    display: inline-block;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-ucount {
    margin-left: -2px;
    color: currentColor;
    font-size: 11px;
}

/* 支持按钮使用蓝色强调。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-support {
    color: #2563eb !important;
}

/* 管理按钮与普通按钮一致，不再单独占一块。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-manage {
    color: #667085 !important;
}

/* 轻微分组：管理后进入评价区。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-support {
    position: relative;
    margin-left: 5px !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-support::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 1px;
    height: 18px;
    background: #eaecf0;
}

/* 清除 v1.3-v1.6 首帖底部绝对定位规则。 */
.pg_viewthread #postlist > .comiis_vone .ms-tech-first-po,
.pg_viewthread #postlist > .comiis_vone #p_btn.comiis_p_btna {
    position: static !important;
}

/* 手机仍保持一整行，可左右滑动。 */
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-bottom-toolbar {
        width: calc(100% - 36px);
        margin-left: 18px;
        margin-right: 18px;
        padding-bottom: 10px;
    }

    .pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem {
        flex: 0 0 auto;
    }
}


/* =========================================================
   MS Tech Article UI v1.8
   Fix legacy floating controls + duplicate icons + manager menu
   ========================================================= */

/* v1.4 的选择器权重较高，v1.7 的简单 display:none 不足以压住。
   这里明确把所有旧来源容器彻底折叠。 */
.pg_viewthread .ms-tech-viewthread .mn > .ms-tech-actions,
.pg_viewthread .ms-tech-viewthread > .ms-tech-actions,
.pg_viewthread > .ms-tech-actions,
.pg_viewthread .ms-tech-actions.ms-tech-actions-ready,
.pg_viewthread #pgt.ms-tech-actions {
    display: none !important;
    visibility: hidden !important;
    position: static !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 再兜底清理之前产生的单独返回/发表/回复/回顶部控件。 */
.pg_viewthread .ms-tech-actions #newspecial,
.pg_viewthread .ms-tech-actions #post_reply,
.pg_viewthread .ms-tech-actions .pgb,
.pg_viewthread .ms-tech-actions .comiis_tzgl,
.pg_viewthread .ms-tech-actions .ms-tech-backtop {
    display: none !important;
}

/* N7 原来会给 fastre/editp/push 加背景 SVG 和 dzicon ::before。
   新工具栏已经自己提供图标，因此必须全部 reset。 */
.pg_viewthread .ms-tech-bottom-toolbar a.fastre,
.pg_viewthread .ms-tech-bottom-toolbar a.editp,
.pg_viewthread .ms-tech-bottom-toolbar a.push,
.pg_viewthread .ms-tech-bottom-toolbar .is-post-reply,
.pg_viewthread .ms-tech-bottom-toolbar .is-edit,
.pg_viewthread .ms-tech-bottom-toolbar .is-recommend {
    background: #fff !important;
    background-image: none !important;
    text-indent: 0 !important;
}

.pg_viewthread .ms-tech-bottom-toolbar a.fastre::before,
.pg_viewthread .ms-tech-bottom-toolbar a.editp::before,
.pg_viewthread .ms-tech-bottom-toolbar a.push::before,
.pg_viewthread .ms-tech-bottom-toolbar .is-post-reply::before,
.pg_viewthread .ms-tech-bottom-toolbar .is-edit::before,
.pg_viewthread .ms-tech-bottom-toolbar .is-recommend::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    margin: 0 !important;
}

/* 清掉旧 .pob 的内边距/背景规则残留。 */
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem {
    background-image: none !important;
    text-indent: 0 !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem > i,
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem > em {
    display: none !important;
}

/* 管理按钮只用文字，不再显示原来的 ⋯/旧背景。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-manage {
    min-width: 46px;
    background-image: none !important;
}

/* 管理菜单改造成和文章 UI 一致的小型浮层。 */
#comiis_guanli_menu.ms-tech-manage-menu {
    box-sizing: border-box !important;
    padding: 8px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(16,24,40,.16) !important;
    line-height: normal !important;
}

#comiis_guanli_menu.ms-tech-manage-menu a {
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    width: calc(33.333% - 6px);
    min-height: 34px;
    margin: 3px !important;
    padding: 6px 9px !important;
    border-radius: 6px;
    color: #475467 !important;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

#comiis_guanli_menu.ms-tech-manage-menu a:hover {
    background: #f2f4f7 !important;
    color: #2563eb !important;
}

#comiis_guanli_menu.ms-tech-manage-menu .pipe {
    display: none !important;
}

/* 底部操作栏再紧凑一点，和文章正文卡片融为一体。 */
.pg_viewthread .ms-tech-bottom-toolbar {
    min-height: 48px;
    margin-top: 18px;
    padding-top: 9px;
    padding-bottom: 7px;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem {
    height: 31px !important;
    line-height: 29px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
}

/* 图标大小统一，emoji 不再显得比文字高很多。 */
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uicon {
    min-width: 14px;
    font-size: 14px;
    line-height: 1;
}

/* 屏幕较窄时管理菜单改成两列。 */
@media (max-width: 680px) {
    #comiis_guanli_menu.ms-tech-manage-menu a {
        width: calc(50% - 6px);
    }
}


/* =========================================================
   MS Tech Article UI v1.9
   Fully custom fixed management popover
   ========================================================= */

body #comiis_guanli_menu.ms-tech-manage-menu {
    position: fixed !important;
    z-index: 10050 !important;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    box-sizing: border-box !important;
    width: 300px;
    max-width: calc(100vw - 24px) !important;
    max-height: min(460px, calc(100vh - 24px));
    margin: 0 !important;
    padding: 8px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e4e7ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(16,24,40,.18) !important;
    transform: none !important;
    clip: auto !important;
}

body #comiis_guanli_menu.ms-tech-manage-menu[data-ms-open="1"] {
    display: grid !important;
}

body #comiis_guanli_menu.ms-tech-manage-menu a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    min-height: 34px;
    margin: 0 !important;
    padding: 7px 9px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: #475467 !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body #comiis_guanli_menu.ms-tech-manage-menu a:hover {
    background: #f2f4f7 !important;
    color: #2563eb !important;
}

body #comiis_guanli_menu.ms-tech-manage-menu .pipe {
    display: none !important;
}

@media (max-width: 680px) {
    body #comiis_guanli_menu.ms-tech-manage-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(300px, calc(100vw - 24px)) !important;
    }
}


/* =========================================================
   MS Tech Article UI v2.0
   Right-aligned action row + unified line SVG icons
   ========================================================= */

/* 整组操作栏靠文章卡片右侧。 */
.pg_viewthread .ms-tech-bottom-toolbar {
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-right: 30px !important;
    width: calc(100% - 60px) !important;
}

/* 左侧不再保留任何自动撑开的空白元素。 */
.pg_viewthread .ms-tech-bottom-toolbar::before {
    display: none !important;
    content: none !important;
}

/* 统一线性 SVG 图标。 */
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uicon {
    width: 16px;
    min-width: 16px;
    height: 16px;
    font-size: 0 !important;
    line-height: 1;
    color: currentColor;
}

.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uicon svg {
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 三点管理图标中的圆点需要填充。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-manage .ms-tech-uicon svg circle {
    fill: currentColor;
    stroke: none;
}

/* 支持/反对采用同一组线框手势，风格统一。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-support {
    border-color: #dbe7ff !important;
    background: #f8fbff !important;
    color: #2563eb !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-support:hover {
    border-color: #b8cff8 !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-against {
    color: #667085 !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-against:hover {
    color: #475467 !important;
}

/* 返回/回复/编辑/推荐/管理统一视觉，不再混合 emoji。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-return,
.pg_viewthread .ms-tech-bottom-toolbar .is-post-reply,
.pg_viewthread .ms-tech-bottom-toolbar .is-edit,
.pg_viewthread .ms-tech-bottom-toolbar .is-recommend,
.pg_viewthread .ms-tech-bottom-toolbar .is-manage {
    color: #667085 !important;
}

/* “管理”和评价区之间的分隔更自然。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-support {
    margin-left: 7px !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-support::before {
    left: -8px !important;
}

/* 按钮整体再收紧一些，右对齐后更像文章工具条。 */
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-uitem {
    height: 32px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 5px !important;
}

/* 手机上的操作栏仍从右侧开始，但可横向滑动。 */
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-bottom-toolbar {
        justify-content: flex-start !important;
        width: calc(100% - 36px) !important;
        margin-left: 18px !important;
        margin-right: 18px !important;
    }
}


/* =========================================================
   MS Tech Article UI v2.1
   Return button left, remaining actions right
   ========================================================= */

/* 操作栏占满文章宽度。 */
.pg_viewthread .ms-tech-bottom-toolbar {
    width: calc(100% - 60px) !important;
    margin-left: 30px !important;
    margin-right: 30px !important;
    justify-content: flex-end !important;
}

/* 返回按钮单独靠左，其余按钮继续靠右。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-return {
    margin-right: auto !important;
}

/* 返回按钮和右侧按钮视觉保持统一。 */
.pg_viewthread .ms-tech-bottom-toolbar .is-return {
    color: #667085 !important;
}

.pg_viewthread .ms-tech-bottom-toolbar .is-return:hover {
    color: #2563eb !important;
}

/* 手机端同样保持：返回在左，其他操作可横向滑动。 */
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-bottom-toolbar {
        width: calc(100% - 36px) !important;
        margin-left: 18px !important;
        margin-right: 18px !important;
    }

    .pg_viewthread .ms-tech-bottom-toolbar .is-return {
        margin-right: auto !important;
    }
}


/* =========================================================
   MS Tech Article UI v2.2
   Remove "Against" action
   ========================================================= */

.pg_viewthread .ms-tech-bottom-toolbar .is-against,
.pg_viewthread .ms-tech-bottom-toolbar #recommend_subtract {
    display: none !important;
}


/* =========================================================
   MS Tech Article UI v2.3
   Forum list page: remove bottom publish, move return top
   ========================================================= */

/* 删除列表页底部发布新帖按钮 */
.pg_forum .bm_h + .bm_c + .pg a.bluebtn,
.pg_forum .forum_bottom_post,
.pg_forum .bm_btn a.postbtn,
.pg_forum .comiis_postbtn_bottom {
    display: none !important;
}

/* 返回按钮移动到顶部操作区 */
.pg_forum .forum-return-top,
.pg_forum .comiis_return_top {
    display: inline-flex !important;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    margin-right: 10px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: #667085;
    font-size: 13px;
}

.pg_forum .forum-return-top:hover,
.pg_forum .comiis_return_top:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

/* 顶部管理/发布区域统一排列 */
.pg_forum .forum-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 如果返回按钮由原生 pgb 输出，强制靠近顶部右侧 */
.pg_forum .pgb {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}


/* =========================================================
   N7 post header v3.6 – return to list, same button as bottom toolbar
   Remove first-post supplemental links in PHP template only.
   Keep reply-floor controls, plugin hook and bottom actions untouched.
   ========================================================= */
.pg_viewthread #postlist > .comiis_vone .plc .authi.ms-tech-header-authi {
    min-height: 32px;
    height: auto !important;
}

.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return {
    display: inline-flex !important;
    vertical-align: middle;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    height: 32px !important;
    margin: 0 0 0 8px !important;
    padding: 0 10px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #667085 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return:hover {
    border-color: #cfd8e6 !important;
    background: #f8fafc !important;
    color: #2563eb !important;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return .ms-tech-uicon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    min-width: 16px;
    align-items: center;
    justify-content: center;
    color: inherit !important;
    line-height: 1;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return .ms-tech-uicon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return .ms-tech-ulabel {
    color: inherit !important;
}
/* N7 authi may give generic spacing to spans; reset only inside new button. */
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return .ms-tech-uicon,
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-return .ms-tech-ulabel {
    margin: 0 !important;
    padding: 0 !important;
}

/* v37: top actions inherit return-list sizing; only authorized actions are added. */
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi .ms-tech-head-actions .ms-tech-head-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 56px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: normal;
    text-decoration: none;
}

/* v38: subtle separator between the first post date and return-list button.
   Visual only: no clicks and no changes to original button behaviors. */
.pg_viewthread #postlist > .comiis_vone .plc .authi.ms-tech-header-authi .ms-tech-head-separator {
    display: inline-block !important;
    width: 1px !important;
    height: 13px !important;
    margin: 0 0 0 11px !important;
    padding: 0 !important;
    background: #d0d5dd !important;
    border: 0 !important;
    vertical-align: middle !important;
    pointer-events: none;
}
.pg_viewthread #postlist > .comiis_vone .plc .authi.ms-tech-header-authi .ms-tech-head-separator + .ms-tech-head-return {
    margin-left: 10px !important;
}

/* MSMOSS N7: preserve built-in topic actions omitted by the condensed bar.
   Original Discuz links and their handlers remain the source of truth. */
.pg_viewthread .ms-tech-bottom-toolbar .ms-tech-extra-toggle {
    font-family: inherit;
}
.pg_viewthread .ms-tech-extra-actions {
    display: none !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 30px 18px;
    padding: 12px 0 0;
    border-top: 1px dashed #eaecf0;
}
.pg_viewthread .ms-tech-extra-actions.is-open {
    display: flex !important;
}
.pg_viewthread .ms-tech-extra-actions .pob,
.pg_viewthread .ms-tech-extra-actions .pob > em,
.pg_viewthread .ms-tech-extra-actions .pob > p {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
}
.pg_viewthread #postlist > .comiis_vone .ms-tech-extra-actions #p_btn.comiis_p_btna {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.pg_viewthread #postlist > .comiis_vone .ms-tech-extra-actions #p_btn.comiis_p_btna::before {
    content: none !important;
    display: none !important;
}
.pg_viewthread .ms-tech-extra-actions .pob a,
.pg_viewthread .ms-tech-extra-actions #p_btn a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    height: auto !important;
    padding: 5px 10px !important;
    text-indent: 0 !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px;
    color: #667085 !important;
    font-size: 12px;
    line-height: 20px !important;
    text-decoration: none !important;
}
/* Respect the site theme's existing decision to hide negative voting. */
.pg_viewthread #postlist > .comiis_vone .ms-tech-extra-actions #p_btn.comiis_p_btna a#recommend_subtract {
    display: none !important;
}
/* Do not force visible dropdowns/Discuz popup content during the move. */
.pg_viewthread .ms-tech-extra-actions .pob ul.p_pop,
.pg_viewthread .ms-tech-extra-actions .pob ul.mgcmn {
    display: none;
}
@media (max-width: 680px) {
    .pg_viewthread .ms-tech-extra-actions {
        margin-left: 18px;
        margin-right: 18px;
    }
}
