@import url("../Classic/theme.css");

:root {
    --baozi-bg: #fbf3e6;
    --baozi-paper: #fffaf3;
    --baozi-paper-strong: #fffaf0;
    --baozi-cream: #fff0d8;
    --baozi-cream-2: #ffe5bb;
    --baozi-line: #efb26c;
    --baozi-line-soft: #ecd4b1;
    --baozi-orange: #ed5a17;
    --baozi-orange-bright: #ff741e;
    --baozi-orange-dark: #c94412;
    --baozi-ink: #231f1a;
    --baozi-muted: #74695e;
    --baozi-green: #198340;
    --baozi-blue: #2e6fae;
    --baozi-shadow: 0 7px 22px rgba(121, 76, 28, .07);
    --baozi-shell: 1536px;
    --baozi-radius: 12px;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    color: var(--baozi-ink);
    background: #f7ead4;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.theme-baozipt {
    min-height: 100vh;
    margin: 0;
    color: var(--baozi-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    background-color: var(--baozi-bg);
    background-image:
        radial-gradient(circle at 12% 6%, rgba(255, 255, 255, .72), transparent 25%),
        radial-gradient(circle at 90% 13%, rgba(255, 251, 238, .78), transparent 27%),
        repeating-linear-gradient(0deg, rgba(115, 72, 27, .018) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #fffaf1 0, #fbf3e7 72%, #f7ead4 100%);
    background-attachment: fixed;
}

body.theme-baozipt::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        radial-gradient(circle, rgba(86, 52, 21, .18) 0 .45px, transparent .65px),
        radial-gradient(circle, rgba(86, 52, 21, .12) 0 .45px, transparent .65px);
    background-position: 0 0, 4px 5px;
    background-size: 9px 9px, 13px 13px;
}

.theme-baozipt a { color: var(--baozi-orange-dark); text-decoration: none; }
.theme-baozipt a:hover { color: var(--baozi-orange); }
.theme-baozipt img { max-width: 100%; background-color: #fdefd8; }
.theme-baozipt table { color: var(--baozi-ink); }

.theme-baozipt table.head,
.theme-baozipt table.mainouter,
.theme-baozipt #footer {
    width: calc(100% - 48px) !important;
    max-width: var(--baozi-shell);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

/* Header: the menu keeps NexusPHP's original items and permission checks. */
.theme-baozipt table.head {
    position: relative;
    height: 114px;
    min-height: 114px;
    padding: 11px 0 8px;
    table-layout: fixed;
    background: transparent;
}

.theme-baozipt table.head td {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt table.head td:first-child { width: 245px; }
.theme-baozipt table.head td.nowrap > a[href="donate.php"] {
    position: absolute;
    z-index: 45;
    top: 50%;
    right: 0;
    display: flex;
    width: 72px;
    height: 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 3px 4px rgba(130, 18, 37, .2));
    transform: translateY(-50%);
}
.theme-baozipt table.head td.nowrap > a[href="donate.php"] img { display: block !important; width: 72px; height: 52px; margin: 0 !important; object-fit: contain; background: transparent; }

.theme-baozipt .site-brand,
.theme-baozipt .logo_img {
    display: flex;
    width: 230px;
    height: 86px;
    align-items: center;
    overflow: visible;
}

.theme-baozipt .site-brand__home {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
}

.theme-baozipt .site-brand__home:focus-visible {
    outline: 3px solid rgba(237, 90, 23, .42);
    outline-offset: 4px;
}

.theme-baozipt .logo_img img {
    display: block;
    width: 224px;
    max-width: none;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.theme-baozipt table.mainouter {
    padding: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate;
    background: transparent !important;
}

.theme-baozipt table.mainouter > tbody > tr > td { border: 0; background: transparent; }

.theme-baozipt #nav_block {
    position: relative;
    height: 0;
    min-width: 0;
    max-width: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt #nav {
    position: absolute;
    z-index: 30;
    top: -85px;
    right: 82px;
    left: 260px;
    min-width: 0;
    height: 56px;
}

.theme-baozipt #mainmenu,
.theme-baozipt #mainmenu.menu {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    background: transparent;
    scrollbar-width: none;
}

.theme-baozipt #mainmenu::-webkit-scrollbar { display: none; }

.theme-baozipt #mainmenu li {
    display: block;
    flex: 1 1 auto;
    min-width: 62px;
    max-width: 112px;
    margin: 0;
    white-space: nowrap;
}

.theme-baozipt #mainmenu li a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    color: var(--baozi-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: rgba(255, 252, 245, .84);
    box-shadow: 0 2px 0 rgba(187, 110, 34, .04);
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.theme-baozipt #nav a,
.theme-baozipt #nav a:link,
.theme-baozipt #nav a:visited,
.theme-baozipt #nav a:hover,
.theme-baozipt #nav a:focus,
.theme-baozipt #nav a:focus-visible,
.theme-baozipt #nav a:active {
    text-decoration: none !important;
}

.theme-baozipt #mainmenu li a:hover {
    color: var(--baozi-orange);
    border-color: var(--baozi-orange);
    background: #fffdf8;
    transform: translateY(-1px);
}

.theme-baozipt #mainmenu li.selected a {
    color: #fff;
    border-color: var(--baozi-orange);
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 5px 13px rgba(237, 90, 23, .18);
}

.theme-baozipt #mainmenu > li > a.selected {
    color: #fff;
    border-color: var(--baozi-orange);
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 5px 13px rgba(237, 90, 23, .18);
    transform: translateY(-1px);
}

.theme-baozipt #mainmenu .downarrowpointer {
    position: static;
    display: block;
    flex: 0 0 auto;
    width: 9px !important;
    height: 6px !important;
    max-width: none;
    margin: 0 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent !important;
    object-fit: contain;
    opacity: .72;
    transition: opacity .16s ease, transform .16s ease;
}

.theme-baozipt #mainmenu > li.selected > a .downarrowpointer,
.theme-baozipt #mainmenu > li > a.selected .downarrowpointer {
    filter: brightness(0) invert(1);
    opacity: .92;
}

.theme-baozipt #mainmenu > li > a.selected .downarrowpointer {
    transform: rotate(180deg);
}

/* ddlevelsmenu moves these nodes to the end of body, so they must be themed
   independently from #nav. Keep the JS animation shells transparent and put
   the visual card on each UL so nested menus are never clipped. */
body.theme-baozipt > .ddsubmenustyle {
    z-index: 3000 !important;
}

.theme-baozipt .ddsubmenustyle,
.theme-baozipt .ddsubmenustyle div {
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt .ddsubmenustyle ul {
    width: 196px;
    min-width: 196px;
    margin: 0;
    padding: 7px;
    list-style: none;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 12px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 12px 30px rgba(101, 59, 20, .16);
}

.theme-baozipt .ddsubmenustyle li {
    position: relative;
    margin: 0;
    padding: 0;
}

.theme-baozipt .ddsubmenustyle li + li {
    margin-top: 2px;
}

.theme-baozipt .ddsubmenustyle li > a {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    padding: 8px 30px 8px 12px;
    color: var(--baozi-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.theme-baozipt .ddsubmenustyle li > a:hover,
.theme-baozipt .ddsubmenustyle li > a:focus-visible,
.theme-baozipt .ddsubmenustyle li > a.selected,
.theme-baozipt .ddsubmenustyle li.selected > a {
    color: var(--baozi-orange-dark);
    background: var(--baozi-cream);
    box-shadow: inset 3px 0 0 var(--baozi-orange);
    outline: 0;
}

.theme-baozipt .ddsubmenustyle .rightarrowpointer {
    position: absolute;
    top: 50%;
    right: 11px;
    left: auto !important;
    width: 9px !important;
    height: 9px !important;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    opacity: .62;
    transform: translateY(-50%);
}

.theme-baozipt #nav::after {
    display: none;
}

.theme-baozipt #nav-mobiletoggle {
    display: none;
}

/* User strip */
.theme-baozipt .userbar {
    display: grid;
    width: 100%;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--baozi-ink);
    text-align: left;
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background: #fffaf0;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .userbar--compact {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    grid-template-rows: minmax(78px, auto);
    min-height: 78px;
}

.theme-baozipt .userbar--home {
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
    grid-template-rows: minmax(98px, auto) minmax(108px, auto);
    min-height: 206px;
}

.theme-baozipt.is-authenticated:not(.page-index) table.head {
    height: 106px;
    min-height: 106px;
}

.theme-baozipt.is-authenticated:not(.page-index) #nav { top: -81px; }

.theme-baozipt .userbar__identity {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 10px 20px;
}

.theme-baozipt .userbar--home .userbar__identity { padding: 12px 25px; }

.theme-baozipt .userbar__avatar {
    grid-row: 1 / 3;
    display: block;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 2px solid var(--baozi-orange);
    border-radius: 50%;
    background: #fdefd8;
}

.theme-baozipt .userbar--home .userbar__avatar { width: 70px; height: 70px; }

.theme-baozipt .userbar__avatar img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}

.theme-baozipt .userbar__welcome {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    overflow: visible;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
}

.theme-baozipt .userbar__welcome strong a { color: var(--baozi-orange); font-size: 19px; }

.theme-baozipt .userbar__welcome #welcome_text .nowrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-baozipt .userbar__welcome #welcome_text img.nexus-username-medal,
.theme-baozipt .userbar__welcome #welcome_text img.nexus-username-medal-big {
    width: 16px;
    height: 16px;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-left: 0 !important;
    flex: 0 0 16px;
    object-fit: contain;
}

.theme-baozipt .userbar__bonus {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 4px;
    color: #4b3d2f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid #efd2a7;
    border-radius: 999px;
    background: rgba(255, 247, 233, .9);
}

.theme-baozipt .userbar__bonus > img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    background: transparent !important;
}

.theme-baozipt .userbar__bonus-label,
.theme-baozipt .userbar__bonus-hint { flex: none; }

.theme-baozipt .userbar__bonus-value {
    min-width: 0;
    max-width: 154px;
    color: var(--baozi-orange-dark);
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    overflow-wrap: normal;
    white-space: normal;
}

.theme-baozipt .userbar__bonus-hint {
    color: #72593e;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.theme-baozipt .userbar__bonus-hint--pending { color: var(--baozi-orange-dark); }
.theme-baozipt .userbar__bonus-hint--attended { color: #4f7a35; }

.theme-baozipt .userbar__bonus.is-long .userbar__bonus-value { max-width: 128px; font-size: 11px; }
.theme-baozipt .userbar__bonus.is-xlong .userbar__bonus-value { max-width: 110px; font-size: 10px; }

.theme-baozipt .userbar__logout {
    padding: 2px 7px;
    color: #8b7967;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    background: #f4eadb;
}

.theme-baozipt .userbar__shortcuts {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.theme-baozipt .userbar__shortcuts::-webkit-scrollbar { display: none; }
.theme-baozipt .userbar__shortcuts a { flex: none; color: #3c3730; font-size: 11px; font-weight: 600; }

.theme-baozipt .userbar__shortcuts a + a::before {
    content: "|";
    margin: 0 9px;
    color: #ad9a82;
}

.theme-baozipt .userbar__meta { display: contents; }

.theme-baozipt .userbar__tools {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 126px));
    justify-content: end;
    gap: 0;
    min-width: 0;
    padding: 7px 7px 7px 0;
}

.theme-baozipt .userbar-tool {
    position: relative;
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: 1fr;
    min-width: 0;
    place-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 4px;
    color: var(--baozi-ink);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: color .16s ease, transform .16s ease;
}

.theme-baozipt .userbar-tool:hover,
.theme-baozipt .userbar-tool:focus-visible {
    color: var(--baozi-orange-dark);
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.theme-baozipt .userbar-tool::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 54px;
    background: #e7cda8;
    transform: translateY(-50%);
}

.theme-baozipt .userbar-tool__icon,
.theme-baozipt .userbar-tool img {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: transparent !important;
}

.theme-baozipt .userbar-tool b {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 0;
    height: auto;
    padding: 0;
    color: #171512;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt .userbar-tool--inbox.has-unread b { color: var(--baozi-orange-dark); }

.theme-baozipt .userbar-tool--rss { grid-template-columns: 1fr; }
.theme-baozipt .userbar-tool--rss .userbar-tool__icon { grid-column: 1; width: 42px; height: 42px; }

.theme-baozipt .userbar__stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1.025fr 1.025fr .95fr .93fr .995fr .89fr;
    gap: 8px;
    padding: 9px 24px 12px;
    border-top: 1px solid var(--baozi-line-soft);
    background: #fffaf3;
}

.theme-baozipt .userstat {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 86px;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 8px;
    padding: 7px 8px;
    text-align: center;
    border: 0;
    background: transparent url("../../pic/baozi-ticket-bg.svg?v=20260819") center / 100% 100% no-repeat;
}

.theme-baozipt .userstat__icon {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: end;
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: transparent;
    transform: none;
}

.theme-baozipt .userstat span {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    display: block;
    color: #4a4239;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

.theme-baozipt .userstat strong {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: #111;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    overflow-wrap: normal;
    white-space: nowrap;
}

.theme-baozipt .userstat strong em { font-style: normal; font-weight: 900; }
.theme-baozipt .userstat .seed-arrow { color: #139536; }
.theme-baozipt .userstat .leech-arrow { margin-left: .2em; color: #f04c1d; }
.theme-baozipt .userstat strong small {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
}
.theme-baozipt .userstat--connect .color_slots { display: none; }
.theme-baozipt .userstat--connectable strong,
.theme-baozipt .userstat--claim strong { font-size: 19px; }
.theme-baozipt .userstat--connectable strong a,
.theme-baozipt .userstat--claim strong a { color: inherit; }
.theme-baozipt .userstat--connectable strong font[color="green"] { color: #168b37 !important; }
.theme-baozipt .userstat--connectable strong font[color="red"] { color: #e45123 !important; }

/* Main canvas and shared controls */
.theme-baozipt #outer {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 0 14px !important;
    overflow-x: auto;
    text-align: left;
}

.theme-baozipt #outer > table.main:not(.nexus-message):not(.nexus-frame) { width: 100% !important; }
.theme-baozipt #outer p,
.theme-baozipt #outer li,
.theme-baozipt #outer label,
.theme-baozipt #outer td.text,
.theme-baozipt #outer td.rowfollow,
.theme-baozipt #outer th { overflow-wrap: anywhere; word-break: break-word; }
.theme-baozipt #outer pre,
.theme-baozipt #outer code { max-width: 100%; overflow-x: auto; overflow-wrap: normal; word-break: normal; }
.theme-baozipt input,
.theme-baozipt select,
.theme-baozipt textarea,
.theme-baozipt button { font: inherit; }

.theme-baozipt input[type="text"],
.theme-baozipt input[type="password"],
.theme-baozipt input[type="email"],
.theme-baozipt input[type="number"],
.theme-baozipt select,
.theme-baozipt textarea {
    color: var(--baozi-ink);
    border: 1px solid #ddb47f !important;
    border-radius: 7px;
    background: rgba(255, 253, 248, .94);
    outline: 0;
}

.theme-baozipt input[type="text"]:focus,
.theme-baozipt input[type="password"]:focus,
.theme-baozipt input[type="email"]:focus,
.theme-baozipt input[type="number"]:focus,
.theme-baozipt select:focus,
.theme-baozipt textarea:focus {
    border-color: var(--baozi-orange) !important;
    box-shadow: 0 0 0 3px rgba(237, 90, 23, .1);
}

.theme-baozipt input.btn,
.theme-baozipt button.btn,
.theme-baozipt a.baozi-button,
.theme-baozipt button.baozi-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    color: #fff !important;
    font-weight: 700;
    border: 1px solid var(--baozi-orange) !important;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
    cursor: pointer;
}

.theme-baozipt td.colhead,
.theme-baozipt td.colhead2 {
    color: #6c421f;
    border-color: var(--baozi-line-soft) !important;
    background: linear-gradient(90deg, #ffe8c5, #fff8eb) !important;
}

.theme-baozipt td.rowhead,
.theme-baozipt td.rowfollow,
.theme-baozipt td.toolbox,
.theme-baozipt td.text,
.theme-baozipt td.embedded { border-color: #ead8bd; }

.baozi-panel {
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: var(--baozi-radius);
    background: var(--baozi-paper);
    box-shadow: var(--baozi-shadow);
}

.baozi-panel__head {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, rgba(255, 235, 203, .72), rgba(255, 250, 240, .8));
}

.baozi-panel__head h1,
.baozi-panel__head h2,
.baozi-panel__head h3 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--baozi-ink);
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.baozi-panel__head a { color: #332d27; font-size: 11px; }

.baozi-empty {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px;
    color: var(--baozi-muted);
}

.baozi-empty strong { color: var(--baozi-ink); font-size: 16px; }
.baozi-empty p { margin: 5px 0 13px; }

.baozi-empty--wide {
    min-height: 140px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
}

.baozi-empty--wide img { width: 108px; height: auto; }
.baozi-empty--wide div { flex: 1; }

/* Home */
.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.97fr) minmax(350px, 1fr);
    gap: 14px;
    width: 100%;
    align-items: start;
}

.home-dashboard__main,
.home-dashboard__side { min-width: 0; }
.home-dashboard__main,
.home-dashboard__side {
    display: grid;
    grid-template-rows: none;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 14px;
}

.home-news { height: auto; min-height: 354px; }
.home-news .baozi-panel__head { min-height: 45px; }

.home-news .baozi-panel__head--ribbon h1 {
    position: relative;
    min-width: 220px;
    min-height: 38px;
    margin-left: -8px;
    padding: 0 24px 0 18px;
    color: #fff;
    font-size: 19px;
    background: linear-gradient(90deg, var(--baozi-orange-bright), var(--baozi-orange));
    border-radius: 7px 0 0 7px;
}

.home-news .baozi-panel__head--ribbon h1::after {
    content: "";
    position: absolute;
    top: 0;
    right: -15px;
    width: 28px;
    height: 38px;
    background: var(--baozi-orange);
    clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%);
}

.home-news__body {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    column-gap: 27px;
    row-gap: 0;
    min-height: 307px;
    padding: 17px 28px 10px;
}

.home-news__poster {
    position: relative;
    height: 184px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff4df;
    box-shadow: 0 2px 8px rgba(118, 66, 20, .12);
}

.home-news__poster-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.home-news__content {
    min-width: 0;
    height: 184px;
}

.home-news__content .home-news__summary {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
    align-content: start;
    align-items: start;
    justify-content: stretch;
    padding: 5px 0 1px;
}

.home-news__summary strong {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-news__summary p {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    margin: 2px 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-news__list {
    grid-column: 1 / -1;
    align-self: end;
    min-width: 0;
    border-top: 1px solid #ead8bd;
}

.home-news__item {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 30px;
    align-items: center;
    border-bottom: 1px dashed #ead9c1;
}

.theme-baozipt .home-news__trigger {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 30px !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 0 8px 0 0 !important;
    color: #3d3832 !important;
    font: inherit;
    text-align: left;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.home-news__item:hover { background: #fff8ed; }
.theme-baozipt.page-index .home-news__trigger:hover,
.theme-baozipt.page-index .home-news__trigger:focus-visible {
    color: #3d3832 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
.theme-baozipt .home-news__trigger:hover strong,
.theme-baozipt .home-news__trigger:focus-visible strong { color: var(--baozi-orange); }
.theme-baozipt .home-news__trigger:focus-visible { outline: 2px solid rgba(237, 90, 23, .35); outline-offset: -2px; }
.home-news__item:last-child { border-bottom: 0; }

.home-news__badge {
    flex: none;
    padding: 1px 6px;
    color: var(--baozi-orange);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    border: 1px solid var(--baozi-orange);
    border-radius: 4px;
    background: #fff8ec;
}

.home-news__list strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-news__list time {
    color: #8f8274;
    font-size: 10px;
    white-space: nowrap;
}

.home-news__publish {
    color: var(--baozi-orange-dark) !important;
    font-weight: 700;
}

.home-news__summary-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-news__admin-actions {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
}

.home-news__item > .home-news__admin-actions {
    padding-left: 7px;
}

.home-news__admin-action {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    color: var(--baozi-orange-dark) !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid #e7b273;
    border-radius: 5px;
    background: #fff8ed;
}

.home-news__admin-action:hover,
.home-news__admin-action:focus-visible {
    color: #fff !important;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

.home-news__admin-action--delete {
    color: #b7442e !important;
    border-color: #e2a291;
    background: #fff5f1;
}

.home-news__admin-action--delete:hover,
.home-news__admin-action--delete:focus-visible {
    border-color: #c64f36;
    background: #c64f36;
}

.home-news__open {
    justify-self: start;
    align-self: start;
    min-width: 94px;
    font: inherit;
}

.home-news-modal {
    width: min(720px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    color: var(--baozi-ink);
    border: 1px solid var(--baozi-line);
    border-radius: 16px;
    background: #fffaf3;
    box-shadow: 0 24px 70px rgba(70, 39, 13, .3);
}

.home-news-modal::backdrop {
    background: rgba(49, 29, 12, .48);
    backdrop-filter: blur(3px);
}

.home-news-modal__panel {
    display: flex;
    max-height: calc(100vh - 34px);
    flex-direction: column;
    min-width: 0;
}

.home-news-modal__head {
    display: flex;
    flex: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, #fff0d6, #fffaf1);
}

.home-news-modal__head > div { min-width: 0; }
.home-news-modal__head span { color: var(--baozi-orange); font-size: 11px; font-weight: 700; }

.home-news-modal__head h2 {
    margin: 3px 0 0;
    color: var(--baozi-ink);
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.theme-baozipt .home-news-modal__head button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    min-height: 34px !important;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #765f48 !important;
    font-size: 25px;
    line-height: 1;
    border: 1px solid #e5c69f !important;
    border-radius: 50%;
    background: #fffaf1 !important;
    cursor: pointer;
}

.theme-baozipt .home-news-modal__head button:hover,
.theme-baozipt .home-news-modal__head button:focus-visible {
    color: #fff !important;
    border-color: var(--baozi-orange) !important;
    background: var(--baozi-orange) !important;
}

.home-news-modal__body {
    min-width: 0;
    padding: 22px 24px;
    overflow: auto;
    color: #40382f;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.home-news-modal__body > :first-child { margin-top: 0; }
.home-news-modal__body > :last-child { margin-bottom: 0; }
.home-news-modal__body img { height: auto; max-width: 100%; }
.home-news-modal__body table { max-width: 100%; }
.home-news-modal__body pre { max-width: 100%; overflow: auto; white-space: pre-wrap; }

.home-news-modal__foot {
    flex: none;
    padding: 10px 24px;
    color: #8d7d6d;
    font-size: 11px;
    text-align: right;
    border-top: 1px solid #f0dfc8;
    background: #fff8ed;
}

.home-recommendations { min-height: 185px; }
.home-recommendations .baozi-panel__head { min-height: 44px; }

.torrent-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 140px;
    padding: 10px 12px 11px;
}

.torrent-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid #ead7bd;
}

.torrent-card:last-child { border-right: 0; }

.torrent-card__cover {
    display: flex;
    width: 76px;
    height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff !important;
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .2);
}

.torrent-card__cover span { font-family: "STKaiti", "KaiTi", serif; font-size: 32px; font-weight: 900; }
.torrent-card__cover small { margin-top: 8px; font-size: 7px; letter-spacing: 1px; }
.torrent-card__cover--1 { background: linear-gradient(145deg, #e47e22, #2a1c18); }
.torrent-card__cover--2 { background: linear-gradient(145deg, #166d74, #13202b); }
.torrent-card__cover--3 { background: linear-gradient(145deg, #d66a36, #3c1820); }
.torrent-card__cover--4 { background: linear-gradient(145deg, #8b5d3a, #261f1c); }

.torrent-card__content { display: flex; min-width: 0; flex-direction: column; padding: 2px 0; }

.torrent-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #25221e !important;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.torrent-card__content p { overflow: hidden; margin: 5px 0; color: var(--baozi-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.torrent-card__tags { display: flex; gap: 3px; margin-top: auto; }
.torrent-card__tags span { padding: 1px 4px; color: #7b542c; font-size: 8px; border: 1px solid #dcc097; border-radius: 3px; }
.torrent-card footer { display: flex; gap: 7px; align-items: center; margin-top: 6px; font-size: 9px; }
.torrent-card footer .seed { color: var(--baozi-green); }
.torrent-card footer .leech { color: #d9451d; }
.torrent-card footer time { margin-left: auto; color: #8a7b69; }

.side-ranking { min-height: 241px; }
.ranking-list { margin: 0; padding: 6px 20px 10px; list-style: none; }

.ranking-list li {
    display: grid;
    grid-template-columns: 24px 36px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 38px;
    align-items: center;
    border-bottom: 1px solid #eadac5;
}

.ranking-list__rank {
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    background: #aaa49c;
}

.ranking-list li:nth-child(1) .ranking-list__rank { background: #f4a414; }
.ranking-list li:nth-child(2) .ranking-list__rank { background: #9ca2a7; }
.ranking-list li:nth-child(3) .ranking-list__rank { background: #d27128; }

.ranking-list__avatar {
    display: block;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border: 1px solid #dfb272;
    border-radius: 50%;
    background: #ffc76d;
}

.ranking-list__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ranking-list li strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list li small { color: #6d6257; font-size: 9px; }

.site-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px; }
.site-stat-grid div { padding: 11px 7px; text-align: center; border: 1px solid #ead1ad; border-radius: 8px; background: #fff9ee; }
.site-stat-grid strong { display: block; color: var(--baozi-orange); font-size: 17px; }
.site-stat-grid span { color: var(--baozi-muted); font-size: 9px; }

.home-dashboard .attendance-card {
    display: grid;
    height: auto;
    min-height: 354px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.attendance-card__summary {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 16px 5px;
    border-bottom: 1px solid #f0dfc8;
}

.attendance-card__summary > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.attendance-card__summary > div:last-child { flex-direction: column; align-items: flex-end; gap: 0; }
.attendance-card__summary strong { color: var(--baozi-orange-dark); font-size: 14px; line-height: 1.2; }
.attendance-card__summary > div:last-child strong { font-size: 17px; }
.attendance-card__summary span { color: #796b5c; font-size: 9px; white-space: nowrap; }

.attendance-calendar {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 20px repeat(6, minmax(31px, 1fr));
    gap: 4px;
    padding: 7px 12px 8px;
}

.attendance-calendar__weekday {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: #806f5e;
    font-size: 8px;
    font-weight: 700;
}

.attendance-calendar__day {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 31px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px 1px;
    color: #40382f;
    border: 1px solid #ead8bd;
    border-radius: 6px;
    background: rgba(255, 250, 241, .8);
}

.attendance-calendar__day strong {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}

.attendance-calendar__day small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #8b7b69;
    font-size: 7px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-calendar__day.is-outside { opacity: .42; }
.attendance-calendar__day.is-future { background: #f7f2e9; }
.attendance-calendar__day.is-missed { color: #9c8f82; background: #f1ede7; }

.attendance-calendar__day.is-done {
    color: #7e3c0f;
    border-color: #f0a45a;
    background: linear-gradient(145deg, #ffe8bd, #ffd596);
}

.attendance-calendar__day.is-done::after {
    content: "✓";
    position: absolute;
    top: 1px;
    right: 3px;
    color: #e85513;
    font-size: 8px;
    font-weight: 900;
}

.attendance-calendar__day.is-retroactive {
    color: #506424;
    border-color: #a8bd70;
    background: linear-gradient(145deg, #edf4d4, #dbe8b5);
}

.attendance-calendar__day.is-retroactive::after { content: var(--baozi-copy-attendance-retroactive, ""); color: #6d8b2e; }

.attendance-calendar__day.is-today {
    opacity: 1;
    border: 2px solid var(--baozi-orange);
    box-shadow: 0 0 0 2px rgba(237, 90, 23, .08);
}

.attendance-card__legend {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 4px 10px 6px;
    color: #796b5c;
    font-size: 8px;
    border-top: 1px solid #f0dfc8;
}

.attendance-card__legend span { display: inline-flex; align-items: center; gap: 4px; }
.attendance-card__legend i { display: block; width: 8px; height: 8px; border: 1px solid #e6a05d; border-radius: 50%; background: #ffdaa1; }
.attendance-card__legend i.is-retroactive { border-color: #9db567; background: #dce9b7; }
.attendance-card__legend i.is-today { border: 2px solid var(--baozi-orange); background: #fff; }

.forum-attendance .attendance-card { min-height: 120px; }
.attendance-card > p { margin: 8px 17px 2px; color: var(--baozi-muted); font-size: 10px; }
.attendance-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 5px 15px 10px; }
.attendance-days span { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.attendance-days i {
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    color: #5a5046;
    font-size: 9px;
    font-style: normal;
    border: 1px solid #cabba8;
    border-radius: 50%;
    background: #f3eee6;
}

.attendance-days small { color: #766b60; font-size: 7px; }
.attendance-days .is-done i { color: #fff; border-color: var(--baozi-orange); background: var(--baozi-orange); }
.attendance-days .is-today i { color: var(--baozi-orange); border: 2px solid var(--baozi-orange); background: #fff; }

.recent-messages { min-height: 168px; }
.message-list { padding: 5px 15px 10px; }

.message-list a {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 33px;
    align-items: center;
    color: #3f3933;
    border-bottom: 1px solid #eadbc7;
}

.message-list a > span { color: #b3a493; font-size: 8px; }
.message-list a.is-unread > span { color: var(--baozi-orange); }
.message-list a strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.message-list a time { color: #877b6d; font-size: 8px; }
.message-list--empty p { margin: 0; padding: 7px 0; color: #625a51; font-size: 10px; border-bottom: 1px solid #eadbc7; }

.quick-links { display: none; }

/* Torrent hall */
.theme-baozipt.page-torrents #outer > table.main,
.theme-baozipt.page-special #outer > table.main { width: 100% !important; }

.torrent-hall-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.72fr) minmax(330px, 1fr);
    gap: 14px;
    width: 100%;
    align-items: start;
    min-height: 690px;
}

.torrent-hall-main,
.torrent-hall-side { min-width: 0; }
.torrent-hall-main { max-width: 100%; overflow-x: auto; }
.torrent-hall-side { display: grid; gap: 11px; }

.theme-baozipt .torrent-filter-card {
    width: 100% !important;
    margin: 0 0 8px;
    overflow: visible;
    border: 1px solid var(--baozi-line) !important;
    border-radius: var(--baozi-radius);
    background: var(--baozi-paper) !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .torrent-filter-card > tbody:first-child .colhead {
    position: relative;
    min-height: 42px;
    padding: 8px 15px;
    color: var(--baozi-ink);
    text-align: left;
    font-size: 19px;
    font-weight: 800;
}

.theme-baozipt #torrent-advanced-toggle {
    position: absolute;
    top: 7px;
    right: 12px;
    min-height: 27px;
    padding: 3px 11px;
    color: #6c5946;
    font: 700 10px/1 inherit;
    border: 1px solid #e5c69c;
    border-radius: 7px;
    background: #fff9ee;
    cursor: pointer;
}

.theme-baozipt .torrent-filter-card > tbody:first-child .colhead a { color: var(--baozi-ink); font-size: 0; }
.theme-baozipt .torrent-filter-card > tbody:first-child .colhead a::before { content: var(--baozi-copy-torrent-hall, ""); font-size: 19px; font-weight: 900; }
.theme-baozipt .torrent-filter-card > tbody:first-child .colhead a > * { display: none; }
.theme-baozipt .torrent-filter-card > tbody:first-child .plus { display: none; }

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child {
    width: 79%;
    padding: 10px 13px;
    vertical-align: top;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:last-child {
    width: 21%;
    padding: 8px;
    vertical-align: top;
    border-left: 1px solid var(--baozi-line-soft);
}

.theme-baozipt .torrent-filter-card #ksearchboxmain table { border: 0 !important; background: transparent !important; }
.theme-baozipt .torrent-filter-card #ksearchboxmain td { padding: 4px 5px; border-color: #f0dfc9; }

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: minmax(65px, auto) repeat(4, minmax(36px, auto));
    align-items: stretch;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr {
    display: flex;
    min-width: 0;
    min-height: 100%;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(1) { grid-area: 1 / 1; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(2) { grid-area: 1 / 2; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(3) { grid-area: 2 / 1; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(4) { grid-area: 2 / 2; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(5) { grid-area: 3 / 1; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(6) { grid-area: 3 / 2; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(7) { grid-area: 4 / 1; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(8) { grid-area: 4 / 2; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(9) { grid-area: 5 / 1; }
.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(10) { grid-area: 5 / 2; }

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(odd) > td {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(even) > td {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 100%;
    align-items: center;
    padding: 2px 6px !important;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(2) img {
    max-width: 56px;
    max-height: 48px;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:first-child > table > tbody > tr:nth-child(2) input[type="checkbox"] {
    position: absolute;
    z-index: 2;
    top: 2px;
    left: 4px;
}

.theme-baozipt .torrent-filter-card #ksearchboxmain > tr > td:last-child > table > tbody > tr:nth-child(n+7) { display: none; }
.theme-baozipt .torrent-filter-card.is-advanced #ksearchboxmain > tr > td:last-child > table > tbody > tr:nth-child(n+7) { display: table-row; }

.theme-baozipt .torrent-filter-card input[type="checkbox"] + label,
.theme-baozipt .torrent-filter-card td.bottom > a {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    color: #40382f;
    border: 1px solid #e5c69c;
    border-radius: 6px;
    background: #fff9ee;
}

.theme-baozipt .torrent-filter-card select { min-height: 29px; }
.theme-baozipt .torrent-filter-card input[type="number"] { min-height: 27px; }
.theme-baozipt .torrent-filter-card > tbody:last-child > tr > td:first-child { padding: 9px 14px; }
.theme-baozipt .torrent-filter-card > tbody:last-child > tr > td:last-child { width: 110px; padding: 9px; }
.theme-baozipt .torrent-filter-card #searchinput { width: min(430px, 44vw) !important; min-height: 32px; }

.torrent-side-card .baozi-panel__head h2,
.seeding-tip .baozi-panel__head h2 { font-size: 16px; }
.torrent-hot-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 13px; }

.torrent-hot-tags a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 3px 11px;
    color: #4a4035;
    font-size: 10px;
    border: 1px solid #e4bd89;
    border-radius: 999px;
    background: #fff9ef;
}

.torrent-hot-tags a:nth-child(-n+5)::after {
    content: var(--baozi-copy-hot, "");
    margin-left: 5px;
    padding: 0 4px;
    color: #fff;
    font-size: 7px;
    border-radius: 6px;
    background: var(--baozi-orange);
}

.torrent-side-list { padding: 4px 12px 8px; }

.torrent-side-list > a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    min-height: 51px;
    align-items: center;
    color: var(--baozi-ink);
    border-bottom: 1px solid #eadac5;
}

.torrent-side-list__cover {
    display: flex;
    width: 52px;
    height: 36px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-family: "KaiTi", serif;
    font-size: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ec872e, #3a211b);
}

.torrent-side-list strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.torrent-side-list small { color: var(--baozi-green); font-size: 8px; }

.torrent-side-empty { display: flex; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; color: var(--baozi-muted); text-align: center; }
.torrent-side-empty img { width: 90px; }
.torrent-side-empty strong { color: var(--baozi-ink); }
.torrent-side-empty span { font-size: 9px; }

.seeding-tip > div:last-child { position: relative; min-height: 106px; overflow: hidden; padding: 15px 118px 13px 16px; }
.seeding-tip p { margin: 0 0 7px; color: #51483f; font-size: 10px; }
.seeding-tip a { font-size: 9px; }
.seeding-tip img { position: absolute; right: -12px; bottom: -18px; width: 135px; }

.theme-baozipt .torrent-hall-main table.torrents {
    width: 100% !important;
    min-width: 720px;
    margin-top: 7px;
    overflow: visible;
    font-size: 10px;
    border: 1px solid var(--baozi-line) !important;
    border-radius: 10px;
    background: var(--baozi-paper) !important;
}

.theme-baozipt .torrent-hall-main table.torrents td { padding: 5px 6px; border-color: #ead8bd; }
.theme-baozipt .torrent-hall-main table.torrents .torrentname a { font-size: 10px; font-weight: 700; }

/* Torrent detail */
.torrent-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 2.82fr) minmax(330px, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 690px;
}

.torrent-detail-main,
.torrent-detail-side { min-width: 0; }
.torrent-detail-main { max-width: 100%; overflow-x: auto; }
.torrent-detail-side { display: grid; gap: 10px; }

.torrent-detail-hero {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr) 250px;
    gap: 18px;
    min-height: 340px;
    padding: 15px 18px;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: var(--baozi-paper);
    box-shadow: var(--baozi-shadow);
}

.torrent-detail-poster {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #271a16;
}

.torrent-detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.torrent-detail-poster.is-fallback { padding: 18px; background: linear-gradient(145deg, #ffd89d, #fff2d6); }
.torrent-detail-poster.is-fallback img { height: auto; object-fit: contain; }
.torrent-detail-summary { min-width: 0; }

.torrent-detail-breadcrumb {
    display: flex;
    gap: 7px;
    margin: 1px 0 11px;
    color: #887b6d;
    font-size: 9px;
}

.torrent-detail-summary h1 {
    margin: 0 0 11px !important;
    color: var(--baozi-ink);
    font-size: 22px !important;
    line-height: 1.3;
    text-align: left !important;
}

.torrent-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.torrent-detail-tags span { padding: 3px 9px; color: #6a4525; font-size: 9px; border: 1px solid #dfbd8e; border-radius: 6px; background: #fff5e4; }

.torrent-detail-facts {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    margin: 0;
    font-size: 10px;
}

.torrent-detail-facts dt,
.torrent-detail-facts dd { min-height: 28px; margin: 0; padding: 5px 3px; border-bottom: 1px dashed #e2cfb5; }
.torrent-detail-facts dt { color: #74685c; }
.torrent-detail-facts dd { overflow: hidden; color: #352f29; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.torrent-detail-lead {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: #645a50;
    font-size: 10px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.torrent-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }

.torrent-detail-actions > a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: #6a4525;
    font-size: 11px;
    font-weight: 750;
    border: 1px solid var(--baozi-line);
    border-radius: 8px;
    background: #fff9ef;
}

.torrent-detail-actions .download-primary {
    grid-column: 1 / -1;
    min-height: 48px;
    color: #fff;
    font-size: 15px;
    border-color: var(--baozi-orange);
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
}

.torrent-detail-numbers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 9px;
}

.torrent-detail-numbers span {
    display: flex;
    min-height: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6a6158;
    font-size: 8px;
    border-right: 1px solid var(--baozi-line-soft);
}

.torrent-detail-numbers span:last-child { border-right: 0; }
.torrent-detail-numbers b { color: #2e2924; font-size: 15px; }

.torrent-detail-owner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 3px 8px;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 9px;
    background: #fff8eb;
}

.torrent-detail-owner img { grid-row: 1 / 3; width: 36px; height: 36px; padding: 2px; object-fit: cover; border: 1px solid var(--baozi-line); border-radius: 50%; background: #ffc76e; }
.torrent-detail-owner small { grid-column: 2 / 4; color: var(--baozi-muted); }
.torrent-detail-owner strong { grid-column: 2; font-size: 11px; }
.torrent-detail-owner span { grid-column: 3; color: var(--baozi-muted); font-size: 8px; text-align: right; }

.torrent-detail-tabs {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: #fffaf1;
}

.torrent-detail-tabs > * {
    display: flex;
    min-width: 105px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    color: #5a5045;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.torrent-detail-tabs strong { color: #fff; background: var(--baozi-orange); }

.torrent-detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.torrent-detail-gallery a { display: block; height: 92px; overflow: hidden; border: 1px solid var(--baozi-line); border-radius: 8px; background: #eee2d0; }
.torrent-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.torrent-detail-legacy {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: var(--baozi-paper);
}

.torrent-detail-legacy > table { width: 100% !important; border: 0 !important; }
.torrent-detail-legacy td { padding: 6px 8px; font-size: 10px; border-color: #ead8bd; }

.detail-imdb-card > div,
.detail-seed-card > div { padding: 14px 17px; }
.detail-imdb-card .baozi-panel__head h2 span { padding: 1px 4px; color: #111; font-size: 10px; border-radius: 3px; background: #f1bd1c; }
.detail-imdb-card > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.detail-imdb-card > div strong { font-size: 25px; }
.detail-imdb-card > div span { color: var(--baozi-muted); font-size: 9px; }
.detail-imdb-card > div a { width: 100%; margin-top: 5px; font-size: 9px; }
.detail-seed-card p { margin: 0 0 7px; font-size: 9px; }
.detail-seed-card strong { color: var(--baozi-orange); font-size: 27px; }
.detail-seed-card strong small { font-size: 9px; }
.detail-progress { height: 7px; margin: 8px 0 4px; overflow: hidden; border-radius: 99px; background: #eadfce; }
.detail-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffaf36, var(--baozi-orange)); }
.detail-seed-card > div > span { color: var(--baozi-muted); font-size: 8px; }
.detail-network-card dl { display: grid; grid-template-columns: 1fr auto; margin: 0; padding: 8px 17px 11px; font-size: 9px; }
.detail-network-card dt,
.detail-network-card dd { margin: 0; padding: 4px 0; border-bottom: 1px dashed #e1ceb2; }
.detail-network-card dd { font-weight: 800; }
.detail-related-card > div { padding: 4px 14px 8px; }
.detail-related-card > div > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 40px; align-items: center; color: var(--baozi-ink); border-bottom: 1px solid #eadac5; }
.detail-related-card strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.detail-related-card span { color: var(--baozi-muted); font-size: 8px; }
.detail-kind-tip { display: flex; min-height: 73px; align-items: center; gap: 12px; padding: 9px 15px; }
.detail-kind-tip img { width: 72px; }
.detail-kind-tip p { margin: 0; color: var(--baozi-muted); font-size: 9px; }

/* Forum index: retain NexusPHP's native single-column hierarchy. */
.theme-baozipt.page-forums .forum-index {
    width: 100%;
    min-width: 0;
}

.theme-baozipt.page-forums .forum-index__header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 12px;
    padding: 13px 18px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-forums .forum-index__header h1 {
    flex: none;
    margin: 0;
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.3;
}

.theme-baozipt.page-forums .forum-index__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.theme-baozipt.page-forums .forum-index__icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid #efc38b;
    border-radius: 50%;
    background: rgba(255, 250, 241, .9);
}

.theme-baozipt.page-forums .forum-index__icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.theme-baozipt.page-forums .forum-index__header nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.theme-baozipt.page-forums .forum-index__header nav span { color: #c4a484; }

.theme-baozipt.page-forums .forum-index__header nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px;
    color: #69462d;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 8px;
}

.theme-baozipt.page-forums .forum-index__header nav a:hover,
.theme-baozipt.page-forums .forum-index__header nav a:focus-visible {
    color: #b74210;
    border-color: #edbd84;
    background: #fff8ec;
}

.theme-baozipt.page-forums .forum-index__table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overscroll-behavior-inline: contain;
}

.theme-baozipt.page-forums .forum-index__table-scroll > table.forums {
    width: 100% !important;
    min-width: 860px;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #e8c696 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow) !important;
}

.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td {
    padding: 11px 13px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #ead8bd !important;
    border-bottom: 1px solid #ead8bd !important;
}

.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:last-child { border-right: 0 !important; }
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr:last-child > td { border-bottom: 0 !important; }

.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td.colhead {
    min-height: 44px;
    color: #6b421f !important;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffe7c3, #fff2df) !important;
}

.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td.rowfollow {
    min-height: 68px;
    color: #493b2f;
    font-size: 12px;
    line-height: 1.6;
    vertical-align: middle;
    background: rgba(255, 253, 249, .94) !important;
}

.theme-baozipt.page-forums .forum-index table.forums > tbody > tr:hover > td.rowfollow { background: #fff7eb !important; }
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td.forum-index__empty {
    height: 132px;
    padding: 24px !important;
    color: #8b6c53;
    font-size: 14px;
    text-align: center;
    border-right: 0 !important;
    background: linear-gradient(135deg, rgba(255, 253, 249, .96), rgba(255, 247, 234, .9)) !important;
}
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:first-child { width: auto !important; }
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:nth-child(2),
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:nth-child(3) { width: 86px !important; text-align: center; white-space: nowrap; }
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:nth-child(4) { width: 270px !important; }
.theme-baozipt.page-forums .forum-index table.forums > tbody > tr > td:nth-child(5) { width: 170px !important; }

.theme-baozipt.page-forums .forum-index__forum {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.theme-baozipt.page-forums .forum-index__forum-icon {
    display: grid;
    width: 46px;
    flex: 0 0 46px;
    place-items: center;
}

.theme-baozipt.page-forums .forum-index__forum-copy { min-width: 0; }
.theme-baozipt.page-forums .forum-index__forum-description {
    display: block;
    margin-top: 2px;
    color: #786654;
}

.theme-baozipt.page-forums .forum-index table.forums td img { max-width: 46px; max-height: 46px; }
.theme-baozipt.page-forums .forum-index table.forums font.big { color: #b84715; font-size: 15px; }
.theme-baozipt.page-forums .forum-index table.forums td:nth-child(4) a { color: #a84216; font-weight: 700; }
.theme-baozipt.page-forums .forum-index__last-post { min-width: 0; overflow: hidden; }
.theme-baozipt.page-forums .forum-index__last-topic,
.theme-baozipt.page-forums .forum-index__last-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-forums .forum-index__last-meta { margin-top: 2px; color: #594b3e; }

.theme-baozipt.page-forums .forum-index__stats {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-forums .forum-index__stats > h2 {
    display: flex;
    min-height: 46px;
    align-items: center;
    margin: 0 !important;
    padding: 10px 15px;
    color: #68401f;
    font-size: 16px;
    border-bottom: 1px solid #ead8bd;
    background: linear-gradient(90deg, #ffe8c6, #fff3e2);
}

.theme-baozipt.page-forums .forum-index__stats > table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-forums .forum-index__stats > table td.text {
    padding: 15px 17px !important;
    line-height: 1.75;
    border: 0 !important;
    background: transparent !important;
}

/* Forum board topic list: keep the native columns without inheriting index widths. */
.theme-baozipt.page-forums .forum-board__table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    overscroll-behavior-inline: contain;
}

.theme-baozipt.page-forums table.forum-board__topics {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #e8c696 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow) !important;
}

.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td {
    height: auto !important;
    padding: 11px 13px !important;
    vertical-align: middle;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #ead8bd !important;
    border-bottom: 1px solid #ead8bd !important;
}

.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td:last-child { border-right: 0 !important; }
.theme-baozipt.page-forums table.forum-board__topics > tbody > tr:last-child > td { border-bottom: 0 !important; }
.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td:first-child { width: auto !important; }
.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td:nth-child(2) { width: 170px !important; }
.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td:nth-child(3) { width: 120px !important; }
.theme-baozipt.page-forums table.forum-board__topics > tbody > tr > td:nth-child(4) { width: 220px !important; }

.theme-baozipt.page-forums table.forum-board__topics td.colhead {
    color: #6b421f !important;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffe7c3, #fff2df) !important;
}

.theme-baozipt.page-forums table.forum-board__topics td.rowfollow {
    color: #493b2f;
    font-size: 12px;
    line-height: 1.55;
    background: rgba(255, 253, 249, .94) !important;
}

.theme-baozipt.page-forums table.forum-board__topics tr:hover > td.rowfollow { background: #fff7eb !important; }
.theme-baozipt.page-forums .forum-board__topic { display: flex; min-width: 0; align-items: center; gap: 11px; }
.theme-baozipt.page-forums .forum-board__topic-icon { display: grid; width: 38px; flex: 0 0 38px; place-items: center; }
.theme-baozipt.page-forums .forum-board__topic-icon img { max-width: 36px; max-height: 36px; }
.theme-baozipt.page-forums .forum-board__topic-subject { min-width: 0; overflow-wrap: anywhere; }

/* Forum board and topic pages use semantic cards instead of nested layout tables. */
.theme-baozipt.page-forums .forum-board,
.theme-baozipt.page-forums .forum-topic {
    width: 100%;
    min-width: 0;
}

.theme-baozipt.page-forums .forum-page-heading {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-bottom: 14px;
    padding: 15px 20px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-forums .forum-page-heading__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.theme-baozipt.page-forums .forum-page-heading__icon {
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    border: 1px solid #efc38b;
    border-radius: 50%;
    background: rgba(255, 250, 241, .9);
}

.theme-baozipt.page-forums .forum-page-heading__icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: transparent;
}

.theme-baozipt.page-forums .forum-page-heading__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3px;
    color: #9a7253;
    font-size: 11px;
    font-weight: 700;
}

.theme-baozipt.page-forums .forum-page-heading h1 {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 !important;
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 25px;
    line-height: 1.3;
}

.theme-baozipt.page-forums .forum-page-heading h1 a { color: inherit; }
.theme-baozipt.page-forums .forum-action-button {
    display: inline-flex;
    min-height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    color: #fff !important;
    font-weight: 800;
    border: 1px solid #e84d12;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff741e, #f25513);
    box-shadow: 0 5px 12px rgba(207, 78, 19, .15);
}

.theme-baozipt.page-forums .forum-action-button:hover,
.theme-baozipt.page-forums .forum-action-button:focus-visible { background: linear-gradient(135deg, #ff8a31, #ec4b0e); }
.theme-baozipt.page-forums .forum-action-button--secondary { color: #a7471d !important; border-color: #e8bd87; background: #fff8ed; box-shadow: none; }

.theme-baozipt.page-forums .forum-board__notice,
.theme-baozipt.page-forums .forum-empty {
    margin: 0 0 12px;
    padding: 12px 15px;
    color: #7c6048;
    border: 1px dashed #e6bd87;
    border-radius: 9px;
    background: rgba(255, 249, 239, .8);
}

.theme-baozipt.page-forums .forum-board__moderators {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 9px 14px;
    color: #745940;
    border-bottom: 1px solid #ecd7b8;
    background: rgba(255, 248, 235, .7);
}

.theme-baozipt.page-forums .forum-board__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 12px;
    padding: 12px 14px;
    border-top: 1px solid #ead8bd;
    border-bottom: 1px solid #ead8bd;
    background: rgba(255, 249, 239, .72);
}

.theme-baozipt.page-forums .forum-board__search {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.theme-baozipt.page-forums .forum-board__search input[type="text"] { width: min(280px, 38vw); }
.theme-baozipt.page-forums .forum-board__order { position: relative; flex: none; }
.theme-baozipt.page-forums .forum-board__order > span { position: relative; display: inline-flex; }
.theme-baozipt.page-forums .forum-board__order button { min-height: 38px; padding: 7px 14px; color: #65462f; font-weight: 800; border: 1px solid #e7bd88; border-radius: 8px; background: #fffaf2; cursor: pointer; }
.theme-baozipt.page-forums .forum-board__order .dropmenu { z-index: 30; top: calc(100% + 6px); right: 0; left: auto; min-width: 170px; }

/* Forum search page. */
.theme-baozipt.page-forums .forum-search-page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0 auto 18px;
    overflow: hidden;
    color: #4e3828;
    border: 1px solid #efb36b;
    border-radius: 14px;
    background: rgba(255, 252, 247, .92);
    box-shadow: 0 8px 22px rgba(131, 78, 25, .06);
}

.theme-baozipt.page-forums .forum-search-page__header {
    display: flex;
    min-height: 96px;
    box-sizing: border-box;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #edd6b4;
    background: linear-gradient(135deg, rgba(255, 244, 222, .96), rgba(255, 250, 240, .9));
}

.theme-baozipt.page-forums .forum-search-page__icon {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    box-sizing: border-box;
    flex: 0 0 52px;
    border: 2px solid #f2a45b;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff7d25, #f05213);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 0 5px 12px rgba(211, 86, 22, .15);
}

.theme-baozipt.page-forums .forum-search-page__icon::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 11px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 4px solid #fff;
    border-radius: 50%;
}

.theme-baozipt.page-forums .forum-search-page__icon::after {
    content: "";
    position: absolute;
    top: 31px;
    left: 29px;
    width: 14px;
    height: 4px;
    border-radius: 4px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.theme-baozipt.page-forums .forum-search-page__heading { min-width: 0; }
.theme-baozipt.page-forums .forum-search-page__heading > span {
    display: block;
    margin-bottom: 2px;
    color: #a56233;
    font-size: 12px;
    font-weight: 800;
}

.theme-baozipt.page-forums .forum-search-page__heading h1 {
    margin: 0 !important;
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 26px;
    line-height: 1.25;
}

.theme-baozipt.page-forums .forum-search-page__heading p {
    margin: 4px 0 0 !important;
    color: #91745c;
    font-size: 13px;
}

.theme-baozipt.page-forums .forum-search-form {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 10px 18px;
    margin: 0;
    padding: 22px;
}

.theme-baozipt.page-forums .forum-search-form > label {
    color: #5e422e;
    font-weight: 800;
    text-align: right;
}

.theme-baozipt.page-forums .forum-search-form__controls {
    display: flex;
    min-width: 0;
    align-items: stretch;
    gap: 10px;
}

.theme-baozipt.page-forums .forum-search-form__controls input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    box-sizing: border-box;
    flex: 1 1 auto;
    padding: 9px 14px;
    color: #463326;
    border: 1px solid #e4b477;
    border-radius: 9px;
    outline: 0;
    background: #fffdf9;
    appearance: none;
}

.theme-baozipt.page-forums .forum-search-form__controls input[type="search"]:focus {
    border-color: #f06419;
    box-shadow: 0 0 0 3px rgba(240, 100, 25, .12);
}

.theme-baozipt.page-forums .forum-search-form__controls button {
    min-width: 116px;
    min-height: 46px;
    flex: 0 0 auto;
    padding: 9px 22px;
    color: #fff;
    font-weight: 800;
    border: 1px solid #e84d12;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff741e, #f25513);
    box-shadow: 0 5px 12px rgba(207, 78, 19, .15);
    cursor: pointer;
}

.theme-baozipt.page-forums .forum-search-form__controls button:hover,
.theme-baozipt.page-forums .forum-search-form__controls button:focus-visible {
    background: linear-gradient(135deg, #ff8a31, #ec4b0e);
}

.theme-baozipt.page-forums .forum-search-form__status {
    grid-column: 2;
    margin: 0 !important;
    color: #4f8a43;
    font-size: 13px;
    font-weight: 700;
}

.theme-baozipt.page-forums .forum-search-form__status--empty { color: #b85a2a; }
.theme-baozipt.page-forums .forum-search-results { width: 100%; margin: 0 auto 18px; }
.theme-baozipt.page-forums .forum-search-results__scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ebc28e;
    border-radius: 13px;
    background: rgba(255, 252, 247, .94);
    box-shadow: 0 8px 22px rgba(131, 78, 25, .05);
    -webkit-overflow-scrolling: touch;
}

.theme-baozipt.page-forums table.forum-search-results__table {
    width: 100% !important;
    min-width: 820px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums table.forum-search-results__table td {
    padding: 11px 13px !important;
    border-right: 1px solid #ead6b8 !important;
    border-bottom: 1px solid #ead6b8 !important;
}

.theme-baozipt.page-forums table.forum-search-results__table td:last-child { border-right: 0 !important; }
.theme-baozipt.page-forums table.forum-search-results__table tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt.page-forums table.forum-search-results__table td.colhead {
    color: #673f24 !important;
    font-weight: 800;
    background: linear-gradient(180deg, #fff0d3, #ffe7bf) !important;
}

.theme-baozipt.page-forums .forum-search-results .forum-pagination--top { margin: 0 0 12px; }

.theme-baozipt.page-forums .forum-pagination {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 18px 0 0;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    color: #8a755d;
    text-align: center;
}

.theme-baozipt.page-forums .forum-pagination p,
.theme-baozipt.page-forums .forum-pagination__line {
    display: inline-flex;
    width: max-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 auto !important;
    padding: 7px 10px;
    color: #8a684b;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid #edc895;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
    box-shadow: 0 5px 14px rgba(126, 76, 29, .06);
}

.theme-baozipt.page-forums .forum-pagination__pages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.theme-baozipt.page-forums .forum-pagination br { display: none; }
.theme-baozipt.page-forums .forum-pagination font { display: contents; }
.theme-baozipt.page-forums .forum-pagination a,
.theme-baozipt.page-forums .forum-pagination font.gray > b {
    display: inline-flex;
    min-width: 36px;
    min-height: 34px;
    box-sizing: border-box;
    flex: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 10px;
    line-height: 1.35;
    border: 1px solid #ebc18b;
    border-radius: 8px;
    background: #fffaf2;
}

.theme-baozipt.page-forums .forum-pagination a:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
    box-shadow: 0 4px 10px rgba(246, 94, 20, .18);
}

.theme-baozipt.page-forums .forum-pagination--top p,
.theme-baozipt.page-forums .forum-pagination--top .forum-pagination__line { margin-top: 0 !important; }
.theme-baozipt.page-forums .forum-topic__locked { margin-left: 4px; padding: 3px 8px; color: #b63b14; font-family: sans-serif; font-size: 11px; border: 1px solid #efb493; border-radius: 999px; background: #fff3e9; }
.theme-baozipt.page-forums .forum-topic__summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 14px;
    color: #745b45;
    border-top: 1px solid #ead5b5;
    border-bottom: 1px solid #ead5b5;
    background: rgba(255, 249, 239, .7);
}

.theme-baozipt.page-forums .forum-topic__summary strong { margin: 0 3px; color: #c34817; font-size: 16px; }
.theme-baozipt.page-forums .forum-topic__posts { display: grid; gap: 14px; }
.theme-baozipt.page-forums .forum-post {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: rgba(255, 253, 249, .96);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-forums .forum-post__header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 10px 14px;
    color: #75604d;
    border-bottom: 1px solid #ead8bd;
    background: linear-gradient(90deg, #ffe9c9, #fff4e4);
}

.theme-baozipt.page-forums .forum-post__meta,
.theme-baozipt.page-forums .forum-post__floor,
.theme-baozipt.page-forums .forum-post__contact,
.theme-baozipt.page-forums .forum-post__actions { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.theme-baozipt.page-forums .forum-post__number { color: #c84616; font-weight: 900; }
.theme-baozipt.page-forums .forum-post__floor { flex: none; }
.theme-baozipt.page-forums .forum-post__floor strong { color: #61422b; }
.theme-baozipt.page-forums .forum-post__layout { display: grid; min-width: 0; grid-template-columns: 190px minmax(0, 1fr); }
.theme-baozipt.page-forums .forum-post__author {
    min-width: 0;
    padding: 16px;
    text-align: center;
    border-right: 1px solid #ead8bd;
    background: linear-gradient(160deg, #fff3df, #fffaf2);
}

.theme-baozipt.page-forums .forum-post__avatar { display: grid; place-items: center; }
.theme-baozipt.page-forums .forum-post__avatar img {
    display: block;
    width: 116px !important;
    height: 116px !important;
    max-width: 116px !important;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #f3eadc;
    box-shadow: 0 5px 15px rgba(92, 59, 26, .12);
}

.theme-baozipt.page-forums .forum-post__class {
    display: block;
    width: auto;
    max-width: 116px;
    max-height: 58px;
    margin: 12px auto 8px;
    object-fit: contain;
    background: transparent;
}

.theme-baozipt.page-forums .forum-post__stats { display: grid; margin: 10px 0 0; gap: 4px; text-align: left; }
.theme-baozipt.page-forums .forum-post__stats div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px dashed #ead5b6; }
.theme-baozipt.page-forums .forum-post__stats dt { color: #8b715a; }
.theme-baozipt.page-forums .forum-post__stats dd { margin: 0; color: #47392d; font-weight: 700; }
.theme-baozipt.page-forums .forum-post__content { min-width: 0; min-height: 220px; padding: 22px 24px; color: #382f28; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.theme-baozipt.page-forums .forum-post__content > div { min-height: 100%; }
.theme-baozipt.page-forums .forum-post__content img { max-width: 100%; height: auto; }
.theme-baozipt.page-forums .forum-post__footer { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 9px 14px; border-top: 1px solid #ead8bd; background: #fff9ef; }
.theme-baozipt.page-forums .forum-post__footer a { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 9px; font-weight: 700; border: 1px solid #ecd0a9; border-radius: 7px; background: #fffdf8; }
.theme-baozipt.page-forums .forum-post__presence { display: inline-flex; align-items: center; gap: 5px; color: #8b7764; }
.theme-baozipt.page-forums .forum-post__presence::before { width: 8px; height: 8px; content: ""; border-radius: 50%; background: #aaa; }
.theme-baozipt.page-forums .forum-post__presence.is-online::before { background: #42a85d; box-shadow: 0 0 0 3px rgba(66, 168, 93, .12); }

.theme-baozipt.page-forums .forum-topic__moderation,
.theme-baozipt.page-forums .forum-topic__quick-reply { margin-top: 14px; padding: 14px 16px; border: 1px solid #e8c696; border-radius: 12px; background: #fffaf3; box-shadow: var(--baozi-shadow); }
.theme-baozipt.page-forums .forum-topic__moderation h2,
.theme-baozipt.page-forums .forum-topic__quick-reply h2 { margin: 0 0 12px !important; color: #624029; font-size: 17px; }
.theme-baozipt.page-forums .forum-topic__moderation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.theme-baozipt.page-forums .forum-topic__moderation-actions form { display: flex; align-items: center; gap: 7px; margin: 0; }
.theme-baozipt.page-forums .forum-topic__moderation-actions label { display: flex; align-items: center; gap: 6px; }
.theme-baozipt.page-forums .forum-topic__quick-reply form {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 182px;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 12px 18px;
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > textarea {
    grid-column: 1;
    grid-row: 1;
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] {
    display: grid;
    box-sizing: border-box;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(4, 34px);
    grid-auto-rows: 34px;
    align-content: start;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 1px solid #ead0aa;
    border-radius: 10px;
    background: linear-gradient(145deg, #fffdf8, #fff5e7);
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] a:hover,
.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] a:focus-visible {
    border-color: #efb56f;
    background: #fff0dc;
    transform: translateY(-1px);
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] a:last-child {
    grid-column: 2 / span 2;
    justify-self: center;
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] img {
    width: 25px;
    height: 25px;
    max-width: none !important;
    object-fit: contain;
}

.theme-baozipt.page-forums .forum-topic__quick-reply form > br { display: none; }
.theme-baozipt.page-forums .forum-topic__quick-reply form > input[type="submit"] {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}
.theme-baozipt.page-forums .forum-topic__quick-reply table { width: 100% !important; max-width: 100% !important; margin: 0 !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.theme-baozipt.page-forums .forum-topic__quick-reply table td { border: 0 !important; background: transparent !important; }
.theme-baozipt.page-forums .forum-topic__quick-reply textarea { width: 100% !important; min-height: 218px; max-width: 100%; }
.theme-baozipt.page-forums .forum-topic__quick-reply > p { margin: 12px 0 0; text-align: center; }

/* Forum topic composer: isolate the legacy BBCode table structure inside one themed card. */
.theme-baozipt.page-forums .forum-compose-page {
    width: 100%;
    max-width: 1320px;
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt.page-forums .forum-compose-page > table.nexus-main-frame,
.theme-baozipt.page-forums .forum-compose-page > table.nexus-main-frame > tbody,
.theme-baozipt.page-forums .forum-compose-page > table.nexus-main-frame > tbody > tr,
.theme-baozipt.page-forums .forum-compose-page > table.nexus-main-frame > tbody > tr > td.embedded {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-forums .forum-compose-form {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background: rgba(255, 253, 249, .97);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-forums .forum-compose-form > h1 {
    margin: 0 !important;
    padding: 20px 24px;
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 25px;
    line-height: 1.35;
    text-align: left !important;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(100deg, #ffead0, #fff9ef 76%);
}

.theme-baozipt.page-forums .forum-compose-form > h1::before {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    place-items: center;
    content: "✎";
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
    vertical-align: middle;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff842c, #f05415);
    box-shadow: 0 5px 12px rgba(210, 80, 20, .16);
}

.theme-baozipt.page-forums .forum-compose-form > h1 a { color: #c44717; }
.theme-baozipt.page-forums .forum-compose-form > h2 {
    margin: 0 !important;
    padding: 12px 24px;
    color: #68472f;
    font-size: 16px;
    line-height: 1.4;
    text-align: left !important;
    border-top: 1px solid #eddbbf;
    border-bottom: 1px solid #eddbbf;
    background: #fff7ea;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame,
.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody,
.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr,
.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #eddbc0 !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead {
    width: 150px !important;
    padding: 17px 18px !important;
    color: #65462f;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    vertical-align: top;
    border-right: 1px solid #eddbc0 !important;
    background: #fff3df !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 14px 16px !important;
    background: #fffdf9 !important;
}

.theme-baozipt.page-forums .forum-compose-form input[name="subject"] {
    width: 100% !important;
    min-height: 46px;
    margin: 0 !important;
    font-size: 15px;
}

.theme-baozipt.page-forums .forum-compose-form #previewouter { min-width: 0; }
.theme-baozipt.page-forums .forum-compose-form #editorouter,
.theme-baozipt.page-forums .forum-compose-form #editorouter > table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr > td {
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td {
    padding: 10px !important;
    border: 1px solid #ecd7b7 !important;
    border-radius: 10px;
    background: linear-gradient(90deg, #fff3df, #fffaf1) !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td > table {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td > table > tbody,
.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td > table > tbody > tr {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td > table td.embedded {
    display: block;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child input[type="button"],
.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child select {
    width: auto;
    min-width: 44px;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 12px;
    color: #71482b;
    font-size: 12px !important;
    font-weight: 800;
    border: 1px solid #e6bd87;
    border-radius: 8px;
    background: #fffaf2;
    box-shadow: none;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child input[type="button"]:hover,
.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child input[type="button"]:focus-visible {
    color: #fff;
    border-color: #ef5c18;
    background: #f65e14;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child select {
    min-width: 150px;
    flex: 1 1 150px;
    font-weight: 600;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit iframe {
    display: block;
    width: 100% !important;
    height: 78px !important;
    min-height: 78px;
    margin: 10px 0 0;
    border: 1px dashed #e8bf88 !important;
    border-radius: 10px;
    background: #fff9ef;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:first-child { padding: 0 !important; }
.theme-baozipt.page-forums .forum-compose-form #compose-body-edit textarea.bbcode {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 430px;
    margin: 0 !important;
    padding: 14px 16px;
    resize: vertical;
    border: 1px solid #e2b575;
    border-radius: 10px;
    background: #fffefa;
    box-shadow: inset 0 1px 2px rgba(107, 68, 30, .04);
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child {
    padding: 11px !important;
    text-align: center;
    border: 1px solid #ead0aa !important;
    border-radius: 10px;
    background: linear-gradient(145deg, #fffdf8, #fff5e7) !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child > table {
    margin: 0 auto 9px !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child > table td.embedded {
    width: 32px !important;
    height: 32px;
    padding: 3px !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child img {
    width: 25px;
    height: 25px;
    max-width: none !important;
    object-fit: contain;
}

.theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child > a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    color: #b64718;
    font-weight: 800;
    border: 1px solid #ebc292;
    border-radius: 8px;
    background: #fffaf2;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan] {
    padding: 14px 16px !important;
    border-bottom: 0 !important;
    background: #fff7ea !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan] > table {
    margin: 0 auto !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan] > table > tbody > tr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-forums .forum-compose-form input#qr,
.theme-baozipt.page-forums .forum-compose-form input#previewbutton,
.theme-baozipt.page-forums .forum-compose-form input#unpreviewbutton {
    min-width: 112px;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 18px;
    font-weight: 800;
    border-radius: 9px;
}

.theme-baozipt.page-forums .forum-compose-form input#previewbutton,
.theme-baozipt.page-forums .forum-compose-form input#unpreviewbutton {
    color: #a7471d;
    border: 1px solid #e8bd87;
    background: #fffaf2;
    box-shadow: none;
}

.theme-baozipt.page-forums .forum-compose-form > p {
    margin: 0 !important;
    padding: 11px 16px 13px;
    color: #9a7658;
    text-align: center !important;
    border-top: 1px solid #eddbc0;
    border-radius: 0 0 13px 13px;
    background: #fffdf9;
}

@media (max-width: 760px) {
    .theme-baozipt.page-forums .forum-index__header { align-items: flex-start; flex-direction: column; padding: 12px; }
    .theme-baozipt.page-forums .forum-index__header h1 { font-size: 23px; }
    .theme-baozipt.page-forums .forum-index__icon { width: 50px; height: 50px; flex-basis: 50px; }
    .theme-baozipt.page-forums .forum-index__icon img { width: 45px; height: 45px; }
    .theme-baozipt.page-forums .forum-index__header nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
    .theme-baozipt.page-forums .forum-index__header nav span { display: none; }
    .theme-baozipt.page-forums .forum-index__header nav a { flex: none; }
    .theme-baozipt.page-forums .forum-index__table-scroll > table.forums { min-width: 760px; }
    .theme-baozipt.page-forums .forum-page-heading { align-items: flex-start; flex-direction: column; padding: 13px; }
    .theme-baozipt.page-forums .forum-page-heading__icon { width: 52px; height: 52px; flex-basis: 52px; }
    .theme-baozipt.page-forums .forum-page-heading__icon img { width: 47px; height: 47px; }
    .theme-baozipt.page-forums .forum-page-heading h1 { font-size: 21px; }
    .theme-baozipt.page-forums .forum-action-button { width: 100%; }
    .theme-baozipt.page-forums .forum-board__footer { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-forums .forum-board__search { width: 100%; flex-wrap: wrap; }
    .theme-baozipt.page-forums .forum-board__search input[type="text"] { width: 100%; flex: 1 1 180px; }
    .theme-baozipt.page-forums .forum-board__order { align-self: flex-start; }
    .theme-baozipt.page-forums .forum-search-page { margin-bottom: 14px; border-radius: 12px; }
    .theme-baozipt.page-forums .forum-search-page__header { min-height: 0; padding: 14px; }
    .theme-baozipt.page-forums .forum-search-page__icon { width: 46px; height: 46px; flex-basis: 46px; }
    .theme-baozipt.page-forums .forum-search-page__icon::before { top: 9px; left: 9px; }
    .theme-baozipt.page-forums .forum-search-page__icon::after { top: 29px; left: 27px; }
    .theme-baozipt.page-forums .forum-search-page__heading h1 { font-size: 22px; }
    .theme-baozipt.page-forums .forum-search-page__heading p { font-size: 12px; }
    .theme-baozipt.page-forums .forum-search-form { display: block; padding: 15px 14px; }
    .theme-baozipt.page-forums .forum-search-form > label { display: block; margin-bottom: 8px; text-align: left; }
    .theme-baozipt.page-forums .forum-search-form__controls { width: 100%; flex-direction: column; }
    .theme-baozipt.page-forums .forum-search-form__controls button { width: 100%; }
    .theme-baozipt.page-forums .forum-search-form__status { margin-top: 9px !important; }
    .theme-baozipt.page-forums table.forum-search-results__table { min-width: 760px; }
    .theme-baozipt.page-forums .forum-post__header,
    .theme-baozipt.page-forums .forum-post__footer { align-items: flex-start; flex-direction: column; }
    .theme-baozipt.page-forums .forum-post__layout { grid-template-columns: 150px minmax(0, 1fr); }
    .theme-baozipt.page-forums .forum-post__author { padding: 13px; }
    .theme-baozipt.page-forums .forum-post__avatar img { width: 96px !important; height: 96px !important; }
    .theme-baozipt.page-forums .forum-post__class { max-width: 96px; }
    .theme-baozipt.page-forums .forum-post__content { padding: 18px; }
    .theme-baozipt.page-forums .forum-topic__quick-reply form { grid-template-columns: 1fr; }
    .theme-baozipt.page-forums .forum-topic__quick-reply form > textarea { grid-column: 1; grid-row: 1; }
    .theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] {
        width: 100%;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(6, 34px);
    }
    .theme-baozipt.page-forums .forum-topic__quick-reply form > div[align="center"] a:last-child { grid-column: auto; }
    .theme-baozipt.page-forums .forum-topic__quick-reply form > input[type="submit"] { grid-column: 1; grid-row: 3; }
    .theme-baozipt.page-forums .forum-compose-form > h1 { padding: 15px 14px; font-size: 20px; }
    .theme-baozipt.page-forums .forum-compose-form > h1::before { width: 34px; height: 34px; margin-right: 7px; font-size: 19px; }
    .theme-baozipt.page-forums .forum-compose-form > h2 { padding: 10px 14px; font-size: 14px; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main { table-layout: auto; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:not(:last-child) { display: block; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:not(:last-child) > td.rowhead,
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:not(:last-child) > td.rowfollow {
        display: block;
        width: 100% !important;
        text-align: left;
        border-right: 0 !important;
    }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:not(:last-child) > td.rowhead { padding: 10px 13px !important; border-bottom: 1px solid #eddbc0 !important; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:not(:last-child) > td.rowfollow { padding: 12px !important; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td { padding: 8px !important; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child > td > table > tbody > tr { gap: 6px; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child input[type="button"] { min-width: 40px; min-height: 36px; padding: 6px 9px; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:first-child select { width: 100%; min-width: 0; flex: 1 1 145px; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit iframe { height: 82px !important; min-height: 82px; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit textarea.bbcode { min-height: 330px; padding: 12px; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child { width: 100%; }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child > table > tbody {
        display: grid;
        grid-template-columns: repeat(6, 32px);
        justify-content: center;
        gap: 5px;
    }
    .theme-baozipt.page-forums .forum-compose-form #compose-body-edit > tr:last-child > td:last-child > table > tbody > tr { display: contents; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan] { display: block; padding: 12px !important; }
    .theme-baozipt.page-forums .forum-compose-form > table.nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan] > table > tbody > tr { flex-wrap: wrap; }
    .theme-baozipt.page-forums .forum-compose-form input#qr,
    .theme-baozipt.page-forums .forum-compose-form input#previewbutton,
    .theme-baozipt.page-forums .forum-compose-form input#unpreviewbutton { min-width: 120px; flex: 1 1 120px; }
}

/* Standalone editor smilie picker. */
body.theme-baozipt.more-smilies-frame {
    min-width: 0;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    color: var(--baozi-ink);
    background:
        radial-gradient(circle at 12% 7%, rgba(255, 184, 83, .2), transparent 30%),
        #fff8ed;
}

.theme-baozipt .more-smilies-panel {
    width: min(100%, 310px);
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 8px 22px rgba(128, 77, 29, .1);
}

.theme-baozipt .more-smilies-panel h1 {
    margin: 0 0 10px;
    color: #633b20;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
}

.theme-baozipt table.more-smilies-grid,
.theme-baozipt table.more-smilies-grid > tbody {
    display: grid;
    grid-template-columns: repeat(6, minmax(30px, 1fr));
    gap: 5px;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt table.more-smilies-grid > tbody > tr { display: contents; }

.theme-baozipt table.more-smilies-grid td.lista {
    display: flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 3px !important;
    border: 1px solid #f0d8b5 !important;
    border-radius: 7px;
    background: #fffaf2 !important;
}

.theme-baozipt table.more-smilies-grid td.lista:hover {
    border-color: #f1a55d !important;
    background: #fff0dc !important;
}

.theme-baozipt table.more-smilies-grid img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.theme-baozipt .more-smilies-close {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    padding: 6px 18px;
    color: #fff;
    font-weight: 800;
    border: 1px solid var(--baozi-orange);
    border-radius: 8px;
    background: var(--baozi-orange);
}

/* Production-wide normalization for untouched NexusPHP utility pages. */
body.theme-baozipt #outer > h1:not([class]):not(#top),
body.theme-baozipt #outer > h2:not([class]) {
    display: flex;
    min-height: 64px;
    align-items: center;
    margin: 0 0 14px !important;
    padding: 13px 20px;
    color: #4b3020;
    font-size: 23px;
    line-height: 1.3;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 91% 28%, rgba(255, 190, 90, .16), transparent 24%),
        linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: 0 5px 17px rgba(129, 78, 28, .055);
}

body.theme-baozipt #outer > h1:not([class]) ~ h1:not([class]),
body.theme-baozipt #outer > h2:not([class]) ~ h2:not([class]) {
    min-height: 50px;
    margin-top: 16px !important;
    font-size: 18px;
}

body.theme-baozipt td.colhead a,
body.theme-baozipt th.colhead a,
body.theme-baozipt td.colhead2 a,
body.theme-baozipt th.colhead2 a {
    color: #79451f !important;
}

body.theme-baozipt td.colhead a:hover,
body.theme-baozipt th.colhead a:hover,
body.theme-baozipt td.colhead2 a:hover,
body.theme-baozipt th.colhead2 a:hover {
    color: var(--baozi-orange-dark) !important;
}

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi {
    display: flex !important;
    width: max-content;
    max-width: 100%;
    min-height: 48px !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 14px auto !important;
    padding: 7px 10px;
    overflow-x: auto;
    color: #8a684b;
    line-height: 1.35 !important;
    white-space: nowrap;
    border: 1px solid #edc895;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
    box-shadow: 0 5px 14px rgba(126, 76, 29, .06);
    scrollbar-width: thin;
}

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi > font,
body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi .nexus-pagination__pages > font {
    display: contents;
}

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi > br { display: none; }

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi .nexus-pagination__pages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
}

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi a,
body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi > b,
body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi font.gray > b {
    display: inline-flex;
    min-width: 36px;
    min-height: 34px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 10px;
    color: #5a4634;
    line-height: 1.35;
    border: 1px solid #ebc18b;
    border-radius: 8px;
    background: #fffaf2;
}

body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi a:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
    box-shadow: 0 4px 10px rgba(246, 94, 20, .18);
}

.theme-baozipt .baozi-table-empty {
    min-height: 96px;
    padding: 28px 16px !important;
    color: #8a755f;
    text-align: center;
    background: #fffaf3 !important;
}

.theme-baozipt.page-users #outer > form,
.theme-baozipt.page-myhr #filterForm {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 10px;
    background: #fffaf3;
    box-shadow: 0 4px 13px rgba(121, 76, 28, .045);
}

.theme-baozipt.page-users #outer > p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 10px;
}

.theme-baozipt.page-users #outer > p > a,
.theme-baozipt.page-users #outer > p > font {
    display: inline-flex;
    min-width: 27px;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid #ecd0a9;
    border-radius: 7px;
    background: #fffaf2;
}

@media (max-width: 760px) {
    body.theme-baozipt #outer > h1:not([class]):not(#top),
    body.theme-baozipt #outer > h2:not([class]) {
        min-height: 54px;
        padding: 11px 14px;
        font-size: 19px;
    }

    body.theme-baozipt p.nexus-pagination.nexus-pagination--baozi {
        justify-content: flex-start;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

/* Offer detail: keep the 17 quick-reply smilies beside the editor. */
.theme-baozipt.page-offers .offer-quick-comment {
    width: min(100%, 1180px) !important;
    margin: 16px auto 12px !important;
    table-layout: fixed;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-offers .offer-quick-comment__body {
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 11px;
    background: #fffaf3 !important;
    box-shadow: inset 0 0 0 1px #e8c696, 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt.page-offers .offer-quick-comment__title {
    display: block;
    margin: 0 0 12px;
    color: #623b1e;
    font-size: 17px;
    text-align: left;
}

.theme-baozipt.page-offers .offer-quick-comment__form {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 214px;
    gap: 12px 14px;
    align-items: start;
    margin: 0;
}

.theme-baozipt.page-offers .offer-quick-comment__form > textarea {
    display: block;
    width: 100% !important;
    min-height: 190px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 12px 14px;
    line-height: 1.65;
    background: #fffdf9 !important;
}

.theme-baozipt.page-offers .offer-quick-comment__form > div[align="center"] {
    display: grid;
    width: 214px;
    min-height: 190px;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(5, 30px);
    gap: 8px;
    align-content: start;
    justify-content: center;
    margin: 0;
    padding: 13px 10px;
    border-left: 1px solid #efd9ba;
    border-radius: 0 9px 9px 0;
    background: #fff7e9;
}

.theme-baozipt.page-offers .offer-quick-comment__form > div[align="center"] a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    background: #fffdf8;
}

.theme-baozipt.page-offers .offer-quick-comment__form > div[align="center"] img {
    display: block;
    max-width: 25px;
    max-height: 25px;
}

.theme-baozipt.page-offers .offer-quick-comment__form > br {
    display: none;
}

.theme-baozipt.page-offers .offer-quick-comment__form > #qr {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 92px;
    margin: 0;
}

/* Comment composer: no nested outer table outline, complete internal grid. */
.theme-baozipt.page-comment .comment-compose-page {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.theme-baozipt.page-comment .comment-compose > h1 {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px !important;
    padding: 11px 18px;
    overflow: hidden;
    color: #4b3221;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.45;
    text-align: center !important;
    border: 1px solid #e8c696;
    border-radius: 11px;
    background: linear-gradient(100deg, #fff0d8, #fffaf2 68%);
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt.page-comment .comment-compose > h1 a {
    min-width: 0;
    margin-left: 7px;
    overflow: hidden;
    color: #c74415;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-comment .comment-compose > .nexus-frame {
    overflow: visible !important;
    border: 1px solid #e8c696 !important;
    border-top: 0 !important;
    border-radius: 0 0 11px 11px !important;
    background: #fffaf3 !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt.page-comment .comment-compose > .nexus-frame > tbody > tr > td.text {
    padding: 0 !important;
}

.theme-baozipt.page-comment .comment-compose .nexus-frame > tbody > tr > td.text > table.main {
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 0 11px 11px !important;
    background: #fffaf3 !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt.page-comment .comment-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
}

.theme-baozipt.page-comment .comment-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead {
    border-right: 1px solid #e4c79f !important;
}

.theme-baozipt.page-comment .comment-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-comment .comment-compose #compose-body-edit > tr:first-child > td,
.theme-baozipt.page-comment .comment-compose #compose-body-edit > tr > td:has(iframe[src*="attachment.php"]) {
    border-bottom: 1px solid #efd9ba !important;
}

.theme-baozipt.page-comment .comment-compose #compose-body-edit > tr:last-child > td:last-child {
    border-left: 1px solid #efd9ba !important;
}

@media (max-width: 760px) {
    .theme-baozipt.page-offers .offer-quick-comment__form {
        grid-template-columns: minmax(0, 1fr);
    }
    .theme-baozipt.page-offers .offer-quick-comment__form > textarea,
    .theme-baozipt.page-offers .offer-quick-comment__form > div[align="center"],
    .theme-baozipt.page-offers .offer-quick-comment__form > #qr {
        width: 100%;
        grid-column: 1;
    }
    .theme-baozipt.page-offers .offer-quick-comment__form > div[align="center"] {
        min-height: 0;
        grid-row: 2;
        grid-template-columns: repeat(6, 30px);
        border-top: 1px solid #efd9ba;
        border-left: 0;
        border-radius: 0 0 9px 9px;
    }
    .theme-baozipt.page-offers .offer-quick-comment__form > #qr {
        grid-row: 3;
        justify-self: stretch;
    }
    .theme-baozipt.page-comment .comment-compose > h1 {
        min-height: 52px;
        padding: 9px 12px;
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .theme-baozipt.page-forums .forum-post__layout { grid-template-columns: 1fr; }
    .theme-baozipt.page-forums .forum-post__author { border-right: 0; border-bottom: 1px solid #ead8bd; }
    .theme-baozipt.page-forums .forum-post__stats { width: min(100%, 260px); margin-right: auto; margin-left: auto; }
}

/* Upload workbench */
.theme-baozipt.page-upload #outer::before {
    content: var(--baozi-copy-upload-torrent, "");
    display: block;
    margin: 0 8px 7px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 29px;
    font-weight: 900;
    line-height: 1.2;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(310px, 1fr);
    gap: 16px;
    align-items: start;
}

.upload-main,
.upload-side { min-width: 0; }
.upload-main { max-width: 100%; overflow-x: auto; }
.upload-main form { max-width: 100%; min-width: 0; }
.upload-side { display: grid; gap: 10px; }

.upload-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 8px;
}

.upload-steps span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #6d5c4c;
    font-size: 10px;
    font-weight: 750;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 8px;
    background: #fff9ef;
}

.upload-steps b { display: flex; width: 21px; height: 21px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; background: #bdac99; }
.upload-steps .is-active { color: #fff; border-color: var(--baozi-orange); background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)); }
.upload-steps .is-active b { color: var(--baozi-orange); background: #fff; }
.theme-baozipt .upload-main form > p { margin: 0 0 6px; color: #8c7760; font-size: 9px; text-align: left !important; }

.theme-baozipt .upload-form-table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    overflow: visible;
    border: 1px solid var(--baozi-line) !important;
    border-radius: 11px;
    background: var(--baozi-paper) !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .upload-form-table td { padding: 7px 10px; border-color: #ead8bd; }
.theme-baozipt .upload-form-table td.rowhead { width: 130px; font-size: 11px; }
.theme-baozipt .upload-form-table td.rowfollow { font-size: 10px; }
.theme-baozipt .upload-form-table > tbody > tr:first-child,
.theme-baozipt .upload-form-table > tbody > tr:has(input[name="nfo"]),
.theme-baozipt .upload-form-table > tbody > tr:has(input[name="price"]) { display: none; }
.theme-baozipt .show-more-options .upload-form-table > tbody > tr:has(input[name="nfo"]),
.theme-baozipt .show-more-options .upload-form-table > tbody > tr:has(input[name="price"]) { display: table-row; }

.theme-baozipt .upload-form-table tr:has(#torrent) .rowfollow {
    position: relative;
    min-height: 82px;
    padding: 12px 18px 10px 190px;
    border: 1px dashed var(--baozi-line);
    border-radius: 9px;
    background: #fff8eb;
}

.theme-baozipt .upload-form-table tr:has(#torrent) .rowfollow::before {
    content: var(--baozi-copy-upload-drop-hint, "");
    position: absolute;
    top: 15px;
    left: 20px;
    color: #5f5143;
    font-size: 13px;
    font-weight: 800;
}
.theme-baozipt .upload-form-table input[type="text"],
.theme-baozipt .upload-form-table select,
.theme-baozipt .upload-form-table textarea { max-width: 100%; min-height: 30px; }

.theme-baozipt .upload-form-table .nexus-input-box,
.theme-baozipt .upload-form-table .nexus-input-box > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.theme-baozipt .upload-form-table .nexus-input-box > div:first-child { flex: 1 1 auto; }
.theme-baozipt .upload-form-table .nexus-input-box > div:last-child { flex: 0 0 auto; width: auto; }

.theme-baozipt .upload-form-table input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 11px;
    border: 1px dashed var(--baozi-line);
    border-radius: 9px;
    background: #fff8eb;
}

.theme-baozipt .upload-form-table tr:has(#torrent) input[type="file"] {
    min-height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
}

.theme-baozipt .upload-form-table font.medium { display: none; }
.theme-baozipt .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) { display: none; }
.theme-baozipt .upload-form-table #upload-descr-edit > tr:has(#descr) > td:first-child { width: 100%; }
.theme-baozipt .upload-form-table table:has(> #upload-descr-edit),
.theme-baozipt .upload-form-table table:has(> #upload-descr-edit) > #upload-descr-edit,
.theme-baozipt .upload-form-table #upload-descr-edit > tr,
.theme-baozipt .upload-form-table #upload-descr-edit > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child > td > table {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody,
.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody > tr {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
}

.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child > td > table td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
}

.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child input[type="button"] {
    width: auto !important;
    min-width: 34px;
    padding: 6px 8px;
    line-height: 1.25;
}

.theme-baozipt .upload-form-table #upload-descr-edit > tr:first-child select {
    width: auto !important;
    max-width: min(180px, 100%) !important;
}
.theme-baozipt .upload-form-table #descr {
    width: 100% !important;
    min-height: 110px;
    height: auto;
    padding: 10px;
    resize: vertical;
}
.theme-baozipt .upload-form-table #upload-descr-edit iframe { height: 28px; }
.theme-baozipt .upload-form-table #upload-descr-edit ~ tbody:last-child { display: none; }
.theme-baozipt .upload-form-table #upload-descr-btn-preview,
.theme-baozipt .upload-form-table #upload-descr-btn-edit { display: none !important; }

.theme-baozipt .upload-form-table td.toolbox:last-child { padding: 8px 12px; text-align: center; }
.upload-rules-ack { display: none; }
.upload-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.upload-actions .btn { min-width: 145px; min-height: 34px; border-radius: 7px; }
.upload-actions #qr { color: #fff; border-color: var(--baozi-orange); background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)); }
.upload-check-card ul { margin: 0; padding: 6px 14px; list-style: none; }

.upload-check-card li {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 8px;
    min-height: 29px;
    align-items: center;
    margin: 0;
    font-size: 10px;
    border-bottom: 1px solid #eadac5;
}

.upload-check-card li i { width: 10px; height: 10px; border: 1px solid #a99d8f; border-radius: 50%; }
.upload-check-card li em { color: #9a8c7e; font-size: 8px; font-style: normal; }
.upload-check-card li.is-ready i { border-color: var(--baozi-orange); background: var(--baozi-orange); box-shadow: inset 0 0 0 2px #fff; }
.upload-check-card li.is-ready em { color: var(--baozi-green); }
.upload-check-card > p { margin: 0; padding: 4px 14px 11px; color: var(--baozi-muted); font-size: 9px; }
.upload-meta-card dl { display: grid; grid-template-columns: 1fr auto; margin: 0; padding: 9px 15px; font-size: 10px; }
.upload-meta-card dt,
.upload-meta-card dd { margin: 0; padding: 4px 0; border-bottom: 1px dashed #dfcfba; }
.upload-meta-card dd { color: #9b8e80; }
.upload-meta-card dd { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-rule-card > div { display: grid; grid-template-columns: 76px 1fr; gap: 7px; padding: 8px 13px 2px; }
.upload-rule-card img { width: 78px; align-self: end; }
.upload-rule-card ul { margin: 0; padding: 2px 0 0 16px; color: #4f463d; font-size: 10px; }
.upload-rule-card li { margin: 0; }
.upload-rule-card > a { display: block; padding: 2px 14px 10px; font-size: 9px; text-align: right; }
.upload-draft-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; }
.upload-draft-card strong { font-size: 10px; }
.upload-draft-card span { color: var(--baozi-muted); font-size: 8px; }

/* Account dashboard */
.theme-baozipt.page-usercp:has(.account-dashboard) #usercpnav { display: none; }
.theme-baozipt.page-usercp:has(.account-dashboard) #outer::before {
    content: none;
    display: none;
}

.account-dashboard {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 18px;
    min-height: 550px;
    align-items: start;
    margin-bottom: 14px;
}

.account-dashboard__nav {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: var(--baozi-paper);
}

.account-dashboard__nav h1 {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 17px;
    color: #563c29;
    font-size: 16px;
    line-height: 1.35;
    border-bottom: 1px solid #ebd5b6;
    background: linear-gradient(90deg, #ffecd0, #fff8ec);
}
.account-dashboard__nav h1 span { width: 22px; color: var(--baozi-orange); text-align: center; }

.account-dashboard__nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    padding: 8px 17px;
    color: var(--baozi-ink);
    font-weight: 700;
    border-top: 1px solid #efe0cb;
}

.account-dashboard__nav a span { width: 22px; text-align: center; font-size: 17px; }
.account-dashboard__nav a.is-active { color: #fff; border-color: var(--baozi-orange); background: linear-gradient(90deg, var(--baozi-orange-bright), var(--baozi-orange)); }
.account-dashboard__nav a:not(.is-secondary) + a.is-secondary { margin-top: 7px; border-top: 1px dashed #dfc6a5; }

.usercp-settings-shell {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.usercp-settings-content { min-width: 0; }
.usercp-settings-content > form { width: 100%; min-width: 0; margin: 0; }

.account-dashboard__content {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(280px, .82fr) minmax(390px, 1.18fr);
    gap: 12px;
}

.account-profile-card {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 15px;
    min-height: 116px;
    align-items: center;
    padding: 16px 19px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: var(--baozi-paper);
}

.account-profile-card__avatar { display: block; width: 72px; height: 72px; overflow: hidden; border: 2px solid var(--baozi-orange); border-radius: 50%; background: #ffc76e; }
.account-profile-card__avatar img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.account-profile-card h2 { margin: 0; color: var(--baozi-orange); font-size: 23px; }
.account-profile-card p { margin: 5px 0 0; color: var(--baozi-muted); font-size: 10px; }
.account-profile-card > a { padding: 7px 11px; color: #5f4832; border: 1px solid var(--baozi-line); border-radius: 7px; background: #fffaf2; }

.account-ratio-card {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    min-height: 286px;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background-color: #fff4df;
    background-image:
        linear-gradient(90deg, rgba(255, 250, 241, .98) 0%, rgba(255, 248, 235, .94) 42%, rgba(255, 247, 230, .72) 58%, rgba(255, 246, 226, .08) 82%),
        url("../../pic/baozi-account-ratio-a.png");
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: cover, cover;
}

.account-ratio-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(80%, 650px);
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.account-ratio-card__header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.account-ratio-card__label {
    color: #33291f;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.account-ratio-card__status {
    flex: 0 0 auto;
    padding: 3px 8px;
    color: #7b5b39;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
    border: 1px solid rgba(181, 139, 87, .28);
    border-radius: 999px;
    background: rgba(255, 250, 241, .76);
}

.account-ratio-card.is-healthy .account-ratio-card__status {
    color: #197f40;
    border-color: rgba(31, 139, 70, .25);
    background: rgba(231, 246, 234, .9);
}

.account-ratio-card.is-warning .account-ratio-card__status {
    color: #c84617;
    border-color: rgba(224, 78, 24, .25);
    background: rgba(255, 237, 220, .92);
}

.account-ratio-card__value {
    display: block;
    max-width: 100%;
    margin: 9px 0 3px;
    color: var(--baozi-green);
    font-size: clamp(40px, 4vw, 58px);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.03;
    overflow-wrap: anywhere;
}

.account-ratio-card.is-warning .account-ratio-card__value { color: var(--baozi-orange); }

.account-ratio-card__hint {
    max-width: 310px;
    margin: 4px 0 13px;
    color: #67584a;
    font-size: 12px;
    line-height: 1.55;
}

.account-ratio-card__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: auto 0 0;
}

.account-ratio-card__metrics > div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(204, 157, 98, .28);
    border-radius: 9px;
    background: rgba(255, 251, 244, .78);
    box-shadow: 0 4px 12px rgba(137, 84, 35, .04);
}

.account-ratio-card__metrics dt {
    margin: 0 0 2px;
    color: #8a755f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.account-ratio-card__metrics dt span {
    display: inline-block;
    margin-right: 4px;
    color: var(--baozi-orange);
    font-size: 14px;
    line-height: 1;
}

.account-ratio-card__metric--upload dt span { color: var(--baozi-green); }

.account-ratio-card__metrics dd {
    margin: 0;
    color: #3d3024;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.account-ratio-card__metric--bonus dd { color: var(--baozi-orange); }
.account-ratio-card__metric--active small {
    display: block;
    margin-top: 1px;
    color: #8a755f;
    font-size: 8px;
    line-height: 1.3;
    white-space: nowrap;
}

.account-trend-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 158px;
    padding: 13px 16px;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: var(--baozi-paper);
}

.account-trend-card header { display: flex; align-items: center; justify-content: space-between; }
.account-trend-card h3 { margin: 0; font-size: 12px; }
.account-trend-card h3 small { margin-left: 7px; color: var(--baozi-muted); font-weight: 500; }
.account-trend-card header > span { padding: 2px 7px; color: var(--baozi-green); font-size: 8px; border-radius: 8px; background: #e4f2e7; }

.account-trend-chart {
    display: flex;
    height: 88px;
    align-items: flex-end;
    gap: 4px;
    margin-top: 8px;
    border-bottom: 1px solid #dbc5a6;
    background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(222, 194, 157, .35) 22px);
}

.account-trend-chart i { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff8a31, #f5b24d); opacity: .84; }
.account-summary-row {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.account-summary-row > section {
    min-width: 0;
    min-height: 132px;
    padding: 13px 15px;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: var(--baozi-paper);
}

.account-summary-row h3 { margin: 0 0 6px; font-size: 13px; }
.account-summary-row > section:not(.account-level-card) strong { color: var(--baozi-orange); font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.account-summary-row p { margin: 4px 0 7px; color: var(--baozi-muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.account-summary-row a { font-size: 10px; }

.account-level-card > strong { display: block; margin: 8px 0; color: var(--baozi-orange); font-size: 19px; }
.account-level-card > strong span { margin-left: 7px; font-size: 10px; }
.account-level-card > div { height: 8px; overflow: hidden; border-radius: 99px; background: #eddfca; }
.account-level-card > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb641, var(--baozi-orange)); }
.account-level-card p { color: var(--baozi-muted); font-size: 8px; }

.account-more { grid-column: 1 / -1; min-width: 0; margin-top: 0; border: 1px solid var(--baozi-line); border-radius: 10px; background: var(--baozi-paper); }
.account-more > summary { padding: 12px 16px; color: #6d4b2e; font-weight: 800; cursor: pointer; }
.account-more > table { width: 100% !important; }

/* Login */
.theme-baozipt.is-guest table.head {
    width: calc(100% - 60px) !important;
    max-width: none;
    height: 132px;
    min-height: 132px;
    padding-top: 18px;
}

.theme-baozipt.is-guest table.head td:first-child { width: 285px; }
.theme-baozipt.is-guest .site-brand,
.theme-baozipt.is-guest .logo_img { width: 278px; height: 104px; }
.theme-baozipt.is-guest .logo_img img { width: 272px; }
.theme-baozipt.is-guest #nav_block { height: 0; }

.theme-baozipt.is-guest .guest-nav {
    position: absolute;
    z-index: 30;
    top: -86px;
    right: 2px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-baozipt.is-guest .guest-nav__link {
    display: flex;
    min-width: 58px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--baozi-ink);
    font-size: 16px;
    font-weight: 700;
}

.theme-baozipt.is-guest .guest-nav__link + .guest-nav__link::before {
    content: "|";
    margin-right: 24px;
    color: #c8a77b;
}

.theme-baozipt.page-login #outer { padding: 0 0 12px !important; }

.theme-baozipt .auth-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 52px 1fr;
    width: min(1132px, 100%);
    min-height: 615px;
    margin: 16px auto 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 24px;
    background: rgba(255, 252, 246, .93);
    box-shadow: 0 16px 45px rgba(111, 70, 28, .1);
}

.theme-baozipt .auth-intro {
    position: relative;
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 48px 42px 27px;
    overflow: hidden;
    text-align: center;
    border-right: 1px solid var(--baozi-line-soft);
    background:
        radial-gradient(circle at 50% 59%, rgba(255, 183, 81, .28), transparent 38%),
        linear-gradient(150deg, #fff9eb, #ffedcc);
}

.theme-baozipt .auth-hero__heading { position: relative; z-index: 2; }
.theme-baozipt .auth-intro__eyebrow { display: none; }

.theme-baozipt .auth-intro h1 {
    margin: 0;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 35px;
    line-height: 1.1;
}

.theme-baozipt .auth-intro h1 span { color: var(--baozi-orange); }

.theme-baozipt .auth-intro h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 13px;
    margin: 12px auto 0;
    border-top: 2px dashed var(--baozi-line);
    border-radius: 50%;
}

.theme-baozipt .auth-hero__subtitle { margin: 7px 0 0; color: var(--baozi-muted); font-size: 11px; }

.theme-baozipt .auth-hero__mascot {
    position: absolute;
    top: 142px;
    left: 50%;
    width: 385px;
    height: 340px;
    margin: 0;
    transform: translateX(-50%);
}

.theme-baozipt .auth-hero__mascot::before {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 26px;
    left: 22px;
    height: 62px;
    border-radius: 50%;
    background: rgba(193, 119, 38, .16);
    filter: blur(9px);
}

.theme-baozipt .auth-hero__mascot img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 10px rgba(100, 61, 22, .12));
}

.theme-baozipt .auth-values {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: auto;
}

.theme-baozipt .auth-value-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #554b41;
}

.theme-baozipt .auth-value-card b {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    color: #8b5e2d;
    font-size: 25px;
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background: #fff7e8;
}

.theme-baozipt .auth-value-card small { font-size: 11px; }

.theme-baozipt .auth-language {
    grid-column: 2;
    grid-row: 1;
    padding: 13px 28px 0;
}

.theme-baozipt .auth-language-switcher__label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--baozi-muted);
    font-size: 9px;
}

.theme-baozipt .auth-language select { min-width: 108px; min-height: 28px; }

.theme-baozipt .auth-card {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    align-self: start;
    padding: 0 48px 24px;
    text-align: left;
}

.theme-baozipt .auth-login-panel__header { text-align: center; }
.theme-baozipt .auth-login-panel__kicker,
.theme-baozipt .auth-login-panel__description { display: none; }

.theme-baozipt .auth-login-panel__header h2 {
    margin: 0 0 14px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 34px;
    line-height: 1;
}

.theme-baozipt .auth-login-panel__header h2::before,
.theme-baozipt .auth-login-panel__header h2::after {
    content: "•";
    display: inline-block;
    margin: 0 15px;
    color: #ef8d23;
    font-size: 20px;
    transform: translateY(-5px);
}

.theme-baozipt .auth-login-notice { margin-bottom: 8px; padding: 8px 10px; color: #7d4c26; font-size: 9px; border: 1px solid #efc58e; border-radius: 7px; background: #fff6e7; }
.theme-baozipt .auth-login-notice p { margin: 2px 0 0; }
.theme-baozipt .auth-login-form__security-note { display: none; }

.theme-baozipt .auth-form-table {
    width: 100%;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent !important;
}

.theme-baozipt .auth-form-table td { border: 0 !important; background: transparent !important; }
.theme-baozipt .auth-form-row { position: relative; }
.theme-baozipt .auth-form-row__label { display: none; }

.theme-baozipt .auth-form-row__control {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 !important;
}

.theme-baozipt .auth-field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #9b856e;
    font-size: 20px;
    transform: translateY(-50%);
}

.theme-baozipt .auth-form-row__control > input[type="text"],
.theme-baozipt .auth-form-row__control > input[type="password"] {
    width: 100% !important;
    min-height: 51px;
    padding: 0 14px 0 48px;
    font-size: 13px;
}

.theme-baozipt .auth-form-table__captcha tr td { padding: 4px 0; }
.theme-baozipt .auth-form-table__captcha img { max-height: 48px; }
.theme-baozipt .auth-form-table__captcha input[type="text"] { width: 100% !important; min-height: 46px; }
.theme-baozipt .auth-form-options__title { display: none; }
.theme-baozipt .auth-form-row--logout .auth-form-row__label { display: none; }
.theme-baozipt .auth-form-row--logout .auth-form-row__control { display: block; }

.theme-baozipt .auth-logout-toggle {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 8px;
    color: #554d45;
    font-size: 11px;
}

.theme-baozipt .auth-logout-toggle input { accent-color: var(--baozi-orange); }
.theme-baozipt .auth-form-actions { display: flex; width: 100%; padding: 5px 0 0 !important; }
.theme-baozipt .auth-form-actions__submit { width: 100%; min-height: 50px !important; font-size: 17px; }
.theme-baozipt .auth-form-actions__reset { display: none !important; }

.theme-baozipt .auth-login-methods { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.theme-baozipt .auth-login-methods__label { width: 100%; color: var(--baozi-muted); font-size: 9px; }
.theme-baozipt .auth-login-method { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 5px 12px; color: var(--baozi-orange); border: 1px solid var(--baozi-line); border-radius: 7px; background: #fffaf2; }
.theme-baozipt .auth-account-links { margin-top: 7px; text-align: center; }
.theme-baozipt .auth-login-method--passkey { width: 100%; min-height: 43px; font-weight: 700; }
.theme-baozipt .auth-passkey-note { display: none; }
.theme-baozipt .auth-account-link { margin: 5px 0; color: #564e46; font-size: 10px; }
.theme-baozipt .auth-account-link--signup { margin-top: 12px; padding-top: 12px; font-size: 13px; border-top: 1px solid var(--baozi-line-soft); }
.theme-baozipt .auth-account-link--banned,
.theme-baozipt .auth-account-link--resend { display: none; }
.theme-baozipt .auth-help { grid-column: 1 / -1; display: none; }

.theme-baozipt.page-login #footer {
    width: 100% !important;
    max-width: none;
    min-height: 126px;
    margin-top: 52px;
    padding-left: 36px;
}

/* Footer */
.theme-baozipt #footer {
    position: relative;
    min-height: 112px;
    margin-top: 13px;
    padding: 13px 295px 10px;
    border: 0;
    background: linear-gradient(90deg, rgba(255, 232, 190, .82), rgba(255, 246, 226, .7));
    clip-path: polygon(0 7px, 8px 3px, 16px 7px, 24px 3px, 32px 7px, 40px 3px, 48px 7px, 56px 3px, 64px 7px, 72px 3px, 80px 7px, 88px 3px, 96px 7px, 100% 3px, 100% 100%, 0 100%);
}

.theme-baozipt .footer-inner { display: flex; min-height: 88px; align-items: center; justify-content: center; }
.theme-baozipt .footer-meta { width: 100%; min-width: 0; text-align: center; }
.theme-baozipt .footer-copyright { color: #40382e; font-family: Georgia, "Times New Roman", serif; font-size: 13px; }
.theme-baozipt .footer-copyright a { color: #40382e; }
.theme-baozipt .footer-mobile-ready { margin-left: 8px; color: #e94b16; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 900; white-space: nowrap; }
.theme-baozipt .footer-runtime { margin-top: 5px; color: #514a42; font-family: Georgia, "Times New Roman", serif; font-size: 11px; }

/* Site-wide page jump controls */
.theme-baozipt .baozi-page-jump {
    position: fixed;
    z-index: 3650;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    display: grid;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(224, 125, 35, .44);
    border-radius: 17px;
    background: rgba(255, 250, 241, .92);
    box-shadow: 0 10px 28px rgba(98, 54, 17, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.theme-baozipt .baozi-page-jump[hidden] { display: none !important; }

.theme-baozipt .baozi-page-jump__button {
    position: relative;
    display: grid;
    width: 43px;
    height: 43px;
    min-width: 0;
    min-height: 0;
    place-items: center;
    margin: 0;
    padding: 0;
    color: #fff;
    border: 1px solid #e6500c;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff7b26, #f1550c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 5px 12px rgba(196, 73, 10, .22);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease, background .16s ease;
}

.theme-baozipt .baozi-page-jump__button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-baozipt .baozi-page-jump__button::before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    padding: 5px 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border-radius: 7px;
    opacity: 0;
    pointer-events: none;
    background: rgba(76, 43, 20, .9);
    box-shadow: 0 4px 12px rgba(58, 32, 13, .16);
    transform: translate(5px, -50%);
    transition: opacity .16s ease, transform .16s ease;
}

.theme-baozipt .baozi-page-jump__button:hover:not(:disabled),
.theme-baozipt .baozi-page-jump__button:focus-visible {
    background: linear-gradient(145deg, #ff8c35, #e94b08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 7px 16px rgba(196, 73, 10, .3);
    transform: translateY(-1px);
}

.theme-baozipt .baozi-page-jump__button:hover:not(:disabled)::before,
.theme-baozipt .baozi-page-jump__button:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%);
}

.theme-baozipt .baozi-page-jump__button:focus-visible {
    outline: 3px solid rgba(255, 126, 37, .28);
    outline-offset: 2px;
}

.theme-baozipt .baozi-page-jump__button:disabled {
    color: #aa876b;
    border-color: #e9d4ba;
    opacity: .66;
    background: #f7ebda;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 720px) {
    .theme-baozipt .baozi-page-jump {
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(76px, calc(env(safe-area-inset-bottom, 0px) + 68px));
        gap: 5px;
        padding: 5px;
        border-radius: 15px;
    }

    .theme-baozipt .baozi-page-jump__button {
        width: 39px;
        height: 39px;
        border-radius: 10px;
    }

    .theme-baozipt .baozi-page-jump__button svg { width: 23px; height: 23px; }
    .theme-baozipt .baozi-page-jump__button::before { display: none; }
}

.theme-baozipt .footer-stamp { position: absolute; top: 15px; right: 20px; width: 255px; height: 90px; color: #9a5e25; }
.theme-baozipt .footer-stamp > span { position: absolute; top: 2px; left: 0; display: flex; width: 80px; height: 80px; align-items: center; justify-content: center; font-family: "STKaiti", "KaiTi", serif; font-weight: 900; border: 3px double #9a5e25; border-radius: 50%; transform: rotate(-8deg); }
.theme-baozipt .footer-stamp > i { position: absolute; top: 22px; left: 67px; width: 80px; height: 34px; border-top: 2px solid #9a5e25; border-bottom: 2px solid #9a5e25; transform: rotate(7deg); }
.theme-baozipt .footer-stamp > i::before,
.theme-baozipt .footer-stamp > i::after { content: ""; position: absolute; left: 0; width: 100%; border-top: 1px solid #9a5e25; }
.theme-baozipt .footer-stamp > i::before { top: 9px; }
.theme-baozipt .footer-stamp > i::after { top: 21px; }
.theme-baozipt .footer-stamp > em { position: absolute; right: 0; bottom: 0; color: var(--baozi-orange); font-family: cursive; font-size: 14px; line-height: 1.2; transform: rotate(-4deg); }

/* Remaining native pages keep the same visual language. */
.theme-baozipt #usercpnav { margin: 0 0 12px; }

.theme-baozipt #usercpmenu {
    display: flex;
    gap: 7px;
    margin: 0;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    list-style: none;
    background: var(--baozi-paper);
}

.theme-baozipt #usercpmenu li { float: none; flex: none; }
.theme-baozipt #usercpmenu a { display: block; padding: 8px 14px; color: var(--baozi-ink); font-weight: 700; border-radius: 7px; }
.theme-baozipt #usercpmenu li.selected a { color: #fff; background: var(--baozi-orange); }

.theme-baozipt #outer > table:not(.main):not(.torrents):not(.searchbox),
.theme-baozipt #outer > form > table {
    border-color: var(--baozi-line) !important;
    border-radius: 10px;
    background: var(--baozi-paper) !important;
}

.theme-baozipt .pagination a,
.theme-baozipt .pagination b,
.theme-baozipt .pager a,
.theme-baozipt .pager b {
    display: inline-flex;
    min-width: 31px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 6px;
    background: #fff9ef;
}

/* Site-wide Baozi primitives for native NexusPHP pages. */
.theme-baozipt #outer,
.theme-baozipt td.outer {
    color: var(--baozi-ink);
    font-size: 14px;
    line-height: 1.55;
}

.theme-baozipt #outer > h1,
.theme-baozipt #outer > h2,
.theme-baozipt td.outer > h1,
.theme-baozipt td.outer > h2,
.theme-baozipt .nexus-main-frame > tbody > tr > td.embedded > h1,
.theme-baozipt .nexus-main-frame > tbody > tr > td.embedded > h2 {
    margin: 0 0 14px;
    color: #2d261f;
    font-weight: 800;
    letter-spacing: .01em;
}

.theme-baozipt #outer > h1,
.theme-baozipt td.outer > h1 { font-size: 28px; }
.theme-baozipt #outer > h2,
.theme-baozipt td.outer > h2 { font-size: 20px; }

.theme-baozipt #outer table,
.theme-baozipt td.outer table,
.theme-baozipt #peerlist table,
.theme-baozipt [id^="ka"] table {
    color: var(--baozi-ink);
    border-color: var(--baozi-line-soft) !important;
}

.theme-baozipt #outer table td,
.theme-baozipt #outer table th,
.theme-baozipt td.outer table td,
.theme-baozipt td.outer table th,
.theme-baozipt #peerlist td,
.theme-baozipt #peerlist th,
.theme-baozipt [id^="ka"] td,
.theme-baozipt [id^="ka"] th {
    border-color: #ead8bd !important;
}

/* Guest-visible utility pages are rendered inside #nav_block rather than
   td#outer.  Reset Classic's black cell borders at the theme boundary so
   tags, public logs and every other legacy table share the same warm rules. */
body.theme-baozipt table td,
body.theme-baozipt table th { border-color: #ead8bd !important; }

body.theme-baozipt td[style*="background: black"],
body.theme-baozipt td[style*="background:black"],
body.theme-baozipt td[bgcolor="black"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
}

body.theme-baozipt td[style*="background: black"] font,
body.theme-baozipt td[style*="background:black"] font,
body.theme-baozipt td[bgcolor="black"] font { color: #fff !important; }

.theme-baozipt .nexus-main-frame {
    width: 100% !important;
    table-layout: fixed;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt .nexus-main-frame > tbody > tr > td.embedded { padding: 0; border: 0 !important; background: transparent !important; }

.theme-baozipt .nexus-frame,
.theme-baozipt .nexus-message,
.theme-baozipt .nexus-data-table,
.theme-baozipt #outer > table.main:not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame):not(.torrents):not(.forums):not(.auth-form-table),
.theme-baozipt td.outer > table.main:not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame):not(.torrents):not(.forums):not(.auth-form-table),
.theme-baozipt #outer > form > table,
.theme-baozipt td.outer > form > table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

/* Most v1.9.11 utility pages still emit a fixed-width, classless table
   directly inside td#outer.  Treat that table as the page card so message,
   settings, user and administration screens do not fall back to a narrow
   Classic-era column. */
.theme-baozipt.is-authenticated td.outer > table:not(.mainouter):not(.head):not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame),
.theme-baozipt.is-authenticated td.outer > center > table:not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame),
.theme-baozipt.is-authenticated td.outer > form > table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .nexus-frame > tbody > tr > td.text,
.theme-baozipt .nexus-message > tbody > tr > td.embedded,
.theme-baozipt .nexus-message__body td.text { padding: 18px 20px !important; background: #fffaf3 !important; }

.theme-baozipt table.nexus-message {
    width: 620px !important;
    max-width: 100% !important;
    margin: 34px auto !important;
}
.theme-baozipt .nexus-message h2 { margin: 0 0 12px; color: #5e381c; font-size: 22px; }
.theme-baozipt .nexus-message__body { border: 0 !important; border-top: 1px solid var(--baozi-line-soft) !important; background: #fffaf3 !important; }

.theme-baozipt td.colhead,
.theme-baozipt td.colhead2,
.theme-baozipt th.colhead,
.theme-baozipt th.colhead2 {
    min-height: 38px;
    padding: 10px 12px !important;
    color: #67411f !important;
    font-size: 13px;
    font-weight: 800;
    background: #ffead0 !important;
}

.theme-baozipt td.rowhead { padding: 10px 12px !important; color: #4a3a2c; font-weight: 700; background: #fff1dc !important; }
.theme-baozipt td.rowfollow,
.theme-baozipt td.text,
.theme-baozipt td.embedded { padding: 10px 12px; background: #fffaf3 !important; }
.theme-baozipt td.toolbox { padding: 12px !important; background: #fff4e3 !important; }
.theme-baozipt tr:hover > td.rowfollow { background: #fff6e9 !important; }

.theme-baozipt input[type="text"],
.theme-baozipt input[type="password"],
.theme-baozipt input[type="email"],
.theme-baozipt input[type="search"],
.theme-baozipt input[type="url"],
.theme-baozipt input[type="tel"],
.theme-baozipt input[type="number"],
.theme-baozipt input[type="date"],
.theme-baozipt input[type="datetime-local"],
.theme-baozipt input[type="time"],
.theme-baozipt select,
.theme-baozipt textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    color: var(--baozi-ink);
    border: 1px solid #ddb47f !important;
    border-radius: 7px;
    background: #fffdf8 !important;
    line-height: 1.4;
}

.theme-baozipt textarea { min-height: 110px; resize: vertical; }
.theme-baozipt input[type="file"] { max-width: 100%; padding: 7px 9px; color: #55483b; border: 1px dashed #dca266; border-radius: 7px; background: #fff8ec; }
.theme-baozipt input[type="checkbox"],
.theme-baozipt input[type="radio"] { width: 16px; height: 16px; vertical-align: -3px; accent-color: var(--baozi-orange); }

.theme-baozipt input[type="submit"],
.theme-baozipt input[type="button"],
.theme-baozipt input[type="reset"],
.theme-baozipt button,
.theme-baozipt .btn,
.theme-baozipt .btn2 {
    max-width: 100%;
    min-height: 36px;
    padding: 7px 18px;
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    border: 1px solid var(--baozi-orange) !important;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
    box-shadow: none;
    cursor: pointer;
}

.theme-baozipt input[type="submit"]:hover,
.theme-baozipt input[type="button"]:hover,
.theme-baozipt input[type="reset"]:hover,
.theme-baozipt button:hover,
.theme-baozipt .btn:hover,
.theme-baozipt .btn2:hover { border-color: var(--baozi-orange-dark) !important; background: linear-gradient(135deg, #ff8b3e, #df4b12) !important; }

.theme-baozipt input:disabled,
.theme-baozipt button:disabled,
.theme-baozipt select:disabled,
.theme-baozipt textarea:disabled { cursor: not-allowed; opacity: .58; }

.theme-baozipt fieldset { margin: 12px 0; padding: 16px; border: 1px solid var(--baozi-line); border-radius: 10px; background: #fffaf3; }
.theme-baozipt legend { padding: 0 8px; color: #6c421f; font-weight: 800; }
.theme-baozipt pre,
.theme-baozipt code { border-color: #ead8bd; background: #fff5e6; }

.theme-baozipt p.nexus-pagination {
    margin: 14px 0;
    color: #9a8065;
    line-height: 2.4;
}

.theme-baozipt p.nexus-pagination a,
.theme-baozipt p.nexus-pagination > b,
.theme-baozipt p.nexus-pagination font.gray > b {
    display: inline-flex;
    min-width: 34px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin: 2px 3px;
    padding: 4px 10px;
    color: #5a4634;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 7px;
    background: #fff9ef;
}

.theme-baozipt p.nexus-pagination a:hover { color: #fff; border-color: var(--baozi-orange); background: var(--baozi-orange); }

.theme-baozipt .nexus-alert { width: 100%; margin: 0 0 12px; border: 0 !important; background: transparent !important; }
.theme-baozipt .nexus-alert td { padding: 11px 14px !important; color: #5b3921; border: 1px solid #efbd83 !important; border-radius: 9px; background: #fff0d8 !important; }
.theme-baozipt .nexus-alert a,
.theme-baozipt .nexus-alert font { color: inherit !important; }
.theme-baozipt .nexus-alert--green td { color: #245b34; border-color: #a8d1ae !important; background: #edf8ee !important; }
.theme-baozipt .nexus-alert--blue td { color: #28516e; border-color: #a8cadd !important; background: #edf7fb !important; }
.theme-baozipt .nexus-alert--red td { color: #852d20; border-color: #efad9f !important; background: #fff0ed !important; }

/* Give the in-flow full-site promotion its own BaoziPT announcement card. */
.theme-baozipt .nexus-alert--promotion {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: separate;
    border-spacing: 0;
}

/* The generic #outer table rules also draw borders on the table and its td.
   Keep only the orange card frame so the two 1px borders never overlap. */
.theme-baozipt #outer > table.nexus-alert--promotion {
    overflow: hidden;
    border-color: #efa458 !important;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: 0 9px 24px rgba(154, 82, 20, .10);
}

.theme-baozipt #outer > table.nexus-alert--promotion td {
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.theme-baozipt .nexus-alert--promotion td {
    position: relative;
    padding: 17px 22px 18px !important;
    color: #6c3b1f !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    border: 1px solid #efa458 !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .88), transparent 34%),
        linear-gradient(135deg, #fffaf1, #ffefd8 58%, #ffe6c3) !important;
    box-shadow: 0 9px 24px rgba(154, 82, 20, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.theme-baozipt .nexus-alert--promotion td::before {
    content: "★ 全站促销";
    display: table;
    margin: 0 auto 8px;
    padding: 3px 11px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: .08em;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a24, #ea4f0c);
    box-shadow: 0 4px 11px rgba(218, 75, 12, .22);
}

.theme-baozipt .nexus-alert--promotion a,
.theme-baozipt .nexus-alert--promotion font {
    color: inherit !important;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 760px) {
    .theme-baozipt .nexus-alert--promotion { margin-bottom: 14px; }

    .theme-baozipt .nexus-alert--promotion td {
        padding: 13px 14px 14px !important;
        font-size: 12px;
        line-height: 1.75;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .theme-baozipt .nexus-alert--promotion td::before { margin: 0 0 7px; }
}


.theme-baozipt .auth-result-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 34px 38px;
    color: var(--baozi-ink);
    text-align: center;
    border: 1px solid var(--baozi-line);
    border-radius: 18px;
    background: #fffaf3;
    box-shadow: 0 15px 42px rgba(111, 70, 28, .09);
}

.theme-baozipt .auth-result-card h1 { margin: 0 0 15px; color: #35291f; font-size: 28px; }
.theme-baozipt .auth-result-card p { margin: 8px 0; color: #665547; line-height: 1.75; }

/* Every page rendered before login uses one clean, headerless surface. */
.theme-baozipt.is-guest table.head,
.theme-baozipt.is-guest #footer { display: none !important; }

.theme-baozipt.is-guest .guest-nav { display: none !important; }

/* Email confirmation can establish the login cookie before redirecting to
   ok.php.  Keep that result—and direct visits to recovery/resend forms—in the
   same standalone account shell even when stdhead labels it authenticated. */
.theme-baozipt.page-ok.is-authenticated table.head,
.theme-baozipt.page-ok.is-authenticated #nav_block,
.theme-baozipt.page-ok.is-authenticated #footer,
.theme-baozipt.page-recover.is-authenticated table.head,
.theme-baozipt.page-recover.is-authenticated #nav_block,
.theme-baozipt.page-recover.is-authenticated #footer,
.theme-baozipt.page-confirm_resend.is-authenticated table.head,
.theme-baozipt.page-confirm_resend.is-authenticated #nav_block,
.theme-baozipt.page-confirm_resend.is-authenticated #footer,
.theme-baozipt.page-confirm.is-authenticated table.head,
.theme-baozipt.page-confirm.is-authenticated #nav_block,
.theme-baozipt.page-confirm.is-authenticated #footer,
.theme-baozipt.page-confirmemail.is-authenticated table.head,
.theme-baozipt.page-confirmemail.is-authenticated #nav_block,
.theme-baozipt.page-confirmemail.is-authenticated #footer { display: none !important; }

.theme-baozipt.page-ok.is-authenticated table.mainouter,
.theme-baozipt.page-recover.is-authenticated table.mainouter,
.theme-baozipt.page-confirm_resend.is-authenticated table.mainouter,
.theme-baozipt.page-confirm.is-authenticated table.mainouter,
.theme-baozipt.page-confirmemail.is-authenticated table.mainouter {
    width: 100% !important;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    background: transparent !important;
}

.theme-baozipt.page-ok.is-authenticated td.outer,
.theme-baozipt.page-recover.is-authenticated td.outer,
.theme-baozipt.page-confirm_resend.is-authenticated td.outer,
.theme-baozipt.page-confirm.is-authenticated td.outer,
.theme-baozipt.page-confirmemail.is-authenticated td.outer {
    width: 100%;
    height: 100vh;
    padding: 34px 24px !important;
    vertical-align: middle;
    background: transparent !important;
}

.theme-baozipt.is-guest table.mainouter {
    width: 100% !important;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    background: transparent !important;
}

.theme-baozipt.is-guest #nav_block,
.theme-baozipt.is-guest table.mainouter > tbody > tr:last-child > td,
.theme-baozipt.is-guest td.outer {
    position: static;
    display: table-cell;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 34px 24px !important;
    vertical-align: middle;
    background: transparent !important;
}

.theme-baozipt.is-guest .auth-layout { margin: 0 auto; }
.theme-baozipt.is-guest .nexus-main-frame,
.theme-baozipt.is-guest .nexus-message,
.theme-baozipt.is-guest #nav_block > table:not(.auth-form-table),
.theme-baozipt.is-guest td.outer > table:not(.auth-form-table) { max-width: 1132px; margin-right: auto !important; margin-left: auto !important; }
.theme-baozipt.is-guest .nexus-main-frame { padding: 22px; border: 1px solid var(--baozi-line) !important; border-radius: 18px; background: #fffaf3 !important; box-shadow: 0 15px 42px rgba(111, 70, 28, .09); }

.theme-baozipt .auth-layout .auth-intro { background: #fdefd8; }
.theme-baozipt .auth-layout--signup { min-height: 690px; }
.theme-baozipt .auth-layout--compact { min-height: 530px; }
.theme-baozipt .auth-layout--signup .auth-intro,
.theme-baozipt .auth-layout--compact .auth-intro { padding-top: 56px; background: #fdefd8; }
.theme-baozipt .auth-layout--signup .auth-intro::after,
.theme-baozipt .auth-layout--compact .auth-intro::after {
    content: "";
    position: absolute;
    top: 150px;
    left: 50%;
    width: 330px;
    height: 330px;
    border-radius: 28px;
    background: #fdefd8 url("../../pic/baozi-mascot.png") center / contain no-repeat;
    transform: translateX(-50%);
}

.theme-baozipt .auth-layout--compact .auth-intro::after { top: 135px; width: 280px; height: 280px; }
.theme-baozipt .auth-layout--signup .auth-card,
.theme-baozipt .auth-layout--compact .auth-card { align-self: stretch; padding-top: 8px; overflow-y: auto; }
.theme-baozipt .auth-layout--signup .auth-card > form > table,
.theme-baozipt .auth-layout--compact .auth-card > form > table { width: 100% !important; border: 0 !important; border-collapse: separate; border-spacing: 0 7px; background: transparent !important; box-shadow: none; }
.theme-baozipt .auth-layout--signup .auth-card td,
.theme-baozipt .auth-layout--compact .auth-card td { border: 0 !important; background: transparent !important; }
.theme-baozipt .auth-layout--signup .auth-card td.rowhead,
.theme-baozipt .auth-layout--compact .auth-card td.rowhead { width: 155px; padding-right: 15px !important; text-align: right; }
.theme-baozipt .auth-layout--signup .auth-card input[type="text"],
.theme-baozipt .auth-layout--signup .auth-card input[type="password"],
.theme-baozipt .auth-layout--signup .auth-card select,
.theme-baozipt .auth-layout--compact .auth-card input[type="text"],
.theme-baozipt .auth-layout--compact .auth-card input[type="password"],
.theme-baozipt .auth-layout--compact .auth-card select { width: 100% !important; max-width: 100%; }
.theme-baozipt .auth-layout--compact .auth-card > h1 { margin: 0 0 10px; font-size: 26px; }
.theme-baozipt .auth-layout--compact .auth-card > p { margin: 5px 0; color: var(--baozi-muted); }

.theme-baozipt.page-complains.is-guest #nav_block > form {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px 32px 32px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 18px;
    background: #fffaf3;
    box-shadow: 0 15px 42px rgba(111, 70, 28, .09);
}

.theme-baozipt.page-complains.is-guest #nav_block > form > h2 { margin: 0 0 20px; font-size: 27px; text-align: center; }
.theme-baozipt.page-complains.is-guest #nav_block > form > table { width: 100% !important; border: 0 !important; border-collapse: separate; border-spacing: 0 8px; background: transparent !important; }
.theme-baozipt.page-complains.is-guest #nav_block > form > table td { border: 0 !important; background: transparent !important; }
.theme-baozipt.page-complains.is-guest #nav_block > form > table td.rowhead { width: 130px; padding-right: 14px !important; text-align: right; }
.theme-baozipt.page-complains.is-guest #nav_block > form input[type="text"],
.theme-baozipt.page-complains.is-guest #nav_block > form textarea { width: 100% !important; }
.theme-baozipt.page-complains.is-guest #nav_block > form textarea { min-height: 210px; }

/* Native iframe and AJAX fragments inherit the same controls and paper. */
body.inframe.theme-baozipt { min-height: 100vh; margin: 0; padding: 12px; color: var(--baozi-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #fbf3e6; }
body.inframe.theme-baozipt table { width: 100%; border-color: var(--baozi-line-soft) !important; background: #fffaf3; }
body.inframe.theme-baozipt td,
body.inframe.theme-baozipt th { border-color: #ead8bd !important; }

@media (max-width: 1420px) {
    .theme-baozipt #nav { left: 235px; right: 82px; }
    .theme-baozipt #mainmenu { gap: 6px; }
    .theme-baozipt #mainmenu li { min-width: 57px; }
    .theme-baozipt #mainmenu li a { padding: 0 9px; font-size: 13px; }
    .theme-baozipt .userbar__shortcuts a { font-size: 10px; }
    .theme-baozipt .userbar__shortcuts a + a::before { margin: 0 6px; }
    .theme-baozipt .userbar__stats { gap: 8px; padding-right: 18px; padding-left: 18px; }
    .theme-baozipt .userstat { grid-template-columns: 48px minmax(0, 1fr); column-gap: 6px; padding-right: 6px; padding-left: 6px; }
    .theme-baozipt .userstat__icon { width: 48px; height: 48px; }
    .theme-baozipt .userstat strong { font-size: 18px; }
    .theme-baozipt .userstat--connectable strong,
    .theme-baozipt .userstat--claim strong { font-size: 17px; }
    .home-news__body { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding-right: 18px; padding-left: 18px; }
    .torrent-card { grid-template-columns: 64px minmax(0, 1fr); padding: 0 7px; }
    .torrent-card__cover { width: 64px; }
    .torrent-detail-hero { grid-template-columns: 205px minmax(0, 1fr) 225px; gap: 13px; }
}

@media (max-width: 1180px) {
    .theme-baozipt table.head,
    .theme-baozipt table.mainouter,
    .theme-baozipt #footer { width: calc(100% - 24px) !important; }

    .theme-baozipt table.head { height: 96px; min-height: 96px; }
    .theme-baozipt table.head td:first-child { width: 205px; }
    .theme-baozipt .site-brand,
    .theme-baozipt .logo_img { width: 195px; height: 76px; }
    .theme-baozipt .logo_img img { width: 190px; }
    .theme-baozipt #nav { top: -76px; right: 70px; left: 205px; }
    .theme-baozipt.is-authenticated:not(.page-index) table.head { height: 96px; min-height: 96px; }
    .theme-baozipt.is-authenticated:not(.page-index) #nav { top: -76px; }
    .theme-baozipt #nav::after { right: -51px; width: 44px; height: 44px; }
    .theme-baozipt table.head td.nowrap > a[href="donate.php"],
    .theme-baozipt table.head td.nowrap > a[href="donate.php"] img { width: 60px; height: 44px; }
    .theme-baozipt #mainmenu { justify-content: flex-start; }
    .theme-baozipt #mainmenu li { flex: 0 0 auto; min-width: 66px; }

    .theme-baozipt .userbar--compact,
    .theme-baozipt .userbar--home { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .theme-baozipt .userbar__identity { grid-column: 1; grid-row: 1; min-height: 82px; }
    .theme-baozipt .userbar__tools { grid-column: 1; grid-row: 2; min-height: 78px; padding: 8px; border-top: 1px solid var(--baozi-line-soft); }
    .theme-baozipt .userbar__stats { grid-column: 1; grid-row: 3; grid-template-columns: repeat(4, 1fr); }

    .home-dashboard,
    .torrent-hall-layout,
    .torrent-detail-shell,
    .upload-layout { grid-template-columns: 1fr; }

    .home-dashboard__side,
    .torrent-hall-side,
    .torrent-detail-side,
    .upload-side { grid-template-columns: 1fr 1fr; }
    .home-dashboard__side {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: max-content;
    }

    .torrent-detail-hero { grid-template-columns: 220px minmax(0, 1fr) 220px; }
    .account-dashboard,
    .usercp-settings-shell { grid-template-columns: 1fr; }
    .account-dashboard__nav { display: grid; grid-template-columns: repeat(4, 1fr); }
    .account-dashboard__nav h1 { grid-column: 1 / -1; }
    .theme-baozipt #footer { padding-inline: 0; }
    .theme-baozipt .footer-stamp { display: none; }
}

@media (max-width: 760px) {
    body.theme-baozipt { font-size: 13px; }
    .theme-baozipt table.head { height: 82px; min-height: 82px; }
    .theme-baozipt table.head td:first-child { width: 168px; }
    .theme-baozipt .site-brand,
    .theme-baozipt .logo_img { width: 162px; height: 65px; }
    .theme-baozipt .logo_img img { width: 158px; }
    .theme-baozipt #nav { top: -66px; right: 58px; left: 172px; height: 50px; }
    .theme-baozipt.is-authenticated:not(.page-index) table.head { height: 82px; min-height: 82px; }
    .theme-baozipt.is-authenticated:not(.page-index) #nav { top: -66px; height: 50px; }
    .theme-baozipt #nav::after { display: none; }
    .theme-baozipt table.head td.nowrap > a[href="donate.php"],
    .theme-baozipt table.head td.nowrap > a[href="donate.php"] img { width: 54px; height: 42px; }
    .theme-baozipt #mainmenu { height: 50px; }
    .theme-baozipt #mainmenu li a { min-height: 38px; height: auto; font-size: 12px; }

    .theme-baozipt .userbar__identity { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 11px; }
    .theme-baozipt .userbar__avatar,
    .theme-baozipt .userbar--home .userbar__avatar { width: 48px; height: 48px; }
    .theme-baozipt .userbar__welcome { font-size: 14px; }
    .theme-baozipt .userbar__welcome strong a { font-size: 16px; }
    .theme-baozipt .userbar__shortcuts {
        display: flex;
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        padding-top: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        line-height: 1.6;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .theme-baozipt .userbar__shortcuts a { font-size: 11px; }
    .theme-baozipt .userbar__shortcuts a + a::before { margin: 0 5px; }
    .theme-baozipt .userbar__tools {
        overflow: visible;
        grid-template-columns: repeat(auto-fit, minmax(82px, 112px));
        grid-auto-rows: minmax(62px, auto);
        justify-content: end;
    }
    .theme-baozipt .userbar__stats { display: flex; overflow-x: auto; padding: 9px 11px; }
    .theme-baozipt .userstat { min-width: 180px; }

    .home-news__body { grid-template-columns: 1fr; }
    .home-news__content { height: auto; min-height: 184px; }
    .home-news__poster { height: auto; aspect-ratio: 614 / 390; }
    .theme-baozipt.page-index .home-news__poster-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    .torrent-card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .torrent-card { border: 0; }
    .home-dashboard__side,
    .torrent-hall-side,
    .torrent-detail-side,
    .upload-side { grid-template-columns: 1fr; }

    .torrent-detail-hero { grid-template-columns: 1fr; }
    .torrent-detail-poster { min-height: 340px; }
    .upload-steps { grid-template-columns: 1fr 1fr; }
    .theme-baozipt .upload-form-table tr:has(#torrent) .rowfollow { padding: 54px 12px 12px; }
    .theme-baozipt .upload-form-table tr:has(#torrent) .rowfollow::before { top: 14px; left: 14px; right: 14px; }
    .upload-actions .btn { flex: 1 1 145px; min-width: 0; }
    .account-dashboard__nav { grid-template-columns: 1fr 1fr; }
    .account-dashboard__nav a:not(.is-secondary) + a.is-secondary { margin-top: 0; border-top-style: solid; }
    .account-dashboard__content { grid-template-columns: 1fr; }
    .account-profile-card,
    .account-ratio-card,
    .account-trend-card,
    .account-summary-row { grid-column: 1; grid-row: auto; }
    .account-profile-card { min-height: 176px; }
    .account-summary-row {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(210px, 1fr));
        padding-bottom: 4px;
        overscroll-behavior-inline: contain;
    }
    .account-ratio-card { min-height: 248px; padding: 19px; }
    .account-ratio-card__content { width: min(72%, 430px); }
    .account-ratio-card__value { font-size: clamp(40px, 10vw, 54px); }

    .theme-baozipt #outer td[nowrap],
    .theme-baozipt #outer th[nowrap] { white-space: normal !important; }

    .theme-baozipt.is-guest table.head { height: 100px; min-height: 100px; }
    .theme-baozipt.is-guest .guest-nav { top: -71px; gap: 3px; }
    .theme-baozipt.is-guest .guest-nav__link { min-width: 42px; font-size: 12px; }
    .theme-baozipt.is-guest .guest-nav__link + .guest-nav__link::before { margin-right: 4px; }

    .theme-baozipt .auth-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .theme-baozipt .auth-intro { grid-column: 1; grid-row: 1; min-height: 300px; padding: 27px 19px 18px; border-right: 0; border-bottom: 1px solid var(--baozi-line-soft); }
    .theme-baozipt .auth-intro h1 { font-size: 27px; }
    .theme-baozipt .auth-hero__mascot { top: 95px; width: 210px; height: 170px; }
    .theme-baozipt .auth-values { gap: 7px; }
    .theme-baozipt .auth-value-card b { width: 42px; height: 42px; }
    .theme-baozipt .auth-language { grid-column: 1; grid-row: 2; }
    .theme-baozipt .auth-card { grid-column: 1; grid-row: 3; padding: 0 18px 24px; }
    .theme-baozipt.page-login #footer { margin-top: 12px; }

    .theme-baozipt.is-guest #nav_block,
    .theme-baozipt.is-guest table.mainouter > tbody > tr:last-child > td,
    .theme-baozipt.is-guest td.outer { padding: 12px !important; }

    .theme-baozipt .footer-runtime { padding: 0 10px; }
}

/*
 * The mobile menu is created lazily the first time the viewport reaches the
 * 700px breakpoint.  The plugin keeps that generated body-level tree when the
 * viewport grows again, so keep it out of the desktop document flow.
 */
@media (min-width: 701px) {
    body.theme-baozipt > nav.mobilelevelsmenu {
        display: none !important;
    }
}

/*
 * The menu plugin creates a body-level mobile navigation tree at 700px.
 * Keep that generated tree out of the document flow and present it as a
 * compact, theme-matched drawer instead of the plugin's unstyled list.
 */
@media (max-width: 700px) {
    body.theme-baozipt::after {
        content: "";
        position: fixed;
        z-index: 3700;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        background: rgba(55, 34, 18, .36);
        transition: opacity .2s ease;
    }

    body.theme-baozipt:has(> nav.mobilelevelsmenu.open) {
        overflow: hidden;
    }

    body.theme-baozipt:has(> nav.mobilelevelsmenu.open)::after {
        pointer-events: auto;
        opacity: 1;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle {
        position: fixed;
        z-index: 3900;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        display: flex !important;
        width: 72px;
        height: 42px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0;
        padding: 0 11px;
        color: var(--baozi-orange-dark);
        font: inherit;
        border: 1px solid var(--baozi-line);
        border-radius: 12px;
        outline: 0;
        background: rgba(255, 250, 243, .97);
        box-shadow: 0 7px 20px rgba(94, 53, 18, .16);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle::before,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle::after {
        content: none !important;
        display: none !important;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span {
        position: relative;
        top: auto;
        display: block;
        flex: 0 0 19px;
        width: 19px;
        height: 2px;
        margin: 0;
        border: 0;
        border-radius: 2px;
        background: currentColor !important;
        transform: none;
        transition: background .16s ease, transform .18s ease;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::before,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::after {
        content: "";
        position: absolute;
        left: 0;
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: currentColor !important;
        transform-origin: center;
        transition: top .18s ease, transform .18s ease;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::before { top: -6px; }
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::after { top: 6px; }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > b {
        display: block;
        color: inherit;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .04em;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle.open {
        color: #fff;
        border-color: var(--baozi-orange);
        background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
        box-shadow: 0 8px 22px rgba(213, 75, 14, .25);
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle.open > span {
        background: transparent !important;
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle.open > span::before {
        top: 0;
        transform: rotate(45deg);
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle.open > span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle:focus-visible {
        box-shadow: 0 0 0 3px rgba(255, 116, 30, .24), 0 7px 20px rgba(94, 53, 18, .16);
    }

    body.theme-baozipt > nav.mobilelevelsmenu {
        position: fixed;
        z-index: 3800;
        top: 0;
        right: 0;
        left: auto;
        display: block;
        width: min(86vw, 338px);
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        color: var(--baozi-ink);
        font-family: inherit;
        border: 0;
        border-left: 1px solid var(--baozi-line-soft);
        border-radius: 18px 0 0 18px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(255, 250, 243, .985);
        box-shadow: -18px 0 44px rgba(70, 40, 16, .2);
        transform: translateX(104%);
        transition: transform .24s ease, opacity .18s ease, visibility .18s ease;
        isolation: isolate;
    }

    body.theme-baozipt > nav.mobilelevelsmenu.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    body.theme-baozipt > nav.mobilelevelsmenu::before {
        content: var(--baozi-copy-site-navigation, "");
        position: absolute;
        z-index: 30;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        height: calc(64px + env(safe-area-inset-top, 0px));
        align-items: flex-end;
        padding: 0 92px 15px 18px;
        color: var(--baozi-orange-dark);
        font-size: 17px;
        font-weight: 800;
        border-bottom: 1px solid var(--baozi-line-soft);
        background: linear-gradient(180deg, #fffdf8, #fff4e2);
    }

    body.theme-baozipt > nav.mobilelevelsmenu > ul,
    body.theme-baozipt > nav.mobilelevelsmenu > ul.menu,
    body.theme-baozipt > nav.mobilelevelsmenu > #mainmenu {
        position: absolute;
        top: calc(64px + env(safe-area-inset-top, 0px));
        bottom: 0;
        left: 0;
        display: block !important;
        width: 100%;
        height: auto !important;
        margin: 0;
        padding: 10px 12px calc(18px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
        overflow-y: auto;
        list-style: none;
        background: rgba(255, 250, 243, .995);
        box-shadow: none;
        scrollbar-width: thin;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transition: left .24s ease;
    }

    body.theme-baozipt > nav.mobilelevelsmenu > ul.submenu {
        left: 100%;
    }

    body.theme-baozipt > nav.mobilelevelsmenu > ul.notransition {
        transition: none !important;
    }

    body.theme-baozipt > nav.mobilelevelsmenu li,
    body.theme-baozipt > nav.mobilelevelsmenu #mainmenu li {
        position: relative;
        display: block;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0 0 5px;
        padding: 0;
        white-space: normal;
    }

    body.theme-baozipt > nav.mobilelevelsmenu li > a,
    body.theme-baozipt > nav.mobilelevelsmenu #mainmenu li > a {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 40px 10px 14px;
        color: var(--baozi-ink);
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        text-align: left;
        text-decoration: none !important;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: color .15s ease, border-color .15s ease, background .15s ease;
    }

    body.theme-baozipt > nav.mobilelevelsmenu li > a:hover,
    body.theme-baozipt > nav.mobilelevelsmenu li > a:focus-visible {
        color: var(--baozi-orange-dark);
        border-color: var(--baozi-line-soft);
        outline: 0;
        background: var(--baozi-cream);
    }

    body.theme-baozipt > nav.mobilelevelsmenu #mainmenu li.selected > a,
    body.theme-baozipt > nav.mobilelevelsmenu #mainmenu li > a.selected {
        color: #fff;
        border-color: var(--baozi-orange);
        background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    body.theme-baozipt > nav.mobilelevelsmenu li.breadcrumb {
        display: flex;
        min-height: 46px;
        align-items: center;
        gap: 9px;
        margin-bottom: 8px;
        padding: 9px 13px;
        color: var(--baozi-orange-dark);
        font-size: 14px;
        font-weight: 800;
        border: 1px solid var(--baozi-line-soft);
        border-radius: 10px;
        background: var(--baozi-cream);
        cursor: pointer;
    }

    body.theme-baozipt > nav.mobilelevelsmenu .rightarrowpointer {
        position: absolute;
        top: 50%;
        right: 14px;
        left: auto !important;
        display: block;
        width: 10px !important;
        height: 10px !important;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: .62;
        background: transparent !important;
        transform: translateY(-50%);
    }

    body.theme-baozipt > nav.mobilelevelsmenu .backarrowpointer {
        display: block;
        flex: 0 0 auto;
        width: 11px !important;
        height: 11px !important;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: .72;
        background: transparent !important;
    }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
    body.theme-baozipt::after,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::before,
    body.theme-baozipt #nav-mobiletoggle.baozi-mobile-nav-toggle > span::after,
    body.theme-baozipt > nav.mobilelevelsmenu,
    body.theme-baozipt > nav.mobilelevelsmenu > ul {
        transition: none !important;
    }
}

/*
 * User control panel settings divider.
 *
 * Tracker, forum and security settings use grid rows on BaoziPT.  A native
 * table-cell border is not painted consistently once those rows become grid
 * containers, so draw the label/content separator independently.  Keep the
 * mobile layout border-free because the two cells are stacked there.
 */
@media (min-width: 761px) {
    body.theme-baozipt.page-usercp
        .usercp-settings-content--tracker
        .usercp-form--tracker > table > tbody > tr > td.rowhead,
    body.theme-baozipt.page-usercp
        .usercp-settings-content--forum
        .usercp-form--forum > table > tbody > tr > td.rowhead,
    body.theme-baozipt.page-usercp
        .usercp-settings-content--security
        .usercp-form--security > table > tbody > tr > td.rowhead {
        position: relative;
        border-right: 0 !important;
    }

    body.theme-baozipt.page-usercp
        .usercp-settings-content--tracker
        .usercp-form--tracker > table > tbody > tr > td.rowhead::after,
    body.theme-baozipt.page-usercp
        .usercp-settings-content--forum
        .usercp-form--forum > table > tbody > tr > td.rowhead::after,
    body.theme-baozipt.page-usercp
        .usercp-settings-content--security
        .usercp-form--security > table > tbody > tr > td.rowhead::after {
        content: "";
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        bottom: -1px;
        width: 1px;
        background: #dfbd8b;
        box-shadow: 1px 0 0 rgba(255, 255, 255, 0.48);
        pointer-events: none;
    }
}

/* Offers and subtitles: one visible surface per section.  These pages used to
   put a bordered legacy frame around another bordered table, which produced
   the doubled rounded outline visible in the old layout. */
.theme-baozipt .baozi-utility-page,
.theme-baozipt .subtitles-browser {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt .baozi-utility-hero {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 15px;
    margin: 0 0 16px;
    padding: 13px 18px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .baozi-utility-hero__mark {
    display: inline-flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    font-weight: 800;
    border: 1px solid #df8d37;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9b30, #f65d16);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.32);
}

.theme-baozipt .baozi-utility-hero__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.theme-baozipt .baozi-utility-hero__copy small {
    color: #987357;
    font-size: 11px;
    font-weight: 700;
}

.theme-baozipt .baozi-utility-hero__copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.25;
}

.theme-baozipt .baozi-utility-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt .baozi-utility-card__title {
    margin: 0 !important;
    padding: 14px 18px !important;
    color: #623b1e !important;
    font-family: inherit;
    font-size: 19px !important;
    font-weight: 800;
    line-height: 1.4;
    text-align: left !important;
    border: 0;
    border-bottom: 1px solid #ecd7b9;
    background: linear-gradient(90deg, #ffedd4, #fff8ed) !important;
}

.theme-baozipt .baozi-utility-filter {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.theme-baozipt .baozi-utility-filter label {
    color: #62452f;
    font-weight: 800;
}

.theme-baozipt .baozi-utility-filter input[type="text"],
.theme-baozipt .baozi-utility-filter select {
    min-height: 40px;
    margin: 0 !important;
}

.theme-baozipt .baozi-utility-link-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    color: #fff !important;
    border: 1px solid #e7550f;
    border-radius: 9px;
    background: linear-gradient(180deg, #ff7124, #f55a14);
    box-shadow: 0 5px 12px rgba(214, 83, 19, .14);
}

.theme-baozipt .baozi-utility-link-button:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.theme-baozipt .baozi-utility-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 12px;
    overflow-x: auto;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt .baozi-utility-table-scroll > table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt .baozi-utility-table-scroll > table > tbody > tr:first-child > td:first-child {
    border-top-left-radius: 11px;
}

.theme-baozipt .baozi-utility-table-scroll > table > tbody > tr:first-child > td:last-child {
    border-top-right-radius: 11px;
}

.theme-baozipt .offers-rules-card__content {
    padding: 16px 22px 7px;
    color: #4b3a2d;
    line-height: 1.75;
    text-align: left;
}

.theme-baozipt .offers-rules-card__content ul {
    margin: 0;
    padding-left: 24px;
}

.theme-baozipt .offers-rules-card__content li + li {
    margin-top: 7px;
}

.theme-baozipt .offers-rules-card__add {
    padding: 5px 18px 12px;
    text-align: center;
}

.theme-baozipt .offers-rules-card__filter {
    padding: 14px 18px 17px;
    border-top: 1px solid #efd9ba;
    background: #fff7ea;
}

.theme-baozipt .offers-rules-card__filter input[type="text"] {
    width: min(360px, 100%);
}

.theme-baozipt .offers-list-table {
    width: 100% !important;
    min-width: 1120px;
    table-layout: auto !important;
}

.theme-baozipt .offers-list-table td.colhead,
.theme-baozipt .offers-list-table td.rowfollow {
    border-color: #ecd7b9 !important;
}

.theme-baozipt.page-offers .offers-list-table > tbody > tr > td {
    padding: 10px 8px !important;
    vertical-align: middle;
    line-height: 1.45;
}

.theme-baozipt.page-offers .offers-list-table td.colhead {
    height: 46px;
    color: #654226;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffe8c4, #fff2de) !important;
}

.theme-baozipt.page-offers .offers-list-table__category {
    width: 72px;
    min-width: 72px;
    padding: 6px !important;
    text-align: center;
}

.theme-baozipt.page-offers .offers-list-table__category img {
    display: block;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 48px 48px !important;
    image-rendering: auto;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(112, 67, 44, 0.12);
}

.theme-baozipt.page-offers .offers-list-table__category img.c_movies {
    background-image: url("../../pic/baozi/category-icons/movies.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_doc {
    background-image: url("../../pic/baozi/category-icons/documentaries.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_anime {
    background-image: url("../../pic/baozi/category-icons/anime.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_tvseries {
    background-image: url("../../pic/baozi/category-icons/tv-series.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_tvshows {
    background-image: url("../../pic/baozi/category-icons/tv-shows.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_mv {
    background-image: url("../../pic/baozi/category-icons/music-videos.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_sports {
    background-image: url("../../pic/baozi/category-icons/sports.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_hqaudio {
    background-image: url("../../pic/baozi/category-icons/hq-audio.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_misc {
    background-image: url("../../pic/baozi/category-icons/misc.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__category img.c_shortdrama,
.theme-baozipt.page-offers .offers-list-table__category img[title="短剧"][alt="短剧"] {
    background-image: url("../../pic/baozi/category-icons/short-drama.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table__title {
    min-width: 440px;
    padding-inline: 14px !important;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-offers .offers-list-table__title.colhead {
    text-align: center !important;
}

.theme-baozipt.page-offers .offers-list-table__vote-summary {
    width: 150px;
    min-width: 150px;
}

.theme-baozipt.page-offers .offers-list-table__vote-result {
    width: 62px;
    min-width: 62px;
}

.theme-baozipt.page-offers .offers-list-table__vote-choice {
    width: 44px;
    min-width: 44px;
}

.theme-baozipt.page-offers .offers-list-table__comments {
    width: 76px;
    min-width: 76px;
    text-align: center;
}

.theme-baozipt.page-offers .offers-list-table__added {
    width: 92px;
    min-width: 92px;
    text-align: center;
}

.theme-baozipt.page-offers .offers-list-table__expires {
    width: 92px;
    min-width: 92px;
    text-align: center;
}

.theme-baozipt.page-offers .offers-list-table__user {
    width: 116px;
    min-width: 116px;
    text-align: center;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-offers .offers-list-table__actions {
    width: 78px;
    min-width: 78px;
    text-align: center;
}

.theme-baozipt.page-offers .offers-list-table__icon-label,
.theme-baozipt.page-offers .offers-list-table__action,
.theme-baozipt.page-offers .offers-list-table__action-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-baozipt.page-offers .offers-list-table__icon-label { gap: 4px; }
.theme-baozipt.page-offers .offers-list-table__action-stack { flex-direction: column; gap: 5px; }

.theme-baozipt.page-offers .offers-list-table__action {
    width: 30px;
    height: 30px;
    line-height: 0;
    border: 1px solid #efc991;
    border-radius: 8px;
    background: #fffaf2;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.theme-baozipt.page-offers .offers-list-table__action:hover {
    border-color: #e77f3a;
    background: #fff1dc;
    transform: translateY(-1px);
}

.theme-baozipt.page-offers .offers-list-table img.comments,
.theme-baozipt.page-offers .offers-list-table img.time {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px !important;
}

.theme-baozipt.page-offers .offers-list-table img.comments {
    background-image: url("../../pic/baozi/torrent-icons/comments.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table img.time {
    background-image: url("../../pic/baozi/torrent-icons/time.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table img.staff_edit,
.theme-baozipt.page-offers .offers-list-table img.staff_delete {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
}

.theme-baozipt.page-offers .offers-list-table img.staff_edit {
    background-image: url("../../pic/baozi/torrent-icons/edit.svg") !important;
}

.theme-baozipt.page-offers .offers-list-table img.staff_delete {
    background-image: url("../../pic/baozi/torrent-icons/delete.svg") !important;
}

.theme-baozipt.page-offers .offers-empty-state {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 16px 0 12px;
    padding: 22px 18px;
    color: #69452b;
    border: 1px dashed #dfb77f;
    border-radius: 12px;
    background: linear-gradient(110deg, #fff7e9, #fffaf3);
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt.page-offers .offers-empty-state__mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9137, #ef5b14);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .28);
}

.theme-baozipt.page-offers .offers-empty-state__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.theme-baozipt.page-offers .offers-empty-state__copy strong {
    color: #503421;
    font-size: 20px;
    line-height: 1.3;
}

.theme-baozipt.page-offers .offers-empty-state__copy small {
    color: #8a705b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .theme-baozipt.page-offers .offers-page {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .theme-baozipt.page-offers .offers-table-scroll {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        contain: inline-size;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .theme-baozipt.page-offers .offers-table-scroll > .offers-list-table {
        width: 1120px !important;
        min-width: 1120px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    .theme-baozipt.page-offers .offers-empty-state {
        min-height: 84px;
        gap: 10px;
        margin: 12px 0;
        padding: 15px 13px;
    }

    .theme-baozipt.page-offers .offers-empty-state__mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 19px;
    }

    .theme-baozipt.page-offers .offers-empty-state__copy strong { font-size: 18px; }
}

.theme-baozipt .subtitles-upload-card {
    margin-bottom: 18px;
}

.theme-baozipt .subtitles-rules ul {
    margin: 0;
    padding: 16px 24px 10px 43px;
    color: #4b3a2d;
    line-height: 1.75;
    list-style: none;
}

.theme-baozipt .subtitles-rules li + li {
    margin-top: 6px;
}

.theme-baozipt .subtitles-required-note,
.theme-baozipt .subtitles-torrent-note {
    margin: 4px 18px 12px;
    color: #7f5b3f;
    text-align: center;
}

.theme-baozipt .subtitles-upload-form {
    padding-top: 3px;
    border-top: 1px solid #ecd7b9;
}

.theme-baozipt .subtitles-upload-table {
    width: min(100%, 940px) !important;
    margin: 0 auto !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt .subtitles-upload-table td {
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
}

.theme-baozipt .subtitles-upload-table td.rowhead {
    width: 170px;
    padding: 13px 15px !important;
    background: #fff0db !important;
}

.theme-baozipt .subtitles-upload-table td.rowfollow {
    padding: 12px 15px !important;
    background: #fffaf3 !important;
}

.theme-baozipt .subtitles-upload-table input[type="text"],
.theme-baozipt .subtitles-upload-table select {
    width: min(100%, 420px) !important;
    min-height: 40px;
}

.theme-baozipt .subtitles-upload-table input[type="file"] {
    width: min(100%, 560px);
    min-height: 40px;
}

.theme-baozipt .subtitles-upload-table td.toolbox {
    padding: 14px !important;
    border-bottom: 0 !important;
    background: #fff6e8 !important;
}

.theme-baozipt .subtitles-browser {
    padding: 14px 16px 16px;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt .subtitles-search-form {
    padding: 3px 0 13px;
}

.theme-baozipt .subtitles-search-form input[type="text"] {
    width: min(360px, 100%);
}

.theme-baozipt .subtitles-alphabet {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 10px;
    border-top: 1px solid #efd9ba;
    border-bottom: 1px solid #efd9ba;
    background: #fff7ea;
}

.theme-baozipt .subtitles-alphabet a,
.theme-baozipt .subtitles-alphabet span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #b23d13;
    font-weight: 800;
    border: 1px solid #edc894;
    border-radius: 8px;
    background: #fffaf3;
}

.theme-baozipt .subtitles-alphabet .is-current {
    color: #fff;
    border-color: #e7550f;
    background: #f76019;
}

.theme-baozipt .subtitles-table-scroll {
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: visible;
}

.theme-baozipt .subtitles-list-table {
    width: 100% !important;
    min-width: 980px;
    table-layout: fixed;
}

.theme-baozipt .subtitles-list-table__language {
    width: 64px;
}

.theme-baozipt .subtitles-list-table__added {
    width: 116px;
}

.theme-baozipt .subtitles-list-table__size {
    width: 94px;
}

.theme-baozipt .subtitles-list-table__hits {
    width: 76px;
}

.theme-baozipt .subtitles-list-table__uploader {
    width: 112px;
}

.theme-baozipt .subtitles-list-table__report {
    width: 92px;
}

.theme-baozipt .subtitles-list-table > tbody > tr > td {
    box-sizing: border-box;
    height: auto !important;
    padding: 11px 10px !important;
    line-height: 1.45;
    vertical-align: middle !important;
}

.theme-baozipt .subtitles-list-table > tbody > tr:first-child > td {
    height: 46px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.25;
}

.theme-baozipt .subtitles-list-table > tbody > tr > td:nth-child(n + 3) {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap;
}

.theme-baozipt .subtitles-list-table > tbody > tr > td:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.theme-baozipt .subtitles-list-table > tbody > tr:first-child > td img.time,
.theme-baozipt .subtitles-list-table > tbody > tr:first-child > td img.size,
.theme-baozipt .subtitles-list-table > tbody > tr > td:last-child img.f_report {
    display: inline-block;
    max-width: none;
    vertical-align: middle;
}

.theme-baozipt .subtitles-pager,
.theme-baozipt .baozi-list-pager {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

.theme-baozipt .subtitles-pager--bottom:empty,
.theme-baozipt .baozi-list-pager--top:empty,
.theme-baozipt .baozi-list-pager--bottom:empty {
    display: none;
}

.theme-baozipt .subtitles-pager--bottom,
.theme-baozipt .baozi-list-pager--top,
.theme-baozipt .baozi-list-pager--bottom {
    max-width: 100%;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.theme-baozipt .subtitles-pager--bottom p.nexus-pagination,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination {
    display: flex;
    width: max-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 auto;
    padding: 7px 10px;
    color: #8a684b;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid #edc895;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
    box-shadow: 0 5px 14px rgba(126, 76, 29, .06);
}

.theme-baozipt .subtitles-pager--bottom p.nexus-pagination > font,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination > font,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination > font {
    display: contents;
}

.theme-baozipt .subtitles-pager--bottom p.nexus-pagination a,
.theme-baozipt .subtitles-pager--bottom p.nexus-pagination > b,
.theme-baozipt .subtitles-pager--bottom p.nexus-pagination font.gray > b,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination a,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination > b,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination font.gray > b,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination a,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination > b,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination font.gray > b {
    min-width: 36px;
    min-height: 34px;
    margin: 0;
    border-color: #ebc18b;
    border-radius: 8px;
    background: #fffaf2;
}

.theme-baozipt .subtitles-pager--bottom p.nexus-pagination a:hover,
.theme-baozipt .baozi-list-pager--top p.nexus-pagination a:hover,
.theme-baozipt .baozi-list-pager--bottom p.nexus-pagination a:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
    box-shadow: 0 4px 10px rgba(246, 94, 20, .18);
}

.theme-baozipt .subtitles-pager__divider {
    width: 1px;
    height: 24px;
    margin: 0 3px;
    flex: 0 0 auto;
    background: #e6c9a3;
}

.theme-baozipt .baozi-list-pager__divider {
    width: 1px;
    height: 24px;
    margin: 0 3px;
    flex: 0 0 auto;
    background: #e6c9a3;
}

.theme-baozipt .subtitles-pager__nav-gap {
    width: 2px;
    flex: 0 0 auto;
}

.theme-baozipt .baozi-list-pager__nav-gap {
    width: 2px;
    flex: 0 0 auto;
}

.theme-baozipt .baozi-utility-empty {
    display: flex;
    min-height: 130px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
    color: #8b6b52;
    border: 1px dashed #e7bd86;
    border-radius: 11px;
    background: #fffaf3;
}

.theme-baozipt .baozi-utility-empty strong {
    color: #623b1e;
    font-size: 20px;
}

/* Site news uses the same compact compose card as contactstaff.php. */
.theme-baozipt .news-compose .news-compose__options > td.toolbox {
    padding: 12px 14px !important;
    text-align: left;
    border-top: 1px solid #efd9ba !important;
    background: #fff8ec !important;
}

.theme-baozipt .news-compose__notify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #654a36;
    font-weight: 700;
    cursor: pointer;
}

.theme-baozipt .news-compose__notify input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--baozi-primary);
}

@media (max-width: 760px) {
    .theme-baozipt .baozi-utility-hero {
        min-height: 72px;
        gap: 11px;
        padding: 10px 12px;
    }
    .theme-baozipt .baozi-utility-hero__mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 23px;
    }
    .theme-baozipt .baozi-utility-hero__copy strong {
        font-size: 22px;
    }
    .theme-baozipt .subtitles-upload-table td.rowhead {
        width: 105px;
        padding: 11px 8px !important;
    }
    .theme-baozipt .subtitles-upload-table td.rowfollow {
        padding: 10px !important;
    }
    .theme-baozipt .subtitles-browser {
        padding: 11px;
    }
}

/* Reports management */
.theme-baozipt.page-reports #outer {
    padding-top: 18px !important;
}

.theme-baozipt.page-reports .reports-hero,
.theme-baozipt.page-reports .reports-panel {
    width: min(calc(100% - 24px), 1180px);
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
}

.theme-baozipt.page-reports .reports-hero {
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 24px;
    text-align: left;
    border: 1px solid #eea257;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff0d6, #fffaf2 72%);
    box-shadow: 0 10px 26px rgba(128, 69, 20, .08);
}

.theme-baozipt.page-reports .reports-hero__icon {
    display: flex;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    align-items: center;
    justify-content: center;
    border: 1px solid #edbd82;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
}

.theme-baozipt.page-reports .reports-hero__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.theme-baozipt.page-reports .reports-hero__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.theme-baozipt.page-reports .reports-hero__copy small {
    color: #9c7150;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.theme-baozipt.page-reports .reports-hero__copy strong {
    color: #432e20;
    font-family: STKaiti, KaiTi, serif;
    font-size: 30px;
    line-height: 1.25;
}

.theme-baozipt.page-reports .reports-hero__copy em {
    color: #806a57;
    font-size: 13px;
    font-style: normal;
}

.theme-baozipt.page-reports .reports-hero__summary {
    margin-left: auto;
    padding: 10px 15px;
    color: #70543e;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid #efc48e;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}

.theme-baozipt.page-reports .reports-hero__summary b {
    color: #d6470c;
    font-size: 20px;
}

.theme-baozipt.page-reports .reports-hero__summary i {
    margin: 0 6px;
    color: #c9aa89;
    font-style: normal;
}

.theme-baozipt.page-reports .reports-panel {
    padding: 18px;
    overflow: hidden;
    text-align: left;
    border: 1px solid #efbd83;
    border-radius: 16px;
    background: rgba(255, 252, 247, .94);
    box-shadow: 0 12px 34px rgba(112, 69, 28, .08);
}

.theme-baozipt.page-reports .reports-form { margin: 0; }

.theme-baozipt.page-reports .reports-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8c99f;
    border-radius: 13px;
    background: #fffdf9;
}

.theme-baozipt.page-reports .reports-table {
    width: 100% !important;
    min-width: 1050px;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-reports .reports-col--time { width: 108px; }
.theme-baozipt.page-reports .reports-col--reporter { width: 104px; }
.theme-baozipt.page-reports .reports-col--type { width: 102px; }
.theme-baozipt.page-reports .reports-col--reason { width: 152px; }
.theme-baozipt.page-reports .reports-col--status { width: 130px; }
.theme-baozipt.page-reports .reports-col--action { width: 70px; }

.theme-baozipt.page-reports .reports-table th,
.theme-baozipt.page-reports .reports-table td {
    box-sizing: border-box;
    height: auto;
    padding: 14px 12px !important;
    overflow-wrap: anywhere;
    vertical-align: middle;
    border: 0 !important;
    border-right: 1px solid #ecd7b7 !important;
    border-bottom: 1px solid #ecd7b7 !important;
    background: transparent !important;
}

.theme-baozipt.page-reports .reports-table th:last-child,
.theme-baozipt.page-reports .reports-table td:last-child { border-right: 0 !important; }
.theme-baozipt.page-reports .reports-table tbody tr:last-child td { border-bottom: 0 !important; }

.theme-baozipt.page-reports .reports-table th {
    color: #684327;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    background: #ffebcb !important;
}

.theme-baozipt.page-reports .reports-table tbody tr {
    transition: background-color .18s ease;
}

.theme-baozipt.page-reports .reports-table tbody tr:hover { background: #fff7e9; }
.theme-baozipt.page-reports .reports-table tbody tr.is-dealt { background: rgba(247, 243, 237, .6); }
.theme-baozipt.page-reports .reports-cell--time,
.theme-baozipt.page-reports .reports-cell--type,
.theme-baozipt.page-reports .reports-cell--status,
.theme-baozipt.page-reports .reports-cell--action { text-align: center; }
.theme-baozipt.page-reports .reports-cell--reporter { font-weight: 700; }
.theme-baozipt.page-reports .reports-cell--content { color: #604a39; line-height: 1.65; }
.theme-baozipt.page-reports .reports-cell--content a { color: #cf430d; font-weight: 700; }
.theme-baozipt.page-reports .reports-target {
    display: grid;
    min-width: 0;
    gap: 6px;
}
.theme-baozipt.page-reports .reports-target__meta {
    display: flex;
    align-items: center;
    gap: 7px;
}
.theme-baozipt.page-reports .reports-target__kind {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    border-radius: 999px;
    background: #e85a17;
}
.theme-baozipt.page-reports .reports-target__meta code {
    color: #95735a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}
.theme-baozipt.page-reports .reports-target__main {
    color: #513c2d;
    font-size: 13px;
    line-height: 1.6;
}
.theme-baozipt.page-reports .reports-target__main > a,
.theme-baozipt.page-reports .reports-target__main b > a {
    text-decoration: underline;
    text-decoration-color: rgba(207, 67, 13, .28);
    text-underline-offset: 3px;
}
.theme-baozipt.page-reports .reports-target__action,
.theme-baozipt.page-reports .reports-target__unavailable {
    width: max-content;
    max-width: 100%;
    color: #c94711;
    font-size: 11px;
    font-weight: 800;
}
.theme-baozipt.page-reports .reports-target__action {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px;
    text-decoration: none !important;
    border: 1px solid #edb170;
    border-radius: 999px;
    background: #fff7e9;
}
.theme-baozipt.page-reports .reports-target__action:hover {
    color: #fff;
    border-color: #e85a17;
    background: #e85a17;
}
.theme-baozipt.page-reports .reports-target__unavailable,
.theme-baozipt.page-reports .reports-target__missing {
    color: #9a7760;
}
.theme-baozipt.page-reports .reports-target.is-missing .reports-target__kind {
    background: #9a7a65;
}
.theme-baozipt.page-reports .reports-cell--type span {
    display: inline-flex;
    padding: 5px 9px;
    color: #854816;
    line-height: 1.25;
    border-radius: 999px;
    background: #fff0d7;
}

.theme-baozipt.page-reports .reports-status {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.theme-baozipt.page-reports .reports-status--pending { color: #b92f1d; background: #ffe5df; }
.theme-baozipt.page-reports .reports-status--done { color: #28713f; background: #e4f4e8; }
.theme-baozipt.page-reports .reports-cell--status small { display: block; margin-top: 5px; font-size: 11px; }
.theme-baozipt.page-reports .reports-cell--action input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--baozi-orange); }

.theme-baozipt.page-reports .reports-actions {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 2px 0;
    color: #866c57;
    font-size: 12px;
}

.theme-baozipt.page-reports .reports-actions > div { display: flex; gap: 9px; }
.theme-baozipt.page-reports .reports-actions button {
    min-height: 40px;
    padding: 0 18px;
    color: #fff !important;
    font-weight: 800;
    border: 1px solid #e75514 !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7625, #ef530f) !important;
    box-shadow: 0 6px 13px rgba(224, 78, 12, .16);
}

.theme-baozipt.page-reports .reports-actions .reports-button--danger {
    border-color: #bd4a2e !important;
    background: linear-gradient(135deg, #e26744, #bd4028) !important;
}

.theme-baozipt.page-reports .reports-pagination { margin-top: 14px; }
.theme-baozipt.page-reports .reports-pagination .nexus-pagination {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
}
.theme-baozipt.page-reports .reports-pagination .nexus-pagination > font { display: contents; }
.theme-baozipt.page-reports .reports-pagination .nexus-pagination br { display: none; }

.theme-baozipt.page-reports .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Notification variants share the same fixed bottom-right toast system. */
.theme-baozipt .baozi-pm-toast--report,
.theme-baozipt .baozi-pm-toast--cheater,
.theme-baozipt .baozi-pm-toast--warning,
.theme-baozipt .baozi-pm-toast--complaint { border-color: #df774e; }
.theme-baozipt .baozi-pm-toast--report .baozi-pm-toast__icon,
.theme-baozipt .baozi-pm-toast--cheater .baozi-pm-toast__icon,
.theme-baozipt .baozi-pm-toast--warning .baozi-pm-toast__icon,
.theme-baozipt .baozi-pm-toast--complaint .baozi-pm-toast__icon {
    background: linear-gradient(145deg, #f46a38, #c83b20);
}
.theme-baozipt .baozi-pm-toast--approval .baozi-pm-toast__icon {
    background: linear-gradient(145deg, #59a86e, #2f7446);
}
.theme-baozipt .baozi-pm-toast--news .baozi-pm-toast__icon,
.theme-baozipt .baozi-pm-toast--promotion .baozi-pm-toast__icon {
    background: linear-gradient(145deg, #ffad25, #e56e0b);
}

@media (max-width: 760px) {
    .theme-baozipt.page-reports .reports-hero { min-height: 88px; gap: 12px; padding: 13px 14px; }
    .theme-baozipt.page-reports .reports-hero__icon { width: 56px; height: 56px; flex-basis: 56px; }
    .theme-baozipt.page-reports .reports-hero__icon img { width: 40px; height: 40px; }
    .theme-baozipt.page-reports .reports-hero__copy strong { font-size: 24px; }
    .theme-baozipt.page-reports .reports-hero__copy em { display: none; }
    .theme-baozipt.page-reports .reports-hero__summary { padding: 7px 9px; font-size: 11px; }
    .theme-baozipt.page-reports .reports-hero__summary b { font-size: 16px; }
    .theme-baozipt.page-reports .reports-hero__summary i,
    .theme-baozipt.page-reports .reports-hero__summary i ~ * { display: none; }
    .theme-baozipt.page-reports .reports-panel { padding: 10px; }
    .theme-baozipt.page-reports .reports-actions { align-items: flex-start; flex-direction: column; }
    .theme-baozipt.page-reports .reports-actions > div { width: 100%; }
    .theme-baozipt.page-reports .reports-actions button { flex: 1; }
}

/* Report confirmation, BBCode guide and smilies catalog. */
.theme-baozipt.page-report #outer,
.theme-baozipt.page-tags #outer,
.theme-baozipt.page-smilies #outer {
    min-width: 0;
    overflow-x: visible;
}

.theme-baozipt.page-report table.nexus-message {
    width: min(100%, 760px) !important;
    margin: 26px auto 42px !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-radius: 15px !important;
    background: #fffaf3 !important;
    box-shadow: 0 12px 30px rgba(112, 65, 24, .09) !important;
}

.theme-baozipt.page-report .nexus-message > tbody > tr > td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-report .nexus-message h2 {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    margin: 0;
    padding: 18px 24px;
    color: #5b351c;
    font-family: "STKaiti", "KaiTi", inherit;
    font-size: 28px;
    line-height: 1.2;
    background: linear-gradient(105deg, #ffe6bf, #fff8eb 72%);
    border-bottom: 1px solid var(--baozi-line-soft);
}

.theme-baozipt.page-report .nexus-message h2::before {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: inherit;
    font-size: 25px;
    font-weight: 900;
    content: "!";
    border-radius: 50%;
    background: linear-gradient(145deg, var(--baozi-orange-bright), var(--baozi-orange));
    box-shadow: 0 5px 13px rgba(201, 68, 18, .2);
}

.theme-baozipt.page-report .nexus-message__body {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-report .nexus-message__body td.text {
    padding: 22px 24px 25px !important;
    border: 0 !important;
    color: #3f3025;
    font-size: 15px;
    line-height: 1.85;
    background: #fffaf3 !important;
}

.theme-baozipt.page-report .nexus-message__body form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 0;
    padding: 15px;
    border: 1px solid #efd6b2;
    border-radius: 11px;
    background: #fff4e3;
}

.theme-baozipt.page-report .nexus-message__body form input[type="text"] {
    width: auto !important;
    min-width: 220px;
    min-height: 42px;
    flex: 1 1 340px;
    margin: 0 !important;
}

.theme-baozipt.page-report .nexus-message__body form input[type="submit"] {
    min-height: 42px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 22px;
}

.theme-baozipt .tags-guide,
.theme-baozipt .smilies-catalog {
    width: min(100%, 1180px);
    margin: 0 auto 42px;
}

.theme-baozipt .tags-guide__hero,
.theme-baozipt .smilies-catalog__hero {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 17px;
    margin-bottom: 16px;
    padding: 18px 22px;
    border: 1px solid var(--baozi-line);
    border-radius: 15px;
    background: linear-gradient(104deg, #ffe7c2, #fffaf1 70%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .tags-guide__hero-icon,
.theme-baozipt .smilies-catalog__hero-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 900;
    border: 2px solid #fff6e8;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8a2a, var(--baozi-orange));
    box-shadow: 0 5px 15px rgba(201, 68, 18, .17);
}

.theme-baozipt .smilies-catalog__hero-icon { background: #fff4df; }
.theme-baozipt .smilies-catalog__hero-icon img { width: 38px; height: 38px; background: transparent; }

.theme-baozipt .tags-guide__hero small,
.theme-baozipt .smilies-catalog__hero small {
    display: block;
    margin-bottom: 3px;
    color: #a36b3e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-baozipt .tags-guide__hero strong,
.theme-baozipt .smilies-catalog__hero strong {
    display: block;
    color: #4a3020;
    font-family: "STKaiti", "KaiTi", inherit;
    font-size: 30px;
    line-height: 1.2;
}

.theme-baozipt .tags-guide__tester {
    margin-bottom: 16px;
    padding: 19px 21px 21px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 13px;
    background: rgba(255, 250, 243, .92);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .tags-guide__tester h2 {
    margin: 0 0 6px;
    color: #5e381c;
    font-size: 18px;
}

.theme-baozipt .tags-guide__tester p { margin: 0 0 13px; color: var(--baozi-muted); line-height: 1.7; }

.theme-baozipt .tags-guide__test-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.theme-baozipt .tags-guide__test-form textarea {
    width: 100%;
    min-height: 104px;
    margin: 0;
    resize: vertical;
}

.theme-baozipt .tags-guide__test-form input[type="submit"] {
    min-width: 128px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 19px;
}

.theme-baozipt .tags-guide__preview {
    margin-top: 12px;
    padding: 13px 15px;
    overflow-wrap: anywhere;
    border: 1px dashed #e4ad6d;
    border-radius: 9px;
    background: #fff8ee;
}

.theme-baozipt .tags-guide__preview > strong { display: block; margin-bottom: 7px; color: var(--baozi-orange-dark); }

.theme-baozipt .tags-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.theme-baozipt .tags-guide__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 13px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .tags-guide__item h2 {
    margin: 0;
    padding: 12px 16px;
    color: #623c22;
    font-size: 17px;
    line-height: 1.35;
    border-bottom: 1px solid #efd9ba;
    background: linear-gradient(100deg, #ffe6bf, #fff4e2);
}

.theme-baozipt .tags-guide__details { margin: 0; }

.theme-baozipt .tags-guide__details > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
    border-top: 1px solid #f0dfc7;
}

.theme-baozipt .tags-guide__details > div:first-child { border-top: 0; }

.theme-baozipt .tags-guide__details dt,
.theme-baozipt .tags-guide__details dd {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.theme-baozipt .tags-guide__details dt {
    color: #755035;
    font-weight: 800;
    background: #fff1dc;
}

.theme-baozipt .tags-guide__details dd { border-left: 1px solid #f0dfc7; }

.theme-baozipt .tags-guide__details code {
    display: inline-block;
    max-width: 100%;
    padding: 3px 7px;
    color: #a43d13;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    border-radius: 5px;
    background: #fff0dc;
}

.theme-baozipt .tags-guide__result img,
.theme-baozipt .tags-guide__result video,
.theme-baozipt .tags-guide__result iframe { max-width: 100%; }

.theme-baozipt .smilies-catalog__intro {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 13px 16px;
    color: var(--baozi-muted);
    line-height: 1.65;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 11px;
    background: #fff8ed;
}

.theme-baozipt .smilies-catalog__intro strong { flex: 0 0 auto; color: #613d23; }

.theme-baozipt .smilies-catalog__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(88px, 1fr));
    gap: 10px;
}

.theme-baozipt .smilies-catalog__item {
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 11px;
    overflow: hidden;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 10px;
    background: #fffaf3;
    box-shadow: 0 4px 12px rgba(121, 76, 28, .045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.theme-baozipt .smilies-catalog__item:hover {
    transform: translateY(-2px);
    border-color: var(--baozi-line);
    box-shadow: 0 8px 17px rgba(121, 76, 28, .09);
}

.theme-baozipt .smilies-catalog__item code {
    min-width: 0;
    color: #a24218;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

.theme-baozipt .smilies-catalog__item img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 1040px) {
    .theme-baozipt .smilies-catalog__grid { grid-template-columns: repeat(6, minmax(88px, 1fr)); }
}

@media (max-width: 820px) {
    .theme-baozipt .tags-guide__grid { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt .smilies-catalog__grid { grid-template-columns: repeat(4, minmax(84px, 1fr)); }
}

@media (max-width: 600px) {
    .theme-baozipt.page-report .nexus-message h2 { min-height: 66px; padding: 14px 16px; font-size: 23px; }
    .theme-baozipt.page-report .nexus-message h2::before { width: 34px; height: 34px; flex-basis: 34px; font-size: 21px; }
    .theme-baozipt.page-report .nexus-message__body td.text { padding: 17px 15px 19px !important; }
    .theme-baozipt.page-report .nexus-message__body form { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-report .nexus-message__body form input[type="text"],
    .theme-baozipt.page-report .nexus-message__body form input[type="submit"] { width: 100% !important; min-width: 0; flex-basis: auto; }
    .theme-baozipt .tags-guide__hero,
    .theme-baozipt .smilies-catalog__hero { min-height: 84px; gap: 12px; padding: 14px 15px; }
    .theme-baozipt .tags-guide__hero-icon,
    .theme-baozipt .smilies-catalog__hero-icon { width: 54px; height: 54px; flex-basis: 54px; font-size: 31px; }
    .theme-baozipt .tags-guide__hero strong,
    .theme-baozipt .smilies-catalog__hero strong { font-size: 24px; }
    .theme-baozipt .tags-guide__test-form { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt .tags-guide__test-form input[type="submit"] { width: 100%; }
    .theme-baozipt .tags-guide__details > div { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt .tags-guide__details dd { border-top: 1px solid #f0dfc7; border-left: 0; }
    .theme-baozipt .smilies-catalog__intro { align-items: flex-start; flex-direction: column; }
    .theme-baozipt .smilies-catalog__grid { grid-template-columns: repeat(3, minmax(80px, 1fr)); }
}

@media (max-width: 420px) {
    .theme-baozipt .smilies-catalog__grid { grid-template-columns: repeat(2, minmax(80px, 1fr)); }
}

/* Login page — calibrated to the supplied 2170 × 1180 BaoziPT artwork. */
.theme-baozipt .auth-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.theme-baozipt.page-login .auth-layout--login {
    grid-template-columns: 50.4% 49.6%;
    grid-template-rows: 52px minmax(0, 1fr);
    width: min(1132px, calc(100vw - 48px));
    min-height: 615px;
    border-color: #d9b47d;
    border-radius: 24px;
    background-color: #fff9ef;
    background-image: url("../../pic/baozi-login-paper.png");
    background-repeat: repeat;
    background-position: center;
    background-size: 849px 463px;
    box-shadow: 0 16px 45px rgba(111, 70, 28, .12), inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.theme-baozipt.page-login .auth-layout--login > .auth-intro {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 613px;
    padding: 0;
    border-right: 1px solid #e6cba2;
    background-color: #fff1d9 !important;
    background-image: url("../../pic/baozi-login-reference.png") !important;
    background-repeat: no-repeat !important;
    background-position: 6.5% 58.1% !important;
    background-size: 210.27% 105.36% !important;
}

.theme-baozipt.page-login .auth-layout--login > .auth-language {
    z-index: 4;
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 20px 0;
}

.theme-baozipt.page-login .auth-language-switcher__label {
    display: inline-flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    color: #76624d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.theme-baozipt.page-login .auth-language select {
    width: 122px;
    min-width: 122px;
    max-width: 100%;
    height: auto;
    min-height: 32px;
    padding: 5px 28px 5px 10px;
    color: #554334;
    font-size: 11px;
    line-height: 1.35;
    border: 1px solid #d9b47d !important;
    border-radius: 7px;
    background-color: rgba(255, 253, 248, .86) !important;
    box-shadow: 0 2px 8px rgba(111, 70, 28, .05);
}

.theme-baozipt.page-login .auth-layout--login > .auth-card {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    min-width: 0;
    align-self: start;
    padding: 0 59px 22px 49px;
    max-height: 563px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: #ddb980 transparent;
    background: transparent;
}

.theme-baozipt.page-login .auth-login-panel__header { text-align: center; }

.theme-baozipt.page-login .auth-login-panel__header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 15px;
    color: #17130f;
    font-family: "STKaiti", "KaiTi", "FZKai-Z03", serif;
    font-size: 37px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 2px;
    transform: none;
}

.theme-baozipt.page-login .auth-login-panel__header h2::before,
.theme-baozipt.page-login .auth-login-panel__header h2::after {
    content: "";
    width: 25px;
    height: 22px;
    margin: 0;
    background:
        linear-gradient(25deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 2px / 11px 6px no-repeat,
        linear-gradient(0deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 9px / 14px 5px no-repeat,
        linear-gradient(-25deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 15px / 11px 6px no-repeat;
    transform: none;
}

.theme-baozipt.page-login .auth-login-panel__header h2::after { transform: scaleX(-1); }
.theme-baozipt.page-login .auth-login-form { width: 100%; }

.theme-baozipt.page-login .auth-login-form__security-note {
    position: absolute !important;
    display: block;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.theme-baozipt.page-login .auth-login-fields {
    display: grid;
    gap: 14px;
}

.theme-baozipt.page-login .auth-field {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
}

.theme-baozipt.page-login .auth-field[hidden],
.theme-baozipt.page-login .auth-passkey-note[hidden] { display: none !important; }

.theme-baozipt.page-login .auth-field > input[type="text"],
.theme-baozipt.page-login .auth-field > input[type="password"] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    min-height: 52px;
    margin: 0;
    padding: 12px 54px 12px 58px;
    color: #40372e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid #d4b17f !important;
    border-radius: 9px;
    outline: 0;
    background: rgba(255, 253, 249, .72) !important;
    box-shadow: inset 0 1px 2px rgba(132, 84, 33, .04), 0 0 0 1px rgba(255, 255, 255, .45);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.theme-baozipt.page-login .auth-field > input::placeholder { color: #8b7b69; opacity: 1; }

.theme-baozipt.page-login .auth-field > input:focus {
    border-color: #ee8c2c !important;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 0 0 3px rgba(239, 104, 23, .12);
}

.theme-baozipt.page-login .auth-field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 19px;
    display: block;
    width: 25px;
    height: 25px;
    color: #8b745b;
    font-size: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.theme-baozipt.page-login .auth-field-icon svg,
.theme-baozipt.page-login .auth-password-toggle svg,
.theme-baozipt.page-login .auth-captcha__refresh svg,
.theme-baozipt.page-login .auth-login-method--passkey svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-baozipt.page-login .auth-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 17px;
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 3px;
    min-height: 0;
    color: #8b745b !important;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%);
    cursor: pointer;
}

.theme-baozipt.page-login .auth-password-toggle:hover,
.theme-baozipt.page-login .auth-password-toggle:focus-visible { color: var(--baozi-orange) !important; border: 0 !important; background: transparent !important; }
.theme-baozipt.page-login .auth-password-toggle[aria-pressed="true"] .auth-password-toggle__slash { display: none; }

.theme-baozipt.page-login .auth-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 38px;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
    align-items: center;
}

.theme-baozipt.page-login .auth-captcha__image {
    position: relative;
    height: 52px;
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid #dda562;
    border-radius: 6px;
    background: #fff0cf;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .58);
}

.theme-baozipt.page-login .auth-captcha__image::before,
.theme-baozipt.page-login .auth-captcha__image::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -3px;
    bottom: -3px;
    width: 7px;
    background: radial-gradient(circle, #fff9ef 2px, transparent 2.5px) center / 7px 9px repeat-y;
    pointer-events: none;
}

.theme-baozipt.page-login .auth-captcha__image::before { left: -4px; }
.theme-baozipt.page-login .auth-captcha__image::after { right: -4px; }

.theme-baozipt.page-login .auth-captcha__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #fff0cf;
}

.theme-baozipt.page-login .auth-field--captcha > input {
    text-transform: uppercase;
    letter-spacing: 3px;
}

.theme-baozipt.page-login .auth-captcha__refresh {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px;
    min-height: 0;
    color: #806f5d !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.theme-baozipt.page-login .auth-captcha__refresh:hover,
.theme-baozipt.page-login .auth-captcha__refresh:focus-visible { color: var(--baozi-orange) !important; border: 0 !important; background: rgba(239, 104, 23, .08) !important; }

.theme-baozipt.page-login .auth-form-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 28px;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
    color: #40372e;
    font-size: 13px;
}

.theme-baozipt.page-login .auth-remember-toggle {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    line-height: 1.35;
    white-space: normal;
    cursor: pointer;
}

.theme-baozipt.page-login .auth-remember-toggle > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.theme-baozipt.page-login .auth-checkbox-mark {
    position: relative;
    display: inline-block;
    width: 19px;
    height: 19px;
    border: 1px solid #d09352;
    border-radius: 4px;
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.theme-baozipt.page-login .auth-remember-toggle > input:checked + .auth-checkbox-mark {
    border-color: #e65c10;
    background: linear-gradient(145deg, #f47d20, #e94f08);
}

.theme-baozipt.page-login .auth-remember-toggle > input:checked + .auth-checkbox-mark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.theme-baozipt.page-login .auth-remember-toggle > input:focus-visible + .auth-checkbox-mark { box-shadow: 0 0 0 3px rgba(239,104,23,.18); }

.theme-baozipt.page-login .auth-two-step-toggle {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-self: end;
    padding: 4px 10px;
    color: #e65010 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
    border: 1px solid #efc08b !important;
    border-radius: 999px;
    background: rgba(255, 239, 216, .78) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.theme-baozipt.page-login .auth-two-step-toggle::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #f06a18;
    box-shadow: 0 0 0 3px rgba(240, 106, 24, .12);
}

.theme-baozipt.page-login .auth-two-step-toggle:hover,
.theme-baozipt.page-login .auth-two-step-toggle[aria-expanded="true"] {
    color: #fff !important;
    border-color: #e9530b !important;
    background: #e9530b !important;
}

.theme-baozipt.page-login .auth-forgot-link { justify-self: end; color: #ed5213; font-size: 13px; }
.theme-baozipt.page-login .auth-forgot-link:hover { color: #be3906; }

.theme-baozipt.page-login .auth-form-actions {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 0 !important;
}

.theme-baozipt.page-login .auth-form-actions__submit {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 52px !important;
    margin: 0;
    padding: 11px 16px;
    color: #fff !important;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 4px;
    white-space: normal;
    border: 1px solid #e9530b !important;
    border-radius: 7px;
    background: linear-gradient(100deg, #f16c09, #ff520b) !important;
    box-shadow: 0 8px 18px rgba(226, 83, 11, .12);
}

.theme-baozipt.page-login .auth-form-actions__submit:hover,
.theme-baozipt.page-login .auth-form-actions__submit:focus-visible { background: linear-gradient(100deg, #e85c00, #ef4100) !important; }

.theme-baozipt.page-login .auth-account-links {
    margin-top: 13px;
    padding: 9px 12px;
    color: #5f4e3d;
    text-align: left;
    border: 1px solid #ead1ad;
    border-radius: 9px;
    background: rgba(255, 249, 239, .66);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}

.theme-baozipt.page-login .auth-account-assistance {
    display: grid;
    gap: 0;
}

.theme-baozipt.page-login .auth-account-assistance p {
    position: relative;
    margin: 0;
    padding: 4px 2px 4px 15px;
    color: #5b4a3a;
    font-size: 11.5px;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-login .auth-account-assistance p + p { border-top: 1px dashed rgba(222, 184, 132, .58); }

.theme-baozipt.page-login .auth-account-assistance p::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 2px;
    width: 5px;
    height: 5px;
    border: 1px solid #ef8c36;
    transform: rotate(45deg);
}

.theme-baozipt.page-login .auth-account-assistance a,
.theme-baozipt.page-login .auth-account-assistance b {
    color: #e9530b;
    font-weight: 800;
}

.theme-baozipt.page-login .auth-account-assistance a {
    padding-bottom: 1px;
    border-bottom: 1px dashed rgba(233, 83, 11, .48);
}

.theme-baozipt.page-login .auth-account-assistance a:hover { color: #bd3904; border-bottom-style: solid; }
.theme-baozipt.page-login .auth-complain-link { white-space: normal; }
.theme-baozipt.page-login .auth-complain-link::before { content: "["; }
.theme-baozipt.page-login .auth-complain-link::after { content: "]"; }

.theme-baozipt.page-login .auth-login-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin: 7px 0 0;
    padding-top: 7px;
    border-top: 1px dashed rgba(222, 184, 132, .58);
}

.theme-baozipt.page-login .auth-login-methods .auth-login-method { min-height: 26px; padding: 3px 10px; font-size: 10px; }
.theme-baozipt.page-login .auth-login-notice { position: absolute; z-index: 5; right: 22px; left: calc(50.4% + 22px); top: 8px; margin: 0; }

@media (max-width: 1120px) {
    .theme-baozipt.page-login .auth-layout--login {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        width: min(580px, calc(100vw - 24px));
        min-height: 0;
        overflow: hidden;
        border-radius: 18px;
    }

    .theme-baozipt.page-login .auth-layout--login > .auth-intro {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1041 / 1130;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid #e6cba2;
    }

    .theme-baozipt.page-login .auth-layout--login > .auth-card {
        grid-column: 1;
        grid-row: 3;
        max-height: none;
        padding: 24px 28px 28px;
        overflow: visible;
        scrollbar-width: auto;
        background: url("../../pic/baozi-login-paper.png") center / 849px 463px repeat;
    }

    .theme-baozipt.page-login .auth-layout--login > .auth-language {
        grid-column: 1;
        grid-row: 2;
        padding: 12px 28px 0;
        background: url("../../pic/baozi-login-paper.png") center / 849px 463px repeat;
    }

    .theme-baozipt.page-login .auth-login-panel__header h2 { font-size: 34px; }
    .theme-baozipt.page-login .auth-login-notice {
        position: static;
        margin: 0 0 12px;
    }
    .theme-baozipt.page-login .auth-captcha { grid-template-columns: minmax(0, 1fr) 115px 34px; gap: 8px; }
    .theme-baozipt.page-login .auth-captcha__refresh { width: 34px; height: 34px; padding: 6px; }
    .theme-baozipt.page-login .auth-form-options { gap: 7px; }
    .theme-baozipt.page-login .auth-two-step-toggle { font-size: 10px; }
}

@media (max-width: 440px) {
    .theme-baozipt.page-login .auth-layout--login > .auth-card { padding: 28px 18px 24px; }
    .theme-baozipt.page-login .auth-layout--login > .auth-language { padding: 10px 18px 0; }
    .theme-baozipt.page-login .auth-captcha { grid-template-columns: minmax(0, 1fr) 105px 30px; gap: 6px; }
    .theme-baozipt.page-login .auth-captcha__refresh { width: 30px; height: 30px; padding: 5px; }
    .theme-baozipt.page-login .auth-form-options { grid-template-columns: auto 1fr; }
    .theme-baozipt.page-login .auth-forgot-link { grid-column: 2; grid-row: 1; }
    .theme-baozipt.page-login .auth-two-step-toggle { grid-column: auto; grid-row: auto; justify-self: end; }
    .theme-baozipt.page-login .auth-account-links { padding: 8px 10px; }
    .theme-baozipt.page-login .auth-account-assistance p { font-size: 11px; }
}

/* Shared pre-login portal — same artwork and proportions as the approved login page. */
.theme-baozipt .auth-layout--portal {
    display: grid;
    grid-template-columns: 50.4% 49.6%;
    grid-template-rows: 52px minmax(0, 1fr);
    width: min(1132px, calc(100vw - 48px));
    height: 615px;
    min-height: 615px;
    overflow: hidden;
    border: 1px solid #d9b47d;
    border-radius: 24px;
    background-color: #fff9ef;
    background-image: url("../../pic/baozi-login-paper.png");
    background-repeat: repeat;
    background-position: center;
    background-size: 849px 463px;
    box-shadow: 0 16px 45px rgba(111, 70, 28, .12), inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.theme-baozipt .auth-layout--portal > .auth-hero--portal {
    grid-column: 1;
    grid-row: 1 / 3;
    width: auto;
    min-height: 613px;
    padding: 0;
    overflow: hidden;
    border-right: 1px solid #e6cba2;
    background-color: #fff1d9 !important;
    background-image: url("../../pic/baozi-login-reference.png") !important;
    background-repeat: no-repeat !important;
    background-position: 6.5% 58.1% !important;
    background-size: 210.27% 105.36% !important;
}

.theme-baozipt .auth-layout--portal > .auth-hero--portal::after { display: none !important; content: none !important; }

.theme-baozipt .auth-layout--portal > .auth-language {
    z-index: 4;
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
    padding: 10px 20px 0;
}

.theme-baozipt .auth-layout--portal .auth-language-switcher__label {
    display: inline-flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    color: #76624d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.theme-baozipt .auth-layout--portal .auth-language select {
    box-sizing: border-box;
    width: 122px !important;
    min-width: 122px;
    max-width: 100%;
    height: auto;
    min-height: 32px;
    padding: 5px 28px 5px 10px;
    color: #554334;
    font-size: 11px;
    line-height: 1.35;
    border: 1px solid #d9b47d !important;
    border-radius: 7px;
    background-color: rgba(255, 253, 248, .86) !important;
    box-shadow: 0 2px 8px rgba(111, 70, 28, .05);
}

.theme-baozipt .auth-layout--portal > .auth-portal-panel {
    box-sizing: border-box;
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
    height: 613px;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    flex-direction: column;
    padding: 34px 42px 24px;
    overflow: hidden;
    background: transparent !important;
}

.theme-baozipt .auth-layout--portal.auth-layout--with-language > .auth-portal-panel {
    grid-row: 2;
    height: 561px;
    padding-top: 0;
}

.theme-baozipt .auth-portal-panel__header {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 2px 15px;
    text-align: center;
}

.theme-baozipt .auth-portal-panel__header h2 {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0;
    color: #17130f;
    font-family: "STKaiti", "KaiTi", "FZKai-Z03", serif;
    font-size: 31px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.theme-baozipt .auth-portal-panel__header h2::before,
.theme-baozipt .auth-portal-panel__header h2::after {
    content: "";
    width: 20px;
    height: 18px;
    flex: 0 0 auto;
    background:
        linear-gradient(25deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 1px / 9px 5px no-repeat,
        linear-gradient(0deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 7px / 12px 4px no-repeat,
        linear-gradient(-25deg, transparent 40%, #ef871d 42% 58%, transparent 60%) 0 13px / 9px 5px no-repeat;
}

.theme-baozipt .auth-portal-panel__header h2::after { transform: scaleX(-1); }
.theme-baozipt .auth-portal-panel__header p { max-width: 100%; margin: 8px 0 0; color: #7a6856; font-size: 11.5px; line-height: 1.55; overflow-wrap: anywhere; }

.theme-baozipt .auth-portal-panel__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 2px 5px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    scrollbar-color: #ddb980 rgba(249, 229, 197, .45);
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.theme-baozipt .auth-portal-panel__body > *,
.theme-baozipt .auth-portal-panel__body form,
.theme-baozipt .auth-portal-panel__body fieldset,
.theme-baozipt .auth-portal-panel__body label {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.theme-baozipt .auth-layout--portal .nowrap { white-space: normal !important; }
.theme-baozipt .auth-layout--portal p,
.theme-baozipt .auth-layout--portal li,
.theme-baozipt .auth-layout--portal td,
.theme-baozipt .auth-layout--portal th,
.theme-baozipt .auth-layout--portal a { overflow-wrap: anywhere; word-break: break-word; }

.theme-baozipt .auth-portal-panel__body::-webkit-scrollbar { width: 7px; height: 7px; }
.theme-baozipt .auth-portal-panel__body::-webkit-scrollbar-track { border-radius: 99px; background: rgba(249, 229, 197, .45); }
.theme-baozipt .auth-portal-panel__body::-webkit-scrollbar-thumb { border-radius: 99px; background: #ddb980; }

.theme-baozipt .auth-portal-note {
    margin: 0 0 13px;
    padding: 10px 13px;
    color: #6c5642;
    font-size: 11.5px;
    line-height: 1.55;
    border: 1px solid #ead1ad;
    border-radius: 9px;
    background: rgba(255, 249, 239, .7);
}

.theme-baozipt .auth-portal-note p { margin: 3px 0; }
.theme-baozipt .auth-portal-note b { color: #e9530b; }
.theme-baozipt .auth-portal-note--warning { border-color: #edc18d; background: rgba(255, 244, 225, .82); }

.theme-baozipt .auth-portal-form { width: 100%; max-width: 100%; min-width: 0; }
.theme-baozipt .auth-portal-form__grid { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 13px; }
.theme-baozipt .auth-layout--portal-signup .auth-portal-form__grid { grid-template-columns: minmax(0, 1fr); }
.theme-baozipt .auth-portal-form__full,
.theme-baozipt .auth-portal-captcha { grid-column: 1 / -1; }

.theme-baozipt .auth-portal-field {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 5px;
    color: #4f4032;
    font-size: 11.5px;
    font-weight: 700;
}

.theme-baozipt .auth-portal-field > span,
.theme-baozipt .auth-portal-choice legend,
.theme-baozipt .auth-portal-checks legend { color: #564536; font-size: 11.5px; font-weight: 800; }

.theme-baozipt .auth-portal-field small {
    display: block;
    color: #725e4b;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.45;
}

.theme-baozipt .auth-portal-field input[type="text"],
.theme-baozipt .auth-portal-field input[type="email"],
.theme-baozipt .auth-portal-field input[type="password"],
.theme-baozipt .auth-portal-field input[type="search"],
.theme-baozipt .auth-portal-field select,
.theme-baozipt .auth-portal-field textarea,
.theme-baozipt .auth-portal-search input[type="search"] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    min-height: 43px;
    margin: 0;
    padding: 10px 13px;
    color: #40372e;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #d4b17f !important;
    border-radius: 8px;
    outline: 0;
    background: rgba(255, 253, 249, .76) !important;
    box-shadow: inset 0 1px 2px rgba(132, 84, 33, .04);
}

.theme-baozipt .auth-portal-field textarea {
    height: auto;
    min-height: 145px;
    padding-top: 11px;
    line-height: 1.6;
    resize: vertical;
}

.theme-baozipt .auth-portal-form--tags {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    width: 100%;
    min-width: 0;
    gap: 9px;
    align-items: stretch;
    margin: 12px 0 18px;
}

.theme-baozipt .auth-portal-form--tags textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 82px;
    padding: 10px 12px;
    color: #40372e;
    font-size: 12px;
    line-height: 1.55;
    border: 1px solid #d4b17f;
    border-radius: 8px;
    background: rgba(255, 253, 249, .76);
    resize: vertical;
}

.theme-baozipt .auth-portal-form--tags .auth-portal-submit {
    height: auto !important;
    min-height: 82px !important;
    padding: 8px;
    font-size: 12px;
    letter-spacing: 0;
    white-space: normal;
}

.theme-baozipt .auth-portal-field input:focus,
.theme-baozipt .auth-portal-field select:focus,
.theme-baozipt .auth-portal-field textarea:focus,
.theme-baozipt .auth-portal-search input:focus {
    border-color: #ee8c2c !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 0 0 3px rgba(239, 104, 23, .12);
}

.theme-baozipt .auth-portal-field input[readonly] { color: #786a5d; background: rgba(239, 229, 213, .72) !important; cursor: not-allowed; }

.theme-baozipt .auth-portal-choice,
.theme-baozipt .auth-portal-checks {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 11px 10px;
    border: 1px solid #ead1ad;
    border-radius: 9px;
    background: rgba(255, 250, 241, .62);
}

.theme-baozipt .auth-portal-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.theme-baozipt .auth-portal-choice legend,
.theme-baozipt .auth-portal-checks legend { padding: 0 5px; }
.theme-baozipt .auth-portal-choice label,
.theme-baozipt .auth-portal-checks label { display: flex; align-items: flex-start; gap: 7px; color: #5d4e41; font-size: 10.5px; line-height: 1.55; }
.theme-baozipt .auth-portal-checks { display: grid; gap: 5px; }
.theme-baozipt .auth-portal-choice input,
.theme-baozipt .auth-portal-checks input { margin: 2px 0 0; accent-color: #e9530b; }
.theme-baozipt .auth-portal-choice a,
.theme-baozipt .auth-portal-checks a { color: #e9530b; font-weight: 700; }

.theme-baozipt .auth-portal-captcha {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 136px 34px;
    gap: 9px;
    align-items: end;
}

.theme-baozipt .auth-portal-captcha__image {
    box-sizing: border-box;
    height: 43px;
    padding: 3px 7px;
    overflow: hidden;
    border: 1px solid #dda562;
    border-radius: 7px;
    background: #fff0cf;
}

.theme-baozipt .auth-portal-captcha__image img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff0cf; }
.theme-baozipt .auth-portal-captcha__refresh {
    display: flex;
    width: 34px;
    height: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    padding: 0;
    color: #806f5d !important;
    font-size: 22px;
    line-height: 1;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}
.theme-baozipt .auth-portal-captcha__refresh:hover { color: #e9530b !important; background: rgba(239, 104, 23, .08) !important; }

.theme-baozipt .auth-portal-form__hint { margin: 10px 0 0; color: #b94a13; font-size: 10.5px; font-weight: 700; text-align: center; }
.theme-baozipt .auth-portal-actions { display: flex; width: 100%; margin-top: 13px; }
.theme-baozipt .auth-portal-submit {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 46px !important;
    margin: 0;
    padding: 10px 16px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 2px;
    white-space: normal;
    border: 1px solid #b93f06 !important;
    border-radius: 7px;
    background: linear-gradient(100deg, #c64900, #b93f06) !important;
    box-shadow: 0 8px 18px rgba(226, 83, 11, .12);
}
.theme-baozipt .auth-portal-submit:hover { background: linear-gradient(100deg, #b53b00, #a93400) !important; }

.theme-baozipt .auth-portal-back {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px dashed rgba(222, 184, 132, .65);
}
.theme-baozipt .auth-portal-back a { color: #b93f06; font-size: 11px; font-weight: 800; }
.theme-baozipt .auth-portal-back a:hover { color: #bd3904; text-decoration: underline; }

.theme-baozipt .auth-portal-quick-return {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.theme-baozipt .auth-portal-quick-return a {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 10px;
    color: #b93f06;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    border: 1px solid #e5c08f;
    border-radius: 999px;
    background: rgba(255, 248, 237, .76);
}

.theme-baozipt .auth-portal-quick-return a:hover,
.theme-baozipt .auth-portal-quick-return a:focus-visible { border-color: #cf7b35; background: #fff2df; }

.theme-baozipt .auth-portal-search { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; gap: 8px; margin-bottom: 14px; }
.theme-baozipt .auth-portal-search .btn {
    min-height: 43px !important;
    padding: 0 12px;
    color: #fff !important;
    border: 1px solid #b93f06 !important;
    border-radius: 8px;
    background: #b93f06 !important;
}
.theme-baozipt .auth-portal-search .auth-portal-button--secondary { color: #7a5a3a !important; border-color: #dbb989 !important; background: #fff9ef !important; }

.theme-baozipt .auth-portal-table-wrap { width: 100%; overflow: auto; border: 1px solid #e7c79b; border-radius: 9px; }
.theme-baozipt .auth-portal-data-table { width: 100% !important; min-width: 0; table-layout: fixed; border: 0 !important; border-collapse: collapse; background: rgba(255, 252, 246, .84) !important; }
.theme-baozipt .auth-portal-data-table th,
.theme-baozipt .auth-portal-data-table td { padding: 8px 9px !important; color: #594838; font-size: 10.5px; line-height: 1.45; text-align: left; border: 0 !important; border-bottom: 1px solid #eddcc1 !important; background: transparent !important; }
.theme-baozipt .auth-portal-data-table th { color: #6b4423; font-weight: 800; background: #fff0d9 !important; }
.theme-baozipt .auth-portal-data-table th:nth-child(1),
.theme-baozipt .auth-portal-data-table td:nth-child(1) { width: 34px; }
.theme-baozipt .auth-portal-data-table th:nth-child(2),
.theme-baozipt .auth-portal-data-table td:nth-child(2) { width: 38px; }
.theme-baozipt .auth-portal-data-table th:nth-child(3),
.theme-baozipt .auth-portal-data-table td:nth-child(3) { width: 78px; }
.theme-baozipt .auth-portal-data-table th:nth-child(5),
.theme-baozipt .auth-portal-data-table td:nth-child(5) { width: 108px; }
.theme-baozipt .auth-portal-data-table td { overflow-wrap: anywhere; }
.theme-baozipt .auth-portal-data-table tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt .auth-portal-empty { padding: 28px !important; color: #8b7764 !important; text-align: center !important; }
.theme-baozipt .auth-portal-pagination { margin-top: 10px; text-align: center; }
.theme-baozipt .auth-portal-pagination .nexus-pagination { justify-content: center; }

.theme-baozipt .auth-portal-message { display: grid; min-height: 260px; place-content: center; padding: 24px; text-align: center; }
.theme-baozipt .auth-portal-message > h3 { display: none; }
.theme-baozipt .auth-portal-message__body { color: #5d4c3d; font-size: 14px; line-height: 1.8; }
.theme-baozipt .auth-portal-message__body a { color: #e9530b; font-weight: 800; }

.theme-baozipt .auth-layout--portal .auth-result-card {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 28px 18px;
    color: #5d4c3d;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt .auth-layout--portal .auth-result-card h1 { display: none; }
.theme-baozipt .auth-layout--portal .auth-result-card a { color: #b93f06; font-weight: 800; }

/* Keep every text link readable on the warm paper background. */
.theme-baozipt .auth-layout--portal a,
.theme-baozipt .auth-layout--portal .auth-portal-note b,
.theme-baozipt .auth-layout--portal .auth-portal-choice a,
.theme-baozipt .auth-layout--portal .auth-portal-checks a,
.theme-baozipt .auth-layout--portal .auth-portal-message__body a { color: #b93f06; }

/* Normalize legacy frames used by rules, FAQ, about, agreements and complaint history. */
.theme-baozipt .auth-layout--portal .nexus-main-frame,
.theme-baozipt .auth-layout--portal .nexus-frame,
.theme-baozipt .auth-layout--portal table.main,
.theme-baozipt .auth-layout--portal table:not(.auth-portal-data-table) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-color: #ead6b8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt .auth-layout--portal .nexus-main-frame { padding: 0 !important; border: 0 !important; }
.theme-baozipt .auth-layout--portal .nexus-main-frame > tbody > tr > td.embedded { padding: 0 !important; border: 0 !important; background: transparent !important; }
.theme-baozipt .auth-layout--portal .nexus-frame { table-layout: fixed; margin-bottom: 12px !important; border: 1px solid #ead6b8 !important; border-radius: 8px; background: rgba(255, 251, 244, .62) !important; }
.theme-baozipt .auth-layout--portal .nexus-frame td.text { padding: 12px !important; color: #5e4d3d; font-size: 11px; line-height: 1.75; border: 0 !important; background: transparent !important; }
.theme-baozipt .auth-layout--portal .nexus-frame td,
.theme-baozipt .auth-layout--portal .nexus-frame th { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.theme-baozipt .auth-layout--portal h1 { color: #30251c; }
.theme-baozipt .auth-layout--portal h2:not(.auth-portal-panel__header h2) { color: #5e3d23; }
.theme-baozipt .auth-layout--portal .auth-portal-panel__body > h1 { display: none; }
.theme-baozipt .auth-layout--portal textarea[name="body"],
.theme-baozipt .auth-layout--portal #reply textarea { box-sizing: border-box; width: 100% !important; max-width: 100%; }
.theme-baozipt .auth-layout--portal img { max-width: 100%; }

@media (max-width: 1120px) {
    .theme-baozipt .auth-layout--portal {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        width: min(580px, calc(100vw - 24px));
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 18px;
    }

    .theme-baozipt .auth-layout--portal > .auth-hero--portal {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1041 / 1130;
        border-right: 0;
        border-bottom: 1px solid #e6cba2;
    }

    .theme-baozipt .auth-layout--portal > .auth-language {
        grid-column: 1;
        grid-row: 2;
        padding: 12px 28px 0;
        background: url("../../pic/baozi-login-paper.png") center / 849px 463px repeat;
    }

    .theme-baozipt .auth-layout--portal > .auth-portal-panel,
    .theme-baozipt .auth-layout--portal.auth-layout--with-language > .auth-portal-panel {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 28px;
        overflow: visible;
        background: url("../../pic/baozi-login-paper.png") center / 849px 463px repeat !important;
    }

    .theme-baozipt .auth-layout--portal.auth-layout--with-language > .auth-portal-panel { grid-row: 3; padding-top: 22px; }
    .theme-baozipt .auth-portal-panel__body { overflow: visible; scrollbar-gutter: auto; }
    .theme-baozipt .auth-portal-form__grid { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt .auth-portal-form__full,
    .theme-baozipt .auth-portal-captcha { grid-column: 1; }
}

@media (max-width: 440px) {
    .theme-baozipt .auth-layout--portal > .auth-language { padding: 10px 18px 0; }
    .theme-baozipt .auth-layout--portal > .auth-portal-panel,
    .theme-baozipt .auth-layout--portal.auth-layout--with-language > .auth-portal-panel { padding: 24px 18px; }
    .theme-baozipt .auth-portal-panel__header h2 { gap: 8px; font-size: 27px; }
    .theme-baozipt .auth-portal-panel__header h2::before,
    .theme-baozipt .auth-portal-panel__header h2::after { width: 16px; }
    .theme-baozipt .auth-portal-form__grid { grid-template-columns: 1fr; }
    .theme-baozipt .auth-portal-form--tags { grid-template-columns: 1fr; }
    .theme-baozipt .auth-portal-form--tags .auth-portal-submit { min-height: 44px !important; }
    .theme-baozipt .auth-portal-form__full,
    .theme-baozipt .auth-portal-captcha { grid-column: 1; }
    .theme-baozipt .auth-portal-captcha { grid-template-columns: minmax(0, 1fr) 105px 30px; gap: 6px; }
    .theme-baozipt .auth-portal-captcha__refresh { width: 30px; height: 30px; min-height: 30px; font-size: 19px; }
    .theme-baozipt .auth-portal-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt .auth-portal-search input[type="search"] { grid-column: 1 / -1; }
    .theme-baozipt .auth-portal-search .auth-portal-button--secondary { grid-column: auto; }
    .theme-baozipt .auth-portal-data-table,
    .theme-baozipt .auth-portal-data-table tbody,
    .theme-baozipt .auth-portal-data-table tr,
    .theme-baozipt .auth-portal-data-table td { display: block; width: 100% !important; }
    .theme-baozipt .auth-portal-data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .theme-baozipt .auth-portal-data-table tr { padding: 8px 10px; border-bottom: 1px solid #eddcc1; }
    .theme-baozipt .auth-portal-data-table tr:last-child { border-bottom: 0; }
    .theme-baozipt .auth-portal-data-table td { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; padding: 4px 0 !important; border: 0 !important; }
    .theme-baozipt .auth-portal-data-table td::before { color: #8b5a32; font-weight: 800; }
    .theme-baozipt .auth-portal-data-table td:nth-child(1)::before { content: "ID"; }
    .theme-baozipt .auth-portal-data-table td:nth-child(2)::before { content: "UID"; }
    .theme-baozipt .auth-portal-data-table td:nth-child(3)::before { content: var(--baozi-copy-username, ""); }
    .theme-baozipt .auth-portal-data-table td:nth-child(4)::before { content: var(--baozi-copy-ban-reason, ""); }
    .theme-baozipt .auth-portal-data-table td:nth-child(5)::before { content: var(--baozi-copy-banned-at, ""); }
    .theme-baozipt .auth-portal-data-table .auth-portal-empty { display: block; padding: 24px 8px !important; }
    .theme-baozipt .auth-portal-data-table .auth-portal-empty::before { content: none; }
    .theme-baozipt .auth-portal-message { min-height: 190px; padding: 16px 4px; }
}

@media (max-width: 360px) {
    .theme-baozipt.page-login .auth-captcha,
    .theme-baozipt .auth-portal-captcha {
        grid-template-columns: minmax(0, 1fr) 30px;
    }

    .theme-baozipt.page-login .auth-field--captcha,
    .theme-baozipt .auth-portal-field--captcha { grid-column: 1 / -1; }

    .theme-baozipt.page-login .auth-captcha__image,
    .theme-baozipt .auth-portal-captcha__image { min-width: 0; }
}

/* Homepage site data, controlled by the original showstats switch. */
.theme-baozipt.page-index .home-site-data {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: var(--baozi-radius);
    background: linear-gradient(120deg, rgba(255, 248, 237, .96), rgba(255, 252, 246, .9));
    box-shadow: 0 7px 22px rgba(139, 83, 30, .07);
}

.theme-baozipt.page-index .home-site-data__head {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid var(--baozi-line-soft);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(255, 232, 196, .78), rgba(255, 250, 241, .7));
}

.theme-baozipt.page-index .home-site-data__head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #3f3025;
    font-size: 17px;
    line-height: 1.35;
}

.theme-baozipt.page-index .home-site-data__head h2 span {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border-radius: 7px;
    background: linear-gradient(145deg, #ff8b32, #eb510e);
}

.theme-baozipt.page-index .home-site-data__head small {
    margin-left: auto;
    color: #8b735f;
    font-size: 10px;
    font-weight: 500;
}

.theme-baozipt.page-index .home-site-data__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 11px 15px 13px;
}

.theme-baozipt.page-index .home-site-data__column {
    min-width: 0;
    margin: 0;
    padding: 0 20px;
}

.theme-baozipt.page-index .home-site-data__column:first-child { padding-left: 8px; }
.theme-baozipt.page-index .home-site-data__column:last-child { padding-right: 8px; }
.theme-baozipt.page-index .home-site-data__column + .home-site-data__column { border-left: 1px solid #efd4ad; }

.theme-baozipt.page-index .home-site-data__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 43px;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 7px;
    transition: background-color .16s ease, transform .16s ease;
}

.theme-baozipt.page-index .home-site-data__item:hover {
    background: rgba(255, 232, 196, .42);
    transform: translateX(2px);
}

.theme-baozipt.page-index .home-site-data__item dt,
.theme-baozipt.page-index .home-site-data__item dd { min-width: 0; margin: 0; }

.theme-baozipt.page-index .home-site-data__item dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #51443a;
    font-size: 12px;
    line-height: 1.45;
}

.theme-baozipt.page-index .home-site-data__item dt::after { content: "："; }

.theme-baozipt.page-index .home-site-data__item dt i {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    border-radius: 50%;
    background: #ef9b22;
}

.theme-baozipt.page-index .home-site-data__item.is-danger dt i { background: #e1583e; }

.theme-baozipt.page-index .home-site-data__item dd {
    color: #1f1b18;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.theme-baozipt.page-index .home-site-data__item.is-primary dd { color: #d74d0d; }

@media (max-width: 980px) {
    .theme-baozipt.page-index .home-site-data__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt.page-index .home-site-data__column { padding: 0 14px; }
    .theme-baozipt.page-index .home-site-data__column:nth-child(3) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 7px;
        padding-top: 7px;
        border-top: 1px solid #efd4ad;
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .theme-baozipt.page-index .home-site-data__head { align-items: center; gap: 8px; }
    .theme-baozipt.page-index .home-site-data__head small {
        max-width: none;
        flex: 0 0 auto;
        text-align: right;
        white-space: nowrap;
    }
    .theme-baozipt.page-index .home-site-data__grid { grid-template-columns: minmax(0, 1fr); padding: 8px 10px 11px; }
    .theme-baozipt.page-index .home-site-data__column,
    .theme-baozipt.page-index .home-site-data__column:first-child,
    .theme-baozipt.page-index .home-site-data__column:last-child { padding: 0; }
    .theme-baozipt.page-index .home-site-data__column + .home-site-data__column {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #efd4ad;
        border-left: 0;
    }
    .theme-baozipt.page-index .home-site-data__column:nth-child(3) { display: block; margin-top: 6px; padding-top: 6px; }
    .theme-baozipt.page-index .home-site-data__item { min-height: 39px; padding: 5px 6px; }
    .theme-baozipt.page-index .home-site-data__item dt { font-size: 11px; }
    .theme-baozipt.page-index .home-site-data__item dd { font-size: 13px; }
}

/* Stable role-aware header tools: the visible permission set always occupies
   one right-aligned row, instead of allowing auto-fit to create a second row. */
.theme-baozipt .userbar__tools {
    width: min(100%, calc(var(--baozi-tool-count, 3) * 126px));
    justify-self: end;
    align-self: stretch;
    grid-template-columns: repeat(var(--baozi-tool-count, 3), minmax(0, 1fr));
    grid-template-rows: minmax(62px, 1fr);
    grid-auto-flow: column;
    overflow: hidden;
}

.theme-baozipt .userbar__tools .userbar-tool {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1180px) {
    .theme-baozipt .userbar__tools { width: min(100%, calc(var(--baozi-tool-count, 3) * 126px)); }
}

@media (max-width: 760px) {
    .theme-baozipt .userbar__tools {
        min-height: 72px;
        padding: 7px 4px;
        grid-template-columns: repeat(var(--baozi-tool-count, 3), minmax(0, 1fr));
        grid-template-rows: minmax(58px, auto);
        grid-auto-rows: unset;
        overflow: hidden;
    }

    .theme-baozipt .userbar__tools .userbar-tool {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 38px 16px;
        justify-items: center;
        gap: 0;
        padding: 3px 2px;
    }

    .theme-baozipt .userbar-tool__icon,
    .theme-baozipt .userbar-tool img {
        grid-column: 1;
        grid-row: 1;
        width: 36px;
        height: 36px;
        max-width: none;
        object-fit: contain;
    }

    .theme-baozipt .userbar-tool b {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
        font-size: 11px;
        font-variant-numeric: tabular-nums;
        line-height: 16px;
        white-space: nowrap;
    }

    .theme-baozipt .userbar-tool--rss {
        grid-template-rows: 1fr;
    }

    .theme-baozipt .userbar-tool--rss .userbar-tool__icon {
        grid-row: 1;
        width: 38px;
        height: 38px;
    }

    .theme-baozipt .userbar-tool::before {
        height: 46px;
    }
}

/* Settings keeps NexusPHP's original label/content proportions. */
.theme-baozipt.page-settings #outer > table:not(.nexus-message),
.theme-baozipt.page-settings #outer > form > table,
.theme-baozipt.page-settings #outer table:not(.nexus-message) {
    table-layout: auto !important;
}

/* The settings table owns the only outer border.  Classic gives every cell a
   four-sided border, which otherwise doubles the left/right edge and every
   row divider when the Baozi card uses separate borders. */
.theme-baozipt.page-settings #outer > table:not(.nexus-message) {
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr > td {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ead8bd !important;
    border-left: 0 !important;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr > td.rowhead {
    border-right: 1px solid #ead8bd !important;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr:first-child > td:first-child {
    border-radius: 11px 11px 0 0;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 11px;
}

.theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 11px;
}

.theme-baozipt.page-settings #outer > table > tbody > tr > td.rowhead,
.theme-baozipt.page-settings #outer > form > table > tbody > tr > td.rowhead {
    width: 22% !important;
    min-width: 210px;
    white-space: normal;
}

.theme-baozipt.page-settings #outer > table > tbody > tr > td.rowfollow,
.theme-baozipt.page-settings #outer > form > table > tbody > tr > td.rowfollow { width: 78% !important; }

.theme-baozipt.page-settings #outer form { min-width: 0; margin: 0; }
.theme-baozipt.page-settings #outer td.rowfollow { line-height: 1.65; }
.theme-baozipt.page-settings #outer td.rowfollow input[type="text"],
.theme-baozipt.page-settings #outer td.rowfollow input[type="password"],
.theme-baozipt.page-settings #outer td.rowfollow input[type="number"],
.theme-baozipt.page-settings #outer td.rowfollow select,
.theme-baozipt.page-settings #outer td.rowfollow textarea { max-width: 100%; margin: 2px 4px; }

@media (max-width: 760px) {
    .theme-baozipt.page-settings #outer > table > tbody > tr > td.rowhead,
    .theme-baozipt.page-settings #outer > table > tbody > tr > td.rowfollow,
    .theme-baozipt.page-settings #outer > form > table > tbody > tr > td.rowhead,
    .theme-baozipt.page-settings #outer > form > table > tbody > tr > td.rowfollow {
        display: block;
        width: 100% !important;
        min-width: 0;
        text-align: left !important;
    }
    .theme-baozipt.page-settings #outer > table:not(.nexus-message) > tbody > tr > td.rowhead {
        border-right: 0 !important;
    }
}

/* Compact mailbox manager. */
.theme-baozipt.page-messages .pm-mailbox-manager {
    width: 100%;
    min-width: 0;
}

.theme-baozipt.page-messages .pm-mailbox-manager > h1 {
    margin: 0 0 14px;
    padding: 0 4px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.35;
}

.theme-baozipt.page-messages .pm-mailbox-manager__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.theme-baozipt.page-messages .pm-mailbox-manager__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-messages .pm-mailbox-manager__card > h2 {
    min-height: 44px;
    margin: 0;
    padding: 11px 15px;
    color: #67411f;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, #ffe8ca, #fff3df);
}

.theme-baozipt.page-messages .pm-mailbox-manager__body { padding: 14px 16px 16px; }
.theme-baozipt.page-messages .pm-mailbox-manager__body > p { min-height: 40px; margin: 0 0 10px; color: #755f4b; line-height: 1.55; }
.theme-baozipt.page-messages .pm-mailbox-manager__form { display: grid !important; gap: 12px; overflow: visible !important; }
.theme-baozipt.page-messages .pm-mailbox-manager__fields { display: grid; gap: 8px; }
.theme-baozipt.page-messages .pm-mailbox-manager__fields label {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #634b37;
    font-weight: 700;
}
.theme-baozipt.page-messages .pm-mailbox-manager__fields input { width: 100% !important; min-height: 38px; padding: 7px 10px; }
.theme-baozipt.page-messages .pm-mailbox-manager__form > .btn { justify-self: start; min-width: 86px; }
.theme-baozipt.page-messages .pm-mailbox-manager__empty {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #8a715d;
    border: 1px dashed #e7c79e;
    border-radius: 9px;
    background: #fff7ea;
}

@media (max-width: 820px) {
    .theme-baozipt.page-messages .pm-mailbox-manager__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Shared warm treatment for remaining authenticated utility pages. */
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer {
    min-width: 0;
}

.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer > h1,
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer > h2 {
    margin: 0 0 14px;
    color: #3f2e21;
    font-family: "STKaiti", "KaiTi", serif;
    line-height: 1.35;
}

.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) .nexus-frame {
    margin: 0 0 14px;
    overflow: hidden;
    border-color: var(--baozi-line) !important;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) .nexus-frame > tbody > tr > td.text {
    padding: 16px 18px !important;
    border: 0 !important;
    background: #fffaf3 !important;
}

.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) .nexus-data-table,
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer > table:not(.nexus-main-frame):not(.nexus-frame):not(.nexus-message),
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer > form > table {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 14px !important;
    table-layout: auto;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 11px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer form { min-width: 0; }
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer input[type="text"],
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer input[type="file"],
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer select,
.theme-baozipt:is(.page-invite, .page-staff, .page-contactstaff, .page-sendmessage, .page-log, .page-topten, .page-subtitles, .page-offers, .page-attendance) #outer textarea { max-width: 100%; }

.theme-baozipt.page-invite #invitemenu,
.theme-baozipt.page-log #logmenu {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
    padding: 8px;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: linear-gradient(90deg, #fff0d9, #fffaf1);
    box-shadow: var(--baozi-shadow);
    list-style: none;
}

.theme-baozipt.page-invite #invitemenu li,
.theme-baozipt.page-log #logmenu li { float: none; margin: 0; padding: 0; }
.theme-baozipt.page-invite #invitemenu a { display: block; padding: 8px 14px; border-radius: 7px; font-weight: 700; }

.theme-baozipt.page-log #logmenu a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 16px;
    color: #69482f !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    position: static !important;
    top: auto !important;
    border: 1px solid #e2aa69 !important;
    border-radius: 8px;
    background: #fffaf2 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.theme-baozipt.page-log #logmenu a:hover {
    color: #c94a12 !important;
    border-color: #dc8739 !important;
    background: #fff0dc !important;
}

.theme-baozipt.page-log #logmenu a:focus-visible {
    outline: 3px solid rgba(237, 90, 23, .18);
    outline-offset: 2px;
}

.theme-baozipt.page-log #logmenu li.selected a,
.theme-baozipt.page-log #logmenu li.selected a:hover {
    color: #fff !important;
    border-color: var(--baozi-orange) !important;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
    background-image: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
}

.theme-baozipt.page-invite #invitemenu li.selected a {
    color: #fff;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
}

/* Invitation center: a real two-column shell, without a legacy table frame. */
.theme-baozipt.page-invite .invite-page-shell {
    display: grid;
    min-width: 0;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.theme-baozipt.page-invite .invite-page-shell > .invite-dashboard__nav {
    position: sticky;
    top: 12px;
    align-self: start;
    margin: 0;
}

.theme-baozipt.page-invite .invite-page-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.theme-baozipt.page-invite .invite-page-title {
    display: flex;
    min-height: 64px;
    align-items: center;
    margin: 0 !important;
    padding: 13px 20px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #fff0d8, #fffaf2 62%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-invite .invite-page-title::before {
    content: "✉";
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    margin-right: 11px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 21px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8629, var(--baozi-orange));
}

.theme-baozipt.page-invite .invite-page-title a {
    color: #493426;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 23px;
    line-height: 1.3;
}

.theme-baozipt.page-invite .invite-page-content > p[align="center"] {
    margin: -4px 0 0;
    padding: 10px 14px;
    color: #b9421b;
    border: 1px solid #f2c69d;
    border-radius: 9px;
    background: #fff3df;
}

.theme-baozipt.page-invite .invite-dashboard__send {
    margin: 7px 0 0;
    padding: 10px;
    border-top: 1px dashed #dfc6a5;
}

.theme-baozipt.page-invite .invite-dashboard__send button {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 8px 12px;
    color: #9e421e;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    border: 1px solid #efb377;
    border-radius: 8px;
    background: #fff0dc;
    box-shadow: none;
}

.theme-baozipt.page-invite .invite-dashboard__send button span {
    width: 22px;
    flex: 0 0 22px;
    color: var(--baozi-orange);
    font-size: 20px;
    text-align: center;
}

.theme-baozipt.page-invite .invite-dashboard__send.is-active button,
.theme-baozipt.page-invite .invite-dashboard__send button:not(:disabled):hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: linear-gradient(90deg, var(--baozi-orange-bright), var(--baozi-orange));
}
.theme-baozipt.page-invite .invite-dashboard__send.is-active button span,
.theme-baozipt.page-invite .invite-dashboard__send button:not(:disabled):hover span { color: #fff; }
.theme-baozipt.page-invite .invite-dashboard__send button:disabled { cursor: not-allowed; opacity: .72; }

.theme-baozipt.page-invite .invite-filter-card {
    padding: 12px 14px;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-invite .invite-filter-form {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.theme-baozipt.page-invite .invite-filter-form span { color: #604734; font-weight: 800; }
.theme-baozipt.page-invite .invite-filter-form select { width: auto; min-width: 150px; }
.theme-baozipt.page-invite .invite-filter-form input[type="submit"],
.theme-baozipt.page-invite .invite-filter-form input[type="button"] { min-width: 82px; }

.theme-baozipt.page-invite .invite-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
    scrollbar-color: #e8ae72 #fff3e2;
}

.theme-baozipt.page-invite .invite-table-scroll > form { min-width: 720px; margin: 0; }
.theme-baozipt.page-invite .invite-table-scroll > .invite-data-table,
.theme-baozipt.page-invite .invite-table-scroll > form > .invite-data-table {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.theme-baozipt.page-invite .invite-data-table td,
.theme-baozipt.page-invite .invite-data-table th {
    padding: 10px 11px !important;
    border-color: #ead7bb !important;
    vertical-align: middle;
}
.theme-baozipt.page-invite .invite-data-table td.colhead {
    color: #60442e;
    white-space: nowrap;
    background: #ffecd0 !important;
}
.theme-baozipt.page-invite .invite-data-table tr:nth-child(odd) td.rowfollow { background: #fffdf9 !important; }

/* The invitee status view has many independent metrics. Keep every value
   readable and let the card scroll horizontally instead of breaking text into
   one-character columns. */
.theme-baozipt.page-invite .invite-table-stage {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-invite .invite-table-scroll-tools {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid #ead7bb;
    background: linear-gradient(180deg, #fff8ed, #fff0dc);
}

.theme-baozipt.page-invite .invite-table-scroll-button {
    display: inline-flex;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #ef781f;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #ff7a24, #f45b0b);
    box-shadow: 0 4px 10px rgba(220, 88, 12, .18);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.theme-baozipt.page-invite .invite-table-scroll-button span {
    color: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.theme-baozipt.page-invite .invite-table-scroll-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 13px rgba(220, 88, 12, .25);
}

.theme-baozipt.page-invite .invite-table-scroll-button:focus-visible {
    outline: 3px solid rgba(255, 111, 20, .28);
    outline-offset: 2px;
}

.theme-baozipt.page-invite .invite-table-scroll-button:disabled {
    border-color: #e7c9a5;
    color: #a88b6c;
    background: #f4e7d6;
    box-shadow: none;
    cursor: default;
    opacity: .72;
}

.theme-baozipt.page-invite .invite-table-scroll--status {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior-inline: contain;
}

.theme-baozipt.page-invite .invite-table-scroll--status > form {
    min-width: 0;
}

.theme-baozipt.page-invite .invite-status-table {
    width: 100% !important;
    min-width: 1900px !important;
    table-layout: auto !important;
}

.theme-baozipt.page-invite .invite-status-table :is(th, td) {
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.theme-baozipt.page-invite .invite-status-table .invite-col--username { min-width: 118px; text-align: left; }
.theme-baozipt.page-invite .invite-status-table .invite-col--email { min-width: 190px; text-align: left; }
.theme-baozipt.page-invite .invite-status-table .invite-col--enabled { min-width: 62px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--uploaded-count { min-width: 105px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--traffic { min-width: 95px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--ratio { min-width: 78px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--seed-count { min-width: 112px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--seed-count-official { min-width: 130px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--seed-size { min-width: 120px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--seed-size-official { min-width: 145px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--seed-points { min-width: 145px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--harem { min-width: 90px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--last-announce { min-width: 150px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--status { min-width: 74px; }
.theme-baozipt.page-invite .invite-status-table .invite-col--confirm { min-width: 70px; }

@media (max-width: 760px) {
    .theme-baozipt.page-invite .invite-table-scroll-tools {
        min-height: 44px;
        justify-content: flex-start;
        padding: 5px 8px;
    }

    .theme-baozipt.page-invite .invite-table-scroll-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .theme-baozipt.page-invite .invite-status-table :is(th, td) {
        padding: 8px 9px !important;
        font-size: 12px;
    }
}
.theme-baozipt.page-invite .invite-empty-state {
    height: 130px;
    color: #8b725c;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(180deg, #fffaf3, #fff5e7) !important;
}

.theme-baozipt.page-invite .invite-compose-card .invite-data-table { min-width: 640px; }
.theme-baozipt.page-invite .invite-compose-card td.rowhead { width: 190px; white-space: normal; }
.theme-baozipt.page-invite .invite-compose-card input[type="text"],
.theme-baozipt.page-invite .invite-compose-card select,
.theme-baozipt.page-invite .invite-compose-card textarea { width: min(100%, 760px) !important; }

@media (max-width: 1180px) {
    .theme-baozipt.page-invite .invite-page-shell { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-invite .invite-page-shell > .invite-dashboard__nav {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .theme-baozipt.page-invite .invite-dashboard__send {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0;
        border-top: 1px solid #efe0cb;
    }
    .theme-baozipt.page-invite .invite-dashboard__send button { height: 100%; min-height: 48px; border: 0; border-radius: 0; }
}

@media (max-width: 760px) {
    .theme-baozipt.page-invite .invite-page-shell > .invite-dashboard__nav { grid-template-columns: 1fr; }
    .theme-baozipt.page-invite .invite-page-title { min-height: 56px; padding: 10px 13px; }
    .theme-baozipt.page-invite .invite-page-title a { font-size: 19px; }
    .theme-baozipt.page-invite .invite-filter-form { align-items: stretch; }
    .theme-baozipt.page-invite .invite-filter-form span { width: 68px; align-self: center; }
    .theme-baozipt.page-invite .invite-filter-form select { min-width: 0; flex: 1 1 calc(100% - 80px); }
    .theme-baozipt.page-invite .invite-filter-form input[type="submit"],
    .theme-baozipt.page-invite .invite-filter-form input[type="button"] { flex: 1 1 110px; }
    .theme-baozipt.page-invite .invite-compose-card td.rowhead { width: 130px; }
}

.theme-baozipt.page-staff .nexus-frame table { width: 100% !important; table-layout: auto; }
.theme-baozipt.page-staff .nexus-frame hr { height: 1px; border: 0; background: var(--baozi-line-soft); }
.theme-baozipt.page-staff .nexus-frame td.embedded { padding: 8px 10px !important; background: transparent !important; }
.theme-baozipt.page-contactstaff #compose > table { overflow: hidden; border-radius: 11px; }
.theme-baozipt.page-log #outer table[width="940"] { width: 100% !important; }
.theme-baozipt.page-log #outer td.toolbox form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.theme-baozipt.page-log #outer td.toolbox input[type="text"] { width: min(100%, 520px) !important; }
.theme-baozipt.page-topten .nexus-frame .nexus-data-table { box-shadow: none; }
.theme-baozipt.page-subtitles #outer td.rowhead,
.theme-baozipt.page-offers #outer td.rowhead { width: 22%; min-width: 150px; white-space: normal; }
.theme-baozipt.page-offers #outer #compose > table { overflow: hidden; border-radius: 11px; }

.theme-baozipt.page-attendance #calendar {
    width: min(100%, 920px) !important;
    padding: 12px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-attendance .fc .fc-button-primary { border-color: var(--baozi-orange) !important; background: var(--baozi-orange) !important; }
.theme-baozipt.page-attendance .fc-theme-standard td,
.theme-baozipt.page-attendance .fc-theme-standard th,
.theme-baozipt.page-attendance .fc-theme-standard .fc-scrollgrid { border-color: #ead8bd !important; }
.theme-baozipt.page-attendance .fc-col-header-cell { background: #fff0dc; }

@media (max-width: 760px) {
    .theme-baozipt.page-subtitles #outer td.rowhead,
    .theme-baozipt.page-offers #outer td.rowhead { min-width: 110px; }
    .theme-baozipt.page-attendance #calendar { padding: 7px; }
}

/* Native NexusPHP homepage modules, controlled by the original main settings. */
.theme-baozipt.page-index .home-native-modules {
    display: flow-root;
    box-sizing: border-box;
    min-width: 0;
    margin-top: 0;
    padding-top: 16px;
}

.theme-baozipt.page-index .home-dashboard__native-side,
.theme-baozipt.page-index .home-lucky-draw {
    margin: 0;
    padding: 0;
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child {
    margin-top: 0;
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child::before {
    content: "";
    display: inline-block;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='13' r='10' fill='%23fff7e8' stroke='%23e85b17' stroke-width='2'/%3E%3Cg stroke='%23e85b17' stroke-width='1.3'%3E%3Cpath d='M16 3v20M6 13h20M9 6l14 14M23 6L9 20'/%3E%3C/g%3E%3Ccircle cx='16' cy='13' r='2.3' fill='%23f08a24'/%3E%3Cg fill='%23ffb533' stroke='%23d95b1a' stroke-width='1'%3E%3Cpath d='M13.5 1h5v4h-5zM4 11h5v4H4zM23 11h5v4h-5z'/%3E%3C/g%3E%3Cpath d='M11 29l5-13 5 13M8 29h16' fill='none' stroke='%238b4b22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-baozipt.page-index .home-native-modules--below {
    padding-top: 14px;
}

.theme-baozipt.page-index .home-native-modules > h2 {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    padding: 8px 17px;
    color: #302820;
    font-size: 17px;
    line-height: 1.35;
    border: 1px solid var(--baozi-line);
    border-bottom-color: var(--baozi-line-soft);
    border-radius: var(--baozi-radius) var(--baozi-radius) 0 0;
    background: linear-gradient(90deg, rgba(255, 235, 203, .82), rgba(255, 250, 240, .88));
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-index .home-native-modules > h2:first-child { margin-top: 0; }
.theme-baozipt.page-index .home-native-modules > h2 font.small { margin-left: auto; color: #796956; font-size: 10px; font-weight: 500; }
.theme-baozipt.page-index .home-native-modules > h2 font.small a { color: var(--baozi-orange-dark); font-weight: 700; }

.theme-baozipt.page-index .home-native-modules > table {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-top: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 0 0 var(--baozi-radius) var(--baozi-radius);
    background: rgba(255, 251, 244, .9) !important;
    box-shadow: var(--baozi-shadow);
}

/* Legacy homepage modules give every cell its own 1px border.  Keep those
   borders only as internal dividers so the card perimeter stays a single 1px
   line, matching .baozi-panel instead of rendering two adjacent border bands. */
.theme-baozipt.page-index #outer .home-native-modules > table {
    border-right-color: var(--baozi-line) !important;
    border-bottom-color: var(--baozi-line) !important;
    border-left-color: var(--baozi-line) !important;
}

.theme-baozipt.page-index #outer .home-native-modules > table > tbody > tr:first-child > :is(td, th) {
    border-top: 0 !important;
}

.theme-baozipt.page-index #outer .home-native-modules > table > tbody > tr:last-child > :is(td, th) {
    border-bottom: 0 !important;
}

.theme-baozipt.page-index #outer .home-native-modules > table > tbody > tr > :is(td, th):first-child {
    border-left: 0 !important;
}

.theme-baozipt.page-index #outer .home-native-modules > table > tbody > tr > :is(td, th):last-child {
    border-right: 0 !important;
}

.theme-baozipt.page-index .home-native-modules > table + table {
    margin-top: 8px !important;
    border-top: 1px solid var(--baozi-line) !important;
    border-radius: var(--baozi-radius);
}

.theme-baozipt.page-index .home-native-modules > table > tbody > tr > td {
    padding: 13px 15px !important;
    border-color: var(--baozi-line-soft) !important;
    background: transparent !important;
}

.theme-baozipt.page-index .home-native-modules > table > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: calc(var(--baozi-radius) - 1px);
}

.theme-baozipt.page-index .home-native-modules > table > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: calc(var(--baozi-radius) - 1px);
}

.theme-baozipt.page-index .home-native-modules table.main {
    max-width: 100%;
    border-color: var(--baozi-line-soft) !important;
    background: rgba(255, 253, 248, .8) !important;
}

.theme-baozipt.page-index .home-native-modules iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: 0;
    border-radius: 8px;
    background: #fffaf2;
}

.theme-baozipt.page-index .home-native-modules form[name="shbox"] > div {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.theme-baozipt.page-index .home-native-modules form[name="shbox"] #shbox_text {
    min-width: min(320px, 100%);
    min-height: 34px;
}

.theme-baozipt.page-index .home-native-modules td.text.nowrap {
    overflow-x: auto;
    white-space: nowrap;
}

.theme-baozipt.page-index .home-native-modules img {
    height: auto;
    max-width: 100%;
}

@media (max-width: 760px) {
    .theme-baozipt.page-index .home-native-modules > h2 {
        flex-wrap: nowrap;
        gap: 5px;
        padding: 8px 12px;
        font-size: 15px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .theme-baozipt.page-index .home-native-modules > h2 font.small {
        width: auto;
        flex: 0 0 auto;
        margin-left: 0;
        white-space: nowrap;
    }

    .theme-baozipt.page-index .home-native-modules > h2 font.small:first-of-type {
        margin-left: auto;
    }

    .theme-baozipt.page-index .home-native-modules > h2::-webkit-scrollbar {
        display: none;
    }

    .theme-baozipt.page-index .home-native-modules > table > tbody > tr > td { padding: 10px !important; }
    .theme-baozipt.page-index .home-native-modules form[name="shbox"] #shbox_text { min-width: 100%; }
}

/* Homepage module heading actions. Hide the legacy " - [link]" text nodes
   and rebuild only the punctuation required by the current theme. */
.theme-baozipt.page-index .home-lucky-draw > h2:first-child font.small {
    margin-left: auto;
    color: transparent;
    font-size: 0;
    font-weight: 400;
    line-height: 0;
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child font.small a {
    display: block;
    color: #332d27;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    white-space: nowrap;
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child font.small a:hover {
    color: var(--baozi-orange);
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child font.small a b,
.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small a b {
    color: inherit;
    font: inherit;
}

.theme-baozipt.page-index .home-lucky-draw > h2:first-child font.small a::after {
    content: " ›";
}

.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small {
    width: auto;
    flex: 0 0 auto;
    margin-left: 0;
    color: transparent;
    font-size: 0;
    font-weight: 400;
    line-height: 0;
    white-space: nowrap;
}

.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small:first-of-type {
    margin-left: auto;
}

.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small a {
    display: block;
    color: var(--baozi-orange-dark);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}

.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small a::before {
    content: "[";
}

.theme-baozipt.page-index .home-native-modules--below > h2:has(a[href^="linksmanage.php"]) font.small a::after {
    content: "]";
}

/* Message center */
.theme-baozipt.page-messages #pmboxnav,
.theme-baozipt.page-usercp #usercpnav {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
}

.theme-baozipt.page-messages #pmboxmenu,
.theme-baozipt.page-usercp #usercpmenu {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: linear-gradient(90deg, #fff0d9, #fffaf1);
    box-shadow: var(--baozi-shadow);
    list-style: none;
    scrollbar-width: thin;
}

.theme-baozipt.page-messages #pmboxmenu li,
.theme-baozipt.page-usercp #usercpmenu li { float: none; flex: none; margin: 0; padding: 0; }

.theme-baozipt.page-messages #pmboxmenu a,
.theme-baozipt.page-usercp #usercpmenu a {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    color: #4f4033;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid transparent;
    border-radius: 7px;
    white-space: nowrap;
}

.theme-baozipt.page-messages #pmboxmenu a:hover,
.theme-baozipt.page-usercp #usercpmenu a:hover { color: var(--baozi-orange-dark); border-color: #efc18c; background: #fff8ed; }

.theme-baozipt.page-messages #pmboxmenu li.selected a,
.theme-baozipt.page-usercp #usercpmenu li.selected a {
    color: #fff;
    border-color: var(--baozi-orange);
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
}

.theme-baozipt.page-messages #outer > h1 {
    margin: 0 0 14px;
    padding: 0 4px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.35;
}

.theme-baozipt.page-messages #outer > table,
.theme-baozipt.page-messages #outer > form > table {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 14px !important;
    table-layout: auto;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-messages #outer > form {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
}

.theme-baozipt.page-messages #outer td,
.theme-baozipt.page-messages #outer th { min-width: 0; overflow-wrap: anywhere; }
.theme-baozipt.page-messages #outer td:not([class]) { padding: 13px 15px; background: #fffaf3 !important; }
.theme-baozipt.page-messages #outer td.rowfollow a { color: #b9430d; font-weight: 700; }
.theme-baozipt.page-messages #outer td.rowfollow.nowrap { white-space: normal; }
.theme-baozipt.page-messages #outer tr:last-child > td { border-bottom: 0 !important; }
.theme-baozipt.page-messages #outer .nexus-pagination { margin: 10px 0; }
.theme-baozipt.page-messages #outer input[type="text"],
.theme-baozipt.page-messages #outer textarea { width: 100% !important; max-width: 100%; }

/* Keep the mailbox light: compact search toolbar, quiet rows and local actions. */
.theme-baozipt.page-messages #pmboxnav,
.theme-baozipt.page-messages #outer > h1,
.theme-baozipt.page-messages #outer > .pm-search-card,
.theme-baozipt.page-messages #outer > .pm-mailbox-form,
.theme-baozipt.page-messages #outer > .nexus-pagination {
    width: min(100%, 1180px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.theme-baozipt.page-messages #outer > table:not(.pm-search-card),
.theme-baozipt.page-messages #outer > form:not(.pm-mailbox-form) {
    width: min(100%, 1180px) !important;
    max-width: 1180px;
    margin-right: auto !important;
    margin-left: auto !important;
    box-shadow: none !important;
}

.theme-baozipt.page-messages #outer > p[align="center"]:not(.nexus-pagination) {
    width: min(100%, 1180px);
    margin: 0 auto 14px;
    padding: 22px 16px;
    color: #8b6c53;
    line-height: 1.6;
    border: 1px dashed #e5c79f;
    border-radius: 10px;
    background: rgba(255, 250, 242, .72);
}

.theme-baozipt.page-messages #outer > .pm-search-card {
    margin-bottom: 12px !important;
    overflow: hidden;
    border-color: #ead2b1 !important;
    border-radius: 10px;
    background: #fffaf3 !important;
    box-shadow: none !important;
}

.theme-baozipt.page-messages .pm-search-card > tbody {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    width: 100%;
}

.theme-baozipt.page-messages .pm-search-card > tbody > tr { display: contents; }

.theme-baozipt.page-messages .pm-search-card__title,
.theme-baozipt.page-messages .pm-search-card__body {
    min-width: 0;
    border: 0 !important;
}

.theme-baozipt.page-messages .pm-search-card__title {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 8px 14px !important;
    color: #744523 !important;
    font-size: 13px;
    line-height: 1.35;
    background: linear-gradient(90deg, #fff0da, #fff5e6) !important;
    border-right: 1px solid #efd9ba !important;
    border-radius: 9px 0 0 9px;
}

.theme-baozipt.page-messages .pm-search-card__body {
    display: block;
    padding: 8px 10px !important;
    background: rgba(255, 252, 246, .82) !important;
    border-radius: 0 9px 9px 0;
}

.theme-baozipt.page-messages .pm-search-form {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    text-align: left;
}

.theme-baozipt.page-messages .pm-search-form__field {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #745c49;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.theme-baozipt.page-messages .pm-search-form__keyword { flex: 1 1 310px; }
.theme-baozipt.page-messages .pm-search-form__keyword span { flex: none; }

.theme-baozipt.page-messages .pm-search-form #searchinput {
    width: 100% !important;
    min-width: 150px;
    min-height: 34px;
    padding: 6px 10px !important;
    line-height: 1.4;
}

.theme-baozipt.page-messages .pm-search-form select {
    width: auto !important;
    min-width: 104px;
    min-height: 34px;
    padding: 5px 30px 5px 9px !important;
    line-height: 1.4;
}

.theme-baozipt.page-messages .pm-search-form__submit {
    flex: none;
    min-width: 68px;
    min-height: 34px;
    margin: 0 !important;
    padding: 6px 15px !important;
}

.theme-baozipt.page-messages #outer > .pm-mailbox-form {
    overflow-x: auto;
    border: 1px solid #ead2b1;
    border-radius: 10px;
    background: #fffdf9;
    box-shadow: 0 5px 16px rgba(157, 97, 37, .06);
}

.theme-baozipt.page-messages #outer > .pm-mailbox-form > .pm-message-list {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-messages .pm-message-list > tbody > tr > td {
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #f0dfc8 !important;
    background: rgba(255, 253, 249, .92) !important;
}

.theme-baozipt.page-messages .pm-message-list > tbody > tr:first-child > td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    color: #69462c !important;
    font-size: 11px;
    letter-spacing: .02em;
    background: #fff1de !important;
}

.theme-baozipt.page-messages .pm-message-list > tbody > tr:first-child > td:first-child {
    border-top-left-radius: 9px;
}

.theme-baozipt.page-messages .pm-message-list > tbody > tr:first-child > td:last-child {
    border-top-right-radius: 9px;
}

.theme-baozipt.page-messages .pm-message-list > tbody > tr:not(:first-child):not(.pm-message-actions):hover > td {
    background: #fff8ed !important;
}

.theme-baozipt.page-messages .pm-message-list .pm-message-status {
    width: 62px !important;
    min-width: 62px;
    padding: 7px 10px !important;
    text-align: center;
}

.theme-baozipt.page-messages img.pm-status-icon {
    display: block;
    width: 38px;
    height: 38px;
    max-width: none;
    margin: 0 auto;
    object-fit: contain;
    background: none !important;
}

.theme-baozipt.page-messages .pm-message-list .pm-message-actions > td {
    display: table-cell;
    padding: 8px 11px !important;
    color: #745c49 !important;
    background: #fff5e6 !important;
    border-radius: 0 0 9px 9px;
}

.theme-baozipt.page-messages .pm-message-actions__inner {
    display: flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.theme-baozipt.page-messages .pm-message-actions .btn,
.theme-baozipt.page-messages .pm-message-actions select {
    min-height: 32px;
    margin: 0 !important;
}

.theme-baozipt.page-messages .pm-message-filters {
    padding: 8px 11px !important;
    background: #fffbf4 !important;
}

.theme-baozipt.page-messages .pm-message-filters__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 10px;
}

.theme-baozipt.page-messages .pm-message-filter {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    color: #714b2e !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid #edd8bc;
    border-radius: 999px;
    background: #fffaf1;
}

.theme-baozipt.page-messages .pm-message-filter:hover,
.theme-baozipt.page-messages .pm-message-filter:focus-visible {
    color: #fff !important;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

.theme-baozipt.page-messages .pm-message-filter img.pm-status-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
}
.theme-baozipt.page-messages .pm-message-filter--manager { border-color: #e8bc85; }

.theme-baozipt.page-messages #outer > p.nexus-pagination {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px !important;
    margin-bottom: 9px !important;
    line-height: 1.35;
}

.theme-baozipt.page-messages #outer > p.nexus-pagination > font { display: contents; }
.theme-baozipt.page-messages #outer > p.nexus-pagination > br { display: none; }

.theme-baozipt.page-messages #outer > p.nexus-pagination a,
.theme-baozipt.page-messages #outer > p.nexus-pagination > b,
.theme-baozipt.page-messages #outer > p.nexus-pagination font.gray > b {
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.25;
}

/* Mailbox overview: one centered workspace with consistent cards and spacing. */
.theme-baozipt.page-messages .pm-center {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto 18px;
}

.theme-baozipt.page-messages .pm-center__hero {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 13px 18px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-messages .pm-center__hero-icon {
    display: flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebbd82;
    border-radius: 50%;
    background: #fff8eb;
}

.theme-baozipt.page-messages .pm-center__hero-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.theme-baozipt.page-messages .pm-center__hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.theme-baozipt.page-messages .pm-center__hero-copy small {
    color: #987357;
    font-size: 11px;
    font-weight: 700;
}

.theme-baozipt.page-messages .pm-center__hero-copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.25;
}

.theme-baozipt.page-messages .pm-center #pmboxnav {
    width: 100% !important;
    margin: 0 0 12px !important;
}

.theme-baozipt.page-messages .pm-center #pmboxmenu {
    display: flex;
    width: auto;
    max-width: 100%;
    gap: 10px;
    padding: 0;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.theme-baozipt.page-messages .pm-center #pmboxmenu a {
    min-height: 40px;
    padding: 8px 20px;
    color: #684326 !important;
    border: 1px solid #e6aa65 !important;
    border-radius: 9px;
    background: linear-gradient(180deg, #fffdf8, #fff3e3) !important;
    box-shadow: 0 3px 8px rgba(165, 91, 31, .08);
    transition: color .18s ease, border-color .18s ease, background .18s ease,
        box-shadow .18s ease;
}

.theme-baozipt.page-messages .pm-center #pmboxmenu li:not(.selected) a:hover,
.theme-baozipt.page-messages .pm-center #pmboxmenu li:not(.selected) a:focus-visible {
    color: #b74716 !important;
    border-color: #f28a42 !important;
    background: linear-gradient(180deg, #fff9ef, #ffe8ca) !important;
    box-shadow: 0 5px 12px rgba(217, 91, 24, .14);
}

.theme-baozipt.page-messages .pm-center #pmboxmenu li.selected a {
    color: #fff !important;
    border-color: var(--baozi-orange) !important;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14),
        0 5px 12px rgba(217, 91, 24, .2);
}

.theme-baozipt.page-messages .pm-center > .pm-search-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    width: 100%;
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #ead2b1;
    border-radius: 10px;
    background: #fffaf3;
}

.theme-baozipt.page-messages .pm-center .pm-search-card__title {
    border-right: 1px solid #efd9ba !important;
    border-radius: 0;
}

.theme-baozipt.page-messages .pm-center .pm-search-card__body { border-radius: 0; }

.theme-baozipt.page-messages .pm-center > .pm-mailbox-form {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    border: 1px solid #ead2b1;
    border-radius: 10px;
    background: #fffdf9;
    box-shadow: 0 5px 16px rgba(157, 97, 37, .06);
}

.theme-baozipt.page-messages .pm-center > .pm-mailbox-form > .pm-message-list {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-messages .pm-center > .nexus-pagination {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 !important;
}

/* Message detail: keep the legacy PM table inside the same centered workspace. */
.theme-baozipt.page-messages .pm-message-view__hero { min-height: 78px; }

.theme-baozipt.page-messages .pm-message-view__card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #e8c696 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow) !important;
}

.theme-baozipt.page-messages .pm-message-view__card > tbody > tr > td {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #ead8bd !important;
    border-bottom: 1px solid #ead8bd !important;
}

.theme-baozipt.page-messages .pm-message-view__card > tbody > tr > td:last-child { border-right: 0 !important; }
.theme-baozipt.page-messages .pm-message-view__card > tbody > tr:last-child > td { border-bottom: 0 !important; }

.theme-baozipt.page-messages .pm-message-view__meta-head > td {
    color: #6c421f !important;
    font-weight: 800;
    background: linear-gradient(90deg, #ffe8c5, #fff3df) !important;
}

.theme-baozipt.page-messages .pm-message-view__meta > td { background: #fffaf3 !important; }

.theme-baozipt.page-messages .pm-message-view__body-cell {
    min-height: 180px;
    padding: 22px 24px !important;
    line-height: 1.8;
    overflow-wrap: anywhere;
    background: #fffdf9 !important;
}

.theme-baozipt.page-messages .pm-message-view__actions > td {
    padding: 10px 12px !important;
    background: linear-gradient(90deg, #fff5e6, #fffaf2) !important;
}

.theme-baozipt.page-messages .pm-message-view__move-form,
.theme-baozipt.page-messages .pm-message-view__links {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.theme-baozipt.page-messages .pm-message-view__move-form { justify-content: flex-start; }
.theme-baozipt.page-messages .pm-message-view__links { justify-content: flex-end; }
.theme-baozipt.page-messages .pm-message-view__move-form .btn,
.theme-baozipt.page-messages .pm-message-view__move-form select { min-height: 36px; margin: 0 !important; }
.theme-baozipt.page-messages .pm-message-view__links a { color: #c44712; font-weight: 700; }

.theme-baozipt.page-messages .pm-empty-state {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 24px;
    color: #80644f;
    border: 1px dashed #e2bc8b;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 250, 242, .82), rgba(255, 245, 228, .72));
}

.theme-baozipt.page-messages .pm-empty-state img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: .86;
}

.theme-baozipt.page-messages .pm-empty-state strong {
    color: #74553d;
    font-size: 14px;
}

@media (max-width: 760px) {
    .theme-baozipt.page-messages .pm-center__hero { min-height: 72px; gap: 11px; padding: 10px 12px; }
    .theme-baozipt.page-messages .pm-center__hero-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .theme-baozipt.page-messages .pm-center__hero-icon img { width: 40px; height: 40px; }
    .theme-baozipt.page-messages .pm-center__hero-copy strong { font-size: 22px; }
    .theme-baozipt.page-messages .pm-center > .pm-search-card { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-messages .pm-center .pm-search-card__title { display: none; }
    .theme-baozipt.page-messages .pm-center .pm-search-card__body { padding: 9px !important; }
    .theme-baozipt.page-messages .pm-empty-state { min-height: 150px; }
    .theme-baozipt.page-messages .pm-message-view__body-cell { padding: 16px !important; }
    .theme-baozipt.page-messages .pm-message-view__actions > td { display: block; width: 100% !important; border-right: 0 !important; }
    .theme-baozipt.page-messages .pm-message-view__links { justify-content: flex-start; }
}

/* Rules and FAQ: readable paper sections instead of stacked Classic tables. */
.theme-baozipt.page-rules .baozi-info-header,
.theme-baozipt.page-faq .baozi-info-header {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    margin: 0 0 14px;
    padding: 13px 18px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #fff0da, #fffaf1 68%);
    box-shadow: 0 6px 20px rgba(157, 97, 37, .07);
}

.theme-baozipt.page-rules .baozi-info-header__icon,
.theme-baozipt.page-faq .baozi-info-header__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8b32, #eb510e);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .32);
}

.theme-baozipt.page-rules .baozi-info-header > div,
.theme-baozipt.page-faq .baozi-info-header > div { min-width: 0; }

.theme-baozipt.page-rules .baozi-info-header h1,
.theme-baozipt.page-faq .baozi-info-header h1 {
    margin: 0;
    padding: 0;
    color: #30251c;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 24px;
    line-height: 1.25;
}

.theme-baozipt.page-rules .baozi-info-header small,
.theme-baozipt.page-faq .baozi-info-header small {
    display: block;
    margin-top: 3px;
    color: #866c56;
    font-size: 12px;
    line-height: 1.5;
}

.theme-baozipt.page-rules .nexus-main-frame,
.theme-baozipt.page-faq .nexus-main-frame {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    table-layout: auto;
}

.theme-baozipt.page-rules .nexus-main-frame > tbody > tr > td.embedded,
.theme-baozipt.page-faq .nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-rules .nexus-main-frame > tbody > tr > td.embedded > h2,
.theme-baozipt.page-faq .nexus-main-frame > tbody > tr > td.embedded > h2 {
    display: flex;
    min-height: 43px;
    align-items: center;
    margin: 0 !important;
    padding: 9px 15px !important;
    color: #623b1e !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.4;
    text-align: left !important;
    overflow-wrap: anywhere;
    border: 1px solid #e8c696;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, #ffedd4, #fff8ed) !important;
}

.theme-baozipt.page-rules .nexus-frame,
.theme-baozipt.page-faq .nexus-frame,
.theme-baozipt.page-rules .auth-layout--portal .nexus-frame,
.theme-baozipt.page-faq .auth-layout--portal .nexus-frame {
    width: 100% !important;
    margin: 0 0 13px !important;
    table-layout: auto;
    overflow: hidden;
    border: 1px solid #e8c696 !important;
    border-radius: 0 0 10px 10px !important;
    background: rgba(255, 252, 246, .92) !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt.page-rules .nexus-frame td.text,
.theme-baozipt.page-faq .nexus-frame td.text,
.theme-baozipt.page-rules .auth-layout--portal .nexus-frame td.text,
.theme-baozipt.page-faq .auth-layout--portal .nexus-frame td.text {
    padding: 15px 18px !important;
    color: #57483b;
    font-size: 13px;
    line-height: 1.85;
    border: 0 !important;
    background: transparent !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.theme-baozipt.page-rules .nexus-frame td.text p,
.theme-baozipt.page-faq .nexus-frame td.text p { margin: 7px 0; }

.theme-baozipt.page-rules .nexus-frame td.text ul,
.theme-baozipt.page-rules .nexus-frame td.text ol,
.theme-baozipt.page-faq .nexus-frame td.text ul,
.theme-baozipt.page-faq .nexus-frame td.text ol {
    margin: 7px 0;
    padding-left: 24px;
}

.theme-baozipt.page-rules .nexus-frame td.text li,
.theme-baozipt.page-faq .nexus-frame td.text li { margin: 4px 0; }

.theme-baozipt.page-rules .nexus-frame td.text a,
.theme-baozipt.page-faq .nexus-frame td.text a {
    color: #c9480e;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.theme-baozipt.page-faq .nexus-frame td.text > ul {
    margin: 0 0 9px;
    padding: 10px 13px 10px 32px;
    border: 1px solid #f0dcc0;
    border-radius: 8px;
    background: #fff9ef;
}

.theme-baozipt.page-faq .nexus-frame td.text > ul > li > a:first-child {
    color: #653f23;
    font-size: 14px;
}

.theme-baozipt.page-faq .nexus-frame td.text > ul ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 22px;
    margin-top: 6px;
}

.theme-baozipt.page-faq .nexus-frame td.text span[id^="id"] > b {
    display: inline-block;
    margin: 5px 0 2px;
    padding-left: 12px;
    color: #4d3320;
    font-size: 14px;
    line-height: 1.55;
    border-left: 3px solid var(--baozi-orange);
}

.theme-baozipt.page-faq .nexus-main-frame h2 a[href="#top"] {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
}

.theme-baozipt.page-rules.is-guest .nexus-frame td.text,
.theme-baozipt.page-faq.is-guest .nexus-frame td.text { font-size: 12px; }

/* User control panel: remove Classic frame lines and keep every subpage on paper cards. */
.theme-baozipt.page-usercp #outer > form > table,
.theme-baozipt.page-usercp .usercp-settings-content > form > table,
.theme-baozipt.page-usercp #outer > table:not(.nexus-message):not(.nexus-frame) {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 14px !important;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-usercp #outer > form > table,
.theme-baozipt.page-usercp .usercp-settings-content > form > table {
    table-layout: auto !important;
}

.theme-baozipt.page-usercp #outer > form > table > tbody > tr > td.rowhead,
.theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td.rowhead {
    width: 190px !important;
    min-width: 190px;
    padding: 14px 16px !important;
    color: #69462c;
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    white-space: normal !important;
    background: linear-gradient(90deg, #fff0d9, #fff6e8) !important;
}

.theme-baozipt.page-usercp #outer > form > table > tbody > tr > td.rowfollow,
.theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td.rowfollow {
    width: auto !important;
    min-width: 0;
    padding: 13px 17px !important;
    line-height: 1.65;
    background: #fffaf3 !important;
}

.theme-baozipt.page-usercp #outer > form > table > tbody > tr > td[colspan="2"],
.theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td[colspan="2"] {
    width: auto !important;
    padding: 12px 16px !important;
    text-align: center;
}

.theme-baozipt.page-usercp #outer > form > table > tbody > tr:last-child > td,
.theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr:last-child > td { border-bottom: 0 !important; }
.theme-baozipt.page-usercp #outer > form img[name="avatarimg"] {
    width: 150px;
    height: 150px;
    margin-bottom: 9px;
    object-fit: cover;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fff4e4;
}

.theme-baozipt.page-usercp .account-more {
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-usercp .account-more > summary {
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    background: linear-gradient(90deg, #ffecd1, #fff9ee);
}

.theme-baozipt.page-usercp .account-more > table {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.theme-baozipt.page-usercp .account-more > table > tbody > tr > td.rowhead {
    width: 210px !important;
    min-width: 210px;
    padding: 13px 17px !important;
    color: #65452f;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    white-space: normal !important;
    background: linear-gradient(90deg, #fff0d9, #fff7eb) !important;
}
.theme-baozipt.page-usercp .account-more > table > tbody > tr > td.rowfollow,
.theme-baozipt.page-usercp .account-more > table > tbody > tr > td:not([class]) {
    width: auto !important;
    min-width: 0;
    padding: 13px 18px !important;
    line-height: 1.65;
    overflow-wrap: anywhere;
    background: #fffaf3 !important;
}
.theme-baozipt.page-usercp .account-more > table > tbody > tr:hover > td {
    background-color: #fff4e2 !important;
}
.theme-baozipt.page-usercp .account-more > table img:not(.staff_delete) {
    height: auto;
    max-width: min(180px, 100%);
    border-radius: 9px;
}

.theme-baozipt.page-usercp .account-more > table + table { border-top: 1px solid var(--baozi-line-soft) !important; }
.theme-baozipt.page-usercp .account-more > table td:first-child { border-left: 0 !important; }
.theme-baozipt.page-usercp .account-more > table td:last-child { border-right: 0 !important; }
.theme-baozipt.page-usercp .account-more > table:last-child tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt.page-usercp .account-recent-topics {
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-usercp .account-recent-topics > h2 {
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 16px;
    color: #5b402d;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, #ffecd0, #fff8ec);
}
.theme-baozipt.page-usercp .account-recent-topics__table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}
.theme-baozipt.page-usercp .account-recent-topics__table {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    table-layout: auto;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-usercp .account-recent-topics__table td {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ead8bd !important;
    border-left: 0 !important;
    vertical-align: middle;
}
.theme-baozipt.page-usercp .account-recent-topics__table td + td { border-left: 1px solid #ead8bd !important; }
.theme-baozipt.page-usercp .account-recent-topics__table td.colhead {
    color: #65452f;
    font-weight: 800;
    background: #fff0da !important;
}
.theme-baozipt.page-usercp .account-recent-topics__table tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt.page-usercp #outer form input[type="text"],
.theme-baozipt.page-usercp #outer form input[type="password"],
.theme-baozipt.page-usercp #outer form input[type="email"],
.theme-baozipt.page-usercp #outer form select,
.theme-baozipt.page-usercp #outer form textarea { max-width: 100%; }

/* Personal settings: turn the legacy two-column table into a readable account form. */
.theme-baozipt.page-usercp .usercp-settings-content--personal {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-usercp .usercp-settings-heading {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 13px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, #ffecd0, #fff9ef);
}

.theme-baozipt.page-usercp .usercp-settings-heading__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 23px;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8127, var(--baozi-orange));
    box-shadow: 0 6px 15px rgba(218, 76, 12, .18);
}

.theme-baozipt.page-usercp .usercp-settings-heading h2 {
    margin: 0;
    color: #4e3523;
    font-size: 21px;
    line-height: 1.3;
}

.theme-baozipt.page-usercp .usercp-settings-heading p {
    margin: 3px 0 0;
    color: #806d5c;
    font-size: 12px;
    line-height: 1.5;
}

.theme-baozipt.page-usercp .usercp-settings-content--personal > .usercp-form--personal { padding: 0; }

.theme-baozipt.page-usercp .usercp-settings-content--personal > .usercp-form--personal > table {
    margin: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.theme-baozipt.page-usercp .usercp-form--personal > table > tbody > tr > td.rowhead {
    width: 174px !important;
    min-width: 174px;
    padding: 17px 18px !important;
    color: #634329;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #ead4b4 !important;
    background: linear-gradient(90deg, #fff0d8, #fff7ea) !important;
}

.theme-baozipt.page-usercp .usercp-form--personal > table > tbody > tr > td.rowfollow {
    padding: 15px 19px !important;
    color: #493d33;
    font-size: 13px;
    line-height: 1.95;
    vertical-align: top;
    background: #fffaf3 !important;
}

.theme-baozipt.page-usercp .usercp-form--personal > table > tbody > tr:hover > td.rowfollow { background: #fff7ec !important; }
.theme-baozipt.page-usercp .usercp-form--personal font.small,
.theme-baozipt.page-usercp .usercp-form--personal font[size="1"] {
    display: inline-block;
    max-width: 760px;
    margin-top: 4px;
    color: #8a7561;
    font-size: 11px !important;
    line-height: 1.65;
}

.theme-baozipt.page-usercp .usercp-form--personal input[type="checkbox"],
.theme-baozipt.page-usercp .usercp-form--personal input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 11px;
    vertical-align: -4px;
}

.theme-baozipt.page-usercp .usercp-form--personal td.rowfollow > input[type="checkbox"]:first-child,
.theme-baozipt.page-usercp .usercp-form--personal td.rowfollow > input[type="radio"]:first-child { margin-left: 0; }

.theme-baozipt.page-usercp .usercp-form--personal select,
.theme-baozipt.page-usercp .usercp-form--personal input[type="text"],
.theme-baozipt.page-usercp .usercp-form--personal textarea {
    min-height: 42px;
    padding: 9px 12px;
    color: #3f342b;
    font-size: 13px;
    line-height: 1.5;
    border-color: #dfb47d !important;
    border-radius: 9px;
    background: #fffdfa !important;
}

.theme-baozipt.page-usercp .usercp-form--personal select[name="tracker_url_id"],
.theme-baozipt.page-usercp .usercp-form--personal select[name="country"] { width: min(100%, 620px); }

.theme-baozipt.page-usercp .usercp-form--personal select[name="download"],
.theme-baozipt.page-usercp .usercp-form--personal select[name="upload"] { width: min(100%, 150px); margin: 2px 7px 2px 4px; }
.theme-baozipt.page-usercp .usercp-form--personal select[name="isp"] { width: min(100%, 190px); margin: 2px 0 2px 4px; }

.theme-baozipt.page-usercp .usercp-form--personal img[name="avatarimg"] {
    width: 120px;
    height: 120px;
    margin: 1px 0 12px;
    padding: 4px;
    object-fit: cover;
    border: 2px solid #ef9b48;
    border-radius: 50%;
    background: #ffe5b9;
    box-shadow: 0 7px 18px rgba(131, 80, 29, .12);
}

.theme-baozipt.page-usercp .usercp-form--personal select[name="savatar"] { width: min(100%, 190px); margin: 0 8px 7px 0; }
.theme-baozipt.page-usercp .usercp-form--personal input[name="avatar"] { width: min(100%, 470px) !important; margin-bottom: 7px; }
.theme-baozipt.page-usercp .usercp-form--personal textarea[name="info"] { width: 100% !important; min-height: 190px; resize: vertical; }

.theme-baozipt.page-usercp .usercp-form--personal input[type="submit"] {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 9px;
    box-shadow: 0 7px 17px rgba(218, 76, 12, .14);
}

.theme-baozipt.page-usercp .usercp-form--personal td.heading font {
    display: inline-flex;
    padding: 7px 13px;
    color: #1d7b3e !important;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #b9ddc2;
    border-radius: 8px;
    background: #e9f6ec;
}

/* Tracker/site settings: keep every legacy preference while presenting it as themed groups. */
.theme-baozipt.page-usercp .usercp-settings-content--tracker {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-usercp .usercp-settings-content--tracker > .usercp-form--tracker { padding: 0; }

.theme-baozipt.page-usercp .usercp-form--tracker > table {
    margin: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr > td.rowhead {
    width: 180px !important;
    min-width: 180px;
    padding: 16px 18px !important;
    color: #634329;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #ead4b4 !important;
    background: linear-gradient(90deg, #fff0d8, #fff7ea) !important;
}

.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr:first-child > td.rowhead {
    white-space: nowrap !important;
}

.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 14px 18px !important;
    color: #493d33;
    font-size: 13px;
    line-height: 1.85;
    vertical-align: top;
    background: #fffaf3 !important;
}

.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr:hover > td.rowfollow { background: #fff7ec !important; }

.theme-baozipt.page-usercp .usercp-form--tracker font.small,
.theme-baozipt.page-usercp .usercp-form--tracker font[size="1"] {
    color: #8a7561;
    font-size: 11px !important;
    line-height: 1.65;
}

.theme-baozipt.page-usercp .usercp-form--tracker select,
.theme-baozipt.page-usercp .usercp-form--tracker input[type="text"] {
    width: min(100%, 310px);
    min-height: 42px;
    margin: 3px 6px;
    padding: 9px 12px;
    color: #3f342b;
    font-size: 13px;
    line-height: 1.5;
    border-color: #dfb47d !important;
    border-radius: 9px;
    background: #fffdfa !important;
}

.theme-baozipt.page-usercp .usercp-form--tracker input[type="text"][size="5"] { width: 88px; text-align: center; }

.theme-baozipt.page-usercp .usercp-form--tracker input[type="checkbox"],
.theme-baozipt.page-usercp .usercp-form--tracker input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 10px;
    vertical-align: -4px;
    accent-color: var(--baozi-orange);
}

.theme-baozipt.page-usercp .usercp-form--tracker td.rowfollow > input[type="checkbox"],
.theme-baozipt.page-usercp .usercp-form--tracker td.rowfollow > input[type="radio"] { margin-left: 0; }

.theme-baozipt.page-usercp .tracker-category-groups {
    display: grid;
    min-width: 0;
    gap: 13px;
}

.theme-baozipt.page-usercp .tracker-category-card,
.theme-baozipt.page-usercp .tracker-extra-settings {
    min-width: 0;
    padding: 12px;
    border: 1px solid #ead1ad;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 249, 238, .98), rgba(255, 242, 219, .74));
    box-shadow: 0 5px 14px rgba(113, 69, 27, .05);
}

.theme-baozipt.page-usercp .tracker-category-card table,
.theme-baozipt.page-usercp .tracker-category-card tbody {
    display: block;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-usercp .tracker-category-card caption,
.theme-baozipt.page-usercp .tracker-extra-settings caption {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1px 2px 10px;
    color: #4e3523;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
    text-align: left;
}

.theme-baozipt.page-usercp .tracker-category-card caption font,
.theme-baozipt.page-usercp .tracker-extra-settings caption font { color: inherit; font: inherit; }
.theme-baozipt.page-usercp .tracker-category-card caption:not(:has(font:not(:empty))) { display: none; }

.theme-baozipt.page-usercp .tracker-category-card tr {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 7px;
    margin: 0 0 8px;
}

.theme-baozipt.page-usercp .tracker-category-card tr:has(> td.embedded) {
    display: block;
    margin: 11px 0 7px;
}

.theme-baozipt.page-usercp .tracker-category-card tr:first-of-type:has(> td.embedded) { margin-top: 0; }

.theme-baozipt.page-usercp .tracker-category-card td {
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-usercp .tracker-category-card td.embedded {
    display: block;
    width: 100% !important;
    padding: 7px 10px !important;
    color: #a54514;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
    border-left: 3px solid var(--baozi-orange) !important;
    border-radius: 0 7px 7px 0;
    background: linear-gradient(90deg, #ffe4bb, rgba(255, 244, 225, .35)) !important;
}

.theme-baozipt.page-usercp .tracker-category-card td.bottom {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 7px;
    padding: 7px 9px !important;
    color: #554334;
    font-size: 12px;
    border: 1px solid #ecd8ba !important;
    border-radius: 8px;
    background: rgba(255, 253, 248, .9) !important;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.theme-baozipt.page-usercp .tracker-category-card td.bottom:hover {
    border-color: #efa35f !important;
    background: #fff5e5 !important;
    transform: translateY(-1px);
}

.theme-baozipt.page-usercp .tracker-category-card td.bottom input[type="checkbox"] {
    flex: 0 0 18px;
    margin: 0;
}

.theme-baozipt.page-usercp .tracker-category-card td.bottom label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.theme-baozipt.page-usercp .tracker-category-card td.bottom img {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    border-radius: 6px;
    background-color: transparent !important;
    background-repeat: no-repeat;
}

.theme-baozipt.page-usercp .tracker-extra-settings table,
.theme-baozipt.page-usercp .tracker-extra-settings tbody {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-usercp .tracker-extra-settings table { table-layout: auto !important; }

.theme-baozipt.page-usercp .tracker-extra-settings tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.theme-baozipt.page-usercp .tracker-extra-settings td.bottom {
    display: block;
    min-width: 0;
    padding: 11px !important;
    color: #594333;
    border: 1px solid #ecd6b4 !important;
    border-radius: 8px;
    background: rgba(255, 253, 248, .92) !important;
}

.theme-baozipt.page-usercp .tracker-extra-settings td.bottom b {
    display: block;
    margin-bottom: 5px;
    color: #704a2c;
    font-size: 12px;
}

.theme-baozipt.page-usercp .tracker-extra-settings select { width: 100%; margin: 0; }

.theme-baozipt.page-usercp .tracker-browse-settings {
    display: grid;
    min-width: 0;
    gap: 11px;
}

.theme-baozipt.page-usercp .tracker-browse-settings__warning {
    margin: 0;
    padding: 9px 12px;
    color: #8c4b25;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.65;
    border: 1px solid #efc690;
    border-radius: 8px;
    background: #fff1dc;
}

.theme-baozipt.page-usercp .tracker-browse-settings__grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.theme-baozipt.page-usercp .tracker-browse-settings__grid > section {
    min-width: 0;
    padding: 11px 12px;
    color: #574536;
    line-height: 1.75;
    border: 1px solid #ecd6b4;
    border-radius: 9px;
    background: rgba(255, 253, 248, .9);
}

.theme-baozipt.page-usercp .tracker-browse-settings__grid > section:nth-child(3) { grid-column: 1 / -1; }

.theme-baozipt.page-usercp .tracker-browse-settings h3 {
    margin: 0 0 7px;
    color: #70472b;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

.theme-baozipt.page-usercp .tracker-browse-settings label {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 3px;
    margin: 3px 0;
    cursor: pointer;
}

.theme-baozipt.page-usercp .tracker-browse-settings input[type="checkbox"],
.theme-baozipt.page-usercp .tracker-browse-settings input[type="radio"] { flex: 0 0 18px; margin: 0 5px 0 0; }

.theme-baozipt.page-usercp .tracker-browse-settings .tracker-option-line {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px 12px;
    align-items: center;
    margin: 4px 0;
}

.theme-baozipt.page-usercp .tracker-browse-settings .tracker-option-line label { margin: 0; }
.theme-baozipt.page-usercp .tracker-browse-settings select[name="showlastcom"] { width: 112px; margin: 0; }
.theme-baozipt.page-usercp .tracker-browse-settings img.download,
.theme-baozipt.page-usercp .tracker-browse-settings img.bookmark { flex: 0 0 auto; background-color: transparent !important; }

.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr:last-child td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 0 !important;
}

.theme-baozipt.page-usercp .usercp-form--tracker input[type="submit"] {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 9px;
    box-shadow: 0 7px 17px rgba(218, 76, 12, .14);
}

/* Forum and security settings share the same account-form language. */
.theme-baozipt.page-usercp .usercp-settings-content--forum,
.theme-baozipt.page-usercp .usercp-settings-content--security {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-usercp .usercp-settings-content--forum > .usercp-form--forum,
.theme-baozipt.page-usercp .usercp-settings-content--security > .usercp-form--security { padding: 0; }

.theme-baozipt.page-usercp .usercp-form--forum > table,
.theme-baozipt.page-usercp .usercp-form--security > table {
    margin: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

/* The settings card is the only outer frame.  Native NexusPHP cells used to
   draw another complete table frame inside it, producing doubled vertical and
   horizontal lines.  Keep only one separator per row and one between columns. */
.theme-baozipt.page-usercp .usercp-settings-content > .usercp-form > table > tbody > tr > td {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ead4b4 !important;
    border-left: 0 !important;
}

.theme-baozipt.page-usercp .usercp-settings-content > .usercp-form > table > tbody > tr > td.rowhead {
    border-right: 1px solid #ead4b4 !important;
}

.theme-baozipt.page-usercp .usercp-settings-content > .usercp-form > table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

/* Tracker/forum/security still carry a fixed 1200px width on the legacy table.
   Render their two real cells as an explicit grid so the browser cannot reserve
   an additional intrinsic table column or redraw the removed inner frame. */
body.theme-baozipt.page-usercp .usercp-settings-content--tracker > form.usercp-form--tracker,
body.theme-baozipt.page-usercp .usercp-settings-content--forum > form.usercp-form--forum,
body.theme-baozipt.page-usercp .usercp-settings-content--security > form.usercp-form--security {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-usercp .usercp-form--tracker > table,
body.theme-baozipt.page-usercp .usercp-form--forum > table,
body.theme-baozipt.page-usercp .usercp-form--security > table,
body.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody,
body.theme-baozipt.page-usercp .usercp-form--forum > table > tbody,
body.theme-baozipt.page-usercp .usercp-form--security > table > tbody {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr,
body.theme-baozipt.page-usercp .usercp-form--forum > table > tbody > tr,
body.theme-baozipt.page-usercp .usercp-form--security > table > tbody > tr {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 180px minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 0;
}

body.theme-baozipt.page-usercp .usercp-form--tracker > table > tbody > tr > td,
body.theme-baozipt.page-usercp .usercp-form--forum > table > tbody > tr > td,
body.theme-baozipt.page-usercp .usercp-form--security > table > tbody > tr > td {
    width: auto !important;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.theme-baozipt.page-usercp .usercp-form--forum > table > tbody > tr > td.rowhead,
.theme-baozipt.page-usercp .usercp-form--security > table > tbody > tr > td.rowhead {
    width: 180px !important;
    min-width: 180px;
    padding: 16px 18px !important;
    color: #634329;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #ead4b4 !important;
    background: linear-gradient(90deg, #fff0d8, #fff7ea) !important;
}

.theme-baozipt.page-usercp .usercp-form--forum > table > tbody > tr > td.rowfollow,
.theme-baozipt.page-usercp .usercp-form--security > table > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 14px 18px !important;
    color: #493d33;
    font-size: 13px;
    line-height: 1.85;
    vertical-align: top;
    background: #fffaf3 !important;
}

.theme-baozipt.page-usercp .usercp-form--forum > table > tbody > tr:hover > td.rowfollow,
.theme-baozipt.page-usercp .usercp-form--security > table > tbody > tr:hover > td.rowfollow { background: #fff7ec !important; }

.theme-baozipt.page-usercp .usercp-form--forum font.small,
.theme-baozipt.page-usercp .usercp-form--security font.small,
.theme-baozipt.page-usercp .usercp-form--forum font[size="1"],
.theme-baozipt.page-usercp .usercp-form--security font[size="1"] {
    display: inline-block;
    max-width: 760px;
    margin-top: 4px;
    color: #8a7561;
    font-size: 11px !important;
    line-height: 1.65;
}

.theme-baozipt.page-usercp .usercp-form--forum input[type="text"],
.theme-baozipt.page-usercp .usercp-form--forum textarea,
.theme-baozipt.page-usercp .usercp-form--security input[type="text"],
.theme-baozipt.page-usercp .usercp-form--security input[type="email"],
.theme-baozipt.page-usercp .usercp-form--security input[type="password"],
.theme-baozipt.page-usercp .usercp-form--security select {
    min-height: 42px;
    padding: 9px 12px;
    color: #3f342b;
    font-size: 13px;
    line-height: 1.5;
    border-color: #dfb47d !important;
    border-radius: 9px;
    background: #fffdfa !important;
}

.theme-baozipt.page-usercp .usercp-form--forum input[type="text"] {
    width: min(100%, 130px);
    margin-right: 8px;
    text-align: center;
}

.theme-baozipt.page-usercp .usercp-form--forum textarea[name="signature"] {
    display: block;
    width: 100% !important;
    min-height: 190px;
    margin-bottom: 6px;
    resize: vertical;
}

.theme-baozipt.page-usercp .usercp-form--security input[type="text"],
.theme-baozipt.page-usercp .usercp-form--security input[type="email"],
.theme-baozipt.page-usercp .usercp-form--security input[type="password"] { width: min(100%, 420px) !important; }

.theme-baozipt.page-usercp .usercp-form--forum input[type="checkbox"],
.theme-baozipt.page-usercp .usercp-form--forum input[type="radio"],
.theme-baozipt.page-usercp .usercp-form--security input[type="checkbox"],
.theme-baozipt.page-usercp .usercp-form--security input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 7px 0 13px;
    vertical-align: -4px;
    accent-color: var(--baozi-orange);
}

.theme-baozipt.page-usercp .usercp-form--forum td.rowfollow > input[type="checkbox"]:first-child,
.theme-baozipt.page-usercp .usercp-form--forum td.rowfollow > input[type="radio"]:first-child,
.theme-baozipt.page-usercp .usercp-form--security td.rowfollow > input[type="checkbox"]:first-child,
.theme-baozipt.page-usercp .usercp-form--security td.rowfollow > input[type="radio"]:first-child { margin-left: 0; }

.theme-baozipt.page-usercp .usercp-form--forum td.heading,
.theme-baozipt.page-usercp .usercp-form--security td.heading {
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid #cce4d0 !important;
    background: #eff8f0 !important;
}

.theme-baozipt.page-usercp .usercp-form--forum td.heading font,
.theme-baozipt.page-usercp .usercp-form--security td.heading font {
    display: inline-flex;
    padding: 6px 12px;
    color: #1d7b3e !important;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #b9ddc2;
    border-radius: 8px;
    background: #e5f4e8;
}

.theme-baozipt.page-usercp .usercp-form--forum input[type="submit"],
.theme-baozipt.page-usercp .usercp-form--security input[type="submit"],
.theme-baozipt.page-usercp .usercp-form--security input[type="button"] {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 9px;
    box-shadow: 0 7px 17px rgba(218, 76, 12, .14);
}

.theme-baozipt.page-usercp .usercp-form--security .security-two-step {
    display: grid;
    max-width: 820px;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ead1ad;
    border-radius: 10px;
    background: linear-gradient(145deg, #fffdf8, #fff0d9);
}

.theme-baozipt.page-usercp .usercp-form--security .security-two-step__qr {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ead8bc;
    border-radius: 9px;
    background: #fff !important;
}

.theme-baozipt.page-usercp .usercp-form--security .security-two-step__qr img {
    display: block;
    width: 170px;
    height: 170px;
    object-fit: contain;
    background: #fff !important;
}

.theme-baozipt.page-usercp .usercp-form--security .security-two-step__content {
    min-width: 0;
    color: #65513f;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-usercp .usercp-form--security .security-two-step__content code {
    display: inline-block;
    max-width: 100%;
    margin: 4px 0;
    padding: 5px 8px;
    color: #a64413;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    border: 1px dashed #dfad73;
    border-radius: 6px;
    background: #fff6e8;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-usercp .usercp-form--security .security-confirm-row > td.rowhead {
    color: #8d3c17;
    background: linear-gradient(90deg, #ffe0b9, #fff0db) !important;
}

.theme-baozipt.page-usercp .usercp-form--security .security-confirm-row > td.rowfollow { background: #fff5e6 !important; }

/* Staff mailbox */
.theme-baozipt.page-staffbox #outer { overflow-x: visible; }

.theme-baozipt.page-staffbox .staffbox-center {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto 18px;
}

.theme-baozipt.page-staffbox .staffbox-page-title {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px !important;
    padding: 12px 18px;
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 26px;
    line-height: 1.3;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: 0 5px 17px rgba(129, 78, 28, .055);
}

.theme-baozipt.page-staffbox .staffbox-view-title {
    flex-wrap: wrap;
    gap: 0 4px;
}

.theme-baozipt.page-staffbox .staffbox-view-card {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #e9bf8c !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-staffbox .staffbox-list-card {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e9bf8c;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-staffbox .staffbox-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #e6a05e #fff1dc;
}

.theme-baozipt.page-staffbox .staffbox-list {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-staffbox .staffbox-col-sender { width: 140px; }
.theme-baozipt.page-staffbox .staffbox-col-time { width: 150px; }
.theme-baozipt.page-staffbox .staffbox-col-status { width: 145px; }
.theme-baozipt.page-staffbox .staffbox-col-action { width: 76px; }

.theme-baozipt.page-staffbox .staffbox-list > thead td {
    height: 46px;
    padding: 10px 12px !important;
    color: #6c421f !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    border: 0 !important;
    border-right: 1px solid #ecd4b1 !important;
    border-bottom: 1px solid #e8cda9 !important;
    background: linear-gradient(90deg, #ffe8c5, #fff3df) !important;
}

.theme-baozipt.page-staffbox .staffbox-list > thead td:last-child { border-right: 0 !important; }

.theme-baozipt.page-staffbox .staffbox-list > tbody td {
    height: 58px;
    padding: 11px 12px !important;
    color: #493b2f;
    line-height: 1.5;
    vertical-align: middle;
    border: 0 !important;
    border-right: 1px solid #f0dfc8 !important;
    border-bottom: 1px solid #f0dfc8 !important;
    background: rgba(255, 253, 249, .94) !important;
}

.theme-baozipt.page-staffbox .staffbox-list > tbody td:last-child { border-right: 0 !important; }
.theme-baozipt.page-staffbox .staffbox-list > tbody tr:last-child td { border-bottom: 0 !important; }

.theme-baozipt.page-staffbox .staffbox-list > tbody tr:hover td {
    background: #fff6e9 !important;
}

.theme-baozipt.page-staffbox .staffbox-message-row.is-pending td:first-child {
    box-shadow: inset 3px 0 0 var(--baozi-orange);
}

.theme-baozipt.page-staffbox .staffbox-subject a {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #b84817;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-staffbox .staffbox-subject a:hover,
.theme-baozipt.page-staffbox .staffbox-subject a:focus-visible { color: var(--baozi-orange); }
.theme-baozipt.page-staffbox .staffbox-sender { font-weight: 700; }
.theme-baozipt.page-staffbox .staffbox-time { color: #756657 !important; white-space: nowrap; }

.theme-baozipt.page-staffbox .staffbox-status {
    display: inline-flex;
    min-width: 36px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 999px;
}

.theme-baozipt.page-staffbox .staffbox-status.is-answered {
    color: #26723d;
    border-color: #b9d8be;
    background: #edf7ee;
}

.theme-baozipt.page-staffbox .staffbox-status.is-pending {
    color: #c44918;
    border-color: #f0bd8d;
    background: #fff0dc;
}

.theme-baozipt.page-staffbox .staffbox-answered-by {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-staffbox .staffbox-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--baozi-orange);
    cursor: pointer;
}

.theme-baozipt.page-staffbox .staffbox-batch-actions {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 13px;
    border-top: 1px solid #e9d3b5;
    background: linear-gradient(90deg, #fff5e5, #fffaf2);
}

.theme-baozipt.page-staffbox .staffbox-button {
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 16px !important;
    border-radius: 8px;
}

.theme-baozipt.page-staffbox .staffbox-button--secondary {
    color: #754c2c !important;
    border-color: #e3b47d !important;
    background: linear-gradient(180deg, #fffdf8, #fff0de) !important;
}

.theme-baozipt.page-staffbox .staffbox-button--danger {
    border-color: #c9461c !important;
    background: linear-gradient(135deg, #f06b35, #c9461c) !important;
}

.theme-baozipt.page-staffbox .staffbox-pagination {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0;
}

.theme-baozipt.page-staffbox .staffbox-pagination .nexus-pagination {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
    line-height: 1.35;
}

.theme-baozipt.page-staffbox .staffbox-pagination .nexus-pagination > font { display: contents; }
.theme-baozipt.page-staffbox .staffbox-pagination .nexus-pagination br { display: none; }

/* New private-message toast */
.theme-baozipt .baozi-pm-toast {
    position: fixed;
    z-index: 10020;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--baozi-toast-offset, 0px));
    display: grid;
    width: min(390px, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr) 34px;
    overflow: hidden;
    color: #4b3320;
    border: 1px solid #e99a51;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7e9, #ffe6c1);
    box-shadow: 0 18px 48px rgba(81, 43, 13, .28);
    animation: baozi-toast-in .28s ease-out both;
}

.theme-baozipt .baozi-pm-toast__link {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 14px 8px 14px 14px;
    color: inherit;
}

.theme-baozipt .baozi-pm-toast__icon {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 23px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff851f, #e84f0c);
    box-shadow: 0 5px 13px rgba(219, 75, 12, .24);
}

.theme-baozipt .baozi-pm-toast__link > span:last-child { min-width: 0; }
.theme-baozipt .baozi-pm-toast__link strong { display: block; color: #b93f06; font-size: 14px; line-height: 1.35; }
.theme-baozipt .baozi-pm-toast__link small { display: block; margin-top: 3px; color: #6e5a48; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.theme-baozipt .baozi-pm-toast__link:hover strong { color: var(--baozi-orange); }

.theme-baozipt .baozi-pm-toast__close {
    display: flex;
    width: 28px;
    height: 28px;
    min-height: 28px !important;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin: 7px 6px 0 0;
    padding: 0;
    color: #8d6d53 !important;
    font-size: 20px;
    line-height: 1;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    cursor: pointer;
}

.theme-baozipt .baozi-pm-toast__close:hover,
.theme-baozipt .baozi-pm-toast__close:focus-visible { color: #fff !important; background: var(--baozi-orange) !important; }

@keyframes baozi-toast-in {
    from { opacity: 0; transform: translate3d(24px, 16px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Original NexusPHP browser/client recommendation, moved into the footer. */
.theme-baozipt.is-authenticated #footer { min-height: 150px; }
.theme-baozipt.is-authenticated .footer-inner { min-height: 126px; }
.theme-baozipt .footer-browser-note {
    margin: 0 0 11px;
    color: #3f4850;
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
}

.theme-baozipt .footer-browser-note a {
    display: inline-flex;
    align-items: center;
    margin: 0 3px;
    vertical-align: middle;
}

.theme-baozipt .footer-browser-note .img-browser {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 760px) {
    .theme-baozipt.page-messages #pmboxmenu a,
    .theme-baozipt.page-usercp #usercpmenu a { padding: 7px 11px; font-size: 12px; }
    .theme-baozipt.page-messages .pm-search-card > tbody { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-messages .pm-search-card__title { display: none; }
    .theme-baozipt.page-messages .pm-search-card__body { padding: 9px !important; border-radius: 9px; }
    .theme-baozipt.page-messages .pm-search-form__keyword { flex-basis: 100%; }
    .theme-baozipt.page-messages .pm-search-form__field:not(.pm-search-form__keyword) { flex: 1 1 170px; }
    .theme-baozipt.page-messages .pm-search-form__field select { flex: 1 1 auto; min-width: 0; }
    .theme-baozipt.page-messages .pm-search-form__submit { flex: 1 1 76px; }
    .theme-baozipt.page-messages #outer > form > table { min-width: 680px; }
    .theme-baozipt.page-messages .pm-message-actions__inner { justify-content: flex-start; }
    .theme-baozipt.page-rules .baozi-info-header,
    .theme-baozipt.page-faq .baozi-info-header { min-height: 66px; gap: 10px; padding: 10px 12px; }
    .theme-baozipt.page-rules .baozi-info-header__icon,
    .theme-baozipt.page-faq .baozi-info-header__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    .theme-baozipt.page-rules .baozi-info-header h1,
    .theme-baozipt.page-faq .baozi-info-header h1 { font-size: 20px; }
    .theme-baozipt.page-rules .baozi-info-header small,
    .theme-baozipt.page-faq .baozi-info-header small { font-size: 11px; }
    .theme-baozipt.page-rules .nexus-main-frame > tbody > tr > td.embedded > h2,
    .theme-baozipt.page-faq .nexus-main-frame > tbody > tr > td.embedded > h2 { min-height: 40px; padding: 8px 12px !important; font-size: 14px !important; }
    .theme-baozipt.page-rules .nexus-frame td.text,
    .theme-baozipt.page-faq .nexus-frame td.text { padding: 12px !important; font-size: 12px; line-height: 1.75; }
    .theme-baozipt.page-faq .nexus-frame td.text > ul { padding: 9px 10px 9px 27px; }
    .theme-baozipt.page-faq .nexus-frame td.text > ul ul { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .theme-baozipt.page-usercp #outer > form > table,
    .theme-baozipt.page-usercp #outer > form > table > tbody,
    .theme-baozipt.page-usercp #outer > form > table > tbody > tr,
    .theme-baozipt.page-usercp #outer > form > table > tbody > tr > td,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td { display: block; width: 100% !important; min-width: 0; }
    .theme-baozipt.page-usercp #outer > form > table > tbody > tr > td.rowhead,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td.rowhead {
        width: 100% !important;
        min-width: 0;
        padding: 10px 13px 5px !important;
        text-align: left;
        border-right: 0 !important;
        background: #fff3e1 !important;
    }
    .theme-baozipt.page-usercp #outer > form > table > tbody > tr > td.rowfollow,
    .theme-baozipt.page-usercp .usercp-settings-content > form > table > tbody > tr > td.rowfollow { padding: 9px 13px 13px !important; }
    .theme-baozipt.page-usercp .usercp-settings-heading { min-height: 66px; gap: 10px; padding: 10px 13px; }
    .theme-baozipt.page-usercp .usercp-settings-heading__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    .theme-baozipt.page-usercp .usercp-settings-heading h2 { font-size: 19px; }
    .theme-baozipt.page-usercp .usercp-settings-heading p { font-size: 11px; }
    .theme-baozipt.page-usercp .usercp-settings-content--personal > .usercp-form--personal,
    .theme-baozipt.page-usercp .usercp-settings-content--tracker > .usercp-form--tracker,
    .theme-baozipt.page-usercp .usercp-settings-content--forum > .usercp-form--forum,
    .theme-baozipt.page-usercp .usercp-settings-content--security > .usercp-form--security { padding: 10px; }
    .theme-baozipt.page-usercp .tracker-category-card,
    .theme-baozipt.page-usercp .tracker-extra-settings { padding: 9px; }
    .theme-baozipt.page-usercp .tracker-category-card tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .theme-baozipt.page-usercp .tracker-category-card td.bottom { min-height: 48px; padding: 6px 7px !important; }
    .theme-baozipt.page-usercp .tracker-extra-settings tr { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-usercp .tracker-browse-settings__grid { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-usercp .tracker-browse-settings__grid > section:nth-child(3) { grid-column: auto; }
    .theme-baozipt.page-usercp .usercp-form--tracker select,
    .theme-baozipt.page-usercp .usercp-form--tracker input[type="text"] { max-width: 100%; }
    .theme-baozipt.page-usercp .usercp-form--personal select[name="download"],
    .theme-baozipt.page-usercp .usercp-form--personal select[name="upload"],
    .theme-baozipt.page-usercp .usercp-form--personal select[name="isp"],
    .theme-baozipt.page-usercp .usercp-form--personal select[name="savatar"],
    .theme-baozipt.page-usercp .usercp-form--personal input[name="avatar"] {
        display: block;
        width: 100% !important;
        margin: 6px 0 !important;
    }
    .theme-baozipt.page-usercp .usercp-form--forum input[type="text"],
    .theme-baozipt.page-usercp .usercp-form--security input[type="text"],
    .theme-baozipt.page-usercp .usercp-form--security input[type="email"],
    .theme-baozipt.page-usercp .usercp-form--security input[type="password"] {
        display: block;
        width: 100% !important;
        margin: 4px 0 7px;
    }
    .theme-baozipt.page-usercp .usercp-form--security .security-two-step {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        padding: 10px;
    }
    .theme-baozipt.page-usercp .usercp-form--security .security-two-step__qr { min-height: 0; }
    .theme-baozipt.page-usercp .usercp-form--security .security-two-step__qr img { width: 150px; height: 150px; }
    .theme-baozipt.page-usercp .account-more > table > tbody > tr > td.rowhead,
    .theme-baozipt.page-usercp .account-more > table > tbody > tr > td.rowfollow,
    .theme-baozipt.page-usercp .account-more > table > tbody > tr > td:not([class]) {
        display: block;
        width: 100% !important;
        min-width: 0;
        text-align: left;
    }
    .theme-baozipt.page-staffbox .staffbox-page-title { min-height: 58px; padding: 9px 12px; font-size: 22px; }
    .theme-baozipt.page-staffbox .staffbox-list { min-width: 660px; }
    .theme-baozipt.page-staffbox .staffbox-col-sender { width: 115px; }
    .theme-baozipt.page-staffbox .staffbox-col-time { width: 125px; }
    .theme-baozipt.page-staffbox .staffbox-col-status { width: 118px; }
    .theme-baozipt.page-staffbox .staffbox-col-action { width: 66px; }
    .theme-baozipt.page-staffbox .staffbox-batch-actions { justify-content: center; }
    .theme-baozipt.page-staffbox .staffbox-button { flex: 1 1 112px; }
    .theme-baozipt .baozi-pm-toast {
        right: 12px;
        bottom: calc(12px + var(--baozi-toast-offset, 0px));
        width: calc(100vw - 24px);
    }
    .theme-baozipt.is-authenticated #footer { min-height: 166px; }
    .theme-baozipt.is-authenticated .footer-inner { min-height: 142px; }
    .theme-baozipt .footer-browser-note { padding: 0 9px; font-size: 11px; line-height: 1.65; }
    .theme-baozipt .footer-browser-note .img-browser { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-baozipt .baozi-pm-toast { animation: none; }
}

/* Shared Layer dialogs: keep confirmations and validation errors inside the Baozi paper system. */
.theme-baozipt .layui-layer.baozi-layer {
    width: min(390px, calc(100vw - 28px)) !important;
    overflow: hidden;
    color: #4d3826;
    border: 1px solid #e9954c;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffaf1, #ffecd2);
    box-shadow: 0 22px 60px rgba(83, 43, 12, .3);
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-title {
    display: flex;
    height: auto;
    min-height: 48px;
    align-items: center;
    padding: 10px 54px 10px 17px;
    color: #7b3d16;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    border-bottom: 1px solid #f0c795;
    border-radius: 0;
    background: linear-gradient(90deg, #ffe5bf, #fff7e8);
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-content {
    min-height: 76px;
    padding: 23px 22px 15px;
    color: #5c4635;
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: transparent;
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-btn {
    padding: 2px 14px 16px;
    text-align: center;
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-btn a {
    display: inline-flex;
    height: auto;
    min-width: 88px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 5px 5px 0;
    padding: 7px 18px;
    color: #754626;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    border: 1px solid #e2b47e;
    border-radius: 9px;
    background: #fffaf2;
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-btn .layui-layer-btn0 {
    color: #fff;
    border-color: #eb570f;
    background: linear-gradient(135deg, #ff7b1b, #e94c08);
    box-shadow: 0 6px 14px rgba(218, 74, 9, .18);
}

.theme-baozipt .layui-layer.baozi-layer .layui-layer-btn a:hover,
.theme-baozipt .layui-layer.baozi-layer .layui-layer-btn a:focus-visible { transform: translateY(-1px); filter: brightness(1.03); }
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin { top: 16px; right: 14px; }
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin .layui-layer-close1 {
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 50%;
    background: none;
}
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin .layui-layer-close1::before,
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin .layui-layer-close1::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 3px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #9b6c45;
}
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin .layui-layer-close1::before { transform: rotate(45deg); }
.theme-baozipt .layui-layer.baozi-layer .layui-layer-setwin .layui-layer-close1::after { transform: rotate(-45deg); }

/* Donation: a focused reading surface instead of the original full-width legacy table. */
.theme-baozipt.page-donate .nexus-main-frame {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    table-layout: auto;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-donate .nexus-main-frame > tbody,
.theme-baozipt.page-donate .nexus-main-frame > tbody > tr {
    border: 0 !important;
    background: transparent !important;
}
.theme-baozipt.page-donate .nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.theme-baozipt.page-donate .donate-page {
    display: grid;
    width: min(100%, 1320px);
    gap: 14px;
    margin: 0 auto;
}
.theme-baozipt.page-donate .donate-hero {
    min-height: 96px;
    margin: 0;
    padding: 16px 22px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 20%, rgba(255, 184, 96, .24), transparent 27%),
        linear-gradient(105deg, #ffecd0 0%, #fffaf2 60%, #fff2dd 100%);
}
.theme-baozipt.page-donate .donate-hero__mark {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 28px;
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, .34),
        0 7px 18px rgba(220, 91, 20, .14);
}
.theme-baozipt.page-donate .donate-hero__copy small {
    color: #9c7150;
    font-size: 12px;
    letter-spacing: .04em;
}
.theme-baozipt.page-donate .donate-hero__copy strong {
    color: #4b2f1c;
    font-size: 30px;
}
.theme-baozipt.page-donate .donate-content-shell {
    overflow: hidden;
    border-color: #e9c595;
    border-radius: 16px;
    background: #fffaf3;
    box-shadow: 0 8px 24px rgba(116, 72, 28, .07);
}
.theme-baozipt.page-donate .donate-content-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-donate .donate-content-table > tbody,
.theme-baozipt.page-donate .donate-content-table > tbody > tr {
    border: 0 !important;
    background: transparent !important;
}
.theme-baozipt.page-donate .donate-content-table td {
    padding: 17px 24px !important;
    border: 0 !important;
    color: #594534;
    line-height: 1.75;
    background: transparent !important;
}
.theme-baozipt.page-donate .donate-intro-cell {
    color: #6d5038;
    font-weight: 700;
    border-bottom: 1px solid #efd7b8 !important;
    background: linear-gradient(100deg, #ffefd8, #fffaf3 74%) !important;
}
.theme-baozipt.page-donate .donate-intro-message {
    display: flex;
    max-width: 1080px;
    align-items: center;
    gap: 11px;
    margin: 0 auto;
}
.theme-baozipt.page-donate .donate-intro-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9630, #ef5717);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .3);
}
.theme-baozipt.page-donate .donate-custom-cell {
    padding: 26px 30px 32px !important;
    overflow-wrap: anywhere;
    background: #fffdf9 !important;
}
.theme-baozipt.page-donate .donate-custom-content {
    width: min(100%, 1080px);
    margin: 0 auto;
    color: #574536;
    font-size: 14px;
    line-height: 1.9;
}
.theme-baozipt.page-donate .donate-custom-content p {
    margin: 8px 0;
}
.theme-baozipt.page-donate .donate-custom-content h1,
.theme-baozipt.page-donate .donate-custom-content h2,
.theme-baozipt.page-donate .donate-custom-content h3,
.theme-baozipt.page-donate .donate-custom-content h4 {
    margin: 18px 0 9px;
    color: #6a3f20;
    line-height: 1.45;
}
.theme-baozipt.page-donate .donate-custom-content img {
    max-width: 100%;
    height: auto;
}
.theme-baozipt.page-donate .donate-method-card {
    padding: 22px 26px !important;
    vertical-align: top;
    border-top: 1px solid #efd7b8 !important;
    background: #fff8ed !important;
}
.theme-baozipt.page-donate .donate-method-card + .donate-method-card {
    border-left: 1px solid #f0dbc0 !important;
}
.theme-baozipt.page-donate .donate-method-card b:first-child {
    color: #c9470c;
    font-size: 16px;
}
.theme-baozipt.page-donate .donate-method-card form {
    margin: 8px 0 0;
}
.theme-baozipt.page-donate .donate-method-card p {
    margin: 8px 0;
}
.theme-baozipt.page-donate .donate-footer-cell {
    padding: 16px 24px !important;
    border-top: 1px solid #efd7b8 !important;
    background: linear-gradient(90deg, #fff0da, #fff9ef) !important;
}
.theme-baozipt.page-donate .donate-footer-cell a {
    font-weight: 800;
}
.theme-baozipt.page-donate .auth-layout--portal .donate-hero {
    display: none;
}
.theme-baozipt.page-donate .auth-layout--portal .donate-page {
    width: 100%;
    gap: 0;
}
.theme-baozipt.page-donate .auth-layout--portal .donate-content-shell {
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-donate .auth-layout--portal .donate-intro-row {
    display: none;
}
.theme-baozipt.page-donate .auth-layout--portal .donate-custom-cell {
    padding: 4px 0 14px !important;
    background: transparent !important;
}
.theme-baozipt.page-donate #outer > table.nexus-message > tbody > tr > td,
.theme-baozipt.page-donate #outer > table.nexus-message table,
.theme-baozipt.page-donate #outer > table.nexus-message td {
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .theme-baozipt.page-donate .donate-page { gap: 10px; }
    .theme-baozipt.page-donate .donate-hero {
        min-height: 78px;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 13px;
    }
    .theme-baozipt.page-donate .donate-hero__mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 22px;
    }
    .theme-baozipt.page-donate .donate-hero__copy small { font-size: 10px; }
    .theme-baozipt.page-donate .donate-hero__copy strong { font-size: 24px; }
    .theme-baozipt.page-donate .donate-content-shell { border-radius: 13px; }
    .theme-baozipt.page-donate .donate-content-table td { padding: 14px !important; }
    .theme-baozipt.page-donate .donate-intro-message { align-items: flex-start; gap: 9px; }
    .theme-baozipt.page-donate .donate-intro-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 13px;
    }
    .theme-baozipt.page-donate .donate-custom-cell { padding: 18px 15px 22px !important; }
    .theme-baozipt.page-donate .donate-custom-content { font-size: 12px; line-height: 1.82; }
    .theme-baozipt.page-donate .donate-methods-row,
    .theme-baozipt.page-donate .donate-method-card {
        display: block;
        width: 100% !important;
    }
    .theme-baozipt.page-donate .donate-method-card { padding: 18px 15px !important; }
    .theme-baozipt.page-donate .donate-method-card + .donate-method-card {
        border-left: 0 !important;
    }
    .theme-baozipt.page-donate .donate-footer-cell { padding: 14px 15px !important; }
}

/* Claim history: one coherent toolbar and an intentional horizontal table viewport. */
.theme-baozipt.page-claim .nexus-main-frame {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    table-layout: auto;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-claim .nexus-main-frame > tbody,
.theme-baozipt.page-claim .nexus-main-frame > tbody > tr { border: 0 !important; background: transparent !important; }
.theme-baozipt.page-claim .nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-claim .claim-toolbar-card {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #e8c696;
    border-radius: 13px;
    background: linear-gradient(100deg, #ffecd1, #fffaf2 72%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-claim .claim-page-heading {
    display: flex;
    min-width: 240px;
    flex: 1 1 360px;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.theme-baozipt.page-claim .claim-page-heading__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8a27, #e84c08);
}

.theme-baozipt.page-claim .claim-page-heading__copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
}
.theme-baozipt.page-claim .claim-page-heading__copy small {
    color: #7c604a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}
.theme-baozipt.page-claim .claim-page-heading__copy a {
    min-width: 0;
    color: #d64b0a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-claim .claim-filter-card {
    min-width: 0;
    flex: 0 1 auto;
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 1px solid #edcfaa;
}
.theme-baozipt.page-claim #filterForm {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 10px;
    align-items: center;
}
.theme-baozipt.page-claim .claim-filter-field {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}
.theme-baozipt.page-claim .claim-filter-field > span {
    flex: 0 0 auto;
    color: #6c4c34;
    font-size: 12px;
    font-weight: 800;
}
.theme-baozipt.page-claim .claim-filter-field select {
    width: auto;
    min-width: 142px;
    max-width: 210px;
}
.theme-baozipt.page-claim .claim-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.theme-baozipt.page-claim #filterForm input[type="submit"],
.theme-baozipt.page-claim #filterForm input[type="button"] {
    min-width: 70px;
    min-height: 38px;
    margin: 0;
}

.theme-baozipt.page-claim .claim-table-shell {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 14px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
    isolation: isolate;
    transform: translateZ(0);
}
.theme-baozipt.page-claim .claim-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-color: #e8a05f #fff1dc;
}
.theme-baozipt.page-claim #claim-table {
    width: 100% !important;
    min-width: 1120px;
    margin: 0 !important;
    table-layout: auto;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-claim #claim-table td { padding: 10px 9px !important; line-height: 1.5; border-color: #efd9bc !important; }
.theme-baozipt.page-claim #claim-table td.colhead {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #684328;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffead0, #fff3e0) !important;
}
.theme-baozipt.page-claim #claim-table tr:first-child > td:first-child { border-top-left-radius: 12px; }
.theme-baozipt.page-claim #claim-table tr:first-child > td:last-child { border-top-right-radius: 12px; }
.theme-baozipt.page-claim #claim-table tr:last-child > td:first-child { border-bottom-left-radius: 12px; }
.theme-baozipt.page-claim #claim-table tr:last-child > td:last-child { border-bottom-right-radius: 12px; }
.theme-baozipt.page-claim #claim-table tr:nth-child(odd) td.rowfollow { background: rgba(255, 247, 235, .78) !important; }
.theme-baozipt.page-claim #claim-table tr:hover td.rowfollow { background: #fff0d9 !important; }
.theme-baozipt.page-claim #claim-table .claim-empty-state {
    padding: 42px 18px !important;
    color: #765a43;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 252, 247, .96), rgba(255, 244, 227, .86)) !important;
}
.theme-baozipt.page-claim .claim-empty-state__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff982f, #ed590e);
}
.theme-baozipt.page-claim .claim-empty-state strong,
.theme-baozipt.page-claim .claim-empty-state small { display: block; }
.theme-baozipt.page-claim .claim-empty-state strong {
    color: #4b3526;
    font-size: 16px;
    line-height: 1.45;
}
.theme-baozipt.page-claim .claim-empty-state small {
    margin-top: 4px;
    color: #8a6c53;
    font-size: 12px;
    line-height: 1.55;
}
.theme-baozipt.page-claim .nexus-pagination { margin: 12px auto 0; }

@media (max-width: 1180px) {
    .theme-baozipt.page-claim .claim-toolbar-card {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }
    .theme-baozipt.page-claim .claim-page-heading { flex-basis: 100%; }
    .theme-baozipt.page-claim .claim-filter-card {
        width: 100%;
        flex-basis: 100%;
        padding: 11px 0 0;
        border-top: 1px solid #edcfaa;
        border-left: 0;
    }
    .theme-baozipt.page-claim #filterForm { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .theme-baozipt .layui-layer.baozi-layer .layui-layer-content { min-height: 68px; padding: 19px 16px 12px; font-size: 12px; }
    .theme-baozipt.page-claim .claim-toolbar-card { gap: 10px; padding: 10px; }
    .theme-baozipt.page-claim .claim-page-heading { min-width: 0; gap: 9px; }
    .theme-baozipt.page-claim .claim-page-heading__icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
    .theme-baozipt.page-claim .claim-page-heading__copy a { font-size: 16px; }
    .theme-baozipt.page-claim .claim-filter-card { padding-top: 10px; }
    .theme-baozipt.page-claim #filterForm { display: grid; grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-claim .claim-filter-field { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
    .theme-baozipt.page-claim .claim-filter-field select { width: 100%; min-width: 0; max-width: none; }
    .theme-baozipt.page-claim .claim-filter-actions { justify-content: flex-end; }
    .theme-baozipt.page-claim #filterForm input[type="submit"],
    .theme-baozipt.page-claim #filterForm input[type="button"] { flex: 1 1 0; }
    .theme-baozipt.page-claim #claim-table .claim-empty-state { padding: 34px 14px !important; }
}

/* Full-site legacy page audit: normalize utility, member and administration pages. */
.theme-baozipt.is-authenticated #outer > center,
.theme-baozipt.is-authenticated #outer > form,
.theme-baozipt.is-authenticated #outer > div:not([class]),
.theme-baozipt.is-authenticated td.outer > center,
.theme-baozipt.is-authenticated td.outer > form { max-width: 100%; }

.theme-baozipt.is-authenticated #outer table[width="737"],
.theme-baozipt.is-authenticated #outer table[width="940"],
.theme-baozipt.is-authenticated #outer table[width="675"],
.theme-baozipt.is-authenticated #outer table[width="1200"],
.theme-baozipt.is-authenticated #outer table[style*="width: 737px"],
.theme-baozipt.is-authenticated #outer table[style*="width:737px"],
.theme-baozipt.is-authenticated #outer table[style*="width: 940px"],
.theme-baozipt.is-authenticated #outer table[style*="width:940px"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.theme-baozipt.is-authenticated #outer td[bgcolor="#EFF3FF"],
.theme-baozipt.is-authenticated #outer td[bgcolor="#eff3ff"] { background: #fff9ef !important; }
.theme-baozipt.is-authenticated #outer td[bgcolor="lightgrey"],
.theme-baozipt.is-authenticated #outer th[bgcolor="lightgrey"] {
    color: #684328 !important;
    font-weight: 800;
    background: #ffead0 !important;
}

.theme-baozipt.is-authenticated #outer > h1[align="center"],
.theme-baozipt.is-authenticated #outer > h2[align="center"],
.theme-baozipt.is-authenticated td.outer > h1[align="center"],
.theme-baozipt.is-authenticated td.outer > h2[align="center"] {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px !important;
    padding: 10px 16px;
    color: #3e2d20;
    font-family: "STKaiti", "KaiTi", inherit;
    font-size: 23px;
    line-height: 1.3;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: 0 5px 17px rgba(129, 78, 28, .055);
    overflow-wrap: anywhere;
}

.theme-baozipt .baozi-wide-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
    scrollbar-color: #e6a05e #fff1dc;
}

.theme-baozipt .baozi-wide-table-scroll > table.baozi-wide-data-table {
    width: 100% !important;
    min-width: var(--baozi-wide-table-min, 900px);
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt .baozi-wide-table-scroll > table.baozi-wide-data-table td,
.theme-baozipt .baozi-wide-table-scroll > table.baozi-wide-data-table th { padding: 9px 10px !important; line-height: 1.5; }

/* Fixed-width Classic information pages. */
.theme-baozipt.page-aboutnexus #outer > table.main,
.theme-baozipt.page-formats #outer > table.main,
.theme-baozipt.page-videoformats #outer > table.main,
.theme-baozipt.page-downloadnotice .nexus-main-frame,
.theme-baozipt.page-smilies .nexus-main-frame {
    width: min(100%, 1120px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    table-layout: auto !important;
}
.theme-baozipt.page-aboutnexus #outer > table.main td,
.theme-baozipt.page-formats #outer > table.main td,
.theme-baozipt.page-videoformats #outer > table.main td {
    padding: 15px 18px !important;
    line-height: 1.8;
    overflow-wrap: anywhere;
    background: #fffaf3 !important;
}

/* Email lists, social lists and legacy staff forms. */
.theme-baozipt.page-allowedemails #outer > table,
.theme-baozipt.page-bannedemails #outer > table,
.theme-baozipt.page-friends #outer > table,
.theme-baozipt.page-staffmess #outer > table,
.theme-baozipt.page-warned #outer > table,
.theme-baozipt.page-uploaders #outer > table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-friends #outer > table td,
.theme-baozipt.page-staffmess #outer > table td { padding: 11px 13px !important; line-height: 1.65; }

/* RSS subscription builder */
.theme-baozipt.page-getrss #outer { overflow-x: visible; }

.theme-baozipt.page-getrss .rss-page {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.theme-baozipt.page-getrss .rss-page__hero {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 18px;
    margin: 0 0 14px;
    padding: 16px 23px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 30%, rgba(255, 190, 90, .2), transparent 25%),
        linear-gradient(100deg, #ffecd2, #fffaf2 72%);
    box-shadow: 0 5px 17px rgba(129, 78, 28, .055);
}

.theme-baozipt.page-getrss .rss-page__hero-icon {
    display: flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    border: 1px solid #efb26c;
    border-radius: 50%;
    background: rgba(255, 250, 241, .9);
    box-shadow: inset 0 0 0 5px rgba(255, 232, 197, .62);
}

.theme-baozipt.page-getrss .rss-page__hero-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: transparent;
}

.theme-baozipt.page-getrss .rss-page__hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.theme-baozipt.page-getrss .rss-page__hero-copy small {
    color: #b56a2d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.theme-baozipt.page-getrss .rss-page__hero-copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 28px;
    line-height: 1.25;
}

.theme-baozipt.page-getrss .rss-settings__form { width: 100%; margin: 0; }

.theme-baozipt.page-getrss .rss-settings__table {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    table-layout: auto !important;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td {
    padding: 15px 17px !important;
    vertical-align: top;
    border: 0 !important;
    border-bottom: 1px solid #efdcc1 !important;
}

.theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td.rowhead {
    width: 190px;
    min-width: 190px;
    color: #684326;
    font-weight: 800;
    line-height: 1.55;
    text-align: left;
    background: linear-gradient(100deg, #fff0d9, #fff7eb) !important;
}

.theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td.rowfollow {
    color: #4f4236;
    background: rgba(255, 253, 248, .88) !important;
}

.theme-baozipt.page-getrss .rss-category-grid {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.theme-baozipt.page-getrss .rss-category-grid > table {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 1px solid #efd7b5 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 10px;
    background: #fffaf2 !important;
    box-shadow: none !important;
}

.theme-baozipt.page-getrss .rss-category-grid > table > caption {
    display: block;
    width: 100%;
    padding: 9px 12px;
    color: #7a481f;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid #efd7b5;
    background: linear-gradient(90deg, #ffe8c7, #fff5e5);
}

.theme-baozipt.page-getrss .rss-category-grid > table > caption .big { font-size: 14px; }

.theme-baozipt.page-getrss .rss-category-grid > table > tbody {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-baozipt.page-getrss .rss-category-grid > table td.embedded {
    display: flex;
    min-height: 30px;
    flex: 1 0 100%;
    align-items: center;
    padding: 5px 9px !important;
    color: #9a5721;
    font-size: 12px;
    font-weight: 800;
    border: 0 !important;
    border-radius: 7px;
    background: #fff0dc !important;
}

.theme-baozipt.page-getrss .rss-category-grid > table td.bottom {
    display: flex;
    min-width: 125px;
    min-height: 48px;
    flex: 1 1 145px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px !important;
    white-space: normal;
    border: 1px solid #f0dfc8 !important;
    border-radius: 8px;
    background: #fffdf8 !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-baozipt.page-getrss .rss-category-grid > table td.bottom:hover {
    border-color: #efb26c !important;
    background: #fff5e6 !important;
    box-shadow: 0 3px 9px rgba(173, 95, 31, .08);
}

.theme-baozipt.page-getrss .rss-category-grid > table td.bottom label,
.theme-baozipt.page-getrss .rss-category-grid > table td.bottom a {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.theme-baozipt.page-getrss .rss-category-grid img { background-color: transparent; }
.theme-baozipt.page-getrss .rss-category-divider { height: 1px; background: #efcfaa; }

.theme-baozipt.page-getrss .rss-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-baozipt.page-getrss .rss-option {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px;
    color: #5b4736;
    line-height: 1.35;
    border: 1px solid #ead1ad;
    border-radius: 8px;
    background: #fffaf2;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease,
        box-shadow .18s ease;
}

.theme-baozipt.page-getrss .rss-option:hover,
.theme-baozipt.page-getrss .rss-option:focus-within {
    color: #a74519;
    border-color: #efad65;
    background: #fff1dd;
    box-shadow: 0 0 0 3px rgba(237, 90, 23, .07);
}

.theme-baozipt.page-getrss .rss-option:has(input:checked) {
    color: #a64217;
    border-color: #ef9a50;
    background: linear-gradient(180deg, #fff2dd, #ffe6c5);
}

.theme-baozipt.page-getrss input[type="checkbox"],
.theme-baozipt.page-getrss input[type="radio"] {
    flex: 0 0 auto;
    accent-color: var(--baozi-orange);
}

.theme-baozipt.page-getrss .rss-option input:disabled { opacity: .7; }
.theme-baozipt.page-getrss .rss-option:has(input:disabled) { cursor: default; }

.theme-baozipt.page-getrss .rss-field-note {
    margin-top: 8px;
    color: #8a7968;
    font-size: 12px;
    line-height: 1.55;
}

.theme-baozipt.page-getrss .rss-settings__select {
    min-width: 132px;
    min-height: 40px;
    padding: 7px 36px 7px 12px;
}

.theme-baozipt.page-getrss .rss-settings__actions > td {
    padding: 17px !important;
    border-bottom: 0 !important;
    background: linear-gradient(90deg, #fff0d8, #fff8ed) !important;
}

.theme-baozipt.page-getrss .rss-settings__submit {
    min-width: 190px;
    min-height: 44px;
    padding: 9px 26px;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(217, 91, 24, .18);
}

.theme-baozipt.page-getrss .rss-settings__submit:hover,
.theme-baozipt.page-getrss .rss-settings__submit:focus-visible {
    background: linear-gradient(135deg, #ff812d, #e94f12) !important;
    box-shadow: 0 6px 15px rgba(217, 91, 24, .24);
}

/* Rules administration used one 940px table per section. */
.theme-baozipt.page-modrules #outer > table,
.theme-baozipt.page-modrules #outer > form > table {
    width: 100% !important;
    margin: 0 0 12px !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 11px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-modrules #outer > table td:not(.colhead) { padding: 12px 14px !important; line-height: 1.7; overflow-wrap: anywhere; }

/* MySQL status is the oldest utility page and carries hard-coded blue/grey cells. */
.theme-baozipt.page-mysql_stats #outer > ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.theme-baozipt.page-mysql_stats #outer > ul > li {
    min-width: 0;
    padding: 14px;
    overflow-x: auto;
    color: #5d4938;
    line-height: 1.65;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-mysql_stats #outer table {
    width: 100% !important;
    max-width: 100%;
    margin: 8px 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0;
}
.theme-baozipt.page-mysql_stats #outer table td,
.theme-baozipt.page-mysql_stats #outer table th { padding: 8px 10px !important; color: #503d2d !important; }

/* Member detail and history pages contain long IDs, IPs and tracker values. */
.theme-baozipt.page-userdetails #outer table,
.theme-baozipt.page-iphistory #outer table,
.theme-baozipt.page-userhistory #outer table { max-width: 100%; }
.theme-baozipt.page-userdetails #outer td.rowhead,
.theme-baozipt.page-iphistory #outer td.rowhead { width: 180px; min-width: 150px; white-space: normal !important; }
.theme-baozipt.page-userdetails #outer td.rowfollow,
.theme-baozipt.page-iphistory #outer td.rowfollow,
.theme-baozipt.page-userhistory #outer td.rowfollow { overflow-wrap: anywhere; word-break: break-word; }

.theme-baozipt.page-userdetails #outer { min-width: 0; overflow-x: visible; }

.theme-baozipt.page-userdetails .user-profile-page {
    width: min(100%, 1180px);
    margin: 0 auto 42px;
}

.theme-baozipt.page-userdetails .user-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(390px, .9fr);
    align-items: center;
    gap: 20px;
    min-height: 132px;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .78), transparent 29%),
        linear-gradient(108deg, #ffe4b9, #fff7e9 64%, #fffaf2);
    box-shadow: 0 10px 28px rgba(121, 76, 28, .09);
}

.theme-baozipt.page-userdetails .user-profile-hero__avatar {
    display: flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #fff8eb;
    outline: 2px solid var(--baozi-orange);
    border-radius: 50%;
    background: #ffd18a;
    box-shadow: 0 7px 18px rgba(134, 74, 24, .14);
}

.theme-baozipt.page-userdetails .user-profile-hero__avatar img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
    border-radius: inherit;
    background: transparent;
}

.theme-baozipt.page-userdetails .user-profile-hero__identity { min-width: 0; }

.theme-baozipt.page-userdetails .user-profile-hero__identity > small {
    display: block;
    margin-bottom: 4px;
    color: #9c6337;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.theme-baozipt.page-userdetails .user-profile-hero__identity h1 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0 !important;
    color: #4b2f1d;
    font-size: 28px;
    line-height: 1.25;
}

.theme-baozipt.page-userdetails .user-profile-hero__identity h1 a { color: var(--baozi-orange-dark); }

.theme-baozipt.page-userdetails .user-profile-hero__identity h1 img {
    width: auto;
    max-width: 34px;
    max-height: 24px;
    margin-left: 5px !important;
    background: transparent;
}

.theme-baozipt.page-userdetails .user-profile-hero__identity p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0 0;
    color: #755a43;
    font-size: 12px;
    font-weight: 650;
}

.theme-baozipt.page-userdetails .user-profile-hero__identity p span { color: #c99765; }

.theme-baozipt.page-userdetails .user-profile-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    min-width: 0;
    margin: 0;
}

.theme-baozipt.page-userdetails .user-profile-hero__stats > div {
    min-width: 0;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid #efd2a8;
    border-radius: 10px;
    background: rgba(255, 252, 246, .8);
}

.theme-baozipt.page-userdetails .user-profile-hero__stats dt {
    margin: 0 0 5px;
    color: #8d6b4f;
    font-size: 11px;
    font-weight: 750;
}

.theme-baozipt.page-userdetails .user-profile-hero__stats dd {
    min-width: 0;
    margin: 0;
    color: #4b3020;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-userdetails .user-profile-page > p,
.theme-baozipt.page-userdetails .user-profile-medals {
    margin: 12px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 11px;
    background: #fff8ed;
    box-shadow: 0 4px 13px rgba(121, 76, 28, .045);
}

.theme-baozipt.page-userdetails .user-profile-page > p { color: #68482f; }
.theme-baozipt.page-userdetails .user-profile-page > p a { font-weight: 750; }
.theme-baozipt.page-userdetails .user-profile-medals form { margin: 0; }
.theme-baozipt.page-userdetails .user-profile-medals form > div { margin-top: 0 !important; }

.theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame {
    width: 100% !important;
    margin: 14px 0 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-maintenance {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 10px 14px;
    color: #654321;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid #eccb99;
    border-radius: 10px;
    background: #fff0d8;
}

.theme-baozipt.page-userdetails .user-profile-maintenance::before {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #fff;
    content: "i";
    border-radius: 50%;
    background: var(--baozi-orange);
}

.theme-baozipt.page-userdetails .user-profile-maintenance a { margin-left: 2px; font-weight: 850; }

.theme-baozipt.page-userdetails .user-profile-details {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    table-layout: fixed;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 13px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td {
    padding: 11px 14px !important;
    line-height: 1.65;
    vertical-align: middle;
    border-right: 0 !important;
    border-bottom: 1px solid #efdec6 !important;
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr:last-child > td { border-bottom: 0 !important; }

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.rowhead {
    width: 190px;
    min-width: 0;
    color: #674526;
    font-weight: 800;
    text-align: right;
    white-space: normal !important;
    border-right: 1px solid #efdec6 !important;
    background: #fff0d9 !important;
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr:nth-child(even) > td.rowfollow {
    background: #fffdf8 !important;
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.rowfollow,
.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: #fffaf3 !important;
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.rowfollow { overflow-x: auto; }

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 8px;
    box-shadow: none !important;
}

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table[border="0"] {
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table[border="0"] td {
    padding: 3px 14px 3px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table[border="1"] {
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table[border="1"] td {
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #efdec6 !important;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table[border="1"] tr:last-child td { border-bottom: 0 !important; }

.theme-baozipt.page-userdetails .user-profile-details img[alt="avatar"] {
    width: 110px !important;
    max-height: 110px;
    object-fit: contain;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 10px;
    background: #fff5e4;
}

.theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.user-profile-actions-cell {
    padding: 14px !important;
    background: #fff4e3 !important;
}

.theme-baozipt.page-userdetails .user-profile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-baozipt.page-userdetails .user-profile-action {
    display: inline-flex;
    min-width: 112px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 15px;
    color: #674123;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8, #fff1dd);
    box-shadow: 0 4px 10px rgba(121, 76, 28, .07);
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.theme-baozipt.page-userdetails .user-profile-action__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8b31, var(--baozi-orange));
    box-shadow: 0 3px 8px rgba(201, 68, 18, .18);
}

.theme-baozipt.page-userdetails .user-profile-action__icon svg {
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-baozipt.page-userdetails .user-profile-action--report {
    color: #9b3c28;
    border-color: #e6ad93;
    background: linear-gradient(180deg, #fffaf5, #ffecdf);
}

.theme-baozipt.page-userdetails .user-profile-action--report .user-profile-action__icon {
    background: linear-gradient(145deg, #f77a55, #d74a2d);
}

.theme-baozipt.page-userdetails .user-profile-action:hover,
.theme-baozipt.page-userdetails .user-profile-action:focus-visible {
    color: #fff;
    border-color: var(--baozi-orange-dark);
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
    box-shadow: 0 7px 14px rgba(201, 68, 18, .2);
    transform: translateY(-1px);
}

.theme-baozipt.page-userdetails .user-profile-action:focus-visible {
    outline: 2px solid rgba(237, 90, 23, .3);
    outline-offset: 2px;
}

.theme-baozipt.page-userdetails .user-profile-details [id^="ka"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.theme-baozipt.page-userdetails .user-profile-details .user-profile-torrent-scroll {
    margin: 12px 0 4px !important;
    border: 1px solid var(--baozi-line) !important;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: 0 5px 16px rgba(131, 80, 27, .07) !important;
}

.theme-baozipt.page-userdetails .user-profile-details .user-profile-torrent-scroll > table.user-profile-torrent-table {
    min-width: 1420px !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.theme-baozipt.page-userdetails .user-profile-torrent-table th,
.theme-baozipt.page-userdetails .user-profile-torrent-table td {
    min-width: 68px;
    white-space: nowrap;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: middle;
}

.theme-baozipt.page-userdetails .user-profile-torrent-table th:nth-child(1),
.theme-baozipt.page-userdetails .user-profile-torrent-table td:nth-child(1) {
    min-width: 78px;
}

.theme-baozipt.page-userdetails .user-profile-torrent-table th:nth-child(2),
.theme-baozipt.page-userdetails .user-profile-torrent-table td:nth-child(2) {
    width: 380px !important;
    min-width: 380px;
    white-space: normal;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.theme-baozipt.page-userdetails .user-profile-torrent-table th:nth-child(3),
.theme-baozipt.page-userdetails .user-profile-torrent-table td:nth-child(3) {
    min-width: 128px;
}

.theme-baozipt.page-userdetails .user-profile-torrent-table th:last-child,
.theme-baozipt.page-userdetails .user-profile-torrent-table td:last-child {
    min-width: 96px;
}

.theme-baozipt.page-userdetails .user-profile-page .nexus-main-frame > tbody > tr > td.embedded > h2:not(.user-profile-maintenance) {
    margin: 18px 0 0 !important;
    padding: 13px 17px;
    color: #5d381e;
    font-size: 18px;
    line-height: 1.4;
    text-align: left !important;
    border: 1px solid var(--baozi-line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(100deg, #ffe5bc, #fff5e5);
}

.theme-baozipt.page-userdetails .user-profile-page .nexus-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 0 12px 12px;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-userdetails .user-profile-page .nexus-frame > tbody > tr > td.text {
    padding: 0 !important;
    border: 0 !important;
    background: #fffaf3 !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td {
    padding: 10px 13px !important;
    line-height: 1.6;
    vertical-align: middle;
    border-right: 0 !important;
    border-bottom: 1px solid #efdec6 !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr:last-child > td { border-bottom: 0 !important; }

.theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td.rowhead {
    width: 220px;
    min-width: 0;
    color: #674526;
    font-weight: 800;
    white-space: normal !important;
    border-right: 1px solid #efdec6 !important;
    background: #fff0d9 !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td.rowfollow { background: #fffaf3 !important; }

.theme-baozipt.page-userdetails .user-profile-admin-table input[type="text"],
.theme-baozipt.page-userdetails .user-profile-admin-table input[type="password"],
.theme-baozipt.page-userdetails .user-profile-admin-table textarea,
.theme-baozipt.page-userdetails .user-profile-admin-table select {
    max-width: 100%;
    margin: 3px 5px 3px 0;
}

.theme-baozipt.page-userdetails .user-profile-admin-table input[size="60"],
.theme-baozipt.page-userdetails .user-profile-admin-table input[size="80"],
.theme-baozipt.page-userdetails .user-profile-admin-table textarea[cols="60"] { width: min(100%, 680px); }

.theme-baozipt.page-userdetails .user-profile-admin-table table.main {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table table.main td {
    border: 0 !important;
    border-bottom: 1px solid #efdec6 !important;
    background: transparent !important;
}

.theme-baozipt.page-userdetails .user-profile-admin-table table.main tr:last-child td { border-bottom: 0 !important; }

.theme-baozipt.page-userdetails .user-profile-admin-table td.toolbox {
    padding: 15px !important;
    text-align: center;
    background: #fff2de !important;
}

.theme-baozipt.page-userdetails form[name="deluser"] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
}

@media (max-width: 760px) {
    .theme-baozipt.is-authenticated #outer > h1[align="center"],
    .theme-baozipt.is-authenticated #outer > h2[align="center"],
    .theme-baozipt.is-authenticated td.outer > h1[align="center"],
    .theme-baozipt.is-authenticated td.outer > h2[align="center"] { min-height: 50px; padding: 8px 11px; font-size: 19px; }
    .theme-baozipt.page-getrss .rss-page__hero { min-height: 76px; gap: 13px; padding: 12px 15px; }
    .theme-baozipt.page-getrss .rss-page__hero-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .theme-baozipt.page-getrss .rss-page__hero-icon img { width: 36px; height: 36px; }
    .theme-baozipt.page-getrss .rss-page__hero-copy strong { font-size: 23px; }
    .theme-baozipt.page-getrss .rss-settings__table,
    .theme-baozipt.page-getrss .rss-settings__table > tbody,
    .theme-baozipt.page-getrss .rss-settings__table > tbody > tr,
    .theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0;
    }
    .theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td.rowhead {
        padding: 10px 12px !important;
        border-bottom: 1px solid #efdcc1 !important;
    }
    .theme-baozipt.page-getrss .rss-settings__table > tbody > tr > td.rowfollow { padding: 12px !important; }
    .theme-baozipt.page-getrss .rss-settings__actions > td { padding: 15px 12px !important; }
    .theme-baozipt.page-getrss .rss-category-grid > table td.bottom { flex-basis: 130px; }
    .theme-baozipt.page-userdetails #outer td.rowhead,
    .theme-baozipt.page-iphistory #outer td.rowhead { min-width: 120px; }
    .theme-baozipt.page-userdetails .user-profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 15px;
        min-height: 0;
        padding: 16px;
    }
    .theme-baozipt.page-userdetails .user-profile-hero__avatar { width: 74px; height: 74px; }
    .theme-baozipt.page-userdetails .user-profile-hero__identity h1 { font-size: 23px; }
    .theme-baozipt.page-userdetails .user-profile-hero__stats {
        grid-column: 1 / -1;
        width: 100%;
    }
    .theme-baozipt.page-userdetails .user-profile-page,
    .theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame,
    .theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame > tbody,
    .theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame > tbody > tr,
    .theme-baozipt.page-userdetails .user-profile-page > .nexus-main-frame > tbody > tr > td.embedded,
    .theme-baozipt.page-userdetails .user-profile-page .nexus-frame,
    .theme-baozipt.page-userdetails .user-profile-page .nexus-frame > tbody,
    .theme-baozipt.page-userdetails .user-profile-page .nexus-frame > tbody > tr,
    .theme-baozipt.page-userdetails .user-profile-page .nexus-frame > tbody > tr > td.text,
    .theme-baozipt.page-userdetails .user-profile-page form {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .theme-baozipt.page-userdetails .user-profile-details,
    .theme-baozipt.page-userdetails .user-profile-details > tbody,
    .theme-baozipt.page-userdetails .user-profile-details > tbody > tr,
    .theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td,
    .theme-baozipt.page-userdetails .user-profile-admin-table,
    .theme-baozipt.page-userdetails .user-profile-admin-table > tbody,
    .theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr,
    .theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }
    .theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.rowhead,
    .theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td.rowhead {
        padding: 9px 12px !important;
        text-align: left;
        border-right: 0 !important;
        border-bottom: 1px solid #efdec6 !important;
    }
    .theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.rowfollow,
    .theme-baozipt.page-userdetails .user-profile-details > tbody > tr > td.text,
    .theme-baozipt.page-userdetails .user-profile-admin-table > tbody > tr > td.rowfollow {
        padding: 11px 12px !important;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .theme-baozipt.page-userdetails .user-profile-admin-table input,
    .theme-baozipt.page-userdetails .user-profile-admin-table textarea,
    .theme-baozipt.page-userdetails .user-profile-admin-table select {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-userdetails .user-profile-details td.rowfollow > table { min-width: 560px; }
    .theme-baozipt.page-userdetails .user-profile-admin-table td.rowfollow > table { min-width: 520px; }
}

@media (max-width: 440px) {
    .theme-baozipt.page-getrss .rss-category-grid > table td.bottom { flex-basis: 100%; }
    .theme-baozipt.page-getrss .rss-option { width: 100%; }
    .theme-baozipt.page-getrss .rss-settings__select,
    .theme-baozipt.page-getrss .rss-settings__submit { width: 100%; }
    .account-ratio-card {
        min-height: 352px;
        background-image:
            linear-gradient(90deg, rgba(255, 250, 241, .99) 0%, rgba(255, 248, 235, .96) 58%, rgba(255, 247, 230, .55) 100%),
            url("../../pic/baozi-account-ratio-a.png");
        background-position: center, 58% center;
    }
    .account-ratio-card__content { width: 100%; }
    .account-ratio-card__header { justify-content: flex-start; flex-wrap: wrap; }
    .account-ratio-card__metrics { width: min(100%, 300px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt.page-userdetails .user-profile-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .theme-baozipt.page-userdetails .user-profile-hero__avatar { margin: 0 auto; }
    .theme-baozipt.page-userdetails .user-profile-hero__identity h1,
    .theme-baozipt.page-userdetails .user-profile-hero__identity p { justify-content: center; }
    .theme-baozipt.page-userdetails .user-profile-hero__stats { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Flat utility pages
   The legacy begin_main_frame()/begin_frame() helpers are layout primitives.
   They must not be painted as cards in addition to the real module/table.
   -------------------------------------------------------------------------- */
body.theme-baozipt.is-authenticated:is(
    .page-medal,
    .page-task,
    .page-topten,
    .page-log,
    .page-rules,
    .page-faq,
    .page-staff,
    .page-contactstaff,
    .page-sendmessage,
    .page-donate,
    .page-claim
) #outer > table.nexus-main-frame {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(
    .page-medal,
    .page-task,
    .page-topten,
    .page-log,
    .page-rules,
    .page-faq,
    .page-staff,
    .page-contactstaff,
    .page-sendmessage,
    .page-donate,
    .page-claim
) #outer > table.nexus-main-frame > tbody,
body.theme-baozipt.is-authenticated:is(
    .page-medal,
    .page-task,
    .page-topten,
    .page-log,
    .page-rules,
    .page-faq,
    .page-staff,
    .page-contactstaff,
    .page-sendmessage,
    .page-donate,
    .page-claim
) #outer > table.nexus-main-frame > tbody > tr,
body.theme-baozipt.is-authenticated:is(
    .page-medal,
    .page-task,
    .page-topten,
    .page-log,
    .page-rules,
    .page-faq,
    .page-staff,
    .page-contactstaff,
    .page-sendmessage,
    .page-donate,
    .page-claim
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(
    .page-medal,
    .page-task,
    .page-topten,
    .page-log,
    .page-rules,
    .page-faq,
    .page-staff,
    .page-contactstaff,
    .page-sendmessage,
    .page-donate,
    .page-claim
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

/* Medal and task: the scroll wrapper is invisible; only the data table is a card. */
.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    #outer > h1.baozi-flat-page-title {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px !important;
    padding: 10px 18px;
    color: #442f20;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 23px;
    line-height: 1.3;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #fff0d8, #fffaf2 68%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task) .baozi-flat-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-color: #e5ac68 #fff1dc;
    scrollbar-width: thin;
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task) .baozi-flat-data-table {
    width: 100% !important;
    min-width: 1050px;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: hidden !important;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: var(--baozi-shadow) !important;
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    .baozi-flat-data-table > thead > tr > td.colhead {
    padding: 11px 12px !important;
    color: #684326 !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    white-space: normal !important;
    border-top: 0 !important;
    background: linear-gradient(180deg, #ffecd0, #ffe4bf) !important;
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    .baozi-flat-data-table > tbody > tr > td {
    padding: 11px 12px !important;
    color: #513e2f;
    line-height: 1.55;
    vertical-align: middle;
    background: rgba(255, 252, 247, .84) !important;
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    .baozi-flat-data-table > tbody > tr:nth-child(even) > td {
    background: #fff7eb !important;
}

.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    .baozi-flat-data-table tr > td:last-child { border-right: 0 !important; }
.theme-baozipt.is-authenticated:is(.page-medal, .page-task)
    .baozi-flat-data-table > tbody > tr:last-child > td { border-bottom: 0 !important; }
.theme-baozipt.page-medal .baozi-flat-data-table td h1 {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
}
.theme-baozipt.page-medal .baozi-flat-data-table input.uid { min-width: 74px; }

/* Medal artwork has a real alpha channel; keep thumbnails and hover previews transparent. */
.theme-baozipt.page-medal .baozi-medal-table-scroll img.preview,
.theme-baozipt img.nexus-username-medal,
.theme-baozipt img.nexus-username-medal-big,
.theme-baozipt #nexus-preview {
    background-color: transparent;
}

/* Top ten: merge each begin_frame heading and data table into one card. */
.theme-baozipt.page-topten .nexus-main-frame > tbody > tr > td.embedded > p[align="center"] {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin: 0 0 14px !important;
    padding: 9px 14px;
    color: #65462f;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: linear-gradient(90deg, #fff0d9, #fffaf1);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-topten .nexus-main-frame > tbody > tr > td.embedded > h2,
.theme-baozipt.page-staff .nexus-main-frame > tbody > tr > td.embedded > h2,
.theme-baozipt.page-contactstaff .nexus-main-frame form#compose > h2 {
    display: flex;
    min-height: 44px;
    align-items: center;
    margin: 0 !important;
    padding: 9px 15px !important;
    color: #623b1e !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.4;
    text-align: left !important;
    overflow-wrap: anywhere;
    border: 1px solid #e8c696;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, #ffedd4, #fff8ed) !important;
}

.theme-baozipt.page-topten .nexus-main-frame > tbody > tr > td.embedded > .nexus-frame,
.theme-baozipt.page-staff .nexus-main-frame > tbody > tr > td.embedded > .nexus-frame,
.theme-baozipt.page-contactstaff .nexus-main-frame form#compose > .nexus-frame {
    width: 100% !important;
    margin: 0 0 15px !important;
    overflow: hidden;
    border: 1px solid #e8c696 !important;
    border-radius: 0 0 10px 10px !important;
    background: #fffaf3 !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt.page-topten .nexus-frame > tbody > tr > td.text {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-topten .nexus-frame .nexus-data-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* The responsive helper is only a scrolling layer here.  The frame itself is
   the card, so letting the helper draw another card creates a nested border. */
.theme-baozipt.page-topten .nexus-frame .baozi-wide-table-scroll {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-topten .nexus-frame .nexus-data-table > tbody > tr > th,
.theme-baozipt.page-topten .nexus-frame .nexus-data-table > tbody > tr > td {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #ead8bd !important;
    border-bottom: 1px solid #ead8bd !important;
}

.theme-baozipt.page-topten .nexus-frame .nexus-data-table > tbody > tr > :last-child {
    border-right: 0 !important;
}

.theme-baozipt.page-topten .nexus-frame .nexus-data-table table.main {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-topten .nexus-frame .nexus-data-table > tbody > tr:last-child > th,
.theme-baozipt.page-topten .nexus-frame .nexus-data-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

/* Log navigation is a layout frame. Actual search/results tables remain cards. */
.theme-baozipt.page-log #outer > table.nexus-main-frame + table,
.theme-baozipt.page-log #outer > table.nexus-main-frame ~ table {
    border-radius: 11px !important;
}

/* Rules/FAQ: their heading and body already form the card; flatten deeper tables. */
.theme-baozipt.is-authenticated:is(.page-rules, .page-faq)
    .nexus-frame > tbody > tr > td.text > table {
    width: 100% !important;
    max-width: 100%;
    margin: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Staff: the role section is the only card; its roster is a borderless data grid. */
.theme-baozipt.page-staff .nexus-frame > tbody > tr > td.text {
    padding: 13px 17px 15px !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-staff .nexus-frame td.text > table {
    width: 100% !important;
    margin: 10px 0 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-staff .nexus-frame td.text > table td.embedded {
    padding: 9px 10px !important;
    line-height: 1.5;
    border: 0 !important;
    border-bottom: 1px solid #f0ddc2 !important;
    background: transparent !important;
}
.theme-baozipt.page-staff .nexus-frame td.text > table tr:last-child td.embedded {
    border-bottom: 0 !important;
}
.theme-baozipt.page-staff .nexus-frame td.text > table hr { display: none; }

/* Contact staff: one compose card with an unclipped, responsive editor. */
.theme-baozipt .contactstaff-compose {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt .contactstaff-compose__hero {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 15px;
    margin: 0 0 14px !important;
    padding: 13px 18px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .contactstaff-compose__hero-icon {
    display: flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebbd82;
    border-radius: 50%;
    background: #fff8eb;
}

.theme-baozipt .contactstaff-compose__hero-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: transparent !important;
}

.theme-baozipt .contactstaff-compose__hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.theme-baozipt .contactstaff-compose__hero-copy small {
    color: #987357;
    font-size: 11px;
    font-weight: 700;
}

.theme-baozipt .contactstaff-compose__hero-copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.25;
}

.theme-baozipt .contactstaff-compose > h2 {
    display: flex;
    min-height: 48px;
    align-items: center;
    margin: 0 !important;
    padding: 10px 16px !important;
    color: #623b1e !important;
    font-family: inherit;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.4;
    text-align: left !important;
    border: 1px solid #e8c696;
    border-bottom: 0;
    border-radius: 11px 11px 0 0;
    background: linear-gradient(90deg, #ffedd4, #fff8ed) !important;
}

.theme-baozipt .contactstaff-compose > .nexus-frame {
    width: 100% !important;
    margin: 0 0 13px !important;
    border: 1px solid #e8c696 !important;
    border-radius: 0 0 11px 11px !important;
    background: #fffaf3 !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt .contactstaff-compose > .nexus-frame > tbody > tr > td.text {
    padding: 14px 16px 16px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt .contactstaff-compose .nexus-frame table {
    max-width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt .contactstaff-compose .nexus-frame td {
    border-color: #ecd7b9 !important;
}

.theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0;
}

.theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead {
    width: 116px;
    padding: 14px 12px !important;
    color: #523a28;
    font-weight: 800;
    text-align: center;
    vertical-align: top;
    background: #fff0db !important;
}

.theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 12px 14px !important;
    background: #fffaf3 !important;
}

.theme-baozipt .contactstaff-compose input[name="subject"] {
    width: 100% !important;
    min-height: 42px;
}

.theme-baozipt .contactstaff-compose #editorouter,
.theme-baozipt .contactstaff-compose #editorouter > table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    overflow: visible !important;
}

.theme-baozipt .contactstaff-compose #editorouter > table {
    table-layout: auto;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* The legacy toolbar is a single table row. Let it wrap instead of disappearing
   behind the compose card at narrower widths. */
.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child > td {
    padding: 8px 8px 10px !important;
    border-bottom: 1px solid #efd9ba !important;
    background: #fff6e8 !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child > td > table,
.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child > td > table > tbody {
    display: block;
    width: 100% !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child > td > table > tbody > tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child td.embedded {
    display: block;
    padding: 0 !important;
    background: transparent !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child input[type="button"] {
    min-width: 44px;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 13px;
    white-space: nowrap;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child select {
    min-width: 0;
    min-height: 38px;
    margin: 0 !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child select[name="color"],
.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child select[name="font"] {
    width: 120px !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:first-child select[name="size"] {
    width: 96px !important;
}

/* The original iframe is only 24px high. BaoziPT's inputs are 36px high and
   the iframe body has its own padding, so that old height clips every control. */
.theme-baozipt .contactstaff-compose iframe[src*="attachment.php"] {
    display: block;
    width: 100% !important;
    height: 76px !important;
    border: 0;
    border-radius: 8px;
    background: #fff8ec;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr > td:has(iframe[src*="attachment.php"]) {
    padding: 7px 8px !important;
    overflow: visible !important;
    border-bottom: 1px solid #efd9ba !important;
    background: #fff8ec !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:first-child {
    padding: 12px 10px 10px 8px !important;
    vertical-align: top;
}

.theme-baozipt .contactstaff-compose textarea.bbcode {
    display: block;
    width: 100% !important;
    min-height: 360px;
    margin: 0;
    padding: 12px 14px;
    line-height: 1.65;
    background: #fffdf9 !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child {
    width: 176px;
    padding: 12px 8px 10px !important;
    vertical-align: top;
    border-left: 1px solid #efd9ba !important;
    background: #fff7e9 !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child > table {
    width: auto !important;
    margin: 0 auto 8px !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child td.embedded {
    padding: 4px !important;
    background: transparent !important;
}

.theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child img {
    display: block;
    max-width: none;
    border-radius: 4px;
}

.theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan="2"] {
    padding: 15px 12px 3px !important;
    border-top: 1px solid #efd9ba !important;
    background: #fff6e8 !important;
}

.theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan="2"] > table {
    width: auto !important;
    margin: 0 auto !important;
}

.theme-baozipt .contactstaff-compose > p[align="center"] {
    margin: 10px 0 0 !important;
    color: #91735b;
}

.theme-baozipt .sendmessage-compose .sendmessage-compose__options > td.toolbox {
    padding: 12px 14px !important;
    text-align: left;
    border-top: 1px solid #efd9ba !important;
    background: #fff8ec !important;
}

.theme-baozipt .sendmessage-compose__option-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 18px;
}

.theme-baozipt .sendmessage-compose__option-list label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #654a36;
    font-weight: 700;
    cursor: pointer;
}

.theme-baozipt .sendmessage-compose__option-list input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--baozi-primary);
}

/* Attachment upload fragment shown inside the editor. */
html:has(> body.inframe.theme-baozipt.attachment-frame) {
    min-width: 0 !important;
}

body.inframe.theme-baozipt.attachment-frame {
    min-height: 0;
    padding: 7px 9px;
    overflow: hidden;
    background: #fff8ec;
}

body.inframe.theme-baozipt.attachment-frame > table {
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
}

body.inframe.theme-baozipt.attachment-frame td.embedded {
    padding: 0 !important;
    line-height: 38px;
    white-space: normal;
    border: 0 !important;
    background: transparent !important;
}

body.inframe.theme-baozipt.attachment-frame input[type="file"],
body.inframe.theme-baozipt.attachment-frame input[type="submit"] {
    min-height: 38px;
    margin: 0 5px 0 0;
    vertical-align: middle;
}

body.inframe.theme-baozipt.attachment-frame input[type="checkbox"] {
    margin: 0 4px 0 2px;
    vertical-align: -3px;
}

@media (max-width: 760px) {
    body.inframe.theme-baozipt.attachment-frame {
        padding: 8px;
    }

    body.inframe.theme-baozipt.attachment-frame > table {
        table-layout: fixed;
    }

    body.inframe.theme-baozipt.attachment-frame td.embedded {
        overflow-wrap: anywhere;
        line-height: 32px;
    }

    body.inframe.theme-baozipt.attachment-frame input[type="file"] {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-height: 48px;
        margin: 0 0 7px;
    }
}

/* RSS: the nine primary category icons stay on one desktop row. */
.theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 7px;
}

.theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr:nth-child(2) > td.bottom {
    min-width: 0;
    width: auto !important;
    min-height: 72px;
    padding: 6px 4px !important;
    justify-content: center;
}

.theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr:nth-child(2) > td.bottom input[type="checkbox"] {
    margin-right: 2px;
}

.theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr:nth-child(2) > td.bottom img {
    max-width: 70px;
    max-height: 70px;
}

/* Offers, subtitles and site-news main frames are layout-only shells. */
body.theme-baozipt.is-authenticated:is(.page-offers, .page-subtitles, .page-news)
    #outer > table.nexus-main-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(.page-offers, .page-subtitles, .page-news)
    #outer > table.nexus-main-frame > tbody,
body.theme-baozipt.is-authenticated:is(.page-offers, .page-subtitles, .page-news)
    #outer > table.nexus-main-frame > tbody > tr,
body.theme-baozipt.is-authenticated:is(.page-offers, .page-subtitles, .page-news)
    #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(.page-offers, .page-subtitles, .page-news)
    #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

/* Add-offer composer follows the same compact editor system as contactstaff. */
.theme-baozipt.page-offers .offer-compose-page,
.theme-baozipt.page-offers .offer-compose {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.theme-baozipt.page-offers .offer-compose > h2 {
    margin-top: 14px !important;
}

.theme-baozipt.page-offers .offer-compose__card {
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 0 0 11px 11px;
    background: #fffaf3;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045);
}

.theme-baozipt.page-offers .offer-compose__intro,
.theme-baozipt.page-offers .offer-compose__required {
    margin: 0;
    text-align: center;
}

.theme-baozipt.page-offers .offer-compose__intro {
    padding: 13px 16px;
    color: #75491f;
    font-weight: 800;
    border-bottom: 1px solid #efd9ba;
    background: linear-gradient(90deg, #ffe7c4, #fff3df);
}

.theme-baozipt.page-offers .offer-compose__required {
    padding: 10px 15px 0;
    color: #7c634e;
    font-size: 12px;
}

.theme-baozipt.page-offers .offer-compose__table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowhead {
    width: 116px;
    min-width: 0;
    padding: 14px 12px !important;
    color: #523a28;
    font-weight: 800;
    text-align: center;
    vertical-align: top;
    background: #fff0db !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 12px 14px !important;
    background: #fffaf3 !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowfollow > input[type="text"],
.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowfollow > select {
    width: min(100%, 760px) !important;
    min-height: 42px;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.toolbox {
    padding: 15px !important;
    border-bottom: 0 !important;
    background: #fff2de !important;
}

/* Offer editor: reuse the candidate composer while keeping edit actions clear. */
.theme-baozipt.page-offers .offer-edit-page,
.theme-baozipt.page-offers .offer-edit-form {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt.page-offers .offer-edit__hero {
    box-sizing: border-box;
}

.theme-baozipt.page-offers .offer-edit__hero-copy {
    flex: 1 1 auto;
}

.theme-baozipt.page-offers .offer-edit__hero-copy em {
    max-width: 760px;
    overflow: hidden;
    color: #78604d;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-offers .offer-edit__hero-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.theme-baozipt.page-offers .offer-edit__hero-actions a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #6f4a2f;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #e6bf89;
    border-radius: 9px;
    background: rgba(255, 252, 246, .86);
    transition: border-color .16s ease, color .16s ease, background-color .16s ease, transform .16s ease;
}

.theme-baozipt.page-offers .offer-edit__hero-actions a:hover {
    color: #d95316;
    border-color: #e88542;
    background: #fff8ed;
    transform: translateY(-1px);
}

.theme-baozipt.page-offers .offer-edit-form > h2.offer-edit-form__heading {
    justify-content: space-between;
    gap: 16px;
}

.theme-baozipt.page-offers .offer-edit-form__heading > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.theme-baozipt.page-offers .offer-edit-form__heading > span > strong {
    color: #54351f;
    font-size: 17px;
}

.theme-baozipt.page-offers .offer-edit-form__heading > span > small {
    color: #8f7058;
    font-size: 12px;
    font-weight: 500;
}

.theme-baozipt.page-offers .offer-edit-form__heading > em {
    flex: 0 0 auto;
    color: #8a6b54;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.theme-baozipt.page-offers .offer-edit-form__heading > em b {
    color: #ef4f16;
}

.theme-baozipt.page-offers .offer-edit__legacy-title {
    display: none !important;
}

.theme-baozipt.page-offers .offer-edit__table > tbody > tr > td.rowfollow > input[type="text"] {
    display: block;
    width: 100% !important;
    max-width: none;
    min-height: 42px;
    box-sizing: border-box;
}

.theme-baozipt.page-offers .offer-edit__table > tbody > tr > td.rowfollow > select {
    width: min(100%, 320px) !important;
}

.theme-baozipt.page-offers .offer-edit__table > tbody > tr > td.rowfollow {
    color: #80644e;
    font-size: 12px;
    line-height: 1.65;
}

.theme-baozipt.page-offers .offer-edit__actions {
    text-align: center !important;
}

.theme-baozipt.page-offers .offer-edit__submit {
    min-width: 128px;
    min-height: 42px;
    padding-inline: 24px !important;
}

@media (max-width: 760px) {
    .theme-baozipt.page-getrss .rss-category-grid > table {
        overflow-x: auto !important;
    }
    .theme-baozipt.page-getrss .rss-category-grid > table > tbody > tr:nth-child(2) {
        min-width: 900px;
    }
    .theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowhead {
        width: 88px;
        padding: 12px 8px !important;
    }
    .theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowfollow {
        padding: 10px !important;
    }
    .theme-baozipt.page-offers .offer-edit__hero {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding: 11px 12px;
    }
    .theme-baozipt.page-offers .offer-edit__hero-copy {
        flex: 1 1 calc(100% - 62px);
    }
    .theme-baozipt.page-offers .offer-edit__hero-copy em {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .theme-baozipt.page-offers .offer-edit__hero-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
    }
    .theme-baozipt.page-offers .offer-edit-form > h2.offer-edit-form__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .theme-baozipt.page-offers .offer-edit__table,
    .theme-baozipt.page-offers .offer-edit__table > tbody,
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr,
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr.offer-edit__legacy-title {
        display: none !important;
    }
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr {
        border-bottom: 1px solid #ecd7b9;
    }
    .theme-baozipt.page-offers .offer-compose__table.offer-edit__table > tbody > tr > td.rowhead {
        width: 100% !important;
        padding: 9px 11px 4px !important;
        text-align: left;
        border-right: 0 !important;
        background: #fff7eb !important;
    }
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr > td.rowfollow {
        width: 100% !important;
        padding: 5px 10px 11px !important;
    }
    .theme-baozipt.page-offers .offer-edit__table > tbody > tr > td.rowfollow > select {
        width: 100% !important;
    }
    .theme-baozipt.page-offers .offer-edit__actions {
        padding: 13px 10px !important;
    }
    .theme-baozipt.page-offers .offer-edit__submit {
        width: min(100%, 220px) !important;
    }
    .theme-baozipt.page-offers .offer-edit-form iframe[src*="attachment.php"] {
        height: 160px !important;
    }
}

@media (max-width: 760px) {
    .theme-baozipt.is-authenticated:is(.page-medal, .page-task)
        #outer > h1.baozi-flat-page-title {
        min-height: 50px;
        padding: 8px 12px;
        font-size: 20px;
    }
    .theme-baozipt.page-topten .nexus-main-frame > tbody > tr > td.embedded > h2,
    .theme-baozipt.page-staff .nexus-main-frame > tbody > tr > td.embedded > h2,
    .theme-baozipt .contactstaff-compose > h2 {
        padding: 8px 11px !important;
        font-size: 14px !important;
    }
    .theme-baozipt.page-staff .nexus-frame > tbody > tr > td.text,
    .theme-baozipt .contactstaff-compose > .nexus-frame > tbody > tr > td.text {
        padding: 11px 12px 13px !important;
    }
    .theme-baozipt .contactstaff-compose__hero { min-height: 72px; gap: 11px; padding: 10px 12px; }
    .theme-baozipt .contactstaff-compose__hero-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .theme-baozipt .contactstaff-compose__hero-icon img { width: 40px; height: 40px; }
    .theme-baozipt .contactstaff-compose__hero-copy strong { font-size: 22px; }
    .theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead {
        width: 88px;
        padding: 12px 8px !important;
    }
    .theme-baozipt .contactstaff-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowfollow {
        padding: 10px !important;
    }

    /* BaoziPT staffbox answer mobile single-column layout - production hotfix 2026-08-25 */
    .theme-baozipt .staffbox-answer-compose > .nexus-frame > tbody > tr > td.text {
        padding: 8px !important;
    }
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main,
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody,
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr {
        display: block;
        width: 100% !important;
    }
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead,
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowfollow,
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr:last-child > td[colspan="2"] {
        display: block;
        width: 100% !important;
    }
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowhead {
        padding: 8px 10px !important;
        text-align: left;
        border-bottom: 1px solid #ecd7b9 !important;
    }
    .theme-baozipt .staffbox-answer-compose .nexus-frame > tbody > tr > td.text > table.main > tbody > tr > td.rowfollow {
        min-width: 0;
        padding: 8px !important;
    }
    .theme-baozipt .contactstaff-compose iframe[src*="attachment.php"] {
        height: 112px !important;
    }

    /* BaoziPT staffbox attachment quota mobile height - production hotfix 2026-08-25 */
    .theme-baozipt .contactstaff-compose.staffbox-answer-compose iframe[src*="attachment.php"] {
        height: 152px !important;
    }

    /* BaoziPT staffbox answer mobile jump-control clearance - production hotfix 2026-08-25 */
    body.theme-baozipt.page-staffbox:has(.staffbox-answer-compose) .baozi-page-jump {
        display: none;
    }

    /* BaoziPT contactstaff attachment quota mobile layout - production hotfix 2026-08-25 */
    body.theme-baozipt.page-contactstaff .contactstaff-compose iframe[src*="attachment.php"] {
        height: 184px !important;
    }
    body.theme-baozipt.page-contactstaff:has(.contactstaff-compose) .baozi-page-jump {
        display: none;
    }
    .theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:first-child,
    .theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child {
        display: block;
        width: auto;
        padding: 10px 8px !important;
        border-left: 0 !important;
    }
    .theme-baozipt .contactstaff-compose #compose-body-edit > tr:last-child > td:last-child {
        border-top: 1px solid #efd9ba !important;
    }
}

@media (max-width: 360px) {
    .theme-baozipt .contactstaff-compose.staffbox-answer-compose iframe[src*="attachment.php"] {
        height: 184px !important;
    }
}

/* BaoziPT contactstaff attachment quota narrow-mobile height - production hotfix 2026-08-25 */
@media (max-width: 374px) {
    body.theme-baozipt.page-contactstaff .contactstaff-compose iframe[src*="attachment.php"] {
        height: 240px !important;
    }
}

/* Request center: single-layer cards, compact filters and responsive results. */
.theme-baozipt.page-viewrequests .request-center {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.theme-baozipt.page-viewrequests .request-center__hero {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #efa24c;
    border-radius: 12px;
    background: linear-gradient(120deg, #fff0d6, #fffaf3 72%);
    box-shadow: 0 5px 16px rgba(129, 77, 24, .055);
}

.theme-baozipt.page-viewrequests .request-center__hero-icon {
    display: grid;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #efb26d;
    border-radius: 50%;
    background: #fff8eb;
}

.theme-baozipt.page-viewrequests .request-center__hero-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.theme-baozipt.page-viewrequests .request-center__hero-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.theme-baozipt.page-viewrequests .request-center__hero-copy small {
    color: #aa6734;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.theme-baozipt.page-viewrequests .request-center__hero-copy strong {
    color: #4b3020;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 28px;
    line-height: 1.15;
}

.theme-baozipt.page-viewrequests .request-center__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid #e8c696;
    border-radius: 11px;
    background: rgba(255, 250, 242, .94);
}

.theme-baozipt.page-viewrequests .request-center__filter {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid #efc78e;
    border-radius: 8px;
    background: #fffdf9;
    color: #6b4931;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.theme-baozipt.page-viewrequests .request-center__filter:hover,
.theme-baozipt.page-viewrequests .request-center__filter:focus-visible,
.theme-baozipt.page-viewrequests .request-center__filter.is-active,
.theme-baozipt.page-viewrequests .request-center__filter--primary {
    border-color: #ef5a16;
    background: linear-gradient(135deg, #ff721f, #f45113);
    color: #fff;
}

.theme-baozipt.page-viewrequests .request-center__filter:hover {
    transform: translateY(-1px);
}

.theme-baozipt.page-viewrequests .request-center__filter--primary {
    margin-right: 4px;
}

.theme-baozipt.page-viewrequests .request-center__list {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt.page-viewrequests .request-center__empty {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 5px 16px rgba(125, 78, 29, .05);
}

.theme-baozipt.page-viewrequests .request-center__empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid #efc78e;
    border-radius: 50%;
    background: #fff1dc;
    color: #e75a19;
    font-size: 27px;
    font-weight: 900;
}

.theme-baozipt.page-viewrequests .request-center__empty strong {
    color: #553826;
    font-size: 18px;
}

.theme-baozipt.page-viewrequests .request-center__empty p {
    margin: 0;
    color: #8a715e;
}

.theme-baozipt.page-viewrequests .request-center__table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    line-height: 0;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt.page-viewrequests table.request-center__table {
    width: 100% !important;
    min-width: 1040px;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden !important;
    border: 1px solid #e8c696 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px !important;
    background: #fffdf9 !important;
    box-shadow: 0 5px 16px rgba(125, 78, 29, .05) !important;
    vertical-align: top;
}

.theme-baozipt.page-viewrequests .request-center__table > thead > tr > th,
.theme-baozipt.page-viewrequests .request-center__table > tbody > tr > td {
    display: table-cell !important;
    padding: 12px 10px !important;
    border: 0 !important;
    border-right: 1px solid #ecd7b9 !important;
    border-bottom: 1px solid #ecd7b9 !important;
    text-align: center;
    vertical-align: middle;
}

.theme-baozipt.page-viewrequests .request-center__table th {
    background: #ffe7c4 !important;
    color: #624027;
    font-weight: 900;
}

.theme-baozipt.page-viewrequests .request-center__table td {
    background: #fffdf9 !important;
    color: #4f4036;
}

.theme-baozipt.page-viewrequests .request-center__table tbody tr:hover td {
    background: #fff8ec !important;
}

.theme-baozipt.page-viewrequests .request-center__table > thead > tr > th:last-child,
.theme-baozipt.page-viewrequests .request-center__table > tbody > tr > td:last-child {
    border-right: 0 !important;
}

.theme-baozipt.page-viewrequests .request-center__table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-viewrequests .request-center__table th:first-child,
.theme-baozipt.page-viewrequests .request-center__table td:first-child {
    width: auto;
    text-align: left;
}

.theme-baozipt.page-viewrequests .request-center__table th:nth-child(2),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(2),
.theme-baozipt.page-viewrequests .request-center__table th:nth-child(3),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(3) {
    width: 88px;
}

.theme-baozipt.page-viewrequests .request-center__table th:nth-child(4),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(4),
.theme-baozipt.page-viewrequests .request-center__table th:nth-child(5),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(5) {
    width: 70px;
}

.theme-baozipt.page-viewrequests .request-center__table th:nth-child(6),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(6) {
    width: 104px;
}

.theme-baozipt.page-viewrequests .request-center__table th:nth-child(7),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(7) {
    width: 116px;
}

.theme-baozipt.page-viewrequests .request-center__table th:nth-child(8),
.theme-baozipt.page-viewrequests .request-center__table td:nth-child(8) {
    width: 90px;
}

.theme-baozipt.page-viewrequests .request-center__name {
    display: inline-block;
    max-width: 100%;
    color: #c94714;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-viewrequests .request-center__reward strong {
    color: #dc4f17;
}

.theme-baozipt.page-viewrequests .request-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid #edc28a;
    border-radius: 999px;
    background: #fff1dc;
    color: #a34b1c;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.theme-baozipt.page-viewrequests .request-status.is-resolved {
    border-color: #b9d8b4;
    background: #eef8eb;
    color: #3e7c39;
}

.theme-baozipt.page-viewrequests .request-status.is-progress {
    border-color: #f1c077;
    background: #fff3d5;
    color: #aa641b;
}

.theme-baozipt.page-viewrequests .request-center__search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e8c696;
    border-radius: 11px;
    background: #fffaf2;
}

.theme-baozipt.page-viewrequests .request-center__search label {
    color: #60422f;
    font-weight: 900;
}

.theme-baozipt.page-viewrequests .request-center__search input[type="text"] {
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-center__search button {
    min-height: 42px;
    padding: 8px 20px;
    border: 1px solid #ef5312;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff721f, #f45113);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 760px) {
    .theme-baozipt.page-viewrequests .request-center__hero {
        min-height: 76px;
        gap: 11px;
        padding: 10px 12px;
    }
    .theme-baozipt.page-viewrequests .request-center__hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    .theme-baozipt.page-viewrequests .request-center__hero-icon img {
        width: 44px;
        height: 44px;
    }
    .theme-baozipt.page-viewrequests .request-center__hero-copy strong {
        font-size: 23px;
    }
    .theme-baozipt.page-viewrequests .request-center__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .theme-baozipt.page-viewrequests .request-center__search {
        grid-template-columns: 1fr auto;
    }
    .theme-baozipt.page-viewrequests .request-center__search label {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .theme-baozipt.page-viewrequests .request-center__search {
        grid-template-columns: 1fr;
    }
    .theme-baozipt.page-viewrequests .request-center__search button {
        width: 100%;
    }
}

/* Request details: compact labels, wide content and a side-by-side quick reply. */
.theme-baozipt.page-viewrequests .request-detail-page {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt.page-viewrequests .request-detail__hero {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 16px 20px;
    overflow: hidden;
    border: 1px solid #efa24c;
    border-radius: 13px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: 0 5px 16px rgba(129, 77, 24, .055);
}

.theme-baozipt.page-viewrequests .request-detail__hero-kicker {
    color: #a26738;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.theme-baozipt.page-viewrequests .request-detail__hero h1 {
    margin: 0;
    color: #432d1e;
    font-size: clamp(21px, 2.1vw, 30px);
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-viewrequests .request-detail__hero h1 > span {
    margin-right: 8px;
    color: #c94714;
}

.theme-baozipt.page-viewrequests .request-detail__card {
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffdf9;
    box-shadow: 0 5px 16px rgba(125, 78, 29, .05);
}

.theme-baozipt.page-viewrequests table.request-detail__table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    table-layout: fixed;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-viewrequests .request-detail__label-column {
    width: 176px;
}

.theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td {
    display: table-cell !important;
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
    vertical-align: top;
}

.theme-baozipt.page-viewrequests .request-detail__table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowhead {
    width: 176px !important;
    min-width: 0;
    padding: 14px 16px !important;
    border-right: 1px solid #ecd7b9 !important;
    background: #fff0db !important;
    color: #5b3e2a;
    font-weight: 900;
    line-height: 1.55;
    text-align: right !important;
}

.theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowfollow {
    width: auto !important;
    min-width: 0;
    padding: 14px 18px !important;
    background: #fffdf9 !important;
    color: #493c33;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-viewrequests .request-detail__table td.rowfollow > form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-detail__table input[type="text"],
.theme-baozipt.page-viewrequests .request-detail__table input[name="amount"] {
    width: 110px !important;
    min-height: 38px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-detail__table input[type="submit"] {
    min-height: 38px;
    margin: 0;
    padding: 7px 16px;
    border: 1px solid #ef5312;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff721f, #f45113);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.theme-baozipt.page-viewrequests .request-detail__table td.rowfollow > a {
    color: #cf4b18;
    font-weight: 800;
    text-decoration: none;
}

.theme-baozipt.page-viewrequests .request-detail__comments {
    margin-top: 18px;
}

.theme-baozipt.page-viewrequests .request-detail__comments > h2 {
    margin: 0 0 10px;
    color: #5b3924;
    font-size: 20px;
    text-align: left;
}

.theme-baozipt.page-viewrequests .request-quick-comment {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 5px 16px rgba(125, 78, 29, .05);
}

.theme-baozipt.page-viewrequests .request-quick-comment__title {
    margin: 0 0 12px;
    color: #5b3924;
    font-size: 20px;
    text-align: left;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 214px;
    gap: 12px 14px;
    align-items: start;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 190px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3ad69;
    border-radius: 10px;
    background: #fffdf9;
    color: #3f342d;
    resize: vertical;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] {
    display: grid;
    width: 214px;
    min-height: 190px;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(5, 30px);
    align-content: start;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid #ebc894;
    border-radius: 10px;
    background: #fff4e4;
    box-sizing: border-box;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] > a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #fffaf2;
    text-decoration: none;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] > a:hover,
.theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] > a:focus-visible {
    border-color: #ef8b43;
    background: #fff;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] img {
    display: block;
    max-width: 24px;
    max-height: 24px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > br {
    display: none;
}

.theme-baozipt.page-viewrequests .request-quick-comment__form > #qr {
    min-height: 42px;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
    padding: 8px 20px;
    border: 1px solid #ef5312;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff721f, #f45113);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(220, 78, 18, .14);
}

.theme-baozipt.page-viewrequests .request-quick-comment__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.theme-baozipt.page-viewrequests .request-add-comment-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border: 1px solid #efb46f;
    border-radius: 8px;
    background: #fffdf9;
    color: #bd4819 !important;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.theme-baozipt.page-viewrequests .request-add-comment-link:hover,
.theme-baozipt.page-viewrequests .request-add-comment-link:focus-visible {
    border-color: #ef5312;
    background: linear-gradient(135deg, #ff721f, #f45113);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .theme-baozipt.page-viewrequests .request-detail__label-column,
    .theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowhead {
        width: 118px !important;
    }
    .theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowhead,
    .theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowfollow {
        padding: 12px !important;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__form {
        grid-template-columns: minmax(0, 1fr);
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__form > textarea {
        min-height: 170px;
        grid-column: 1;
        grid-row: 1;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] {
        width: 100%;
        min-height: auto;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(6, 30px);
        justify-content: start;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__form > #qr {
        grid-column: 1;
        grid-row: 3;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .theme-baozipt.page-viewrequests .request-detail__hero {
        padding: 13px 14px;
    }
    .theme-baozipt.page-viewrequests .request-detail__label-column,
    .theme-baozipt.page-viewrequests .request-detail__table > tbody > tr > td.rowhead {
        width: 94px !important;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment {
        padding: 13px;
    }
    .theme-baozipt.page-viewrequests .request-quick-comment__form > div[align="center"] {
        grid-template-columns: repeat(5, 30px);
    }
}

/* Add request: compact compose card and an unclipped legacy BBCode editor. */
.theme-baozipt.page-viewrequests .request-compose-page {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt.page-viewrequests .request-compose__hero {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding: 13px 18px;
    border: 1px solid #efa24c;
    border-radius: 13px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: 0 5px 16px rgba(129, 77, 24, .055);
}

.theme-baozipt.page-viewrequests .request-compose__hero-icon {
    display: flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ebbd82;
    border-radius: 50%;
    background: #fff8eb;
}

.theme-baozipt.page-viewrequests .request-compose__hero-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.theme-baozipt.page-viewrequests .request-compose__hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.theme-baozipt.page-viewrequests .request-compose__hero-copy small {
    color: #a26738;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.theme-baozipt.page-viewrequests .request-compose__hero-copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 27px;
    line-height: 1.25;
}

.theme-baozipt.page-viewrequests form.request-compose {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.theme-baozipt.page-viewrequests table.request-compose__table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    table-layout: fixed;
    overflow: hidden !important;
    border: 1px solid #e8c696 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 11px !important;
    background: #fffaf3 !important;
    box-shadow: 0 4px 13px rgba(125, 78, 29, .045) !important;
}

.theme-baozipt.page-viewrequests .request-compose__label-column {
    width: 116px;
}

.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
}

.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-viewrequests .request-compose__heading {
    padding: 13px 16px !important;
    color: #75491f !important;
    font-size: 17px;
    font-weight: 900;
    text-align: left !important;
    background: linear-gradient(90deg, #ffe7c4, #fff3df) !important;
}

.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowhead {
    width: 116px;
    min-width: 0;
    padding: 14px 12px !important;
    color: #523a28;
    font-weight: 800;
    text-align: center !important;
    vertical-align: top;
    background: #fff0db !important;
}

.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowfollow {
    min-width: 0;
    padding: 12px 14px !important;
    background: #fffaf3 !important;
}

.theme-baozipt.page-viewrequests .request-compose input[name="request"] {
    width: 100% !important;
    min-height: 42px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-compose__reward {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #705542;
}

.theme-baozipt.page-viewrequests .request-compose__reward input[name="amount"] {
    width: 150px !important;
    min-height: 42px;
    margin: 0;
}

.theme-baozipt.page-viewrequests .request-compose__editor > table,
.theme-baozipt.page-viewrequests .request-compose__editor > table > tbody,
.theme-baozipt.page-viewrequests .request-compose__editor table {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-viewrequests .request-compose__editor td {
    border: 0 !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child > td {
    padding: 8px 8px 10px !important;
    border-bottom: 1px solid #efd9ba !important;
    background: #fff6e8 !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child > td > table,
.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child > td > table > tbody {
    display: block;
    width: 100% !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child > td > table > tbody > tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child td.embedded {
    display: block;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child input[type="button"] {
    width: auto !important;
    min-width: 44px;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 13px !important;
    white-space: nowrap;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child input[name="tagcount"] {
    min-width: 120px;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child select {
    min-width: 0;
    min-height: 38px;
    margin: 0 !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child select[name="color"],
.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child select[name="font"] {
    width: 120px !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:first-child select[name="size"] {
    width: 96px !important;
}

.theme-baozipt.page-viewrequests .request-compose iframe[src*="attachment.php"] {
    display: block;
    width: 100% !important;
    height: 76px !important;
    border: 0;
    border-radius: 8px;
    background: #fff8ec;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr > td:has(iframe[src*="attachment.php"]) {
    padding: 7px 8px !important;
    border-bottom: 1px solid #efd9ba !important;
    background: #fff8ec !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:first-child {
    display: block;
    min-width: 0;
    padding: 12px 10px 10px 8px !important;
    vertical-align: top;
}

.theme-baozipt.page-viewrequests .request-compose textarea.bbcode {
    display: block;
    width: 100% !important;
    min-height: 340px;
    margin: 0;
    padding: 12px 14px;
    line-height: 1.65;
    background: #fffdf9 !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:last-child {
    display: block;
    width: auto !important;
    padding: 12px 8px 10px !important;
    vertical-align: top;
    border-left: 1px solid #efd9ba !important;
    background: #fff7e9 !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:last-child > table {
    width: auto !important;
    margin: 0 auto 8px !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:last-child td.embedded {
    padding: 4px !important;
    background: transparent !important;
}

.theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:last-child img {
    display: block;
    max-width: none;
    border-radius: 4px;
}

.theme-baozipt.page-viewrequests .request-compose__actions {
    padding: 14px !important;
    text-align: center;
    background: #fff2de !important;
}

.theme-baozipt.page-viewrequests .request-compose__actions button {
    min-width: 118px;
    min-height: 42px;
}

@media (max-width: 760px) {
    .theme-baozipt.page-viewrequests .request-compose__hero {
        min-height: 72px;
        gap: 11px;
        padding: 10px 12px;
    }
    .theme-baozipt.page-viewrequests .request-compose__hero-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
    .theme-baozipt.page-viewrequests .request-compose__hero-icon img {
        width: 40px;
        height: 40px;
    }
    .theme-baozipt.page-viewrequests .request-compose__hero-copy strong {
        font-size: 22px;
    }
    .theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowhead {
        width: 88px;
        padding: 12px 8px !important;
    }
    .theme-baozipt.page-viewrequests .request-compose__label-column {
        width: 88px;
    }
    .theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowfollow {
        padding: 10px !important;
    }
    .theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child {
        grid-template-columns: minmax(0, 1fr);
    }
    .theme-baozipt.page-viewrequests .request-compose #edit-descr-edit > tr:last-child > td:last-child {
        border-top: 1px solid #efd9ba !important;
        border-left: 0 !important;
    }
}

/* Compose-form grid repair: keep legacy editors borderless while the outer form rows stay complete. */
.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowhead,
.theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td.rowhead,
.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowhead {
    border-right: 1px solid #e4c79f !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr:last-child > td,
.theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr:last-child > td,
.theme-baozipt.page-viewrequests .request-compose__table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowhead {
    width: 116px !important;
    min-width: 116px !important;
}

.theme-baozipt.page-subtitles .subtitles-required-note {
    display: table;
    width: auto;
    max-width: calc(100% - 36px);
    margin: 16px auto 14px;
    padding: 8px 16px;
    color: #765036;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #efd0a6;
    border-radius: 999px;
    background: #fff6e8;
}

.theme-baozipt.page-subtitles .subtitles-torrent-note {
    margin: -4px auto 14px;
    padding: 0 18px;
    text-align: center;
}

.theme-baozipt.page-subtitles .subtitles-upload-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ecd7b9;
}

.theme-baozipt.page-subtitles .subtitles-upload-table {
    width: 100% !important;
    margin: 0 !important;
}

.theme-baozipt.page-subtitles .subtitles-upload-table__label-column {
    width: 180px;
}

.theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #ecd7b9 !important;
}

.theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td.rowhead {
    width: 180px !important;
    min-width: 180px !important;
    padding: 14px 16px !important;
    text-align: right;
    vertical-align: top;
}

.theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td.rowfollow {
    padding: 13px 18px !important;
    color: #6f5440;
    line-height: 1.65;
}

.theme-baozipt.page-subtitles .subtitles-upload-table input[type="text"] {
    width: min(100%, 620px) !important;
    min-height: 42px;
    margin-bottom: 3px;
}

.theme-baozipt.page-subtitles .subtitles-upload-table select {
    width: min(100%, 360px) !important;
    min-height: 42px;
}

.theme-baozipt.page-subtitles .subtitles-upload-table input[type="file"] {
    width: min(100%, 620px);
    min-height: 44px;
    padding: 8px 10px;
    border: 1px dashed #dca266 !important;
    border-radius: 9px;
    background: #fffdf8;
}

@media (max-width: 760px) {
    .theme-baozipt.page-offers .offer-compose__table > tbody > tr > td.rowhead,
    .theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td.rowhead,
    .theme-baozipt.page-viewrequests .request-compose__table > tbody > tr > td.rowhead {
        width: 88px !important;
        min-width: 88px !important;
    }

    .theme-baozipt.page-subtitles .subtitles-upload-table__label-column {
        width: 88px;
    }

    .theme-baozipt.page-subtitles .subtitles-upload-table > tbody > tr > td.rowfollow {
        padding: 10px !important;
    }
}

/* Offer details: keep the lightweight reply layout free of the generic table shell. */
body.theme-baozipt.page-offers #outer > table.offer-quick-comment:not(.nexus-main-frame):not(.nexus-frame):not(.nexus-message):not(.nexus-data-table) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ========================================================================== */
/* Original NexusPHP structures: comment, upload and torrent list              */
/* Keep the stock markup and apply BaoziPT decoration without nested outlines. */
/* ========================================================================== */

/* Comment editor */
body.theme-baozipt.page-comment #outer > table.main.nexus-main-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-comment #outer > table.main.nexus-main-frame > tbody,
body.theme-baozipt.page-comment #outer > table.main.nexus-main-frame > tbody > tr,
body.theme-baozipt.page-comment #outer > table.main.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-comment #outer > table.main.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

body.theme-baozipt.page-comment .comment-compose > h1 {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    text-align: left !important;
}

body.theme-baozipt.page-comment .comment-compose-title__label,
body.theme-baozipt.page-comment .comment-compose-title__sep {
    white-space: nowrap;
}

body.theme-baozipt.page-comment .comment-compose-title__sep {
    color: #a9896c;
}

body.theme-baozipt.page-comment .comment-compose > h1 a {
    display: block;
    min-width: 0;
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Upload page: restore every original row and preserve the stock two-column form. */
body.theme-baozipt.page-upload #outer::before {
    width: min(100%, 1180px);
    margin: 0 auto 12px;
    padding: 16px 20px;
    color: #4b3221;
    font-size: 25px;
    text-align: left;
    border: 1px solid #e7bf88;
    border-radius: 12px;
    background: linear-gradient(100deg, #ffeed2, #fffaf2 72%);
    box-sizing: border-box;
}

body.theme-baozipt.page-upload #compose {
    width: min(100%, 1180px);
    margin: 0 auto;
    overflow-x: auto;
}

body.theme-baozipt.page-upload #compose > p {
    margin: 0 0 10px !important;
    padding: 0 4px;
    color: #7a604b;
    font-size: 13px;
    text-align: left !important;
}

body.theme-baozipt.page-upload .upload-form-table {
    display: table !important;
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: hidden !important;
    border: 1px solid #e6c28f !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: 0 5px 15px rgba(125, 78, 29, .055) !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody {
    display: table-row-group !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr,
body.theme-baozipt.page-upload .upload-form-table > tbody > tr:first-child,
body.theme-baozipt.page-upload .upload-form-table > tbody > tr:has(input[name="nfo"]),
body.theme-baozipt.page-upload .upload-form-table > tbody > tr:has(input[name="price"]) {
    display: table-row !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr > td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0;
    padding: 12px 14px !important;
    vertical-align: middle;
    border: 0 !important;
    border-right: 1px solid #ead3b2 !important;
    border-bottom: 1px solid #ead3b2 !important;
    background: #fffaf3;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr > td:last-child {
    border-right: 0 !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr > td.rowhead {
    width: 190px !important;
    min-width: 190px;
    color: #60442f;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    vertical-align: top;
    background: #fff0d7 !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr > td.rowfollow {
    position: static !important;
    min-height: 0 !important;
    color: #5d4b3d;
    font-size: 12px;
    line-height: 1.65;
    border-radius: 0 !important;
}

body.theme-baozipt.page-upload .upload-form-table > tbody > tr:first-child > td.colhead {
    padding: 14px 18px !important;
    color: #643f23;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(90deg, #ffe8c4, #fff2de) !important;
}

body.theme-baozipt.page-upload .upload-form-table tr:has(#torrent) .rowfollow {
    padding: 12px 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ead3b2 !important;
    background: #fffaf3 !important;
}

body.theme-baozipt.page-upload .upload-form-table tr:has(#torrent) .rowfollow::before {
    display: none !important;
    content: none !important;
}

body.theme-baozipt.page-upload .upload-form-table font.medium {
    display: inline !important;
    color: #8b7562;
}

body.theme-baozipt.page-upload .upload-form-table input[type="text"],
body.theme-baozipt.page-upload .upload-form-table input[type="number"],
body.theme-baozipt.page-upload .upload-form-table select,
body.theme-baozipt.page-upload .upload-form-table textarea {
    max-width: 100%;
    min-height: 38px;
    border-color: #dfa865 !important;
    border-radius: 8px;
    background: #fffdf8 !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-upload .upload-form-table input[type="file"] {
    width: min(100%, 620px) !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border: 1px dashed #d99a50 !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-upload .upload-form-table .nexus-input-box,
body.theme-baozipt.page-upload .upload-form-table .nexus-input-box > div {
    max-width: 100%;
    min-width: 0;
}

body.theme-baozipt.page-upload .upload-form-table table:has(> #upload-descr-edit) {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.theme-baozipt.page-upload .upload-form-table table:has(> #upload-descr-edit) > #upload-descr-edit {
    display: table-row-group !important;
    width: auto !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr {
    display: table-row !important;
    width: auto !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr > td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px !important;
    vertical-align: top;
    border: 0 !important;
    border-bottom: 1px solid #ead3b2 !important;
    background: #fffaf3 !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:first-child > td > table,
body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody {
    display: table !important;
    width: 100% !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody > tr {
    display: table-row !important;
    width: auto !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:first-child > td > table td {
    display: table-cell !important;
    width: auto !important;
    padding: 4px !important;
    border: 0 !important;
    vertical-align: middle;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:has(#descr) > td:first-child {
    width: auto !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) {
    display: table-cell !important;
    width: 178px !important;
    min-width: 178px;
    border-left: 1px solid #ead3b2 !important;
}

body.theme-baozipt.page-upload .upload-form-table #descr {
    width: 100% !important;
    min-height: 300px !important;
    height: 300px;
    padding: 12px;
    resize: vertical;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit iframe {
    height: 42px !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-edit ~ tbody:last-child {
    display: table-row-group !important;
}

body.theme-baozipt.page-upload .upload-form-table #upload-descr-btn-preview,
body.theme-baozipt.page-upload .upload-form-table #upload-descr-btn-edit {
    display: inline-block !important;
}

body.theme-baozipt.page-upload .upload-form-table td.toolbox {
    padding: 14px !important;
    text-align: center !important;
    background: #fff4e3 !important;
}

body.theme-baozipt.page-upload .upload-form-table td.toolbox #qr {
    min-width: 130px;
    min-height: 42px;
}

/* Torrent list: original search box and torrenttable() markup, themed in place. */
html body.theme-baozipt.page-torrents.is-authenticated td#outer.outer > table.main:not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame):not(.torrents):not(.forums):not(.auth-form-table),
html body.theme-baozipt.page-special.is-authenticated td#outer.outer > table.main:not(.nexus-main-frame):not(.nexus-message):not(.nexus-frame):not(.torrents):not(.forums):not(.auth-form-table) {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-torrents td#outer > table.main:not(.nexus-message) > tbody,
body.theme-baozipt.page-torrents td#outer > table.main:not(.nexus-message) > tbody > tr,
body.theme-baozipt.page-torrents td#outer > table.main:not(.nexus-message) > tbody > tr > td.embedded,
body.theme-baozipt.page-special td#outer > table.main:not(.nexus-message) > tbody,
body.theme-baozipt.page-special td#outer > table.main:not(.nexus-message) > tbody > tr,
body.theme-baozipt.page-special td#outer > table.main:not(.nexus-message) > tbody > tr > td.embedded {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-torrents td#outer > table.main:not(.nexus-message) > tbody > tr > td.embedded,
body.theme-baozipt.page-special td#outer > table.main:not(.nexus-message) > tbody > tr > td.embedded {
    padding: 0 !important;
    overflow-x: visible;
}

body.theme-baozipt.page-torrents .torrent-search-form,
body.theme-baozipt.page-special .torrent-search-form {
    position: relative;
    z-index: 20;
    margin: 0 0 14px;
}

body.theme-baozipt.page-torrents table.searchbox,
body.theme-baozipt.page-special table.searchbox {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 1px solid #ead7bc !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    background: #fffdf9 !important;
    box-shadow: 0 4px 14px rgba(125, 78, 29, .045) !important;
}

body.theme-baozipt.page-torrents table.searchbox > tbody > tr > td,
body.theme-baozipt.page-special table.searchbox > tbody > tr > td {
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents table.searchbox #searchinput,
body.theme-baozipt.page-special table.searchbox #searchinput {
    width: 100% !important;
    min-height: 44px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__quick > tr > td,
body.theme-baozipt.page-special .torrent-search-box__quick > tr > td {
    height: auto !important;
    padding: 12px 14px !important;
    vertical-align: middle;
}

body.theme-baozipt.page-torrents .torrent-search-box__quick-fields,
body.theme-baozipt.page-special .torrent-search-box__quick-fields {
    min-width: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__primary,
body.theme-baozipt.page-special .torrent-search-box__primary {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

body.theme-baozipt.page-torrents .torrent-search-box__search-line,
body.theme-baozipt.page-special .torrent-search-box__search-line {
    display: flex;
    min-width: 240px;
    flex: 1 1 auto;
    align-items: stretch;
    overflow: visible;
    border: 1px solid #e5d5c0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(103, 70, 35, .04);
}

body.theme-baozipt.page-torrents .torrent-search-box__visually-hidden,
body.theme-baozipt.page-special .torrent-search-box__visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__scope,
body.theme-baozipt.page-special .torrent-search-box__scope,
body.theme-baozipt.page-torrents .torrent-search-box__mode,
body.theme-baozipt.page-special .torrent-search-box__mode {
    position: relative;
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__scope,
body.theme-baozipt.page-special .torrent-search-box__scope {
    width: 128px;
}

body.theme-baozipt.page-torrents .torrent-search-box__mode,
body.theme-baozipt.page-special .torrent-search-box__mode {
    width: 104px;
    overflow: hidden;
    border-left: 1px solid #eee2d2;
    border-radius: 0 8px 8px 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__scope select,
body.theme-baozipt.page-special .torrent-search-box__scope select,
body.theme-baozipt.page-torrents .torrent-search-box__mode select,
body.theme-baozipt.page-special .torrent-search-box__mode select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 32px 0 13px !important;
    color: #553f31;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__scope select,
body.theme-baozipt.page-special .torrent-search-box__scope select {
    border-radius: 8px 0 0 8px !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__mode select,
body.theme-baozipt.page-special .torrent-search-box__mode select {
    border-radius: 0 8px 8px 0 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__keyword,
body.theme-baozipt.page-special .torrent-search-box__keyword {
    position: relative;
    min-width: 120px;
    flex: 1 1 auto;
    border-left: 1px solid #eee2d2;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions,
body.theme-baozipt.page-special .torrent-search-box__suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    width: auto !important;
    text-align: left;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #382b23 !important;
    border: 1px solid #dfc8aa !important;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(83, 54, 25, .14);
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions > div,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions > div {
    display: flex;
    height: auto !important;
    min-height: 34px;
    align-items: center;
    padding: 0 10px !important;
    border-bottom: 1px solid #f0e2cf;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions > div:last-child,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions > div:last-child {
    border-bottom: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions > div > table,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions > div > table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions > div > table td,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions > div > table td {
    height: auto !important;
    padding: 6px 0 !important;
    line-height: 20px;
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__suggestions #suggestions > div > table td:last-child,
body.theme-baozipt.page-special .torrent-search-box__suggestions #suggestions > div > table td:last-child {
    width: auto !important;
    padding-left: 16px !important;
    text-align: right;
    white-space: nowrap;
}

body.theme-baozipt.page-torrents .torrent-search-box__submit-button,
body.theme-baozipt.page-special .torrent-search-box__submit-button,
body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle,
body.theme-baozipt.page-special .torrent-search-box__advanced-toggle {
    min-height: 44px;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    white-space: nowrap;
}

body.theme-baozipt.page-torrents .torrent-search-box__submit-button,
body.theme-baozipt.page-special .torrent-search-box__submit-button {
    min-width: 88px;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle,
body.theme-baozipt.page-special .torrent-search-box__advanced-toggle {
    display: inline-flex;
    min-width: 112px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #69482f !important;
    font-weight: 750;
    cursor: pointer;
    border: 1px solid #dfbd8f !important;
    background: #fff9f0 !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle:hover,
body.theme-baozipt.page-special .torrent-search-box__advanced-toggle:hover,
body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle[aria-expanded="true"],
body.theme-baozipt.page-special .torrent-search-box__advanced-toggle[aria-expanded="true"] {
    color: #cc4b18 !important;
    border-color: #e7a45d !important;
    background: #fff2e1 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__chevron,
body.theme-baozipt.page-special .torrent-search-box__chevron {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease, margin .18s ease;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle[aria-expanded="true"] .torrent-search-box__chevron,
body.theme-baozipt.page-special .torrent-search-box__advanced-toggle[aria-expanded="true"] .torrent-search-box__chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced[hidden],
body.theme-baozipt.page-special .torrent-search-box__advanced[hidden] {
    display: none !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-cell,
body.theme-baozipt.page-special .torrent-search-box__advanced-cell {
    padding: 0 !important;
    vertical-align: top;
    border-top: 1px solid #edddc7 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-content,
body.theme-baozipt.page-special .torrent-search-box__advanced-content {
    padding: 16px;
    background: #fffaf3;
}

body.theme-baozipt.page-torrents .torrent-search-box__advanced-layout,
body.theme-baozipt.page-special .torrent-search-box__advanced-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 16px;
    align-items: start;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomies,
body.theme-baozipt.page-special .torrent-search-box__taxonomies {
    min-width: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__filters,
body.theme-baozipt.page-special .torrent-search-box__filters {
    min-width: 0;
    padding: 13px;
    border: 1px solid #eedac0;
    border-radius: 10px;
    background: #fff7eb;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid {
    width: 100%;
    min-width: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody {
    display: grid !important;
    width: 100%;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 8px 10px;
    align-items: stretch;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd),
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd) {
    display: flex !important;
    grid-column: 1;
    align-items: center;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd) > td,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd) > td {
    display: flex !important;
    width: 100% !important;
    height: 100%;
    min-height: 40px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 9px 4px !important;
    color: #6b4a32;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even),
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) {
    display: grid !important;
    grid-column: 2;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    align-items: stretch;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid #f0e1cd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 3px 6px !important;
    color: #c74415;
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td:hover,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td:hover {
    background: #fff3e2 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid label,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid input[type="checkbox"],
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid .btn.medium,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid .btn.medium {
    width: 76px;
    min-width: 76px;
    min-height: 34px;
    margin: 0 !important;
    padding: 6px 12px;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td:last-child,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(even) > td:last-child {
    width: 76px !important;
    grid-column: -2 / -1;
    justify-self: end;
    justify-content: flex-end;
    padding-right: 0 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid,
body.theme-baozipt.page-special .torrent-search-box__filter-grid {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody,
body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(110px, .8fr) minmax(170px, 1.2fr);
    gap: 8px 10px;
    align-items: center;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody > tr,
body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody > tr {
    display: contents !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody > tr > td,
body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody > tr > td {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody > tr:nth-child(odd) > td,
body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody > tr:nth-child(odd) > td {
    justify-content: flex-end;
    color: #684a35;
    font-weight: 750;
    text-align: right;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid select,
body.theme-baozipt.page-special .torrent-search-box__filter-grid select {
    width: 100% !important;
    min-width: 0;
    min-height: 38px;
}

body.theme-baozipt.page-torrents .torrent-search-box__filter-grid input[type="number"],
body.theme-baozipt.page-torrents .torrent-search-box__filter-grid input[type="text"],
body.theme-baozipt.page-special .torrent-search-box__filter-grid input[type="number"],
body.theme-baozipt.page-special .torrent-search-box__filter-grid input[type="text"] {
    width: calc(50% - 13px) !important;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__meta,
body.theme-baozipt.page-special .torrent-search-box__meta {
    width: 100% !important;
    margin: 12px 0 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__meta td,
body.theme-baozipt.page-special .torrent-search-box__meta td {
    height: auto !important;
    padding: 7px 4px 0 !important;
    text-align: left !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 1100px) {
    body.theme-baozipt.page-torrents .torrent-search-box__primary,
    body.theme-baozipt.page-special .torrent-search-box__primary {
        flex-wrap: wrap;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__search-line,
    body.theme-baozipt.page-special .torrent-search-box__search-line {
        min-width: 100%;
        flex-basis: 100%;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__advanced-layout,
    body.theme-baozipt.page-special .torrent-search-box__advanced-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-torrents .torrent-search-box__filters,
    body.theme-baozipt.page-special .torrent-search-box__filters {
        width: 100%;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody,
    body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody {
        grid-template-columns: minmax(130px, .35fr) minmax(190px, .65fr);
    }
}

@media (max-width: 680px) {
    body.theme-baozipt.page-torrents .torrent-search-box__scope,
    body.theme-baozipt.page-special .torrent-search-box__scope {
        width: 108px;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__mode,
    body.theme-baozipt.page-special .torrent-search-box__mode {
        width: 88px;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__submit-button,
    body.theme-baozipt.page-special .torrent-search-box__submit-button,
    body.theme-baozipt.page-torrents .torrent-search-box__advanced-toggle,
    body.theme-baozipt.page-special .torrent-search-box__advanced-toggle {
        flex: 1 1 calc(50% - 5px);
    }

    body.theme-baozipt.page-torrents .torrent-search-box__advanced-content,
    body.theme-baozipt.page-special .torrent-search-box__advanced-content {
        padding: 12px;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody,
    body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr,
    body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr {
        grid-column: 1 !important;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd) > td,
    body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr:nth-child(odd) > td {
        justify-content: flex-start;
        padding: 5px 2px 0 !important;
        text-align: left;
    }

    body.theme-baozipt.page-torrents .torrent-search-box__filter-grid > tbody,
    body.theme-baozipt.page-special .torrent-search-box__filter-grid > tbody {
        grid-template-columns: 104px minmax(170px, 1fr);
    }
}

body.theme-baozipt.page-torrents table.torrents,
body.theme-baozipt.page-special table.torrents {
    width: 100% !important;
    min-width: 1080px;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: hidden !important;
    border: 1px solid #e6c28f !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: 0 5px 15px rgba(125, 78, 29, .055) !important;
}

body.theme-baozipt.page-torrents .torrent-list-scroll,
body.theme-baozipt.page-special .torrent-list-scroll {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    contain: inline-size;
    overscroll-behavior-inline: contain;
    border-radius: 12px;
    scrollbar-color: #dda164 #fff1dc;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.theme-baozipt.page-torrents .torrent-list-scroll:focus-visible,
body.theme-baozipt.page-special .torrent-list-scroll:focus-visible {
    outline: 2px solid rgba(239, 92, 20, .42);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    body.theme-baozipt.page-torrents .torrent-list-scroll > table.torrents,
    body.theme-baozipt.page-special .torrent-list-scroll > table.torrents {
        width: 1080px !important;
        min-width: 1080px !important;
        max-width: none !important;
        table-layout: auto !important;
    }
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr > td,
body.theme-baozipt.page-special table.torrents > tbody > tr > td {
    padding: 9px 8px !important;
    border: 0 !important;
    border-right: 1px solid #ead3b2 !important;
    border-bottom: 1px solid #ead3b2 !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr > td:last-child,
body.theme-baozipt.page-special table.torrents > tbody > tr > td:last-child {
    border-right: 0 !important;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr:last-child > td,
body.theme-baozipt.page-special table.torrents > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-torrents table.torrents td.colhead,
body.theme-baozipt.page-torrents table.torrents td.colhead2,
body.theme-baozipt.page-special table.torrents td.colhead,
body.theme-baozipt.page-special table.torrents td.colhead2 {
    height: 44px;
    color: #654226;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffe8c4, #fff2de) !important;
}

body.theme-baozipt.page-torrents table.torrents img.comments,
body.theme-baozipt.page-torrents table.torrents img.time,
body.theme-baozipt.page-torrents table.torrents img.size,
body.theme-baozipt.page-torrents table.torrents img.seeders,
body.theme-baozipt.page-torrents table.torrents img.leechers,
body.theme-baozipt.page-torrents table.torrents img.snatched,
body.theme-baozipt.page-special table.torrents img.comments,
body.theme-baozipt.page-special table.torrents img.time,
body.theme-baozipt.page-special table.torrents img.size,
body.theme-baozipt.page-special table.torrents img.seeders,
body.theme-baozipt.page-special table.torrents img.leechers,
body.theme-baozipt.page-special table.torrents img.snatched {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px !important;
    image-rendering: auto;
    transition: transform .16s ease, filter .16s ease;
}

body.theme-baozipt.page-torrents table.torrents img.comments,
body.theme-baozipt.page-special table.torrents img.comments {
    background-image: url("../../pic/baozi/torrent-icons/comments.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.time,
body.theme-baozipt.page-special table.torrents img.time {
    background-image: url("../../pic/baozi/torrent-icons/time.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.size,
body.theme-baozipt.page-special table.torrents img.size {
    background-image: url("../../pic/baozi/torrent-icons/size.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.seeders,
body.theme-baozipt.page-special table.torrents img.seeders {
    background-image: url("../../pic/baozi/torrent-icons/seeders.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.leechers,
body.theme-baozipt.page-special table.torrents img.leechers {
    background-image: url("../../pic/baozi/torrent-icons/leechers.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.snatched,
body.theme-baozipt.page-special table.torrents img.snatched {
    background-image: url("../../pic/baozi/torrent-icons/snatched.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.download,
body.theme-baozipt.page-torrents table.torrents img.bookmark,
body.theme-baozipt.page-torrents table.torrents img.delbookmark,
body.theme-baozipt.page-torrents table.torrents img.staff_edit,
body.theme-baozipt.page-torrents table.torrents img.staff_delete,
body.theme-baozipt.page-special table.torrents img.download,
body.theme-baozipt.page-special table.torrents img.bookmark,
body.theme-baozipt.page-special table.torrents img.delbookmark,
body.theme-baozipt.page-special table.torrents img.staff_edit,
body.theme-baozipt.page-special table.torrents img.staff_delete {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    image-rendering: auto;
    transition: transform .16s ease, filter .16s ease;
}

body.theme-baozipt.page-torrents table.torrents img.download,
body.theme-baozipt.page-special table.torrents img.download {
    background-image: url("../../pic/baozi/torrent-icons/download.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.delbookmark,
body.theme-baozipt.page-special table.torrents img.delbookmark {
    background-image: url("../../pic/baozi/torrent-icons/bookmark.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.bookmark,
body.theme-baozipt.page-special table.torrents img.bookmark {
    background-image: url("../../pic/baozi/torrent-icons/bookmark-active.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.download,
body.theme-baozipt.page-torrents table.torrents img.bookmark,
body.theme-baozipt.page-torrents table.torrents img.delbookmark,
body.theme-baozipt.page-special table.torrents img.download,
body.theme-baozipt.page-special table.torrents img.bookmark,
body.theme-baozipt.page-special table.torrents img.delbookmark {
    width: 22px !important;
    height: 22px !important;
    background-size: 22px 22px !important;
}

body.theme-baozipt.page-torrents table.torrents img.staff_edit,
body.theme-baozipt.page-special table.torrents img.staff_edit {
    background-image: url("../../pic/baozi/torrent-icons/edit.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.staff_delete,
body.theme-baozipt.page-special table.torrents img.staff_delete {
    background-image: url("../../pic/baozi/torrent-icons/delete.svg") !important;
}

body.theme-baozipt.page-torrents table.torrents img.sticky,
body.theme-baozipt.page-special table.torrents img.sticky {
    width: 18px !important;
    height: 18px !important;
    margin: 0 3px 0 0 !important;
    padding: 0 !important;
    vertical-align: -4px;
    background: transparent url("../../pic/baozi/torrent-icons/sticky.svg") center / 18px 18px no-repeat !important;
    image-rendering: auto;
}

body.theme-baozipt.page-torrents table.torrents a:hover > img.comments,
body.theme-baozipt.page-torrents table.torrents a:hover > img.time,
body.theme-baozipt.page-torrents table.torrents a:hover > img.size,
body.theme-baozipt.page-torrents table.torrents a:hover > img.seeders,
body.theme-baozipt.page-torrents table.torrents a:hover > img.leechers,
body.theme-baozipt.page-torrents table.torrents a:hover > img.snatched,
body.theme-baozipt.page-torrents table.torrents a:hover > img.download,
body.theme-baozipt.page-torrents table.torrents a:hover > img.bookmark,
body.theme-baozipt.page-torrents table.torrents a:hover > img.delbookmark,
body.theme-baozipt.page-torrents table.torrents a:hover > img.staff_edit,
body.theme-baozipt.page-torrents table.torrents a:hover > img.staff_delete,
body.theme-baozipt.page-special table.torrents a:hover > img.comments,
body.theme-baozipt.page-special table.torrents a:hover > img.time,
body.theme-baozipt.page-special table.torrents a:hover > img.size,
body.theme-baozipt.page-special table.torrents a:hover > img.seeders,
body.theme-baozipt.page-special table.torrents a:hover > img.leechers,
body.theme-baozipt.page-special table.torrents a:hover > img.snatched,
body.theme-baozipt.page-special table.torrents a:hover > img.download,
body.theme-baozipt.page-special table.torrents a:hover > img.bookmark,
body.theme-baozipt.page-special table.torrents a:hover > img.delbookmark,
body.theme-baozipt.page-special table.torrents a:hover > img.staff_edit,
body.theme-baozipt.page-special table.torrents a:hover > img.staff_delete {
    filter: saturate(1.12) brightness(1.03);
    transform: translateY(-1px);
}

body.theme-baozipt.page-torrents table.torrents a:has(> img.download),
body.theme-baozipt.page-torrents table.torrents a:has(> img.bookmark),
body.theme-baozipt.page-torrents table.torrents a:has(> img.delbookmark),
body.theme-baozipt.page-torrents table.torrents a:has(> img.staff_edit),
body.theme-baozipt.page-torrents table.torrents a:has(> img.staff_delete),
body.theme-baozipt.page-special table.torrents a:has(> img.download),
body.theme-baozipt.page-special table.torrents a:has(> img.bookmark),
body.theme-baozipt.page-special table.torrents a:has(> img.delbookmark),
body.theme-baozipt.page-special table.torrents a:has(> img.staff_edit),
body.theme-baozipt.page-special table.torrents a:has(> img.staff_delete) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 7px;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr:not(:first-child) > td,
body.theme-baozipt.page-special table.torrents > tbody > tr:not(:first-child) > td {
    height: 64px;
    vertical-align: middle;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr > td:first-child,
body.theme-baozipt.page-special table.torrents > tbody > tr > td:first-child {
    width: 64px;
    min-width: 64px;
    padding: 6px !important;
    text-align: center;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr > td:nth-child(2),
body.theme-baozipt.page-special table.torrents > tbody > tr > td:nth-child(2) {
    width: 100%;
    min-width: 360px;
    padding: 0 !important;
}

body.theme-baozipt.page-torrents table.torrents > tbody > tr > td:nth-child(n + 3),
body.theme-baozipt.page-special table.torrents > tbody > tr > td:nth-child(n + 3) {
    width: 1%;
    min-width: 42px;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.theme-baozipt.page-torrents table.torrents .torrentname,
body.theme-baozipt.page-special table.torrents .torrentname {
    width: 100% !important;
    min-width: 330px;
    table-layout: fixed !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents table.torrents .torrentname > tbody > tr > td,
body.theme-baozipt.page-special table.torrents .torrentname > tbody > tr > td {
    height: auto !important;
    padding: 5px 8px !important;
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-torrents table.torrents .torrentname > tbody > tr > td:first-child:has(> img.nexus-lazy-load[data-src=""]),
body.theme-baozipt.page-special table.torrents .torrentname > tbody > tr > td:first-child:has(> img.nexus-lazy-load[data-src=""]) {
    display: none !important;
}

body.theme-baozipt.page-torrents table.torrents .torrentname > tbody > tr > td:last-child,
body.theme-baozipt.page-special table.torrents .torrentname > tbody > tr > td:last-child,
body.theme-baozipt.page-requireseed table.torrents .torrentname > tbody > tr > td:last-child {
    width: 34px !important;
    padding: 4px !important;
}

/* Keep the PT-Gen rating badge horizontal.  Its legacy 40px cell is too
   narrow for a 16px site icon plus values such as "8.9" or "N/A". */
body.theme-baozipt:is(.page-torrents, .page-special, .page-requireseed)
table.torrents .torrentname > tbody > tr > td.embedded:has(
    > div[style*="flex-direction: column"] > div > img[alt][title]
) {
    width: 68px !important;
    min-width: 68px;
    padding: 4px 6px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-requireseed)
table.torrents .torrentname > tbody > tr > td.embedded:has(
    > div[style*="flex-direction: column"] > div > img[alt][title]
) > div > div {
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px;
    white-space: nowrap !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-requireseed)
table.torrents .torrentname > tbody > tr > td.embedded:has(
    > div[style*="flex-direction: column"] > div > img[alt][title]
) > div > div > img {
    flex: 0 0 16px;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-requireseed)
table.torrents .torrentname > tbody > tr > td.embedded:has(
    > div[style*="flex-direction: column"] > div > img[alt][title]
) > div > div > span {
    flex: 0 0 auto;
    white-space: nowrap !important;
}

body.theme-baozipt.page-torrents table.torrents .torrentname a,
body.theme-baozipt.page-special table.torrents .torrentname a {
    color: #c74415;
    font-weight: 750;
}

/* Shared torrent category icons: use the same BaoziPT artwork in torrent
   lists, User CP defaults, and RSS category selection. */
body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss)
img:is(.c_movies, .c_doc, .c_anime, .c_tvseries, .c_tvshows, .c_mv, .c_sports, .c_misc, .c_hqaudio, .c_shortdrama, [title="短剧"][alt="短剧"]) {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 48px 48px !important;
    image-rendering: auto;
    box-shadow: 0 2px 5px rgba(112, 67, 44, 0.12);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss)
a:hover > img:is(.c_movies, .c_doc, .c_anime, .c_tvseries, .c_tvshows, .c_mv, .c_sports, .c_misc, .c_hqaudio, .c_shortdrama, [title="短剧"][alt="短剧"]) {
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(112, 67, 44, 0.18);
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_movies {
    background-image: url("../../pic/baozi/category-icons/movies.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_doc {
    background-image: url("../../pic/baozi/category-icons/documentaries.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_anime {
    background-image: url("../../pic/baozi/category-icons/anime.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_tvseries {
    background-image: url("../../pic/baozi/category-icons/tv-series.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_tvshows {
    background-image: url("../../pic/baozi/category-icons/tv-shows.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_mv {
    background-image: url("../../pic/baozi/category-icons/music-videos.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_sports {
    background-image: url("../../pic/baozi/category-icons/sports.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_hqaudio {
    background-image: url("../../pic/baozi/category-icons/hq-audio.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss) img.c_misc {
    background-image: url("../../pic/baozi/category-icons/misc.svg") !important;
}

body.theme-baozipt:is(.page-torrents, .page-special, .page-usercp, .page-getrss)
img:is(.c_shortdrama, [title="短剧"][alt="短剧"]) {
    background-image: url("../../pic/baozi/category-icons/short-drama.svg") !important;
}

/* Torrent details: preserve NexusPHP's native field order and table markup. */
body.theme-baozipt.page-details #outer > h1#top {
    position: relative;
    width: 100%;
    margin: 8px 0 14px !important;
    padding: 18px 24px !important;
    color: #493326;
    font-size: clamp(20px, 1.6vw, 26px) !important;
    line-height: 1.45;
    text-align: center !important;
    border: 1px solid var(--baozi-line);
    border-top: 4px solid var(--baozi-orange);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1d7 0%, #fffaf2 58%, #fff6e8 100%);
    box-shadow: 0 7px 20px rgba(118, 73, 34, 0.08);
}

body.theme-baozipt.page-details #outer > table[width="97%"] {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px;
    background: var(--baozi-paper) !important;
    box-shadow: 0 8px 24px rgba(118, 73, 34, 0.07);
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr > td {
    height: auto;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ead8bd !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr > td.rowhead {
    width: 148px !important;
    min-width: 148px;
    padding: 14px 18px !important;
    color: #68472f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    text-align: right;
    vertical-align: top;
    border-right: 1px solid #ead8bd !important;
    background: linear-gradient(90deg, #fff0d5, #fff5e5) !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr > td.rowfollow {
    padding: 13px 16px !important;
    color: #3e352e;
    font-size: 13px;
    line-height: 1.75;
    vertical-align: top;
    background: #fffaf3 !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr:hover > td.rowhead {
    background: #ffebc8 !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr:hover > td.rowfollow {
    background: #fff7ea !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow a {
    color: #c74415;
    font-weight: 700;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow a.index[href^="download.php"] {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin: -4px 8px -4px -4px;
    padding: 4px 12px;
    color: #fff;
    border: 1px solid #e65317;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff741f, #ee5013);
    box-shadow: 0 3px 8px rgba(226, 80, 23, 0.16);
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(img.dt_download) > td.rowfollow {
    font-size: 0;
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(img.dt_download) > td.rowfollow > a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
    margin: 2px 7px 2px 0;
    padding: 3px 10px;
    color: #85421e;
    font-size: 12px;
    border: 1px solid #e8c696;
    border-radius: 8px;
    background: #fff5e4;
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(img.dt_download) > td.rowfollow > a:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(img.dt_download) font.small {
    color: inherit;
    font-size: inherit;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow > table {
    width: auto;
    max-width: 100%;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 6px 4px !important;
    background: transparent !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow > table td {
    padding: 7px 10px !important;
    border: 1px solid #ead9bf !important;
    border-radius: 7px;
    background: #fff6e7 !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow form {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 8px 4px 0;
}

body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow input[type="text"] {
    width: min(360px, 62vw) !important;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr,
body.theme-baozipt.page-details #outer > table[width="97%"] #knfo,
body.theme-baozipt.page-details #outer > table[width="97%"] #filelist,
body.theme-baozipt.page-details #outer > table[width="97%"] #peerlist {
    max-width: 100%;
    overflow: auto;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr img {
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

/* Torrent details: replace the legacy image-sliced magic reward controls. */
body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(#magic_add) > td.rowfollow > div:first-child {
    display: flex;
    min-height: 38px;
    height: auto !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic > li {
    display: inline-flex;
    float: none !important;
    width: auto !important;
    min-width: 66px;
    height: 36px !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    padding: 0 16px !important;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1 !important;
    border: 1px solid #e65317;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff7b28, #ed5013) !important;
    box-shadow: 0 3px 9px rgba(226, 80, 23, 0.18);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    box-sizing: border-box;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic > li:hover {
    background: linear-gradient(135deg, #ff8b3e, #df4b12) !important;
    box-shadow: 0 5px 12px rgba(226, 80, 23, 0.24);
    transform: translateY(-1px);
}

body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic > li:active {
    box-shadow: 0 2px 6px rgba(226, 80, 23, 0.18);
    transform: translateY(0);
}

body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic > li > font {
    padding: 0 !important;
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit;
    line-height: inherit;
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(#magic_add) input.btn:disabled {
    min-height: 36px;
    padding: 7px 14px;
    color: #8a6040 !important;
    font-weight: 700;
    border: 1px solid #e4c18f !important;
    border-radius: 9px;
    background: #fff2dd !important;
    box-shadow: none !important;
    opacity: 1;
}

body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(#magic_add) > td.rowfollow > div + div {
    margin-top: 5px;
    color: #72533c;
}

body.theme-baozipt.page-details #outer > table[width="97%"] #spanSumAll,
body.theme-baozipt.page-details #outer > table[width="97%"] #count_user_spa {
    color: #d84c16;
    font-weight: 900;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) {
    width: 100% !important;
    margin: 16px 0 0 !important;
    overflow: hidden;
    border: 1px solid var(--baozi-line) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px;
    background: #fffaf3 !important;
    box-shadow: 0 8px 24px rgba(118, 73, 34, 0.06);
}

body.theme-baozipt.page-details #outer > table:has(form#compose) td.text {
    padding: 0 22px 20px !important;
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) td.text > b:first-child {
    display: block;
    margin: 0 -22px 16px;
    padding: 13px 18px;
    color: #6b452b;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid var(--baozi-line-soft);
    background: linear-gradient(90deg, #ffe7bd, #fff5e3);
}

body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: start;
    width: min(960px, 100%);
    margin: 0 auto;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) td.text > br,
body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > br {
    display: none;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) textarea {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    width: 100% !important;
    height: auto;
    min-height: 160px;
    resize: vertical;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > div {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, 25px);
    align-content: start;
    justify-content: center;
    gap: 4px;
    min-height: 160px;
    margin: 0;
    padding: 8px 6px;
    overflow: visible;
    border: 1px solid #e3c18e;
    border-radius: 9px;
    background: #fff6e7;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #deb47c transparent;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > div a,
body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > div img {
    display: block;
    width: 25px;
    height: 25px;
}

body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > input#qr {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
}

body.theme-baozipt.page-details #outer > p:last-of-type {
    margin: 10px 0 0;
    text-align: center;
}

body.theme-baozipt.page-details #outer > p:last-of-type > a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 4px 14px;
    border: 1px solid #e3bd88;
    border-radius: 8px;
    background: #fff5e5;
}

/* Upload page: minimal presentation over the untouched NexusPHP form. */
html body.theme-baozipt.page-upload #outer::before {
    display: none !important;
    content: none !important;
}

html body.theme-baozipt.page-upload #compose {
    width: min(100%, 1760px);
    margin: 0 auto;
    padding: 0 22px 22px;
    overflow: visible;
    border: 1px solid #eadfce;
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 26px rgba(103, 67, 36, 0.055);
    box-sizing: border-box;
}

html body.theme-baozipt.page-upload #compose::before {
    content: var(--baozi-copy-upload-short, "");
    display: block;
    margin: 0 0 2px;
    padding: 16px 0 12px;
    color: #3f3025;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    border-bottom: 1px solid #eadfce;
}

html body.theme-baozipt.page-upload #compose > p {
    margin: 10px 0 2px !important;
    padding: 0 2px;
    color: #927d6b;
    font-size: 12px;
    text-align: left !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-scroll {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

@media (min-width: 1181px) {
    html body.theme-baozipt.page-upload #compose {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
        column-gap: 18px;
        align-items: start;
    }

    html body.theme-baozipt.page-upload #compose::before,
    html body.theme-baozipt.page-upload #compose > p {
        grid-column: 1 / -1;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-scroll {
        grid-column: 1;
        grid-row: 3;
    }

    html body.theme-baozipt.page-upload #compose .upload-live-review {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
}

html body.theme-baozipt.page-upload #compose .upload-form-scroll:focus-visible {
    outline: 2px solid rgba(239, 92, 20, .42);
    outline-offset: 3px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table {
    display: table !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody {
    display: table-row-group !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr {
    display: table-row;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr[relation][style*="display: none"] {
    display: none !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr > td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0;
    height: auto;
    padding: 7px 6px !important;
    vertical-align: top;
    border: 0 !important;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr > td.rowhead {
    width: 155px !important;
    min-width: 155px;
    padding: 12px 12px 7px 0 !important;
    color: #4f4035;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    vertical-align: top;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr > td.rowfollow {
    position: static !important;
    padding: 7px 0 7px 4px !important;
    color: #5d5147;
    font-size: 12px;
    line-height: 1.7;
    border-radius: 0 !important;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr:first-child > td.colhead {
    padding: 9px 13px !important;
    color: #6f5947;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
    border: 1px solid #eee0cc !important;
    border-radius: 8px;
    background: #fff8ed !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[type="text"],
html body.theme-baozipt.page-upload #compose .upload-form-table input[type="number"],
html body.theme-baozipt.page-upload #compose .upload-form-table select,
html body.theme-baozipt.page-upload #compose .upload-form-table textarea {
    max-width: 100%;
    min-height: 38px;
    color: #40372f;
    border: 1px solid #e2d2bc !important;
    border-radius: 7px;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[type="text"]:focus,
html body.theme-baozipt.page-upload #compose .upload-form-table input[type="number"]:focus,
html body.theme-baozipt.page-upload #compose .upload-form-table select:focus,
html body.theme-baozipt.page-upload #compose .upload-form-table textarea:focus {
    border-color: #dc9a50 !important;
    box-shadow: 0 0 0 3px rgba(220, 154, 80, 0.12) !important;
    outline: 0;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[name="name"],
html body.theme-baozipt.page-upload #compose .upload-form-table input[name="small_descr"] {
    width: 100% !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[type="file"] {
    width: min(100%, 560px) !important;
    min-height: 38px !important;
    padding: 4px !important;
    color: #796858;
    border: 1px solid #e2d2bc !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-sizing: border-box;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 9px;
    padding: 3px 10px;
    color: #654730;
    font-weight: 700;
    border: 1px solid #dfc4a0;
    border-radius: 6px;
    background: #fff8ed;
    cursor: pointer;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[name="nfo"] {
    width: min(100%, 420px) !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table tr:has(#torrent) .rowfollow {
    min-height: 0 !important;
    padding: 7px 0 7px 4px !important;
    border: 0 !important;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table tr:has(#torrent) .rowfollow::before {
    display: none !important;
    content: none !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table font.medium {
    display: block !important;
    margin-top: 4px;
    color: #9a8b7e;
    font-size: 11px;
    line-height: 1.55;
}

html body.theme-baozipt.page-upload #compose .upload-form-table .nexus-input-box,
html body.theme-baozipt.page-upload #compose .upload-form-table .nexus-input-box > div {
    max-width: 100%;
    min-width: 0;
}

html body.theme-baozipt.page-upload #compose .upload-form-table .nexus-input-box {
    gap: 8px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table .nexus-input-box input[type="text"] {
    width: 100% !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table input[type="checkbox"] {
    accent-color: var(--baozi-orange);
}

html body.theme-baozipt.page-upload #compose .upload-form-table select {
    min-width: 150px;
    padding-right: 32px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table table:has(> #upload-descr-edit) {
    display: table !important;
    width: 100% !important;
    overflow: hidden;
    table-layout: auto !important;
    border: 1px solid #e2d2bc !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 9px;
    background: #fff !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table table:has(> #upload-descr-edit) > #upload-descr-edit {
    display: table-row-group !important;
    width: auto !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr {
    display: table-row !important;
    width: auto !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr > td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px !important;
    vertical-align: top;
    border: 0 !important;
    border-bottom: 1px solid #eee1cf !important;
    background: #fff !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td {
    background: #fffbf5 !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td > table,
html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody {
    display: table !important;
    width: 100% !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td > table {
    width: auto !important;
    max-width: 100%;
    table-layout: auto !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td > table > tbody > tr {
    display: table-row !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:first-child > td > table td {
    display: table-cell !important;
    width: auto !important;
    padding: 3px !important;
    border: 0 !important;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit input[type="button"] {
    width: auto !important;
    min-width: 34px;
    min-height: 32px;
    padding: 5px 9px;
    color: #645448 !important;
    border: 1px solid #e3d4c0 !important;
    border-radius: 6px;
    background: #fff !important;
    box-shadow: none !important;
    white-space: nowrap;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit input[type="button"]:hover {
    color: #bd4e1f;
    border-color: #dda15b !important;
    background: #fff8ed !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit select {
    width: auto !important;
    min-width: 112px;
    min-height: 32px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:first-child {
    width: auto !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) {
    display: table-cell !important;
    width: 128px !important;
    min-width: 128px;
    padding: 8px 6px !important;
    border-left: 1px solid #eee1cf !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) > table {
    width: auto !important;
    margin: 0 auto 5px;
    border-spacing: 1px !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) > table td {
    padding: 1px !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) img {
    display: block;
    width: auto;
    max-width: 18px;
    height: auto;
    max-height: 18px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) > a {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #descr {
    width: 100% !important;
    min-height: 240px !important;
    height: 240px;
    padding: 12px;
    border: 0 !important;
    border-radius: 0;
    resize: vertical;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit iframe {
    display: block;
    height: 72px !important;
    min-height: 72px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit ~ tbody:last-child {
    display: table-row-group !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-btn-preview,
html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-btn-edit {
    display: inline-block !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table tr[relation] select {
    margin: 2px 14px 2px 4px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table tr[relation] input[type="checkbox"] {
    margin: 4px 5px 4px 10px;
}

html body.theme-baozipt.page-upload #compose .upload-form-table td.toolbox {
    padding: 18px 0 4px !important;
    color: #625448;
    font-size: 12px;
    text-align: center !important;
    border-top: 1px solid #eadfce !important;
    background: transparent !important;
}

html body.theme-baozipt.page-upload #compose .upload-form-table td.toolbox #qr {
    min-width: 108px;
    min-height: 40px;
    margin-left: 10px;
    color: #fff;
    font-weight: 800;
    border-color: #f05a1c;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff741f, #ee5013);
}

/* Upload page: non-blocking live review.  It reports only and never owns form submission. */
html body.theme-baozipt.page-upload #compose .upload-live-review {
    position: sticky;
    z-index: 20;
    top: 18px;
    width: 100%;
    max-height: calc(100vh - 36px);
    color: #4d3b2e;
    overflow: hidden;
    border: 1px solid #e6bd82;
    border-radius: 13px;
    background: rgba(255, 250, 242, .97);
    box-shadow: 0 14px 38px rgba(91, 55, 24, .16);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

html body.theme-baozipt.page-upload #compose .upload-live-review__header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 11px 11px 9px;
    border-bottom: 1px solid #efddc3;
    background: linear-gradient(105deg, #ffe5bd, #fff4e2);
}

html body.theme-baozipt.page-upload #compose .upload-live-review__icon {
    display: inline-flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    border-radius: 9px;
    background: linear-gradient(145deg, #ff7b28, #e95417);
    box-shadow: 0 4px 9px rgba(225, 80, 19, .18);
}

html body.theme-baozipt.page-upload #compose .upload-live-review__heading {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 1px;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__heading strong {
    color: #573b27;
    font-size: 14px;
    line-height: 1.25;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__heading small {
    color: #92745d;
    font-size: 10px;
    line-height: 1.35;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__toggle {
    display: inline-flex;
    min-width: 58px;
    min-height: 31px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    color: #79553a;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e0bd8d;
    border-radius: 8px;
    background: #fffaf2;
    box-shadow: none;
    cursor: pointer;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__toggle:hover,
html body.theme-baozipt.page-upload #compose .upload-live-review__toggle:focus-visible {
    color: #b94416;
    border-color: #dc9250;
    outline: 0;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__chevron {
    display: inline-block;
    font-size: 13px;
    transition: transform .18s ease;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__summary {
    padding: 8px 11px;
    color: #8a551e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    border-bottom: 1px solid #f0e1cc;
    background: #fff8ec;
}

html body.theme-baozipt.page-upload #compose .upload-live-review.has-errors .upload-live-review__summary {
    color: #b83825;
    background: #fff1ed;
}

html body.theme-baozipt.page-upload #compose .upload-live-review.is-ready .upload-live-review__summary {
    color: #397455;
    background: #f0f9f3;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__body {
    max-height: calc(100vh - 292px);
    padding: 9px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9ac75 transparent;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__note {
    margin: 0 2px 8px !important;
    padding: 0 !important;
    color: #9a806a !important;
    font-size: 10px !important;
    line-height: 1.45;
    text-align: left !important;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item {
    margin: 0;
    padding: 0;
    border: 1px solid #eadcc8;
    border-radius: 8px;
    background: #fffdf9;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item.is-error {
    border-color: #efc1b7;
    background: #fff4f1;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item.is-warning {
    border-color: #ead09b;
    background: #fff9ec;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item.is-pass {
    border-color: #cfe3d5;
    background: #f7fcf8;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item-button {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    color: inherit;
    font: inherit;
    text-align: left;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item-button:disabled {
    color: inherit;
    opacity: 1;
    cursor: default;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__item-button:not(:disabled):hover,
html body.theme-baozipt.page-upload #compose .upload-live-review__item-button:not(:disabled):focus-visible {
    outline: 2px solid rgba(222, 125, 52, .24);
    outline-offset: -2px;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__state {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #88725f;
    font-size: 11px;
    font-weight: 900;
    border-radius: 50%;
    background: #f2e9dc;
}

html body.theme-baozipt.page-upload #compose .is-error .upload-live-review__state {
    color: #fff;
    background: #d94c35;
}

html body.theme-baozipt.page-upload #compose .is-warning .upload-live-review__state {
    color: #fff;
    background: #d48a25;
}

html body.theme-baozipt.page-upload #compose .is-pass .upload-live-review__state {
    color: #fff;
    background: #58956c;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__copy strong {
    color: #563e2c;
    font-size: 11px;
    line-height: 1.35;
}

html body.theme-baozipt.page-upload #compose .upload-live-review__copy small {
    color: #89715e;
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

html body.theme-baozipt.page-upload #compose .upload-live-review.is-collapsed .upload-live-review__body {
    display: none;
}

html body.theme-baozipt.page-upload #compose .upload-live-review.is-collapsed .upload-live-review__summary {
    border-bottom: 0;
}

html body.theme-baozipt.page-upload #compose .upload-live-review.is-collapsed .upload-live-review__chevron {
    transform: rotate(180deg);
}

@media (max-width: 1180px) {
    html body.theme-baozipt.page-upload #compose .upload-live-review {
        position: relative;
        z-index: 1;
        inset: auto;
        width: 100%;
        max-height: none;
        margin: 10px 0 12px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(91, 55, 24, .08);
        backdrop-filter: none;
    }

    html body.theme-baozipt.page-upload #compose .upload-live-review__body {
        max-height: min(56vh, 520px);
    }
}

@media (max-width: 760px) {
    html body.theme-baozipt.page-upload #compose {
        padding: 0 12px 14px;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-scroll {
        overflow-x: auto;
        overflow-y: auto;
        contain: inline-size;
        overscroll-behavior-inline: contain;
        scrollbar-color: #dda164 #fff1dc;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-scroll > .upload-form-table {
        width: 1120px !important;
        min-width: 1120px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr > td.rowhead {
        width: 150px !important;
        min-width: 150px;
        padding-right: 8px !important;
        font-size: 12px;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-table > tbody > tr > td.rowfollow {
        padding-left: 2px !important;
    }

    html body.theme-baozipt.page-upload #compose .upload-form-table #upload-descr-edit > tr:has(#descr) > td:nth-child(2) {
        width: 128px !important;
        min-width: 128px;
    }
}

@media (max-width: 760px) {
    body.theme-baozipt.page-details #outer > h1#top {
        padding: 14px 16px !important;
        font-size: 18px !important;
        overflow-wrap: anywhere;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] > tbody,
    body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr {
        display: block;
        width: 100%;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr > td.rowhead {
        display: block;
        width: 100% !important;
        min-width: 0;
        padding: 9px 12px !important;
        font-size: 12px;
        line-height: 1.45;
        text-align: left !important;
        white-space: normal !important;
        border-right: 0 !important;
        border-bottom: 1px solid #ead8bd !important;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr > td.rowfollow {
        display: block;
        width: 100% !important;
        min-width: 0;
        padding: 12px !important;
        font-size: 12px;
        overflow-wrap: anywhere;
        word-break: break-word;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] > tbody > tr:last-child > td.rowhead {
        border-bottom: 1px solid #ead8bd !important;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(#magic_add) > td.rowfollow > div:first-child {
        align-items: flex-start;
        gap: 10px;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic {
        width: 100%;
        flex-wrap: nowrap;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #listNumber.magic > li {
        min-width: 0;
        flex: 1 1 68px;
        padding-inline: 10px !important;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(#magic_add) input.btn:disabled {
        max-width: 100%;
        white-space: normal;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow > table {
        width: 100% !important;
        max-width: 100%;
        border-spacing: 0 !important;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow > table > tbody > tr {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
        gap: 8px;
        width: 100%;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.rowfollow > table > tbody > tr > td {
        width: auto !important;
        min-width: 0;
        margin: 0;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(td.nexus-media-info-raw) td.rowfollow > table > tbody > tr:first-child {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.nexus-media-info-raw {
        grid-column: 1 / -1;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.nexus-media-info-raw details,
    body.theme-baozipt.page-details #outer > table[width="97%"] td.nexus-media-info-raw pre {
        max-width: 100%;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.nexus-media-info-raw summary {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] td.nexus-media-info-raw pre {
        overflow-x: auto;
        font-size: 11px;
        line-height: 1.55;
        white-space: pre;
        overflow-wrap: normal;
        word-break: normal;
        -webkit-overflow-scrolling: touch;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(form[action="subtitles.php"]) td.rowfollow form {
        display: flex;
        width: 100%;
        min-width: 0;
        margin: 0;
        flex-wrap: wrap;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] tr:has(form[action="subtitles.php"]) td.rowfollow input[type="text"] {
        width: auto !important;
        min-width: 0;
        flex: 1 1 180px;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr,
    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kothercopy,
    body.theme-baozipt.page-details #outer > table[width="97%"] [id^="kpt-gen-"] {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kothercopy,
    body.theme-baozipt.page-details #outer > table[width="97%"] #filelist,
    body.theme-baozipt.page-details #outer > table[width="97%"] #peerlist {
        display: block;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr table,
    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo table,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb table,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kothercopy table,
    body.theme-baozipt.page-details #outer > table[width="97%"] [id^="kpt-gen-"] table {
        width: 100% !important;
        max-width: 100%;
        table-layout: auto !important;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb > table {
        min-width: 350px;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kothercopy > table {
        min-width: 680px;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr img,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr video,
    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo img,
    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo video,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb img,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kothercopy img,
    body.theme-baozipt.page-details #outer > table[width="97%"] [id^="kpt-gen-"] img {
        max-width: 100%;
        height: auto !important;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #kdescr iframe,
    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo iframe,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb iframe,
    body.theme-baozipt.page-details #outer > table[width="97%"] [id^="kpt-gen-"] iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #knfo pre,
    body.theme-baozipt.page-details #outer > table[width="97%"] #kimdb pre,
    body.theme-baozipt.page-details #outer > table[width="97%"] [id^="kpt-gen-"] pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre;
        overflow-wrap: normal;
        word-break: normal;
        -webkit-overflow-scrolling: touch;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] #filelist > table,
    body.theme-baozipt.page-details #outer > table[width="97%"] #peerlist > table {
        width: max-content !important;
        min-width: 620px;
        max-width: none;
    }

    body.theme-baozipt.page-details #outer > table[width="97%"] a.index[href^="download.php"] {
        display: inline;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    body.theme-baozipt.page-details #outer > div[style*="justify-content: center"] > div {
        max-width: 100%;
        padding: 10px 14px !important;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer table[id^="cid"] td.embedded:first-child {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main > tbody {
        display: block;
        width: 100%;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main > tbody > tr {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        width: 100%;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main > tbody > tr > td {
        display: block;
        width: auto !important;
        min-width: 0;
        box-sizing: border-box;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main > tbody > tr:first-child > td:first-child img {
        max-width: 64px;
        height: auto;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all img,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all video,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all iframe,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all object,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all embed,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all audio {
        max-width: 100% !important;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all img,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all video {
        height: auto !important;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all pre,
    body.theme-baozipt.page-details #outer div:has(> table[id^="cid"]) + table.main td.word-break-all .codemain {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

    body.theme-baozipt.page-details #outer > table:has(form#compose) form#compose > div {
        grid-template-columns: repeat(3, 25px);
        min-height: 190px;
        padding-inline: 5px;
    }

    body.theme-baozipt.page-details #outer > table:has(form#compose) textarea {
        min-height: 190px;
    }
}

@media (max-width: 760px) {
    body.theme-baozipt.page-comment .comment-compose > h1 {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px 7px;
    }

    body.theme-baozipt.page-comment .comment-compose-title__sep {
        display: none;
    }

    body.theme-baozipt.page-upload #outer::before {
        padding: 13px 15px;
        font-size: 21px;
    }
}

/* Attendance page: turn the native calendar workflow into a Baozi dashboard. */
.theme-baozipt.page-attendance .attendance-page {
    width: min(100%, 1280px);
    margin: 0 auto;
    color: var(--baozi-ink);
    text-align: left;
}

.theme-baozipt.page-attendance .attendance-hero {
    display: grid;
    min-height: 118px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 0 0 14px;
    padding: 18px 24px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background:
        radial-gradient(circle at 90% 22%, rgba(255, 183, 80, .25), transparent 25%),
        linear-gradient(102deg, #ffe8c6, #fffaf2 72%);
    box-shadow: 0 8px 24px rgba(129, 78, 28, .08);
}

.theme-baozipt.page-attendance .attendance-hero__icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    color: #fff;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 32px;
    font-weight: 900;
    border: 5px solid #ffb06b;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff852f, #f05b12);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), 0 5px 14px rgba(212, 76, 12, .15);
}

.theme-baozipt.page-attendance .attendance-hero__copy > span {
    display: block;
    margin-bottom: 3px;
    color: var(--baozi-orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.theme-baozipt.page-attendance .attendance-hero__copy h1 {
    margin: 0;
    color: #35271c;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 31px;
    line-height: 1.18;
}

.theme-baozipt.page-attendance .attendance-hero__copy p {
    margin: 7px 0 0;
    color: #695341;
    font-size: 13px;
    line-height: 1.65;
}

.theme-baozipt.page-attendance .attendance-hero__copy p b { color: #d84a0e; }
.theme-baozipt.page-attendance .attendance-hero__ranking {
    min-width: 150px;
    padding: 11px 14px;
    color: #6a4a30;
    font-size: 12px;
    text-align: center;
    border: 1px solid #edc995;
    border-radius: 999px;
    background: rgba(255, 252, 245, .82);
}
.theme-baozipt.page-attendance .attendance-hero__ranking b { color: #dc4a0b; font-size: 17px; }

.theme-baozipt.page-attendance .attendance-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.theme-baozipt.page-attendance .attendance-stats article {
    display: grid;
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 1px 5px;
    padding: 12px 16px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: rgba(255, 250, 242, .92);
    box-shadow: 0 5px 15px rgba(129, 78, 28, .05);
}

.theme-baozipt.page-attendance .attendance-stats span {
    grid-column: 1 / -1;
    color: #836c58;
    font-size: 11px;
    font-weight: 700;
}
.theme-baozipt.page-attendance .attendance-stats strong { color: #e45110; font-size: 25px; line-height: 1.15; }
.theme-baozipt.page-attendance .attendance-stats small { align-self: end; padding-bottom: 3px; color: #8a725c; font-size: 10px; }

.theme-baozipt.page-attendance .attendance-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 14px;
}

.theme-baozipt.page-attendance .attendance-calendar-panel,
.theme-baozipt.page-attendance .attendance-rules-panel {
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background: rgba(255, 251, 244, .94);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-attendance .attendance-calendar-panel { padding: 16px; }
.theme-baozipt.page-attendance .attendance-calendar-panel > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px dashed #e8cba3;
}
.theme-baozipt.page-attendance .attendance-calendar-panel > header span,
.theme-baozipt.page-attendance .attendance-rules-panel header small { color: #e45a15; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.theme-baozipt.page-attendance .attendance-calendar-panel > header h2,
.theme-baozipt.page-attendance .attendance-rules-panel header h2 { margin: 2px 0 0; color: #3e2e22; font-size: 20px; }
.theme-baozipt.page-attendance .attendance-calendar-panel > header p { max-width: 390px; margin: 0; color: #826f5c; font-size: 10px; line-height: 1.55; text-align: right; }

.theme-baozipt.page-attendance #calendar {
    width: 100% !important;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fffdf9;
    box-shadow: none;
}
.theme-baozipt.page-attendance .fc { color: #574536; font-size: 11px; }
.theme-baozipt.page-attendance .fc .fc-toolbar { gap: 10px; margin-bottom: 10px; }
.theme-baozipt.page-attendance .fc .fc-toolbar-title { color: #3d2d21; font-size: 18px; font-weight: 800; }
.theme-baozipt.page-attendance .fc .fc-button-primary {
    min-height: 32px !important;
    padding: 4px 10px !important;
    color: #fff !important;
    font-size: 11px !important;
    border-color: #de5514 !important;
    border-radius: 7px !important;
    background: linear-gradient(100deg, #ff731f, #ed5511) !important;
    box-shadow: none !important;
}
.theme-baozipt.page-attendance .fc .fc-button-primary:disabled { opacity: .52; }
.theme-baozipt.page-attendance .fc-theme-standard td,
.theme-baozipt.page-attendance .fc-theme-standard th,
.theme-baozipt.page-attendance .fc-theme-standard .fc-scrollgrid { border-color: #ecdcc6 !important; }
.theme-baozipt.page-attendance .fc-theme-standard .fc-scrollgrid { overflow: hidden; border-radius: 9px; }
.theme-baozipt.page-attendance .fc-col-header-cell { background: #ffedd5; }
.theme-baozipt.page-attendance .fc-col-header-cell-cushion { padding: 7px 4px; color: #9b4d22; font-size: 10px; }
.theme-baozipt.page-attendance .fc-daygrid-day { background: rgba(255, 253, 249, .92); }
.theme-baozipt.page-attendance .fc-day-other { background: #faf4ea; }
.theme-baozipt.page-attendance .fc-day-today { background: #fff0d4 !important; box-shadow: inset 0 0 0 2px rgba(239, 104, 23, .22); }
.theme-baozipt.page-attendance .fc-daygrid-day-frame { min-height: 82px; }
.theme-baozipt.page-attendance .fc-daygrid-day-number { padding: 6px; color: #8a5030; font-weight: 700; }
.theme-baozipt.page-attendance .fc .fc-bg-event { opacity: 1; background: linear-gradient(145deg, #ffddaf, #ffd099) !important; }
.theme-baozipt.page-attendance .fc .fc-daygrid-event { margin: 1px 4px; padding: 1px 5px; color: #fff; border: 0; border-radius: 999px; background: #ef6a21; }
.theme-baozipt.page-attendance .fc .fc-daygrid-event-dot { border-color: #ef6a21; }
.theme-baozipt.page-attendance .fc .fc-event-title { font-weight: 800; }
.theme-baozipt.page-attendance .fc .attendance-retroactive-option {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin: 2px 5px 2px auto;
    padding: 0;
    border: 1px solid #efac73;
    background: #fff3df;
    cursor: pointer;
}
.theme-baozipt.page-attendance .fc .attendance-retroactive-option .fc-daygrid-event-dot {
    width: 7px;
    height: 7px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #ef6a21;
}
.theme-baozipt.page-attendance .fc .attendance-retroactive-option .fc-event-title { display: none; }

.theme-baozipt.page-attendance .attendance-rules-panel { overflow: hidden; }
.theme-baozipt.page-attendance .attendance-rules-panel > header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid #ecd9bd;
    background: linear-gradient(100deg, #ffe9ca, #fff8ec);
}
.theme-baozipt.page-attendance .attendance-rules-panel > header > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    background: #f36a1a;
}
.theme-baozipt.page-attendance .attendance-rules { display: grid; gap: 0; margin: 0; padding: 4px 15px 9px; list-style: none; }
.theme-baozipt.page-attendance .attendance-rules li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 9px; padding: 11px 0; border-bottom: 1px dashed #ead7ba; }
.theme-baozipt.page-attendance .attendance-rules li:last-child { border-bottom: 0; }
.theme-baozipt.page-attendance .attendance-rules li > span { display: grid; width: 26px; height: 26px; place-items: center; color: #d94c0e; font-size: 9px; font-weight: 900; border: 1px solid #edbc83; border-radius: 50%; background: #fff3e0; }
.theme-baozipt.page-attendance .attendance-rules p { margin: 2px 0 0; color: #685441; font-size: 11px; line-height: 1.6; }

/* About page: compact semantic cards replace narrow legacy tables. */
.theme-baozipt.page-aboutnexus .about-page-hero,
.theme-baozipt.page-aboutnexus .about-page { width: min(100%, 1280px); margin-right: auto; margin-left: auto; }
.theme-baozipt.page-aboutnexus .about-page-hero {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
    padding: 13px 18px;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: linear-gradient(100deg, #fff0da, #fffaf1 68%);
    box-shadow: 0 6px 20px rgba(157, 97, 37, .07);
}
.theme-baozipt.page-aboutnexus .about-page-hero .baozi-info-header__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8b32, #eb510e);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .32);
}
.theme-baozipt.page-aboutnexus .about-page-hero > div { min-width: 0; }
.theme-baozipt.page-aboutnexus .about-page-hero h1 { margin: 0; color: #30251c; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; line-height: 1.25; }
.theme-baozipt.page-aboutnexus .about-page-hero small { display: block; margin-top: 3px; color: #866c56; font-size: 12px; line-height: 1.5; }
.theme-baozipt.page-aboutnexus .about-page { display: grid; gap: 12px; color: var(--baozi-ink); text-align: left; }

.theme-baozipt.page-aboutnexus .about-page__nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: rgba(255, 251, 244, .94);
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-aboutnexus .about-page__nav a { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 7px; padding: 8px 7px; color: #5e4633; font-size: 11px; font-weight: 800; text-align: center; border-right: 1px solid #ecd8bb; }
.theme-baozipt.page-aboutnexus .about-page__nav a:last-child { border-right: 0; }
.theme-baozipt.page-aboutnexus .about-page__nav a:hover { color: #d94c0e; background: #fff0dc; }
.theme-baozipt.page-aboutnexus .about-page__nav span { color: #ef661b; font-size: 9px; }

.theme-baozipt.page-aboutnexus .about-card {
    scroll-margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: rgba(255, 251, 244, .94);
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-aboutnexus .about-card__header { display: flex; min-height: 67px; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid #ecd9bd; background: linear-gradient(100deg, #ffe9ca, #fff9ef 72%); }
.theme-baozipt.page-aboutnexus .about-card__header > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #fff; font-size: 10px; font-weight: 900; border-radius: 50%; background: linear-gradient(145deg, #ff832c, #ef5812); box-shadow: inset 0 0 0 3px rgba(255,255,255,.38); }
.theme-baozipt.page-aboutnexus .about-card__header small { color: #d95a18; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.theme-baozipt.page-aboutnexus .about-card__header h2 { margin: 1px 0 0; color: #3d2d21; font-family: "STKaiti", "KaiTi", serif; font-size: 21px; line-height: 1.2; }
.theme-baozipt.page-aboutnexus .about-card__count { display: grid; min-width: 36px; height: 26px; place-items: center; margin-left: auto; padding: 0 8px; color: #d64b0e; font-size: 11px; border: 1px solid #edc38f; border-radius: 999px; background: #fff4e3; }
.theme-baozipt.page-aboutnexus .about-card__body { padding: 17px 19px 19px; color: #614f3e; font-size: 12px; line-height: 1.78; }
.theme-baozipt.page-aboutnexus .about-card__lead { margin: 0 0 14px; color: #66503e; font-size: 12px; line-height: 1.75; }
.theme-baozipt.page-aboutnexus .about-rich-text { color: #614f3e; font-size: 12px; line-height: 1.82; }
.theme-baozipt.page-aboutnexus .about-rich-text a { color: #d94d0f; font-weight: 800; }

.theme-baozipt.page-aboutnexus .about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.theme-baozipt.page-aboutnexus .about-facts > div { padding: 13px 15px; border: 1px solid #ecd6b6; border-radius: 10px; background: #fff9ef; }
.theme-baozipt.page-aboutnexus .about-facts dt { color: #8b715a; font-size: 9px; font-weight: 700; }
.theme-baozipt.page-aboutnexus .about-facts dd { margin: 3px 0 0; color: #d94e0e; font-size: 17px; font-weight: 900; }

.theme-baozipt.page-aboutnexus .about-language-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.theme-baozipt.page-aboutnexus .about-language { display: grid; min-height: 48px; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #ead6b8; border-radius: 9px; background: #fffaf2; }
.theme-baozipt.page-aboutnexus .about-language img { display: block; width: 24px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(94, 68, 42, .14); }
.theme-baozipt.page-aboutnexus .about-language strong { min-width: 0; color: #544131; font-size: 10.5px; overflow-wrap: anywhere; }
.theme-baozipt.page-aboutnexus .about-language span { padding: 3px 7px; color: #9b552b; font-size: 8px; font-weight: 800; border-radius: 999px; background: #ffe9cb; }
.theme-baozipt.page-aboutnexus .about-language--up-to-date span { color: #28713f; background: #e3f3e7; }
.theme-baozipt.page-aboutnexus .about-language--need-new span,
.theme-baozipt.page-aboutnexus .about-language--outdate span { color: #a04b32; background: #ffe2d7; }

.theme-baozipt.page-aboutnexus .about-styles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.theme-baozipt.page-aboutnexus .about-styles-grid article { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 11px; padding: 12px; border: 1px solid #ead5b6; border-radius: 10px; background: #fff9ef; }
.theme-baozipt.page-aboutnexus .about-styles-grid article > span { display: grid; width: 42px; height: 42px; place-items: center; color: #d94e0e; font-family: Georgia, serif; font-size: 14px; font-weight: 900; border-radius: 9px; background: #ffe5bf; }
.theme-baozipt.page-aboutnexus .about-styles-grid h3 { margin: 0; color: #4b392b; font-size: 12px; }
.theme-baozipt.page-aboutnexus .about-styles-grid p { margin: 4px 0; color: #765f4b; font-size: 9.5px; line-height: 1.55; }
.theme-baozipt.page-aboutnexus .about-styles-grid small { color: #d25a1d; font-size: 8px; font-weight: 700; }

.theme-baozipt.page-aboutnexus .about-contact-link { display: grid; min-height: 58px; grid-template-columns: 90px minmax(0, 1fr) 26px; align-items: center; gap: 10px; padding: 11px 14px; color: #5e4533; border: 1px solid #e9cb9e; border-radius: 10px; background: linear-gradient(100deg, #fff0db, #fffaf2); }
.theme-baozipt.page-aboutnexus .about-contact-link span { color: #8b7058; font-size: 10px; font-weight: 700; }
.theme-baozipt.page-aboutnexus .about-contact-link strong { color: #d84b0e; font-size: 12px; overflow-wrap: anywhere; }
.theme-baozipt.page-aboutnexus .about-contact-link i { color: #e85c14; font-size: 18px; font-style: normal; text-align: center; }

.theme-baozipt .auth-layout--portal-about {
    display: block;
    width: min(1280px, calc(100vw - 48px));
    height: auto;
    min-height: 0;
    overflow: visible;
}
.theme-baozipt .auth-layout--portal-about > .auth-hero--portal { display: none; }
.theme-baozipt .auth-layout--portal-about > .auth-portal-panel { display: block; width: 100%; height: auto; min-height: 0; padding: 28px; overflow: visible; }
.theme-baozipt .auth-layout--portal-about .auth-portal-panel__body { height: auto; max-height: none; padding: 0; overflow: visible; scrollbar-gutter: auto; }
.theme-baozipt .auth-layout--portal-about .about-page { width: 100%; }

@media (max-width: 1080px) {
    .theme-baozipt.page-attendance .attendance-layout { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-attendance .attendance-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .theme-baozipt.page-attendance .attendance-rules li:nth-last-child(-n+2) { border-bottom: 0; }
    .theme-baozipt.page-aboutnexus .about-page__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .theme-baozipt.page-aboutnexus .about-page__nav a:nth-child(3) { border-right: 0; }
    .theme-baozipt.page-aboutnexus .about-page__nav a:nth-child(-n+3) { border-bottom: 1px solid #ecd8bb; }
    .theme-baozipt.page-aboutnexus .about-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .theme-baozipt.page-attendance .attendance-hero { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .theme-baozipt.page-attendance .attendance-hero__icon { width: 52px; height: 52px; border-width: 3px; font-size: 25px; }
    .theme-baozipt.page-attendance .attendance-hero__copy h1 { font-size: 25px; }
    .theme-baozipt.page-attendance .attendance-hero__copy p { font-size: 11px; }
    .theme-baozipt.page-attendance .attendance-hero__ranking { grid-column: 1 / -1; width: 100%; min-width: 0; box-sizing: border-box; }
    .theme-baozipt.page-attendance .attendance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt.page-attendance .attendance-calendar-panel { padding: 10px; }
    .theme-baozipt.page-attendance .attendance-calendar-panel > header { align-items: flex-start; flex-direction: column; }
    .theme-baozipt.page-attendance .attendance-calendar-panel > header p { text-align: left; }
    .theme-baozipt.page-attendance .fc .fc-toolbar { align-items: flex-start; flex-direction: column; }
    .theme-baozipt.page-attendance .fc .fc-toolbar-chunk:last-child { align-self: flex-end; margin-top: -42px; }
    .theme-baozipt.page-attendance .fc-daygrid-day-frame { min-height: 58px; }
    .theme-baozipt.page-attendance .attendance-rules { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-attendance .attendance-rules li { border-bottom: 1px dashed #ead7ba !important; }
    .theme-baozipt.page-attendance .attendance-rules li:last-child { border-bottom: 0 !important; }
    .theme-baozipt.page-aboutnexus .about-page__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt.page-aboutnexus .about-page__nav a { border-right: 1px solid #ecd8bb !important; border-bottom: 1px solid #ecd8bb; }
    .theme-baozipt.page-aboutnexus .about-page__nav a:nth-child(2n) { border-right: 0 !important; }
    .theme-baozipt.page-aboutnexus .about-page__nav a:nth-last-child(-n+2) { border-bottom: 0; }
    .theme-baozipt.page-aboutnexus .about-card__body { padding: 14px; }
    .theme-baozipt.page-aboutnexus .about-page-hero { min-height: 66px; gap: 10px; padding: 10px 12px; }
    .theme-baozipt.page-aboutnexus .about-page-hero .baozi-info-header__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    .theme-baozipt.page-aboutnexus .about-page-hero h1 { font-size: 20px; }
    .theme-baozipt.page-aboutnexus .about-page-hero small { font-size: 11px; }
    .theme-baozipt.page-aboutnexus .about-facts,
    .theme-baozipt.page-aboutnexus .about-language-grid,
    .theme-baozipt.page-aboutnexus .about-styles-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-aboutnexus .about-contact-link { grid-template-columns: minmax(0, 1fr) 26px; }
    .theme-baozipt.page-aboutnexus .about-contact-link span { grid-column: 1 / -1; }
    .theme-baozipt .auth-layout--portal-about { width: min(100%, calc(100vw - 20px)); }
    .theme-baozipt .auth-layout--portal-about > .auth-portal-panel { padding: 18px 12px; }
}

/* Second-pass coverage for direct utility and administration entry points. */
.theme-baozipt .baozi-admin-page {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 14px;
    color: var(--baozi-ink);
    text-align: left;
}

.theme-baozipt .baozi-admin-hero {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 24%, rgba(255, 182, 80, .22), transparent 27%),
        linear-gradient(105deg, #ffe7c4, #fff9ef 74%);
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt .baozi-admin-hero__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
    border: 4px solid #ffb16e;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff812f, #ef5515);
    box-shadow: 0 5px 12px rgba(218, 84, 18, .16);
}

.theme-baozipt .baozi-admin-hero__copy { min-width: 0; }
.theme-baozipt .baozi-admin-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 3px;
    color: #d65417;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.theme-baozipt .baozi-admin-hero h1,
.theme-baozipt .baozi-admin-hero h2 {
    margin: 0 !important;
    color: #4f3422;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 23px;
    line-height: 1.3;
    text-align: left !important;
}
.theme-baozipt .baozi-admin-hero p,
.theme-baozipt .baozi-admin-hero small {
    display: block;
    margin: 4px 0 0;
    color: #846c58;
    font-size: 12px;
    line-height: 1.55;
}

.theme-baozipt .baozi-admin-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fff8ed;
    box-shadow: 0 4px 12px rgba(112, 69, 28, .04);
}
.theme-baozipt .baozi-admin-toolbar form { margin: 0; }
.theme-baozipt .baozi-admin-toolbar input[type="submit"],
.theme-baozipt .baozi-admin-toolbar button,
.theme-baozipt .baozi-admin-toolbar .btn { white-space: nowrap; }
.theme-baozipt .baozi-admin-hero > .baozi-admin-toolbar {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.theme-baozipt .baozi-admin-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt .baozi-admin-card__header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    color: #5b3d28;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid #ecd7b7;
    background: linear-gradient(100deg, #ffe7c2, #fff5e5);
}
.theme-baozipt .baozi-admin-card__body { min-width: 0; padding: 14px; }

.theme-baozipt td.colfollow {
    padding: 10px 12px !important;
    color: #574536;
    border-color: #ead8bd !important;
    background: #fffaf3 !important;
}

.theme-baozipt.page-fields .field-management__actions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}

.theme-baozipt.page-fields .field-management__actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    color: #fff;
    font-weight: 800;
    border: 1px solid var(--baozi-orange);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--baozi-orange-bright), var(--baozi-orange));
}

.theme-baozipt.page-fields .field-management__table-wrap,
.theme-baozipt.page-fields .field-form__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-fields .field-management__table,
.theme-baozipt.page-fields .field-form__table {
    width: 100% !important;
    min-width: 820px;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.theme-baozipt.page-fields .field-form { margin: 0; }
.theme-baozipt.page-fields .field-form__table td.rowhead { width: 210px; min-width: 210px; }
.theme-baozipt.page-fields .field-form__table input[type="text"],
.theme-baozipt.page-fields .field-form__table input[type="number"],
.theme-baozipt.page-fields .field-form__table textarea { width: min(100%, 760px) !important; }
.theme-baozipt.page-fields .field-form__table label { display: inline-flex; align-items: center; gap: 5px; margin: 4px 14px 4px 0 !important; }
.theme-baozipt.page-fields .field-form__actions { display: flex; justify-content: center; padding: 15px 0 0; }

.theme-baozipt.page-staffpanel .staffpanel-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.theme-baozipt.page-staffpanel .staffpanel-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-staffpanel .staffpanel-section__title {
    margin: 0 !important;
    padding: 13px 15px;
    color: #5b3b24;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 19px;
    border-bottom: 1px solid #ecd5b4;
    background: linear-gradient(100deg, #ffe9ca, #fff8ed);
}

.theme-baozipt.page-staffpanel .staffpanel-section__table-wrap { width: 100%; overflow-x: auto; }
.theme-baozipt.page-staffpanel .staffpanel-table {
    width: 100% !important;
    min-width: 390px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-staffpanel .staffpanel-table th:first-child,
.theme-baozipt.page-staffpanel .staffpanel-table td:first-child { width: 42%; }
.theme-baozipt.page-staffpanel .staffpanel-table a { color: #ce4b12; }

.theme-baozipt.page-cheaterbox .cheaterbox-page,
.theme-baozipt.page-ipcheck .ipcheck-page,
.theme-baozipt.page-mybonus .mybonus-page,
.theme-baozipt.page-viewsnatches .viewsnatches-page,
.theme-baozipt.page-promotionlink .promotion-link-page,
.theme-baozipt.page-viewnfo .viewnfo-page,
.theme-baozipt.page-torrent_info .torrent-info-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.theme-baozipt.page-cheaterbox .cheaterbox-table-scroll { --baozi-wide-table-min: 1460px; }
.theme-baozipt.page-cheaterbox .cheaterbox-form { margin: 0; }
.theme-baozipt.page-cheaterbox .cheaterbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: -3px 0 14px;
    padding: 11px;
    border: 1px solid var(--baozi-line);
    border-radius: 10px;
    background: #fff4e3;
}
.theme-baozipt.page-cheaterbox .cheaterbox-toolbar input[name="delete"] { border-color: #c84231 !important; background: linear-gradient(135deg, #ef6b57, #c84231) !important; }

.theme-baozipt.page-ipcheck .ipcheck-table-scroll { --baozi-wide-table-min: 1040px; }
.theme-baozipt.page-ipcheck .ipcheck-table td { white-space: nowrap; }

.theme-baozipt.page-mybonus .mybonus-exchange-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--baozi-line);
    border-radius: 13px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-mybonus .mybonus-exchange-table {
    width: 100% !important;
    min-width: 820px;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-mybonus .mybonus-exchange-table h1 { margin: 0 0 5px; color: #4b3525; font-size: 17px; }
.theme-baozipt.page-mybonus .mybonus-exchange-table > tbody > tr > td:nth-child(1) { width: 58px; }
.theme-baozipt.page-mybonus .mybonus-exchange-table > tbody > tr > td:nth-child(3) { width: 125px; }
.theme-baozipt.page-mybonus .mybonus-exchange-table > tbody > tr > td:nth-child(4) { width: 160px; }
.theme-baozipt.page-mybonus .mybonus-exchange-table table { width: 100% !important; table-layout: auto !important; border: 0 !important; box-shadow: none !important; }
.theme-baozipt.page-mybonus .mybonus-exchange-table table td { padding: 5px 7px !important; border: 0 !important; background: transparent !important; }
.theme-baozipt.page-mybonus .mybonus-exchange-table input[type="text"] { width: min(100%, 420px) !important; }
.theme-baozipt.page-mybonus .mybonus-gift-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(290px, 1fr);
    gap: 10px 18px;
    width: min(100%, 820px);
    margin-top: 10px;
}
.theme-baozipt.page-mybonus .mybonus-gift-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}
.theme-baozipt.page-mybonus .mybonus-gift-field__label,
.theme-baozipt.page-mybonus .mybonus-gift-field__unit {
    flex: 0 0 auto;
    white-space: nowrap;
}
.theme-baozipt.page-mybonus .mybonus-gift-field input {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
}
.theme-baozipt.page-mybonus .mybonus-gift-field--username input[type="text"] {
    flex: 1 1 190px;
    width: min(100%, 240px) !important;
    max-width: 240px;
}
.theme-baozipt.page-mybonus .mybonus-gift-field--amount input[type="number"] {
    flex: 0 0 112px;
    width: 112px !important;
}
.theme-baozipt.page-mybonus .mybonus-gift-field--message {
    grid-column: 1 / -1;
}
.theme-baozipt.page-mybonus .mybonus-gift-field--message input[type="text"] {
    flex: 1 1 320px;
    width: min(100%, 640px) !important;
    max-width: 640px;
}
.theme-baozipt.page-mybonus .mybonus-info-table {
    width: 100% !important;
    margin: 14px 0 0 !important;
    table-layout: auto !important;
}
.theme-baozipt.page-mybonus .mybonus-info-table h1 { margin: 17px 0 7px; color: #523925; font-size: 18px; }
.theme-baozipt.page-mybonus .mybonus-info-table ul { margin: 7px 0 15px; padding-left: 21px; }
.theme-baozipt.page-mybonus .mybonus-info-table li { margin: 4px 0; line-height: 1.65; }
.theme-baozipt.page-mybonus .mybonus-info-table table { max-width: 100%; table-layout: auto !important; }

.theme-baozipt.page-formats .formats-page { width: min(100%, 1180px); margin: 0 auto; }
.theme-baozipt.page-formats .formats-page > table.main { width: 100% !important; margin: 0 0 12px !important; }

/* Torrent editor: match the warm, lightweight form language used by upload. */
.theme-baozipt.page-edit .edit-torrent-page {
    width: min(100%, 1540px);
    min-width: 0;
    margin: 0 auto;
}

.theme-baozipt.page-edit .edit-torrent-hero {
    display: flex;
    min-width: 0;
    min-height: 84px;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 13px 17px;
    overflow: hidden;
    border: 1px solid var(--baozi-line);
    border-radius: 14px;
    background: linear-gradient(105deg, #fff0d8 0%, #fffaf2 68%, #fff4df 100%);
    box-shadow: var(--baozi-shadow);
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-hero__icon {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9bc82;
    border-radius: 50%;
    background: #fff8ec;
}

.theme-baozipt.page-edit .edit-torrent-hero__icon img {
    display: block;
    width: 44px;
    height: 44px;
}

.theme-baozipt.page-edit .edit-torrent-hero__copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.theme-baozipt.page-edit .edit-torrent-hero__copy small {
    color: #987357;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
}

.theme-baozipt.page-edit .edit-torrent-hero__copy strong {
    color: #432d1e;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 26px;
    line-height: 1.2;
}

.theme-baozipt.page-edit .edit-torrent-hero__copy em {
    max-width: 100%;
    color: #765f4e;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-baozipt.page-edit .edit-torrent-hero__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.theme-baozipt.page-edit .edit-torrent-hero__actions a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    color: #7a4b2d;
    font-size: 12px;
    font-weight: 750;
    border: 1px solid #e1bc8b;
    border-radius: 8px;
    background: rgba(255, 250, 242, .9);
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-hero__actions a:hover,
.theme-baozipt.page-edit .edit-torrent-hero__actions a:focus-visible {
    color: #c54b17;
    border-color: #dc9850;
    background: #fff;
}

.theme-baozipt.page-edit .edit-torrent-form {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 22px 22px;
    border: 1px solid #eadfce;
    border-radius: 14px;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 8px 26px rgba(103, 67, 36, .055);
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-form__heading,
.theme-baozipt.page-edit .edit-torrent-delete__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 -22px 3px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #eadfce;
    background: linear-gradient(90deg, #fff4e4, #fffaf3);
}

.theme-baozipt.page-edit .edit-torrent-form__heading > span,
.theme-baozipt.page-edit .edit-torrent-delete__heading > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.theme-baozipt.page-edit .edit-torrent-form__heading strong,
.theme-baozipt.page-edit .edit-torrent-delete__heading strong {
    color: #4c3728;
    font-size: 18px;
    line-height: 1.3;
}

.theme-baozipt.page-edit .edit-torrent-form__heading small,
.theme-baozipt.page-edit .edit-torrent-delete__heading small {
    color: #9a8170;
    font-size: 11px;
    font-weight: 500;
}

.theme-baozipt.page-edit .edit-torrent-form__heading > em,
.theme-baozipt.page-edit .edit-torrent-delete__heading > em {
    flex: 0 0 auto;
    color: #9b765c;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.theme-baozipt.page-edit .edit-torrent-form__heading > em b {
    color: #e1511b;
}

.theme-baozipt.page-edit .edit-torrent-table-wrap,
.theme-baozipt.page-edit .edit-torrent-delete__table-wrap {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.theme-baozipt.page-edit .edit-torrent-table {
    display: table !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    table-layout: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody {
    display: table-row-group !important;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody > tr {
    display: table-row;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody > tr[relation][style*="display: none"] {
    display: none !important;
}

.theme-baozipt.page-edit .edit-torrent-table__title {
    display: none !important;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0;
    height: auto;
    padding: 7px 6px !important;
    vertical-align: top;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td.rowhead {
    width: 155px !important;
    min-width: 155px;
    padding: 12px 12px 7px 0 !important;
    color: #4f4035;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    text-align: right;
    vertical-align: top;
}

.theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td.rowfollow {
    position: static !important;
    min-width: 0;
    padding: 7px 0 7px 4px !important;
    color: #5d5147;
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    border-radius: 0 !important;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="text"],
.theme-baozipt.page-edit .edit-torrent-table input[type="number"],
.theme-baozipt.page-edit .edit-torrent-table input[type="url"],
.theme-baozipt.page-edit .edit-torrent-table select,
.theme-baozipt.page-edit .edit-torrent-table textarea {
    max-width: 100%;
    min-height: 38px;
    color: #40372f;
    border: 1px solid #e2d2bc !important;
    border-radius: 7px;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="text"]:focus,
.theme-baozipt.page-edit .edit-torrent-table input[type="number"]:focus,
.theme-baozipt.page-edit .edit-torrent-table input[type="url"]:focus,
.theme-baozipt.page-edit .edit-torrent-table select:focus,
.theme-baozipt.page-edit .edit-torrent-table textarea:focus {
    border-color: #dc9a50 !important;
    box-shadow: 0 0 0 3px rgba(220, 154, 80, .12) !important;
    outline: 0;
}

.theme-baozipt.page-edit .edit-torrent-table input[name="name"],
.theme-baozipt.page-edit .edit-torrent-table input[name="small_descr"],
.theme-baozipt.page-edit .edit-torrent-table textarea[name="technical_info"] {
    width: 100% !important;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="file"] {
    width: min(100%, 560px) !important;
    min-height: 38px !important;
    padding: 4px !important;
    color: #796858;
    border: 1px solid #e2d2bc !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 9px;
    padding: 3px 10px;
    color: #654730;
    font-weight: 700;
    border: 1px solid #dfc4a0;
    border-radius: 6px;
    background: #fff8ed;
    cursor: pointer;
}

.theme-baozipt.page-edit .edit-torrent-table font.medium {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin: 0 0 6px;
    color: #7e6a5a;
    font-size: 12px;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="checkbox"],
.theme-baozipt.page-edit .edit-torrent-table input[type="radio"],
.theme-baozipt.page-edit .edit-torrent-delete input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0 4px 0 0;
    vertical-align: -3px;
    accent-color: var(--baozi-orange);
}

.theme-baozipt.page-edit .edit-torrent-table label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 3px 14px 3px 0;
}

.theme-baozipt.page-edit .edit-torrent-table select {
    min-width: 145px;
    margin: 2px 10px 2px 3px;
    padding-right: 30px;
}

.theme-baozipt.page-edit .edit-torrent-table .nexus-input-box,
.theme-baozipt.page-edit .edit-torrent-table .nexus-input-box > div {
    max-width: 100%;
    min-width: 0;
}

.theme-baozipt.page-edit .edit-torrent-table .nexus-input-box {
    gap: 8px;
}

.theme-baozipt.page-edit .edit-torrent-table .nexus-input-box input[type="text"] {
    width: 100% !important;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="button"] {
    width: auto !important;
    min-height: 34px;
    padding: 5px 12px;
    color: #fff !important;
    font-weight: 750;
    border: 1px solid #f05a1c !important;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff741f, #ee5013) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.theme-baozipt.page-edit .edit-torrent-table input[type="button"]:hover {
    border-color: #d9470f !important;
    background: linear-gradient(135deg, #ff812f, #e84b10) !important;
}

.theme-baozipt.page-edit .edit-torrent-table table:has(> #edittorrent-descr-edit) {
    display: table !important;
    width: 100% !important;
    overflow: hidden;
    table-layout: auto !important;
    border: 1px solid #e2d2bc !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 9px;
    background: #fff !important;
    box-shadow: none !important;
}

.theme-baozipt.page-edit .edit-torrent-table table:has(> #edittorrent-descr-edit) > #edittorrent-descr-edit {
    display: table-row-group !important;
    width: auto !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr {
    display: table-row !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr > td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px !important;
    vertical-align: top;
    border: 0 !important;
    border-bottom: 1px solid #eee1cf !important;
    background: #fff !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:first-child > td {
    background: #fffbf5 !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:first-child > td > table {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:first-child > td > table > tbody,
.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:first-child > td > table > tbody > tr {
    display: flex !important;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:first-child > td > table td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit input[type="button"] {
    min-width: 36px;
    min-height: 32px;
    padding: 5px 10px;
    white-space: nowrap;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit select {
    width: auto !important;
    min-width: 112px;
    min-height: 32px;
    margin: 0;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:has(#descr) > td:nth-child(2) {
    width: 126px !important;
    min-width: 126px;
    padding: 8px 6px !important;
    border-left: 1px solid #eee1cf !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:has(#descr) > td:nth-child(2) > table {
    width: auto !important;
    margin: 0 auto 5px;
    border: 0 !important;
    border-spacing: 1px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:has(#descr) > td:nth-child(2) td {
    padding: 1px !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:has(#descr) > td:nth-child(2) img {
    display: block;
    max-width: 20px;
    max-height: 20px;
}

.theme-baozipt.page-edit .edit-torrent-table #descr {
    width: 100% !important;
    min-height: 320px !important;
    height: 320px;
    padding: 12px;
    border: 0 !important;
    border-radius: 0;
    resize: vertical;
}

.theme-baozipt.page-edit .edit-torrent-table textarea[name="technical_info"] {
    min-height: 220px;
    padding: 11px;
    resize: vertical;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit iframe {
    display: block;
    height: 72px !important;
    min-height: 72px;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit ~ tbody:last-child {
    display: table-row-group !important;
}

.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-btn-preview,
.theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-btn-edit {
    display: inline-block !important;
}

.theme-baozipt.page-edit .edit-torrent-table td.toolbox {
    padding: 18px 0 4px !important;
    text-align: center !important;
    border-top: 1px solid #eadfce !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-form__actions {
    gap: 8px;
}

.theme-baozipt.page-edit .edit-torrent-form__actions input {
    min-width: 104px;
    min-height: 40px;
    margin: 0 4px;
    font-weight: 800;
    border-radius: 8px;
}

.theme-baozipt.page-edit .edit-torrent-submit {
    color: #fff !important;
    border-color: #f05a1c !important;
    background: linear-gradient(135deg, #ff741f, #ee5013) !important;
}

.theme-baozipt.page-edit .edit-torrent-reset {
    color: #714d33 !important;
    border-color: #dfc29a !important;
    background: #fff8ed !important;
}

.theme-baozipt.page-edit .edit-torrent-delete {
    width: min(100%, 920px);
    min-width: 0;
    margin: 18px auto 0;
    padding: 0 20px 18px;
    overflow: hidden;
    border: 1px solid #edc1af;
    border-radius: 13px;
    background: #fffaf7;
    box-shadow: 0 8px 24px rgba(116, 58, 31, .055);
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-delete__heading {
    margin-right: -20px;
    margin-left: -20px;
    border-bottom-color: #efd0c3;
    background: linear-gradient(90deg, #fff0e8, #fff9f5);
}

.theme-baozipt.page-edit .edit-torrent-delete__heading > em {
    padding: 4px 8px;
    color: #a3482f;
    border: 1px solid #e7b9aa;
    border-radius: 999px;
    background: #fff5f0;
}

.theme-baozipt.page-edit .edit-torrent-delete__table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-baozipt.page-edit .edit-torrent-delete__legacy-title {
    display: none !important;
}

.theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr > td {
    padding: 7px 6px !important;
    border: 0 !important;
    background: transparent !important;
}

.theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr > td.rowhead {
    width: 170px;
    min-width: 170px;
    color: #68493a;
    font-weight: 700;
    text-align: right;
}

.theme-baozipt.page-edit .edit-torrent-delete__table input[type="text"] {
    width: 100% !important;
    min-height: 36px;
    border: 1px solid #e5c7bb !important;
    border-radius: 7px;
    background: #fff !important;
    box-sizing: border-box;
}

.theme-baozipt.page-edit .edit-torrent-delete__actions {
    padding-top: 14px !important;
    border-top: 1px solid #efd8cf !important;
    text-align: center !important;
}

.theme-baozipt.page-edit .edit-torrent-delete__submit {
    min-width: 108px;
    min-height: 38px;
    color: #fff !important;
    font-weight: 800;
    border-color: #cf5b39 !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc6847, #bf4326) !important;
}

@media (max-width: 900px) {
    .theme-baozipt.page-edit .edit-torrent-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__actions {
        width: 100%;
        padding-left: 72px;
    }
}

@media (max-width: 760px) {
    .theme-baozipt.page-edit .edit-torrent-page {
        width: 100%;
    }
    .theme-baozipt.page-edit .edit-torrent-hero {
        min-height: 0;
        gap: 10px;
        padding: 11px 12px;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__icon img {
        width: 37px;
        height: 37px;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__copy strong {
        font-size: 21px;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__copy em {
        white-space: normal;
    }
    .theme-baozipt.page-edit .edit-torrent-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0;
    }
    .theme-baozipt.page-edit .edit-torrent-form {
        padding: 0 12px 14px;
    }
    .theme-baozipt.page-edit .edit-torrent-form__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-right: -12px;
        margin-left: -12px;
        padding: 12px;
    }
    .theme-baozipt.page-edit .edit-torrent-table,
    .theme-baozipt.page-edit .edit-torrent-table > tbody,
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr,
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr[relation][style*="display: none"] {
        display: none !important;
    }
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr.edit-torrent-table__title {
        display: none !important;
    }
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr {
        padding: 4px 0 7px;
        border-bottom: 1px solid #f0e3d2;
    }
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td.rowhead {
        width: 100% !important;
        min-width: 0 !important;
        padding: 7px 2px 3px !important;
        font-size: 12px;
        text-align: left;
    }
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td.rowfollow {
        width: 100% !important;
        min-width: 0 !important;
        padding: 3px 0 7px !important;
    }
    .theme-baozipt.page-edit .edit-torrent-table .rowfollow > select {
        width: 100% !important;
        margin: 3px 0;
    }
    .theme-baozipt.page-edit .edit-torrent-table table:has(> #edittorrent-descr-edit),
    .theme-baozipt.page-edit .edit-torrent-table table:has(> #edittorrent-descr-edit) > #edittorrent-descr-edit,
    .theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr,
    .theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit > tr:has(#descr) > td:nth-child(2) {
        width: 100% !important;
        min-width: 0;
        border-top: 1px solid #eee1cf !important;
        border-left: 0 !important;
    }
    .theme-baozipt.page-edit .edit-torrent-table #descr {
        min-height: 260px !important;
        height: 260px;
    }
    .theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit iframe[src*="attachment.php"] {
        height: 168px !important;
        min-height: 168px;
    }
    .theme-baozipt.page-edit .baozi-page-jump {
        display: none !important;
    }
    .theme-baozipt.page-edit .edit-torrent-form__actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .theme-baozipt.page-edit .edit-torrent-form__actions input {
        width: 100% !important;
        min-width: 0;
        margin: 0;
    }
    .theme-baozipt.page-edit .edit-torrent-delete {
        padding-right: 12px;
        padding-left: 12px;
    }
    .theme-baozipt.page-edit .edit-torrent-delete__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-right: -12px;
        margin-left: -12px;
        padding: 12px;
    }
    .theme-baozipt.page-edit .edit-torrent-delete__table,
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody,
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr,
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr {
        padding: 4px 0;
        border-bottom: 1px solid #f1ddd5;
    }
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr.edit-torrent-delete__legacy-title {
        display: none !important;
    }
    .theme-baozipt.page-edit .edit-torrent-delete__table > tbody > tr > td.rowhead {
        padding-bottom: 2px !important;
        text-align: left;
    }
}

@media (max-width: 360px) {
    .theme-baozipt.page-edit .edit-torrent-table #edittorrent-descr-edit iframe[src*="attachment.php"] {
        height: 180px !important;
        min-height: 180px;
    }
}

/* Torrent edit/upload deadline picker: isolate the widget from global button styles. */
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker {
    box-sizing: border-box;
    padding: 8px 8px 9px 0;
    color: #554235;
    font-family: inherit;
    border: 1px solid #dfb57d;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 15px 36px rgba(92, 55, 27, .18);
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker button {
    max-width: none;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    color: #8c4b27 !important;
    font-size: 0;
    line-height: 1;
    text-indent: 0;
    white-space: nowrap;
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    box-shadow: none;
    opacity: 1;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker button:hover,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker button:focus-visible {
    color: #df5818 !important;
    border: 0 !important;
    background: #ffecd5 !important;
    outline: 2px solid rgba(229, 101, 31, .24);
    outline-offset: -2px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_prev,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_today_button,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_next {
    width: 22px;
    height: 30px;
    background-image: none !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > button::before,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > button::before {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-weight: 900;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_prev::before {
    content: "‹";
    font-size: 24px;
    padding-bottom: 2px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_today_button::before {
    content: var(--baozi-copy-today-short, "");
    font-size: 11px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_monthpicker > .xdsoft_next::before {
    content: "›";
    font-size: 24px;
    padding-bottom: 2px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label {
    height: 30px;
    padding: 5px 3px;
    color: #573b27;
    line-height: 20px;
    background: transparent;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label:hover > span {
    color: #d95d1b;
    text-decoration: none;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
    overflow: hidden;
    border: 1px solid #dfb57d;
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 10px 24px rgba(90, 54, 27, .16);
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option {
    padding: 5px 10px 5px 7px;
    color: #604834;
    line-height: 1.35;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current {
    color: #fff;
    background: #ef641d;
    box-shadow: none;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar table {
    border-collapse: separate !important;
    border-spacing: 2px;
    background: transparent !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar th,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td {
    height: 27px;
    padding: 0 !important;
    color: #624d3b;
    font-size: 12px;
    line-height: 27px;
    text-align: center;
    border: 0 !important;
    border-radius: 6px;
    box-shadow: none !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar th {
    color: #9a7659;
    background: transparent !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td {
    background: #fff5e7 !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td > div {
    padding: 0 !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current) {
    color: #e45718;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #ef9a60 !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
    color: #fff !important;
    font-weight: 900;
    background: linear-gradient(135deg, #ff7d2c, #e95718) !important;
    box-shadow: none !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td:hover,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div:hover {
    color: #b94613 !important;
    background: #ffe1c1 !important;
    box-shadow: none !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month {
    color: #bba793;
    opacity: .62;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker {
    width: 64px;
    margin-left: 9px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_datepicker.active + .xdsoft_timepicker {
    margin-top: 6px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > .xdsoft_prev,
body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > .xdsoft_next {
    width: 36px;
    height: 20px;
    margin: 0 auto 5px;
    float: none;
    background-image: none !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > .xdsoft_next {
    margin: 5px auto 0;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > .xdsoft_prev::before {
    content: "⌃";
    padding-top: 5px;
    font-size: 16px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker > .xdsoft_next::before {
    content: "⌄";
    padding-bottom: 5px;
    font-size: 16px;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box {
    height: 170px;
    overflow: hidden;
    border: 1px solid #ead1ad;
    border-radius: 8px;
    background: #fffdf8;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div {
    height: 28px;
    color: #6a5140;
    line-height: 28px;
    border-top: 1px solid #f0dfc7;
    background: #fff8ed;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_scrollbar > .xdsoft_scroller {
    border-radius: 999px;
    background: #e5ad72 !important;
}

body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker .xdsoft_save_selected {
    min-height: 34px;
    margin: 7px 0 0;
    padding: 6px 12px !important;
    color: #fff !important;
    font-size: 12px;
    border: 0 !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7d2c, #e95718) !important;
}

@media (max-width: 480px) {
    body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker {
        max-width: calc(100vw - 12px);
        transform-origin: top left;
    }
    body.theme-baozipt:is(.page-edit, .page-upload) .xdsoft_datetimepicker {
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        width: 315px;
        max-height: calc(100vh - 12px);
        overflow-y: auto;
        transform: translate(-50%, -50%);
    }
}

.theme-baozipt.page-search .search-results-page { width: 100%; max-width: 100%; }
.theme-baozipt.page-search .search-results-page__list { padding: 0; }
.theme-baozipt.page-search .search-results-page .nexus-pagination { text-align: center; }

.theme-baozipt.page-promotionlink .promotion-link-page__intro {
    margin-bottom: 12px;
    padding: 13px 16px;
    border: 1px solid #ecd5b4;
    border-radius: 10px;
    background: #fff8ed;
}
.theme-baozipt.page-promotionlink .promotion-link-page__intro p { margin: 5px 0; line-height: 1.7; overflow-wrap: anywhere; }
.theme-baozipt.page-promotionlink .promotion-link-code { min-height: 92px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.theme-baozipt.page-promotionlink .promotion-link-preview { max-width: 100%; overflow-x: auto; }

.theme-baozipt.page-viewsnatches .viewsnatches-page__intro { color: #79634f; }
.theme-baozipt.page-viewnfo .viewnfo-page__title {
    margin: 0 0 12px;
    padding: 14px 17px;
    color: #5b3b24;
    font-weight: 800;
    border: 1px solid var(--baozi-line);
    border-radius: 11px;
    background: linear-gradient(100deg, #ffe9ca, #fff8ed);
}
.theme-baozipt.page-viewnfo .viewnfo-page__content-table { width: 100% !important; border: 0 !important; box-shadow: none !important; }
.theme-baozipt.page-viewnfo .viewnfo-page pre { margin: 0; padding: 13px; overflow-x: auto; color: #3f352b; background: #fffdf8; }
.theme-baozipt.page-torrent_info #torrent-structure { margin: 0; padding: 10px 14px 10px 28px; text-align: left; }

.theme-baozipt.page-admanage .admanage-form-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.theme-baozipt.page-admanage .admanage-form-page > h1,
.theme-baozipt.page-admanage .admanage-form-page > h2 { margin: 13px 0 8px; }
.theme-baozipt.page-admanage .admanage-form-page > table {
    width: 100% !important;
    margin: 0 0 14px !important;
    table-layout: auto !important;
}
.theme-baozipt.page-admanage .admanage-form-page td.rowhead { width: 210px; min-width: 210px; }
.theme-baozipt.page-admanage .admanage-form-page input[type="text"],
.theme-baozipt.page-admanage .admanage-form-page textarea { width: min(100%, 680px) !important; }

.theme-baozipt.page-massmail #outer textarea {
    width: 100% !important;
    min-height: 320px;
}
.theme-baozipt.page-massmail #outer input[type="text"] { width: 100% !important; }
.theme-baozipt.page-massmail #outer table { width: 100% !important; table-layout: auto !important; }
.theme-baozipt.page-massmail #outer td.rowhead { width: 190px; min-width: 190px; }

.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-title {
    margin: 0 0 14px;
    color: #5a3c27;
    font-size: 21px;
    line-height: 1.45;
}
.theme-baozipt.page-forummanage .forum-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fff8ed;
}
.theme-baozipt.page-forummanage .forum-admin-toolbar form { margin: 0; }
.theme-baozipt.page-forummanage .forum-admin-toolbar input[type="submit"] {
    width: auto !important;
    min-width: 150px;
    white-space: nowrap;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fffdf8;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-table {
    width: 100% !important;
    min-width: 920px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form { margin: 0; }
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form__table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form__table > tbody > tr > td:first-child {
    width: 230px;
    min-width: 230px;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form__table input[type="text"] {
    width: min(100%, 720px) !important;
}

.theme-baozipt.page-faqactions .faq-admin-form { width: 100%; margin: 0; }
.theme-baozipt.page-faqactions .faq-admin-form__table {
    width: 100% !important;
    max-width: 1180px;
    margin: 0 auto !important;
    table-layout: auto !important;
}
.theme-baozipt.page-faqactions .faq-admin-form__table > tbody > tr > td:first-child {
    width: 190px;
    min-width: 190px;
    font-weight: 700;
}
.theme-baozipt.page-faqactions .faq-admin-form__table input[type="text"],
.theme-baozipt.page-faqactions .faq-admin-form__table textarea {
    width: 100% !important;
    box-sizing: border-box;
}
.theme-baozipt.page-faqactions .faq-admin-form__table textarea { min-height: 360px; }

.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-page {
    width: 100% !important;
    max-width: 1280px;
    margin: 0 auto !important;
    table-layout: auto !important;
}
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-page > tbody > tr > td.embedded {
    padding: 18px !important;
}
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-page h1 {
    margin: 0 0 14px;
    color: #5a3c27;
    font-size: 22px;
}
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form,
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table { width: 100%; margin: 0; }
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table {
    table-layout: auto !important;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fffdf8;
}
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table > tbody > tr > td:first-child {
    width: 210px;
    min-width: 210px;
}
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table input[type="text"],
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table textarea {
    width: 100% !important;
    box-sizing: border-box;
}
.theme-baozipt.page-staffmess .bulk-admin-form__table textarea { min-height: 300px; }
.theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table table {
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Keep the remaining database-driven administration views readable even when
   their native tables contain many columns.  The selectors are page-scoped so
   no public content layout is changed. */
.theme-baozipt:is(
    .page-catmanage, .page-faqmanage, .page-faqactions, .page-forummanage,
    .page-moforums, .page-admanage, .page-cheaters, .page-stats,
    .page-usersearch, .page-location, .page-testip, .page-bans,
    .page-maxlogin, .page-bitbucketlog, .page-massmail, .page-polloverview,
    .page-adduser, .page-clearcache, .page-reset, .page-donorlist,
    .page-donated, .page-makepoll, .page-checkuser, .page-linksmanage
) #outer { overflow-x: auto; scrollbar-color: #e6a05e #fff1dc; }

.theme-baozipt:is(
    .page-catmanage, .page-faqmanage, .page-faqactions, .page-forummanage,
    .page-moforums, .page-admanage, .page-cheaters, .page-stats,
    .page-usersearch, .page-location, .page-testip, .page-bans,
    .page-maxlogin, .page-bitbucketlog, .page-massmail, .page-polloverview,
    .page-adduser, .page-clearcache, .page-reset, .page-donorlist,
    .page-donated, .page-makepoll, .page-checkuser, .page-linksmanage
) #outer table { table-layout: auto !important; }

/* Link application and management: keep one visible surface per section. */
.theme-baozipt.page-linksmanage #outer {
    overflow-x: visible !important;
}
.theme-baozipt.page-linksmanage #outer > table.nexus-main-frame {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-linksmanage #outer > table.nexus-main-frame > tbody,
.theme-baozipt.page-linksmanage #outer > table.nexus-main-frame > tbody > tr,
.theme-baozipt.page-linksmanage #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-linksmanage #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}
.theme-baozipt.page-linksmanage .links-page {
    width: min(100%, 1320px);
    margin: 0 auto;
}
.theme-baozipt.page-linksmanage .links-page-hero {
    border-radius: 14px;
}
.theme-baozipt.page-linksmanage .links-apply-card__body {
    padding: 0;
}
.theme-baozipt.page-linksmanage .links-apply-rules {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 18px 26px 13px 46px;
    color: #5d4938;
    font-size: 13px;
    line-height: 1.75;
}
.theme-baozipt.page-linksmanage .links-apply-rules li {
    padding-left: 3px;
}
.theme-baozipt.page-linksmanage .links-apply-rules li::marker {
    color: #e05b17;
    font-weight: 900;
}
.theme-baozipt.page-linksmanage .links-required-note {
    margin: 0;
    padding: 11px 22px;
    color: #b94112;
    font-size: 12px;
    font-weight: 800;
    border-top: 1px dashed #eacda5;
    background: #fff6e8;
}
.theme-baozipt.page-linksmanage .links-form {
    width: 100%;
    margin: 0;
}
.theme-baozipt.page-linksmanage .links-apply-form {
    border-top: 1px solid #ead3b2;
}
.theme-baozipt.page-linksmanage .links-form-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.theme-baozipt.page-linksmanage .links-form-table td {
    padding: 12px 15px !important;
    border: 0 !important;
    border-top: 1px solid #f0ddc3 !important;
    background: transparent !important;
}
.theme-baozipt.page-linksmanage .links-form-table tr:first-child > td {
    border-top: 0 !important;
}
.theme-baozipt.page-linksmanage .links-form-table td.rowhead {
    width: 210px;
    min-width: 210px;
    color: #67472f;
    font-weight: 800;
    text-align: right;
    background: #fff4e4 !important;
}
.theme-baozipt.page-linksmanage .links-form-table td.rowhead em {
    margin-left: 3px;
    color: #e84d18;
    font-style: normal;
}
.theme-baozipt.page-linksmanage .links-form-table td.rowfollow {
    text-align: left;
}
.theme-baozipt.page-linksmanage .links-form-table input[type="text"],
.theme-baozipt.page-linksmanage .links-form-table textarea {
    width: min(100%, 620px) !important;
    box-sizing: border-box;
    margin: 0;
}
.theme-baozipt.page-linksmanage .links-form-table textarea {
    min-height: 150px;
    resize: vertical;
}
.theme-baozipt.page-linksmanage .links-form-table small {
    display: block;
    margin-top: 5px;
    color: #8b725d;
    font-size: 11px;
    line-height: 1.5;
}
.theme-baozipt.page-linksmanage .links-form-actions {
    padding: 13px 15px !important;
    text-align: center;
    background: #fff8ed !important;
}
.theme-baozipt.page-linksmanage .links-form-actions input {
    min-width: 94px;
    margin: 0 4px;
}
.theme-baozipt.page-linksmanage .links-admin-card .baozi-admin-card__body {
    padding: 0;
}
.theme-baozipt.page-linksmanage .links-list-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-color: #e8a05f #fff1dc;
}
.theme-baozipt.page-linksmanage #links-list-table {
    width: 100% !important;
    min-width: 860px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-linksmanage #links-list-table td {
    padding: 11px 13px !important;
    border: 0 !important;
    border-right: 1px solid #eed9bd !important;
    border-bottom: 1px solid #eed9bd !important;
    color: #574536;
    line-height: 1.5;
    background: #fffdf9 !important;
}
.theme-baozipt.page-linksmanage #links-list-table td:last-child {
    border-right: 0 !important;
}
.theme-baozipt.page-linksmanage #links-list-table tr:last-child > td {
    border-bottom: 0 !important;
}
.theme-baozipt.page-linksmanage #links-list-table td.colhead {
    color: #633f27;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffe8c8, #fff2df) !important;
}
.theme-baozipt.page-linksmanage #links-list-table tr:nth-child(odd):not(:first-child) > td {
    background: #fff8ee !important;
}
.theme-baozipt.page-linksmanage .links-list-actions b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.theme-baozipt.page-linksmanage .links-list-actions span {
    color: #c8a987;
}
.theme-baozipt.page-linksmanage .links-delete-action {
    color: #dd4815 !important;
}

@media (max-width: 760px) {
    .theme-baozipt.page-linksmanage .links-page { gap: 10px; }
    .theme-baozipt.page-linksmanage .links-page-hero {
        min-height: 72px;
        align-items: center;
        flex-direction: row;
        gap: 11px;
        padding: 11px 12px;
        border-radius: 12px;
    }
    .theme-baozipt.page-linksmanage .links-page-hero .baozi-admin-hero__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .theme-baozipt.page-linksmanage .links-page-hero h1 { font-size: 20px; }
    .theme-baozipt.page-linksmanage .links-apply-rules {
        gap: 7px;
        padding: 15px 14px 12px 34px;
        font-size: 12px;
    }
    .theme-baozipt.page-linksmanage .links-required-note { padding: 10px 13px; }
    .theme-baozipt.page-linksmanage .links-form-table,
    .theme-baozipt.page-linksmanage .links-form-table > tbody,
    .theme-baozipt.page-linksmanage .links-form-table > tbody > tr,
    .theme-baozipt.page-linksmanage .links-form-table > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .theme-baozipt.page-linksmanage .links-form-table > tbody > tr {
        border-top: 1px solid #efd9bc;
    }
    .theme-baozipt.page-linksmanage .links-form-table > tbody > tr:first-child { border-top: 0; }
    .theme-baozipt.page-linksmanage .links-form-table > tbody > tr > td {
        padding: 10px 12px !important;
        border-top: 0 !important;
    }
    .theme-baozipt.page-linksmanage .links-form-table td.rowhead {
        padding-bottom: 4px !important;
        text-align: left;
        background: #fff8ed !important;
    }
    .theme-baozipt.page-linksmanage .links-form-table td.rowfollow,
    .theme-baozipt.page-linksmanage .links-form-table td:not(.rowhead) {
        padding-top: 6px !important;
    }
    .theme-baozipt.page-linksmanage .links-form-table input[type="text"],
    .theme-baozipt.page-linksmanage .links-form-table textarea {
        width: 100% !important;
        max-width: none;
    }
    .theme-baozipt.page-linksmanage .links-form-actions {
        display: flex !important;
        justify-content: stretch;
        gap: 8px;
        padding: 12px !important;
    }
    .theme-baozipt.page-linksmanage .links-form-actions input {
        min-width: 0;
        flex: 1 1 0;
        margin: 0;
    }
    .theme-baozipt.page-linksmanage .links-list-card .baozi-admin-card__header::after {
        content: var(--baozi-copy-horizontal-scroll-hint, "");
        color: #9a7658;
        font-size: 10px;
        font-weight: 700;
    }
    .theme-baozipt.page-linksmanage #links-list-table { min-width: 760px; }
}

@media (max-width: 1180px) {
    .theme-baozipt.page-staffpanel .staffpanel-page { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .theme-baozipt .baozi-admin-page { gap: 10px; }
    .theme-baozipt .baozi-admin-hero { min-height: 70px; gap: 11px; padding: 11px 12px; }
    .theme-baozipt .baozi-admin-hero__icon { width: 42px; height: 42px; flex-basis: 42px; border-width: 3px; font-size: 16px; }
    .theme-baozipt .baozi-admin-hero h1,
    .theme-baozipt .baozi-admin-hero h2 { font-size: 19px; }
    .theme-baozipt .baozi-admin-toolbar { align-items: stretch; flex-direction: column; }
    .theme-baozipt .baozi-admin-hero { align-items: stretch; flex-direction: column; }
    .theme-baozipt .baozi-admin-hero > .baozi-admin-toolbar { width: 100%; margin-left: 0; }
    .theme-baozipt .baozi-admin-toolbar > form,
    .theme-baozipt .baozi-admin-toolbar > a,
    .theme-baozipt .baozi-admin-toolbar input[type="submit"],
    .theme-baozipt .baozi-admin-toolbar button { width: 100% !important; }
    .theme-baozipt.page-fields .field-form__table td.rowhead,
    .theme-baozipt.page-edit .edit-torrent-table > tbody > tr > td.rowhead { width: 132px; min-width: 132px; text-align: left; }
    .theme-baozipt.page-cheaterbox .cheaterbox-toolbar { justify-content: stretch; }
    .theme-baozipt.page-cheaterbox .cheaterbox-toolbar input { flex: 1 1 145px; }
    .theme-baozipt.page-admanage .admanage-form-page td.rowhead,
    .theme-baozipt.page-massmail #outer td.rowhead,
    .theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form__table > tbody > tr > td:first-child,
    .theme-baozipt.page-faqactions .faq-admin-form__table > tbody > tr > td:first-child,
    .theme-baozipt:is(.page-increment-bulk, .page-staffmess) .bulk-admin-form__table > tbody > tr > td:first-child { width: 132px; min-width: 132px; }
    .theme-baozipt.page-forummanage .forum-admin-toolbar { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-forummanage .forum-admin-toolbar input[type="submit"] { width: 100% !important; }
}

/* Unified administration pages: advertisements, statistics, uploaders,
   custom fields, categories, locations, database status and forums. */
/* begin_main_frame() is a layout shell on these pages.  Keep it completely
   transparent so the semantic hero/cards below remain the only visible
   boundaries instead of rendering a card around another set of cards. */
body.theme-baozipt.is-authenticated:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums, .page-staffpanel
) #outer > table.nexus-main-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums, .page-staffpanel
) #outer > table.nexus-main-frame > tbody,
body.theme-baozipt.is-authenticated:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums, .page-staffpanel
) #outer > table.nexus-main-frame > tbody > tr,
body.theme-baozipt.is-authenticated:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums, .page-staffpanel
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.is-authenticated:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums, .page-staffpanel
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

.theme-baozipt:is(
    .page-admanage, .page-stats, .page-uploaders, .page-fields,
    .page-catmanage, .page-location, .page-mysql_stats,
    .page-forummanage, .page-moforums
) #outer { overflow-x: visible; }

.theme-baozipt.page-admanage .admanage-page { width: 100%; }
.theme-baozipt.page-admanage .admanage-page--list .admanage-page__title {
    flex: 1 1 auto;
    min-width: 0;
}
.theme-baozipt.page-admanage .admanage-page--list .admanage-hero {
    position: relative;
    z-index: 20;
    overflow: visible;
}
.theme-baozipt.page-admanage .admanage-page--list .admanage-toolbar { overflow: visible; }
.theme-baozipt.page-admanage .admanage-toolbar__menu,
.theme-baozipt.page-uploaders .uploaders-order__menu,
.theme-baozipt.page-catmanage .catmanage-toolbar__menu { position: relative; }
.theme-baozipt.page-admanage .admanage-toolbar__menu > .big,
.theme-baozipt.page-uploaders .uploaders-order__menu > .big,
.theme-baozipt.page-catmanage .catmanage-toolbar__menu > .big,
.theme-baozipt.page-catmanage .catmanage-toolbar__add > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    color: #fff !important;
    border: 1px solid #e55214;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7d28, #f05617);
    box-shadow: 0 4px 10px rgba(211, 79, 15, .14);
}
.theme-baozipt.page-admanage .admanage-toolbar__menu .dropmenu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max-content;
    min-width: 210px;
    max-width: calc(100vw - 36px);
    margin: 0;
    padding: 6px;
    opacity: 1;
    border: 1px solid #e6b87e;
    border-radius: 10px;
    background: #fffaf2;
    box-shadow: 0 12px 26px rgba(104, 62, 23, .18);
}
.theme-baozipt.page-admanage .admanage-toolbar__menu .dropmenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: normal;
}
.theme-baozipt.page-admanage .admanage-toolbar__menu .dropmenu li { margin: 0; }
.theme-baozipt.page-admanage .admanage-toolbar__menu .dropmenu a {
    display: block;
    padding: 9px 11px;
    color: #67462e;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    border-radius: 7px;
}
.theme-baozipt.page-admanage .admanage-toolbar__menu .dropmenu a:hover {
    color: #bc3f0d;
    background: #ffead0;
}
.theme-baozipt.page-admanage .admanage-page--editor .admanage-hero {
    display: block;
    min-height: 0;
}
.theme-baozipt.page-admanage .admanage-page--editor .admanage-page__note {
    margin-top: 5px;
    text-align: left !important;
}
.theme-baozipt.page-admanage .admanage-editor-section {
    margin: 0;
    padding: 0;
}
.theme-baozipt.page-admanage .admanage-editor-section > h2 {
    margin: 0;
    padding: 12px 15px;
    color: #5b3d28;
    font-size: 16px;
    border-bottom: 1px solid #ecd7b7;
    background: linear-gradient(100deg, #ffe7c2, #fff5e5);
}
.theme-baozipt.page-admanage .admanage-editor-table-wrap { min-width: 0; overflow-x: auto; }
.theme-baozipt.page-admanage .admanage-editor-table {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-admanage .admanage-editor-table td.rowhead { width: 210px; min-width: 210px; }
.theme-baozipt.page-admanage .admanage-editor-table input[type="text"],
.theme-baozipt.page-admanage .admanage-editor-table textarea { width: min(100%, 760px) !important; box-sizing: border-box; }
.theme-baozipt.page-admanage .admanage-editor-table textarea { min-height: 130px; }
.theme-baozipt.page-admanage .admanage-submit { justify-content: center; }
.theme-baozipt.page-admanage .admanage-pagination { display: flex; justify-content: center; margin-top: 12px; }

.theme-baozipt.page-stats .stats-hero {
    justify-content: space-between;
}
.theme-baozipt.page-stats .stats-summary {
    display: grid;
    width: min(100%, 380px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-left: auto;
}
.theme-baozipt.page-stats .stats-summary__item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #eccb9f;
    border-radius: 9px;
    background: rgba(255, 253, 248, .84);
}
.theme-baozipt.page-stats .stats-summary__item strong { color: #d34c11; font-size: 20px; }
.theme-baozipt.page-stats .stats-summary__item span { color: #7a624f; font-size: 11px; font-weight: 800; }
.theme-baozipt.page-stats .stats-section { padding: 0; }
.theme-baozipt.page-stats .stats-section > h2 {
    margin: 0;
    padding: 12px 15px;
    color: #5b3d28;
    font-size: 16px;
    border-bottom: 1px solid #ecd7b7;
    background: linear-gradient(100deg, #ffe7c2, #fff5e5);
}
.theme-baozipt.page-stats .stats-section .stats-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.theme-baozipt.page-stats .stats-number { text-align: right; white-space: nowrap; }
.theme-baozipt.page-stats .stats-empty { margin: 0; padding: 24px; color: #7f6854; line-height: 1.7; }

.theme-baozipt.page-uploaders .uploaders-filter,
.theme-baozipt.page-uploaders .uploaders-filter__form,
.theme-baozipt.page-uploaders .uploaders-filter__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}
.theme-baozipt.page-uploaders .uploaders-filter__form { width: 100%; margin: 0; }
.theme-baozipt.page-uploaders .uploaders-filter__select { min-width: 90px; }
.theme-baozipt.page-uploaders .uploaders-table td:nth-child(5) { min-width: 340px; }
.theme-baozipt.page-uploaders .uploaders-order { justify-content: center; }
.theme-baozipt.page-uploaders .uploaders-empty { margin: 0; padding: 24px; color: #7f6854; }

.theme-baozipt.page-fields .field-management__hero,
.theme-baozipt.page-fields .field-form__hero { justify-content: space-between; }
.theme-baozipt.page-fields .field-management__actions {
    margin: 0 0 0 auto;
}
.theme-baozipt.page-fields .field-management__pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
.theme-baozipt.page-fields .field-choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 14px 4px 0;
}

.theme-baozipt.page-catmanage .catmanage-page { width: 100%; }
.theme-baozipt.page-catmanage .catmanage-hero { justify-content: space-between; }
.theme-baozipt.page-catmanage .catmanage-page__title { flex: 1 1 auto; min-width: 0; }
.theme-baozipt.page-catmanage .catmanage-toolbar { margin-left: auto; }
.theme-baozipt.page-catmanage .catmanage-table-wrap { margin: 0; }
.theme-baozipt.page-catmanage .catmanage-pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
.theme-baozipt.page-catmanage .catmanage-empty { margin: 0; padding: 24px; color: #7f6854; }
.theme-baozipt.page-catmanage .catmanage-form { display: grid; gap: 14px; width: 100%; }
.theme-baozipt.page-catmanage .catmanage-editor__table-wrap { padding: 0; overflow-x: auto; }
.theme-baozipt.page-catmanage .catmanage-editor__table {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-catmanage .catmanage-editor__table td.rowhead { width: 220px; min-width: 220px; }
.theme-baozipt.page-catmanage .catmanage-editor__table input[type="text"],
.theme-baozipt.page-catmanage .catmanage-editor__table textarea { width: min(100%, 760px) !important; box-sizing: border-box; }
.theme-baozipt.page-catmanage .catmanage-editor__actions { justify-content: center; }

.theme-baozipt.page-location .location-admin-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    align-items: start;
    gap: 14px;
}
.theme-baozipt.page-location .location-admin-form { margin: 0; }
.theme-baozipt.page-location .location-admin-form__table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-location .location-admin-form__table td.rowhead { width: 190px; min-width: 190px; }
.theme-baozipt.page-location .location-admin-form__table input[type="text"] { width: 100% !important; box-sizing: border-box; }
.theme-baozipt.page-location .location-admin-form__table td.toolbox { padding: 13px !important; }
.theme-baozipt.page-location .location-admin-notice { padding: 15px 17px; line-height: 1.65; }
.theme-baozipt.page-location .location-admin-notice--warning { color: #9c3c17; background: #fff1df; }
.theme-baozipt.page-location .location-admin-table { min-width: 1320px !important; }
.theme-baozipt.page-location .location-admin-pagination { display: flex; justify-content: center; margin-top: 12px; }
.theme-baozipt.page-location .location-admin-page > p { margin: 0; padding: 2px 4px; color: #705844; }

.theme-baozipt.page-mysql_stats .mysql-stats-page { gap: 14px; }
.theme-baozipt.page-mysql_stats .mysql-stats-sections { display: grid; gap: 14px; }
.theme-baozipt.page-mysql_stats .mysql-stats-card,
.theme-baozipt.page-mysql_stats .mysql-stats-uptime { padding: 0; }
.theme-baozipt.page-mysql_stats .mysql-stats-card > h2,
.theme-baozipt.page-mysql_stats .mysql-stats-uptime > h2 {
    margin: 0;
    padding: 12px 15px;
    color: #5b3d28;
    font-size: 16px;
    border-bottom: 1px solid #ecd7b7;
    background: linear-gradient(100deg, #ffe7c2, #fff5e5);
}
.theme-baozipt.page-mysql_stats .mysql-stats-card > p { margin: 0; padding: 12px 15px 0; color: #77604c; line-height: 1.65; }
.theme-baozipt.page-mysql_stats .mysql-stats-table-scroll {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.theme-baozipt.page-mysql_stats .mysql-stats-layout { min-width: 980px !important; }
.theme-baozipt.page-mysql_stats .mysql-stats-data-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-mysql_stats .mysql-stats-data-table [bgcolor] { color: #503d2d !important; background: #fffaf3 !important; }

.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-page { width: 100%; }
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-hero .forum-admin-title {
    margin: 0 !important;
    font-size: 23px;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form { overflow: hidden; }
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-form__table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-table { min-width: 980px !important; }
.theme-baozipt:is(.page-forummanage, .page-moforums) .forum-admin-empty { padding: 22px; color: #7f6854; text-align: center; }

@media (max-width: 980px) {
    .theme-baozipt.page-location .location-admin-tools { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-stats .stats-hero { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-stats .stats-summary { width: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
    .theme-baozipt.page-admanage .admanage-editor-table td.rowhead,
    .theme-baozipt.page-catmanage .catmanage-editor__table td.rowhead,
    .theme-baozipt.page-location .location-admin-form__table td.rowhead {
        width: 124px;
        min-width: 124px;
        white-space: normal !important;
    }
    .theme-baozipt.page-admanage .admanage-page--list .admanage-hero,
    .theme-baozipt.page-catmanage .catmanage-hero,
    .theme-baozipt.page-fields .field-management__hero,
    .theme-baozipt.page-fields .field-form__hero { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-admanage .admanage-toolbar,
    .theme-baozipt.page-catmanage .catmanage-toolbar,
    .theme-baozipt.page-fields .field-management__actions { width: 100%; margin-left: 0; }
    .theme-baozipt.page-uploaders .uploaders-filter__controls { align-items: stretch; flex-direction: column; width: 100%; }
    .theme-baozipt.page-uploaders .uploaders-filter__select { width: 100%; }
    .theme-baozipt.page-stats .stats-summary { grid-template-columns: minmax(0, 1fr); }
}

/* BaoziPT automatic torrent review: reuse the theme's administration
   primitives and keep the legacy review data readable on every viewport. */
.theme-baozipt.page-autotorrentreview #outer { overflow-x: visible; }
.theme-baozipt.page-autotorrentreview .autotorrent-review-page {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    color: var(--baozi-ink);
}
.theme-baozipt.page-autotorrentreview .atr-hero {
    position: relative;
    overflow: hidden;
}
.theme-baozipt.page-autotorrentreview .atr-hero::after {
    position: absolute;
    right: 22px;
    bottom: -26px;
    width: 128px;
    height: 128px;
    content: "";
    pointer-events: none;
    border: 22px solid rgba(238, 110, 29, .06);
    border-radius: 50%;
}
.theme-baozipt.page-autotorrentreview .atr-hero > * { position: relative; z-index: 1; }
.theme-baozipt.page-autotorrentreview .atr-readonly-badge,
.theme-baozipt.page-autotorrentreview .atr-status,
.theme-baozipt.page-autotorrentreview .atr-severity {
    display: inline-flex;
    min-height: 28px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid #edb56f;
    border-radius: 999px;
}
.theme-baozipt.page-autotorrentreview .atr-readonly-badge {
    margin-left: auto;
    color: #b94516;
    border-color: #efb67c;
    background: #fff5e7;
    box-shadow: 0 3px 9px rgba(187, 83, 20, .07);
}
.theme-baozipt.page-autotorrentreview .atr-section { min-width: 0; }
.theme-baozipt.page-autotorrentreview .atr-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.theme-baozipt.page-autotorrentreview .atr-overview-card {
    position: relative;
    min-width: 0;
    min-height: 82px;
    box-sizing: border-box;
    padding: 13px 15px 12px;
    overflow: hidden;
    border: 1px solid #ecd2ad;
    border-radius: 10px;
    background: linear-gradient(145deg, #fffdf8, #fff6e8);
}
.theme-baozipt.page-autotorrentreview .atr-overview-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: #e88943;
}
.theme-baozipt.page-autotorrentreview .atr-overview-card:nth-child(2)::before { background: #6a9fd2; }
.theme-baozipt.page-autotorrentreview .atr-overview-card:nth-child(3)::before { background: #56a56d; }
.theme-baozipt.page-autotorrentreview .atr-overview-card:nth-child(4)::before { background: #e2a63b; }
.theme-baozipt.page-autotorrentreview .atr-overview-card:nth-child(5)::before,
.theme-baozipt.page-autotorrentreview .atr-overview-card:nth-child(6)::before { background: #d96b5f; }
.theme-baozipt.page-autotorrentreview .atr-overview-card span {
    display: block;
    color: #816b58;
    font-size: 12px;
    font-weight: 700;
}
.theme-baozipt.page-autotorrentreview .atr-overview-card strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #c94316;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme-baozipt.page-autotorrentreview .atr-overview-card:last-child strong { font-size: 14px; }
.theme-baozipt.page-autotorrentreview .atr-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(150px, 1fr)) auto auto;
    align-items: end;
    gap: 10px;
    margin: 0;
}
.theme-baozipt.page-autotorrentreview .atr-filter-field { min-width: 0; }
.theme-baozipt.page-autotorrentreview .atr-filter-field label {
    display: block;
    margin: 0 0 5px;
    color: #654934;
    font-size: 12px;
    font-weight: 800;
}
.theme-baozipt.page-autotorrentreview .atr-filter-field input,
.theme-baozipt.page-autotorrentreview .atr-filter-field select {
    width: 100% !important;
    height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 11px;
    color: #4e3a2a;
    border: 1px solid #e5b877;
    border-radius: 9px;
    outline: 0;
    background: #fffdfa;
    box-shadow: inset 0 1px 2px rgba(103, 67, 31, .03);
}
.theme-baozipt.page-autotorrentreview .atr-filter-field input:focus,
.theme-baozipt.page-autotorrentreview .atr-filter-field select:focus {
    border-color: #ef7a2f;
    box-shadow: 0 0 0 3px rgba(239, 111, 35, .12);
}
.theme-baozipt.page-autotorrentreview .atr-button {
    display: inline-flex;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    color: #fff !important;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid #e65116;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff7828, #f25716);
    box-shadow: 0 5px 12px rgba(218, 84, 18, .14);
    cursor: pointer;
}
.theme-baozipt.page-autotorrentreview .atr-button:hover,
.theme-baozipt.page-autotorrentreview .atr-button:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, #ff8a31, #ec4b0e);
}
.theme-baozipt.page-autotorrentreview .atr-button--secondary {
    color: #9d481f !important;
    border-color: #e5bd88;
    background: #fff8ec;
    box-shadow: none;
}
.theme-baozipt.page-autotorrentreview .atr-button--secondary:hover,
.theme-baozipt.page-autotorrentreview .atr-button--secondary:focus-visible {
    color: #c24716 !important;
    border-color: #e8934e;
    background: #fff2df;
}
.theme-baozipt.page-autotorrentreview .atr-button[disabled] {
    color: #988a7b !important;
    border-color: #d7c7b3;
    background: #eee7dc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}
.theme-baozipt.page-autotorrentreview .atr-runs-section > .baozi-admin-card__header small {
    color: #8e725b;
    font-size: 10px;
    font-weight: 700;
}
.theme-baozipt.page-autotorrentreview .atr-runs-body { padding: 0; }
.theme-baozipt.page-autotorrentreview .atr-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: #e6a05e #fff1dc;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}
.theme-baozipt.page-autotorrentreview .atr-runs-table {
    width: 100% !important;
    min-width: 1180px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
}
.theme-baozipt.page-autotorrentreview .atr-runs-table th,
.theme-baozipt.page-autotorrentreview .atr-runs-table td {
    box-sizing: border-box;
    padding: 10px 11px !important;
    vertical-align: top;
    border: 0 !important;
    border-right: 1px solid #eed9bd !important;
    border-bottom: 1px solid #eed9bd !important;
}
.theme-baozipt.page-autotorrentreview .atr-runs-table th:last-child,
.theme-baozipt.page-autotorrentreview .atr-runs-table td:last-child { border-right: 0 !important; }
.theme-baozipt.page-autotorrentreview .atr-runs-table tbody tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt.page-autotorrentreview .atr-runs-table th {
    color: #633f27;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffe8c8, #fff2df) !important;
}
.theme-baozipt.page-autotorrentreview .atr-runs-table tbody tr:nth-child(even) td { background: #fff8ee !important; }
.theme-baozipt.page-autotorrentreview .atr-runs-table tbody tr:hover td { background: #fff2df !important; }
.theme-baozipt.page-autotorrentreview .atr-torrent-title {
    display: block;
    max-width: 360px;
    margin-bottom: 4px;
    color: #c94415;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.theme-baozipt.page-autotorrentreview .atr-meta,
.theme-baozipt.page-autotorrentreview .atr-muted {
    color: #8a796a;
    font-size: 11px;
    line-height: 1.55;
}
.theme-baozipt.page-autotorrentreview .atr-status--running { color: #316fa9; border-color: #80a9d5; background: #edf6ff; }
.theme-baozipt.page-autotorrentreview .atr-status--clean { color: #26783a; border-color: #82bf91; background: #eef9f0; }
.theme-baozipt.page-autotorrentreview .atr-status--warning,
.theme-baozipt.page-autotorrentreview .atr-severity--warning { color: #9a5f00; border-color: #e6aa3c; background: #fff7dc; }
.theme-baozipt.page-autotorrentreview .atr-status--system_error,
.theme-baozipt.page-autotorrentreview .atr-severity--error { color: #b72e20; border-color: #e98b80; background: #fff0ed; }
.theme-baozipt.page-autotorrentreview .atr-severity--info { color: #496a86; border-color: #9eb6cb; background: #f0f6fb; }
.theme-baozipt.page-autotorrentreview .atr-issue-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
}
.theme-baozipt.page-autotorrentreview .atr-issue-counts span { white-space: nowrap; }
.theme-baozipt.page-autotorrentreview .atr-issue-counts strong { color: #c84616; }
.theme-baozipt.page-autotorrentreview .atr-details { min-width: 300px; }
.theme-baozipt.page-autotorrentreview .atr-details > summary {
    display: inline-flex;
    min-height: 30px;
    box-sizing: border-box;
    align-items: center;
    padding: 4px 10px;
    color: #c94316;
    font-weight: 800;
    list-style-position: inside;
    border: 1px solid #edc494;
    border-radius: 7px;
    background: #fff7e9;
    cursor: pointer;
}
.theme-baozipt.page-autotorrentreview .atr-run-summary {
    margin: 9px 0;
    padding: 9px 11px;
    overflow-wrap: anywhere;
    border-left: 3px solid #ef9c54;
    border-radius: 0 7px 7px 0;
    background: #fff8ed;
}
.theme-baozipt.page-autotorrentreview .atr-run-summary pre {
    margin: 6px 0 0;
    color: inherit;
    font: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.theme-baozipt.page-autotorrentreview .atr-finding {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #ead5b8;
    border-radius: 9px;
    background: #fffdf9;
}
.theme-baozipt.page-autotorrentreview .atr-finding__head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.theme-baozipt.page-autotorrentreview .atr-finding__message { margin: 8px 0; font-weight: 700; }
.theme-baozipt.page-autotorrentreview .atr-finding pre {
    max-width: 540px;
    max-height: 220px;
    margin: 5px 0 0;
    padding: 8px;
    overflow: auto;
    color: #4e3a2a;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid #eee0ca;
    border-radius: 6px;
    background: #fffaf1;
}
.theme-baozipt.page-autotorrentreview .atr-empty,
.theme-baozipt.page-autotorrentreview .atr-setup-notice {
    padding: 24px 18px;
    color: #705844;
    text-align: center;
}
.theme-baozipt.page-autotorrentreview .atr-setup-notice p { margin: 5px 0; }
.theme-baozipt.page-autotorrentreview .atr-pager {
    display: flex;
    max-width: 100%;
    justify-content: center;
    padding: 14px 12px;
    overflow-x: auto;
    border-top: 1px solid #ecd8ba;
}
.theme-baozipt.page-autotorrentreview .atr-pager:empty { display: none; }
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination {
    display: flex;
    width: max-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 auto;
    padding: 7px 10px;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid #edc895;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8, #fff6e8);
    box-shadow: 0 5px 14px rgba(126, 76, 29, .06);
}
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination > font { display: contents; }
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination a,
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination > b,
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination font.gray > b {
    min-width: 36px;
    min-height: 34px;
    margin: 0;
    border-color: #ebc18b;
    border-radius: 8px;
    background: #fffaf2;
}
.theme-baozipt.page-autotorrentreview .atr-pager p.nexus-pagination a:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

@media (max-width: 1080px) {
    .theme-baozipt.page-autotorrentreview .atr-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-baozipt.page-autotorrentreview .atr-filter-grid { grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(150px, 1fr); }
    .theme-baozipt.page-autotorrentreview .atr-filter-grid .atr-button { width: 100%; }
}

@media (max-width: 760px) {
    .theme-baozipt.page-autotorrentreview .atr-hero { align-items: center; flex-direction: row; }
    .theme-baozipt.page-autotorrentreview .atr-readonly-badge { align-self: flex-start; }
    .theme-baozipt.page-autotorrentreview .atr-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .theme-baozipt.page-autotorrentreview .atr-overview-card { min-height: 72px; padding: 11px 12px; }
    .theme-baozipt.page-autotorrentreview .atr-overview-card strong { font-size: 18px; }
    .theme-baozipt.page-autotorrentreview .atr-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-baozipt.page-autotorrentreview .atr-filter-grid .atr-button { width: 100%; }
    .theme-baozipt.page-autotorrentreview .atr-runs-section > .baozi-admin-card__header small { display: block; }
    .theme-baozipt.page-autotorrentreview .atr-runs-table { min-width: 1050px; }
}

@media (max-width: 480px) {
    .theme-baozipt.page-autotorrentreview .atr-hero { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-autotorrentreview .atr-readonly-badge { margin-left: 0; align-self: flex-start; }
    .theme-baozipt.page-autotorrentreview .atr-overview-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Salary assessment system: keep the custom business page visually aligned
   with BaoziPT while leaving all calculation and permission logic untouched. */
.theme-baozipt.page-view_salary table.mainouter {
    width: calc(100% - 48px) !important;
    max-width: 1840px;
}
.theme-baozipt.page-view_salary #outer {
    padding: 0 !important;
    overflow: visible;
}
.theme-baozipt.page-view_salary .salary-container {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(270px, .72fr) minmax(600px, 2fr);
    gap: 16px 18px;
    margin: 0 !important;
    padding: 0 0 26px !important;
    text-align: left !important;
}
.theme-baozipt.page-view_salary .salary-container > .header-section {
    display: flex;
    min-height: 132px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 24px 30px !important;
    overflow: hidden;
    border: 1px solid #e65016;
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(125deg, #ff8a2c, #ed5a17 66%, #df4a10) !important;
    box-shadow: 0 12px 28px rgba(160, 76, 19, .15);
}
.theme-baozipt.page-view_salary .header-text h1 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif;
    font-size: clamp(25px, 2vw, 34px) !important;
    letter-spacing: .04em;
    text-shadow: 0 2px 4px rgba(100, 44, 8, .26) !important;
}
.theme-baozipt.page-view_salary .header-text p {
    margin: 0 !important;
    color: #fff8ee !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}
.theme-baozipt.page-view_salary .salary-container > .header-section + div {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin: -2px 0 0 !important;
}
.theme-baozipt.page-view_salary .salary-container > .header-section + div > a {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 9px 18px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 750;
    border: 1px solid #d94d12;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ff7b25, #ed5a17) !important;
    box-shadow: 0 5px 13px rgba(157, 72, 18, .13);
}
.theme-baozipt.page-view_salary .salary-container > .header-section + div > a:hover {
    background: linear-gradient(135deg, #ed5a17, #cf4210) !important;
    transform: translateY(-1px);
}
.theme-baozipt.page-view_salary .salary-container > .user-info { grid-column: 1; }
.theme-baozipt.page-view_salary .salary-container > .assessment-info,
.theme-baozipt.page-view_salary .salary-container > .no-assessment { grid-column: 2; }
.theme-baozipt.page-view_salary .salary-container > :is(.stats-section, .salary-breakdown, .salary-section, .history-section) {
    grid-column: 1 / -1;
}
.theme-baozipt.page-view_salary :is(.user-info, .assessment-info, .no-assessment, .stats-section, .salary-breakdown, .salary-section, .history-section) {
    min-width: 0;
    margin: 0 !important;
    padding: 20px !important;
    color: #3f3024;
    text-align: left;
    border: 1px solid var(--baozi-line-soft) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #fffdf9, #fff8ee) !important;
    box-shadow: var(--baozi-shadow);
}
.theme-baozipt.page-view_salary .assessment-info {
    background: linear-gradient(145deg, #fffdf9, #fff4e5) !important;
}
.theme-baozipt.page-view_salary .no-assessment {
    border-color: #efc0b5 !important;
    background: linear-gradient(145deg, #fffdf9, #fff0eb) !important;
}
.theme-baozipt.page-view_salary .salary-breakdown {
    background: linear-gradient(145deg, #fffaf1, #ffefd5) !important;
}
.theme-baozipt.page-view_salary :is(.user-info, .assessment-info, .no-assessment, .stats-section, .salary-breakdown, .salary-section, .history-section) > :is(h3, h4) {
    margin: 0 0 14px !important;
    padding: 0 0 10px;
    color: #5b3b24;
    font-size: 19px;
    line-height: 1.4;
    border-bottom: 1px solid #ecd6b7;
}
.theme-baozipt.page-view_salary .salary-container p {
    margin: 7px 0;
    line-height: 1.72;
}
.theme-baozipt.page-view_salary .explain-tip {
    color: #826e5b !important;
    font-size: 12px !important;
}
.theme-baozipt.page-view_salary .explain-text {
    padding: 2px 6px !important;
    border-radius: 5px !important;
    background: #fff0dc !important;
}
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border: 1px solid #ecd5b4 !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    border-radius: 11px !important;
    background: #fffdf9 !important;
}
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) :is(th, td) {
    padding: 11px 12px !important;
    border-right: 1px solid #efdfc7 !important;
    border-bottom: 1px solid #efdfc7 !important;
    background: #fffdf9 !important;
    white-space: nowrap;
}
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) th {
    color: #613f27;
    font-weight: 800;
    background: linear-gradient(180deg, #ffebcb, #ffe2b5) !important;
}
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) tr:last-child td { border-bottom: 0 !important; }
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) :is(th, td):last-child { border-right: 0 !important; }
.theme-baozipt.page-view_salary :is(.stats-table, .history-table) tr:hover td { background: #fff7eb !important; }
.theme-baozipt.page-view_salary .stats-table :is(th, td).period-column {
    color: #b64c17 !important;
    background: #fff0dc !important;
}
.theme-baozipt.page-view_salary .stats-table :is(th, td).min-requirement-column {
    color: #5f6d2e !important;
    background: #f7f2d9 !important;
}
.theme-baozipt.page-view_salary .bonus-calculation {
    margin: 14px 0 0 !important;
    padding: 15px !important;
    color: #4e3a2a;
    font-family: inherit !important;
    border: 1px solid #ead0aa !important;
    border-radius: 9px !important;
    background: #fff9ef !important;
}
.theme-baozipt.page-view_salary .bonus-calculation h4 {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    color: #5b3b24 !important;
    border-bottom: 2px solid var(--baozi-orange) !important;
}
.theme-baozipt.page-view_salary .calculation-result {
    color: #426427 !important;
    border: 1px solid #d5d7a7 !important;
    background: #f7f4d8 !important;
}
.theme-baozipt.page-view_salary .salary-amount {
    color: var(--baozi-orange-dark) !important;
    font-size: 25px !important;
}
.theme-baozipt.page-view_salary .claim-status {
    border-radius: 9px !important;
}
.theme-baozipt.page-view_salary .claim-status.can-claim {
    color: #426427 !important;
    border-color: #d5d7a7 !important;
    background: #f7f4d8 !important;
}
.theme-baozipt.page-view_salary .claim-status.cannot-claim {
    color: #884532 !important;
    border-color: #efc0b5 !important;
    background: #fff0eb !important;
}
.theme-baozipt.page-view_salary .salary-btn {
    min-height: 44px;
    padding: 10px 22px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800;
    border: 1px solid #d94d12 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ff7b25, #ed5a17) !important;
    box-shadow: 0 5px 13px rgba(157, 72, 18, .13);
}
.theme-baozipt.page-view_salary .salary-btn:disabled {
    color: #8b7969 !important;
    border-color: #dbcbb8 !important;
    background: #efe6da !important;
    box-shadow: none;
}
.theme-baozipt.page-view_salary .history-section > div:first-of-type a {
    display: inline-flex;
    min-width: 38px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    padding: 4px 8px;
    color: #b74413;
    font-weight: 800;
    border: 1px solid #edc998;
    border-radius: 8px;
    background: #fff7eb;
}
.theme-baozipt.page-view_salary .baozi-wide-table-scroll {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fffdf9;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #e6a05e #fff1dc;
}
.theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table {
    min-width: 1380px;
    border: 0 !important;
    border-radius: 0 !important;
}

@media (max-width: 1100px) {
    .theme-baozipt.page-view_salary .salary-container {
        grid-template-columns: minmax(0, 1fr);
    }
    .theme-baozipt.page-view_salary .salary-container > :is(.user-info, .assessment-info, .no-assessment) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .theme-baozipt.page-view_salary table.mainouter {
        width: calc(100% - 16px) !important;
    }
    .theme-baozipt.page-view_salary .salary-container {
        gap: 11px;
        padding-bottom: 16px !important;
    }
    .theme-baozipt.page-view_salary .salary-container > .header-section {
        min-height: 0;
        padding: 18px 14px !important;
        border-radius: 12px;
    }
    .theme-baozipt.page-view_salary .header-text h1 {
        font-size: 22px !important;
        line-height: 1.35;
    }
    .theme-baozipt.page-view_salary .header-text p {
        font-size: 12px !important;
    }
    .theme-baozipt.page-view_salary .salary-container > .header-section + div {
        justify-content: stretch;
    }
    .theme-baozipt.page-view_salary .salary-container > .header-section + div > a {
        width: 100%;
    }
    .theme-baozipt.page-view_salary :is(.user-info, .assessment-info, .no-assessment, .stats-section, .salary-breakdown, .salary-section, .history-section) {
        padding: 14px !important;
        border-radius: 11px !important;
    }
    .theme-baozipt.page-view_salary :is(.user-info, .assessment-info, .no-assessment, .stats-section, .salary-breakdown, .salary-section, .history-section) > :is(h3, h4) {
        margin-bottom: 11px !important;
        font-size: 17px;
    }
    .theme-baozipt.page-view_salary .salary-container p {
        margin: 6px 0;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    .theme-baozipt.page-view_salary .stats-section,
    .theme-baozipt.page-view_salary .history-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-color: #e6a05e #fff1dc;
    }
    .theme-baozipt.page-view_salary .stats-table { min-width: 720px; }
    .theme-baozipt.page-view_salary .history-section > .history-table { min-width: 680px; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll { min-width: 100%; }
    .theme-baozipt.page-view_salary :is(.stats-table, .history-table) :is(th, td) {
        padding: 9px 10px !important;
        font-size: 12px;
    }
    .theme-baozipt.page-view_salary .salary-amount { font-size: 21px !important; }
    .theme-baozipt.page-view_salary .salary-btn {
        width: 100%;
        margin: 8px 0 !important;
    }
}

/* Salary width refinement and staff assessment management. Both custom pages
   share the homepage shell and warm paper-card language without touching the
   underlying salary, assignment or configuration logic. */
.theme-baozipt.page-view_salary table.mainouter,
.theme-baozipt.page-staff_assessment table.mainouter {
    width: calc(100% - 48px) !important;
    max-width: var(--baozi-shell) !important;
}

.theme-baozipt.page-view_salary .salary-container > .header-section {
    min-height: 108px;
    padding: 20px 24px !important;
    border-color: var(--baozi-line) !important;
    border-radius: var(--baozi-radius);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .86), transparent 28%),
        linear-gradient(105deg, #fff0d7, #fff9ef 62%, #ffead0) !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-view_salary .header-text h1 {
    color: #3f3025 !important;
    text-shadow: none !important;
}

.theme-baozipt.page-view_salary .header-text p {
    color: #796956 !important;
}

.theme-baozipt.page-staff_assessment #outer {
    padding: 0 !important;
    overflow: visible;
}

.theme-baozipt.page-staff_assessment .assessment-container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 0 26px !important;
    color: #423329;
}

.theme-baozipt.page-staff_assessment .assessment-container > .header-section {
    box-sizing: border-box;
    width: 100%;
    min-height: 108px;
    align-items: center;
    margin: 0 0 16px !important;
    padding: 20px 24px !important;
    border: 1px solid var(--baozi-line) !important;
    border-radius: var(--baozi-radius) !important;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .88), transparent 28%),
        linear-gradient(105deg, #fff0d7, #fff9ef 62%, #ffead0) !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-staff_assessment .header-text h1 {
    margin: 0 0 7px !important;
    color: #3f3025 !important;
    font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif;
    font-size: clamp(25px, 2vw, 33px) !important;
    line-height: 1.25;
    letter-spacing: .04em;
}

.theme-baozipt.page-staff_assessment .header-text p {
    margin: 0 !important;
    color: #796956 !important;
    font-size: 13px !important;
    line-height: 1.7;
}

.theme-baozipt.page-staff_assessment .section {
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid var(--baozi-line-soft) !important;
    border-radius: var(--baozi-radius) !important;
    background: linear-gradient(145deg, rgba(255, 253, 249, .98), rgba(255, 247, 235, .96)) !important;
    box-shadow: var(--baozi-shadow);
}

.theme-baozipt.page-staff_assessment .section > h3,
.theme-baozipt.page-staff_assessment .section > h4,
.theme-baozipt.page-staff_assessment .user-info > h4,
.theme-baozipt.page-staff_assessment .assessment-list > h4,
.theme-baozipt.page-staff_assessment .add-assessment-form > h4 {
    margin: 0 0 14px !important;
    padding: 0 0 10px !important;
    color: #5b3b24 !important;
    border-bottom: 1px solid #ecd6b7 !important;
}

.theme-baozipt.page-staff_assessment .section > h3 {
    margin-top: 22px !important;
    font-size: 20px !important;
}

.theme-baozipt.page-staff_assessment .section > h3:first-child { margin-top: 0 !important; }

.theme-baozipt.page-staff_assessment .search-form {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 10px !important;
    margin: 0 0 14px !important;
}

.theme-baozipt.page-staff_assessment :is(input[type="text"], input[type="number"], select) {
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 11px !important;
    color: #493a2f !important;
    border: 1px solid #e4b978 !important;
    border-radius: 9px !important;
    background: #fffdf9 !important;
    box-shadow: inset 0 1px 2px rgba(112, 70, 30, .04);
}

.theme-baozipt.page-staff_assessment :is(input[type="text"], input[type="number"], select):focus {
    border-color: var(--baozi-orange) !important;
    outline: 2px solid rgba(245, 103, 25, .14);
    outline-offset: 1px;
}

.theme-baozipt.page-staff_assessment :is(button:not(.baozi-page-jump__button), .btn) {
    min-height: 40px;
    padding: 8px 15px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: 1px solid #d94d12 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ff7b25, #ed5a17) !important;
    box-shadow: 0 4px 10px rgba(157, 72, 18, .11);
}

.theme-baozipt.page-staff_assessment :is(button:not(.baozi-page-jump__button), .btn):hover {
    background: linear-gradient(135deg, #ed5a17, #cf4210) !important;
    transform: translateY(-1px);
}

.theme-baozipt.page-staff_assessment :is(button, .btn).btn-danger {
    border-color: #d24d3b !important;
    background: linear-gradient(135deg, #ef715d, #d84c38) !important;
}

.theme-baozipt.page-staff_assessment :is(button, .btn).btn-success {
    border-color: #75933c !important;
    background: linear-gradient(135deg, #99ad55, #758f35) !important;
}

.theme-baozipt.page-staff_assessment .user-info {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 18px !important;
    padding: 16px !important;
    border: 1px solid #ecd6b7 !important;
    border-radius: 12px !important;
    background: rgba(255, 247, 235, .82) !important;
}

.theme-baozipt.page-staff_assessment #user-details > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 15px;
}

.theme-baozipt.page-staff_assessment #user-details > div > h5 {
    grid-column: 1 / -1;
    margin: 0 0 2px !important;
    color: #b54815 !important;
    font-size: 14px !important;
}

.theme-baozipt.page-staff_assessment .assessment-item {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 1px solid #edd7b8 !important;
    border-left: 4px solid var(--baozi-orange) !important;
    border-radius: 10px !important;
    background: #fffdf9 !important;
    box-shadow: 0 3px 9px rgba(113, 70, 28, .05);
}

.theme-baozipt.page-staff_assessment .assessment-item .info {
    min-width: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.theme-baozipt.page-staff_assessment .assessment-item .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.theme-baozipt.page-staff_assessment :is(.assessment-list, .add-assessment-form) {
    box-sizing: border-box;
    margin: 0 0 18px !important;
    padding: 16px !important;
    border: 1px solid #ecd6b7 !important;
    border-radius: 12px !important;
    background: rgba(255, 251, 244, .9) !important;
}

.theme-baozipt.page-staff_assessment .add-assessment-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 9px 12px;
    align-items: end;
}

.theme-baozipt.page-staff_assessment .add-assessment-form > :is(h4, p) { grid-column: 1 / -1; }
.theme-baozipt.page-staff_assessment .assessment-type-select { width: 100%; }

.theme-baozipt.page-staff_assessment .requirements-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 14px !important;
}

.theme-baozipt.page-staff_assessment .requirement-group {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #ecd6b7 !important;
    border-radius: 12px !important;
    background: rgba(255, 247, 235, .84) !important;
}

.theme-baozipt.page-staff_assessment .group-header,
.theme-baozipt.page-staff_assessment .card-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px !important;
    padding: 0 0 9px !important;
    border-bottom: 1px solid #ecd6b7 !important;
    background: transparent !important;
}

.theme-baozipt.page-staff_assessment .group-header h4,
.theme-baozipt.page-staff_assessment .card-header h5 {
    margin: 0 !important;
    color: #5b3b24 !important;
}

.theme-baozipt.page-staff_assessment .requirement-card {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0 0 12px !important;
    padding: 14px !important;
    border: 1px solid #eddbbf !important;
    border-radius: 10px !important;
    background: #fffdf9 !important;
    box-shadow: 0 3px 9px rgba(113, 70, 28, .05);
}

.theme-baozipt.page-staff_assessment .requirement-card:last-child { margin-bottom: 0 !important; }

.theme-baozipt.page-staff_assessment .config-item {
    min-width: 0;
    margin: 0 0 11px !important;
}

.theme-baozipt.page-staff_assessment .config-item :is(input, select) { width: 100% !important; }

.theme-baozipt.page-staff_assessment .help-text {
    display: block;
    margin-top: 4px;
    color: #88735f !important;
    font-size: 11px !important;
    line-height: 1.55;
}

.theme-baozipt.page-staff_assessment .expand-btn {
    width: 100%;
    margin-top: 4px !important;
    color: #9d471e !important;
    border-color: #eac899 !important;
    background: #fff4e2 !important;
    box-shadow: none;
}

.theme-baozipt.page-staff_assessment .config-summary {
    margin-top: 9px !important;
    padding: 12px !important;
    color: #5d4a3b;
    border: 1px solid #edd8b9 !important;
    border-radius: 9px !important;
    background: #fff8ed !important;
}

@media (max-width: 1180px) {
    .theme-baozipt.page-staff_assessment .requirements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .theme-baozipt.page-view_salary table.mainouter,
    .theme-baozipt.page-staff_assessment table.mainouter {
        width: calc(100% - 16px) !important;
    }

    .theme-baozipt.page-view_salary .salary-container > .header-section,
    .theme-baozipt.page-staff_assessment .assessment-container > .header-section {
        min-height: 0;
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }

    .theme-baozipt.page-staff_assessment .assessment-container { padding-bottom: 16px !important; }
    .theme-baozipt.page-staff_assessment .header-text h1 { font-size: 22px !important; }
    .theme-baozipt.page-staff_assessment .header-text p { font-size: 12px !important; }

    .theme-baozipt.page-staff_assessment .section {
        padding: 13px !important;
        border-radius: 11px !important;
    }

    .theme-baozipt.page-staff_assessment .search-form,
    .theme-baozipt.page-staff_assessment .add-assessment-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-baozipt.page-staff_assessment .search-form :is(button, .btn),
    .theme-baozipt.page-staff_assessment .add-assessment-form :is(button, .btn) { width: 100%; }

    .theme-baozipt.page-staff_assessment :is(.user-info, .assessment-list, .add-assessment-form) {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .theme-baozipt.page-staff_assessment #user-details > div,
    .theme-baozipt.page-staff_assessment .requirements-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .theme-baozipt.page-staff_assessment .assessment-item {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .theme-baozipt.page-staff_assessment .assessment-item .actions { justify-content: stretch; }
    .theme-baozipt.page-staff_assessment .assessment-item .actions :is(button, .btn) { flex: 1 1 auto; }
    .theme-baozipt.page-staff_assessment .requirement-group { padding: 11px !important; }
    .theme-baozipt.page-staff_assessment .requirement-card { padding: 12px !important; }
    .theme-baozipt.page-staff_assessment .group-header { align-items: stretch; flex-direction: column; }
    .theme-baozipt.page-staff_assessment .group-header :is(button, .btn) { width: 100%; }
}

/* Salary assessment statistics table: clip cell backgrounds to the rounded
   outline while retaining the internal grid on desktop and mobile. */
.theme-baozipt.page-view_salary .stats-table {
    overflow: hidden !important;
    isolation: isolate;
}

.theme-baozipt.page-view_salary .stats-table tr:first-child > :first-child {
    border-top-left-radius: 10px !important;
}

.theme-baozipt.page-view_salary .stats-table tr:first-child > :last-child {
    border-top-right-radius: 10px !important;
}

.theme-baozipt.page-view_salary .stats-table tr:last-child > :first-child {
    border-bottom-left-radius: 10px !important;
}

.theme-baozipt.page-view_salary .stats-table tr:last-child > :last-child {
    border-bottom-right-radius: 10px !important;
}

/* Keep the two desktop homepage columns on shared row tracks so each pair of
   cards stays level even when news or plugin content changes independently. */
@media (min-width: 1181px) {
    .theme-baozipt.page-index .home-dashboard {
        grid-template-rows: repeat(2, auto);
        align-items: stretch;
    }

    .theme-baozipt.page-index .home-dashboard__main,
    .theme-baozipt.page-index .home-dashboard__side {
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        grid-auto-rows: unset;
        align-content: stretch;
    }

    .theme-baozipt.page-index .home-news,
    .theme-baozipt.page-index .home-dashboard .attendance-card,
    .theme-baozipt.page-index .home-site-data,
    .theme-baozipt.page-index .home-dashboard__native-side,
    .theme-baozipt.page-index .home-lucky-draw {
        height: auto;
        align-self: stretch;
    }

    .theme-baozipt.page-index .home-news,
    .theme-baozipt.page-index .home-site-data {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .theme-baozipt.page-index .home-news__body {
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .theme-baozipt.page-index .home-site-data__grid {
        min-height: 0;
        grid-template-rows: repeat(6, minmax(43px, 1fr));
        align-items: stretch;
    }

    .theme-baozipt.page-index .home-site-data__column {
        display: grid;
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        align-items: stretch;
    }

    .theme-baozipt.page-index .home-site-data__column:last-child .home-site-data__item:last-child {
        grid-row: span 2;
    }

    .theme-baozipt.page-index .home-dashboard__native-side,
    .theme-baozipt.page-index .home-lucky-draw {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        margin: 0;
        padding: 0;
    }

    .theme-baozipt.page-index .home-dashboard__native-side > table,
    .theme-baozipt.page-index .home-lucky-draw > table {
        height: 100% !important;
    }
}

/* FAQ management: replace the inherited Classic administration table skin
   with the same cards, borders and controls used by the BaoziPT back office. */
body.theme-baozipt.page-faqmanage #outer {
    overflow-x: visible;
}

body.theme-baozipt.page-faqmanage #outer > table.nexus-main-frame {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-faqmanage #outer > table.nexus-main-frame > tbody,
body.theme-baozipt.page-faqmanage #outer > table.nexus-main-frame > tbody > tr,
body.theme-baozipt.page-faqmanage #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-faqmanage .faqmanage-page {
    display: grid;
    width: min(100%, 1440px);
    margin: 0 auto;
    gap: 14px;
}

body.theme-baozipt.page-faqmanage .faqmanage-hero {
    min-height: 86px;
    margin: 0;
}

body.theme-baozipt.page-faqmanage .faqmanage-hero__icon {
    font-size: 25px;
    font-weight: 900;
}

body.theme-baozipt.page-faqmanage .faqmanage-hero h1 {
    margin: 0 0 4px;
    color: #4e3523;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

body.theme-baozipt.page-faqmanage .faqmanage-hero p {
    margin: 0;
    color: #8c745f;
    font-size: 12px;
}

body.theme-baozipt.page-faqmanage .faqmanage-form {
    display: grid;
    min-width: 0;
    gap: 13px;
}

body.theme-baozipt.page-faqmanage .faqmanage-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 12px;
    background: rgba(255, 252, 246, .96);
    box-shadow: 0 5px 16px rgba(112, 67, 25, .055);
}

body.theme-baozipt.page-faqmanage .faqmanage-card--orphaned > h2 {
    margin: 0;
    padding: 12px 15px;
    color: #a43f24;
    font-size: 15px;
    border-bottom: 1px solid #edcfaa;
    background: #fff0df;
}

body.theme-baozipt.page-faqmanage .faqmanage-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-color: #dda164 #fff1dc;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.theme-baozipt.page-faqmanage .faqmanage-table-scroll:focus-visible {
    outline: 3px solid rgba(237, 90, 23, .26);
    outline-offset: -3px;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table {
    width: 100% !important;
    min-width: 820px;
    margin: 0 !important;
    table-layout: fixed !important;
    border: 0 !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table :is(th, td) {
    height: auto;
    padding: 10px 11px !important;
    color: #574638;
    font-size: 12px;
    line-height: 1.45;
    border: 0 !important;
    border-right: 1px solid #ecd8ba !important;
    border-bottom: 1px solid #ecd8ba !important;
    background: #fffdf9 !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table :is(th, td):last-child {
    border-right: 0 !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table thead th {
    height: 42px;
    color: #6b4327;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
    background: linear-gradient(90deg, #ffe7bf, #fff1db) !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table thead th:first-child { width: 108px; }
body.theme-baozipt.page-faqmanage table.faqmanage-table thead th:nth-child(3) { width: 116px; }
body.theme-baozipt.page-faqmanage table.faqmanage-table thead th:nth-child(4) { width: 104px; }
body.theme-baozipt.page-faqmanage table.faqmanage-table thead th:last-child { width: 154px; }
body.theme-baozipt.page-faqmanage table.faqmanage-table--orphaned thead th:first-child { width: auto; }
body.theme-baozipt.page-faqmanage table.faqmanage-table--orphaned thead th:nth-child(2) { width: 104px; }

body.theme-baozipt.page-faqmanage table.faqmanage-table tbody tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table tbody tr:not(.faqmanage-add-row):hover > td {
    background: #fff9ef !important;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table .faqmanage-section-row > td {
    background: #fff7e9 !important;
}

body.theme-baozipt.page-faqmanage .faqmanage-title-cell {
    overflow-wrap: anywhere;
    text-align: left;
}

body.theme-baozipt.page-faqmanage .faqmanage-title-cell b {
    color: #493326;
    font-size: 13px;
}

body.theme-baozipt.page-faqmanage .faqmanage-title-cell--item {
    position: relative;
    padding-left: 26px !important;
}

body.theme-baozipt.page-faqmanage .faqmanage-title-cell--item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 7px;
    height: 7px;
    border: 2px solid #e99a54;
    border-top: 0;
    border-left: 0;
    transform: translateY(-65%) rotate(45deg);
}

body.theme-baozipt.page-faqmanage .faqmanage-language-cell {
    color: #805c3d;
    font-weight: 700;
}

body.theme-baozipt.page-faqmanage table.faqmanage-table select {
    width: 58px;
    min-width: 58px;
    height: 32px;
    padding: 4px 22px 4px 8px;
    color: #563d2c;
    border: 1px solid #e3bc88;
    border-radius: 7px;
    background-color: #fffaf2;
}

body.theme-baozipt.page-faqmanage .faqmanage-status {
    display: inline-flex;
    min-width: 62px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    color: #4f6e35;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid #c8daa7;
    border-radius: 999px;
    background: #f2f8e7;
}

body.theme-baozipt.page-faqmanage .faqmanage-status--hidden {
    color: #a4432d;
    border-color: #efb9a8;
    background: #fff0ea;
}

body.theme-baozipt.page-faqmanage .faqmanage-status--updated {
    color: #386c99;
    border-color: #b9d3e8;
    background: #edf7ff;
}

body.theme-baozipt.page-faqmanage .faqmanage-status--new {
    color: #267047;
    border-color: #acd7bb;
    background: #ebf9f0;
}

body.theme-baozipt.page-faqmanage .faqmanage-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

body.theme-baozipt.page-faqmanage .faqmanage-actions a,
body.theme-baozipt.page-faqmanage .faqmanage-add-row a,
body.theme-baozipt.page-faqmanage .faqmanage-add-section {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    color: #a7461b;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e7bd87;
    border-radius: 7px;
    background: #fff5e6;
}

body.theme-baozipt.page-faqmanage .faqmanage-actions .faqmanage-action--danger {
    color: #a13b2a;
    border-color: #edb7a8;
    background: #fff0eb;
}

body.theme-baozipt.page-faqmanage .faqmanage-actions a:hover,
body.theme-baozipt.page-faqmanage .faqmanage-add-row a:hover,
body.theme-baozipt.page-faqmanage .faqmanage-add-section:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

body.theme-baozipt.page-faqmanage .faqmanage-add-row td {
    padding: 9px !important;
    background: #fffaf2 !important;
}

body.theme-baozipt.page-faqmanage .faqmanage-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--baozi-line-soft);
    border-radius: 12px;
    background: rgba(255, 250, 242, .96);
}

body.theme-baozipt.page-faqmanage .faqmanage-footer-actions input[type="submit"] {
    min-width: 112px;
    min-height: 36px;
    margin: 0;
}

body.theme-baozipt.page-faqmanage .faqmanage-note {
    margin: 0;
    padding: 11px 13px;
    color: #806d5d;
    font-size: 11px;
    line-height: 1.55;
    border: 1px solid #ebd9bd;
    border-radius: 10px;
    background: #fffaf2;
}

@media (max-width: 760px) {
    body.theme-baozipt.page-faqmanage #outer {
        padding: 10px !important;
    }

    body.theme-baozipt.page-faqmanage .faqmanage-page {
        gap: 10px;
    }

    body.theme-baozipt.page-faqmanage .faqmanage-hero {
        min-height: 0;
        align-items: center;
        flex-direction: row;
        padding: 13px !important;
    }

    body.theme-baozipt.page-faqmanage .faqmanage-hero h1 { font-size: 20px; }
    body.theme-baozipt.page-faqmanage .faqmanage-hero p { font-size: 11px; }

    body.theme-baozipt.page-faqmanage table.faqmanage-table {
        min-width: 760px;
    }

    body.theme-baozipt.page-faqmanage table.faqmanage-table :is(th, td) {
        padding: 9px 8px !important;
    }

    body.theme-baozipt.page-faqmanage .faqmanage-footer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.theme-baozipt.page-faqmanage .faqmanage-footer-actions > * {
        width: 100% !important;
    }
}

/* Torrent list typography: the legacy font-size stylesheet pins row cells to
   8pt. BaoziPT uses a readable size while preserving the existing scroll grid. */
body.theme-baozipt.page-torrents table.torrents td.rowfollow,
body.theme-baozipt.page-special table.torrents td.rowfollow {
    font-size: 12.5px !important;
    line-height: 1.5;
}

/* Legacy social, moderation and account utilities.  Their main frame is only
   a layout shell: keep it transparent and let the semantic cards below own
   the single visible boundary. */
body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer {
    min-width: 0;
    overflow-x: visible;
}

body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer > table.nexus-main-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer > table.nexus-main-frame > tbody,
body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer > table.nexus-main-frame > tbody > tr,
body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt:is(
    .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
    .page-useragreement, .page-user-ban-log
) #outer > table.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

/* Mass private message. */
body.theme-baozipt.page-staffmess .staffmess-page {
    width: min(100%, 1320px);
    margin: 0 auto;
}

body.theme-baozipt.page-staffmess .staffmess-card > .baozi-admin-card__body {
    padding: 0;
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr > td {
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #ecd9bd !important;
    background: #fffdf8 !important;
    vertical-align: middle;
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr > td:first-child:not([colspan]) {
    width: 184px;
    min-width: 184px;
    color: #67492f;
    font-weight: 800;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid :is(tbody, tr, td) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid td {
    width: 25%;
    padding: 6px 8px !important;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid label,
body.theme-baozipt.page-staffmess .staffmess-sender {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid label {
    min-height: 28px;
    color: #58483a;
}

body.theme-baozipt.page-staffmess .staffmess-class-grid input,
body.theme-baozipt.page-staffmess .staffmess-sender input {
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--baozi-orange);
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table input[type="text"],
body.theme-baozipt.page-staffmess .bulk-admin-form__table textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

body.theme-baozipt.page-staffmess .bulk-admin-form__table textarea {
    min-height: 280px;
    resize: vertical;
}

body.theme-baozipt.page-staffmess .staffmess-success {
    color: #357044 !important;
    text-align: center;
    background: #eff8e8 !important;
}

body.theme-baozipt.page-staffmess .staffmess-sender {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

body.theme-baozipt.page-staffmess .staffmess-sender label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.theme-baozipt.page-staffmess .staffmess-submit-row td {
    text-align: center;
}

body.theme-baozipt.page-staffmess .staffmess-submit-row input[type="submit"] {
    min-width: 150px;
}

body.theme-baozipt.page-staffmess .staffmess-note {
    margin: 0;
    padding: 11px 13px;
    color: #7a634f;
    font-size: 11px;
    line-height: 1.55;
    border: 1px solid #ead5b6;
    border-radius: 10px;
    background: #fff9ef;
}

/* Friends and block list. */
body.theme-baozipt.page-friends .friends-page {
    width: min(100%, 1280px);
    margin: 0 auto;
}

body.theme-baozipt.page-friends .friends-hero p a {
    color: var(--baozi-orange-dark);
    font-weight: 800;
}

body.theme-baozipt.page-friends .friends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.theme-baozipt.page-friends .friends-person {
    display: grid;
    min-width: 0;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ecd9bd;
    border-radius: 11px;
    background: #fffdf8;
}

body.theme-baozipt.page-friends .friends-person__avatar {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 2px solid #efb272;
    border-radius: 50%;
    background: #fff3df;
}

body.theme-baozipt.page-friends .friends-person__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

body.theme-baozipt.page-friends .friends-person__body {
    min-width: 0;
    color: #554638;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.theme-baozipt.page-friends .friends-person__title {
    color: #8a6e56;
    font-size: 11px;
    font-weight: 500;
}

body.theme-baozipt.page-friends .friends-person__body small {
    display: block;
    margin-top: 9px;
    color: #8a7663;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

body.theme-baozipt.page-friends .friends-person__actions {
    display: flex;
    min-width: 124px;
    flex-direction: column;
    gap: 7px;
}

body.theme-baozipt.page-friends .friends-person__actions a,
body.theme-baozipt.page-friends .friends-footer-action .btn {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    color: #a8481e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    border: 1px solid #e6bd88;
    border-radius: 7px;
    background: #fff5e6;
}

body.theme-baozipt.page-friends .friends-person__actions a:hover,
body.theme-baozipt.page-friends .friends-footer-action .btn:hover {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

body.theme-baozipt.page-friends .friends-empty {
    display: grid;
    min-height: 116px;
    place-items: center;
    padding: 22px;
    color: #8b7562;
    text-align: center;
    border: 1px dashed #e5c79e;
    border-radius: 10px;
    background: #fffaf1;
}

body.theme-baozipt.page-friends .friends-empty :is(em, i) {
    font-style: normal;
}

body.theme-baozipt.page-friends .friends-block-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.theme-baozipt.page-friends .friends-block-chip {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 11px;
    border: 1px solid #e8c79c;
    border-radius: 999px;
    background: #fff8ec;
}

body.theme-baozipt.page-friends .friends-block-remove {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #a84831;
    font-size: 16px;
    font-weight: 900;
    border-radius: 50%;
    background: #ffe9df;
}

body.theme-baozipt.page-friends .friends-footer-action {
    display: flex;
    justify-content: flex-end;
}

body.theme-baozipt.page-friends .friends-footer-action .btn {
    min-width: 170px;
}

/* IP history search. */
body.theme-baozipt.page-ipsearch .ipsearch-page {
    width: min(100%, 1280px);
    margin: 0 auto;
}

body.theme-baozipt.page-ipsearch .ipsearch-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

body.theme-baozipt.page-ipsearch .ipsearch-field {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: #624730;
    font-size: 11px;
    font-weight: 800;
}

body.theme-baozipt.page-ipsearch .ipsearch-field b {
    margin-left: 3px;
    color: #d64620;
}

body.theme-baozipt.page-ipsearch .ipsearch-field input {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px;
}

body.theme-baozipt.page-ipsearch .ipsearch-actions input[type="submit"] {
    min-width: 126px;
    min-height: 40px;
    margin: 0;
}

body.theme-baozipt.page-ipsearch .ipsearch-table-scroll,
body.theme-baozipt.page-user-ban-log .user-ban-log-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-color: #dda164 #fff1dc;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.theme-baozipt.page-ipsearch .ipsearch-table-scroll:focus-visible,
body.theme-baozipt.page-user-ban-log .user-ban-log-table-scroll:focus-visible,
body.theme-baozipt.page-mybonus :is(.mybonus-exchange-table-wrap, .mybonus-info-table-wrap):focus-visible {
    outline: 3px solid rgba(237, 90, 23, .24);
    outline-offset: -3px;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-card > .baozi-admin-card__body,
body.theme-baozipt.page-user-ban-log .user-ban-log-card > .baozi-admin-card__body {
    padding: 0;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table,
body.theme-baozipt.page-user-ban-log .user-ban-log-table {
    width: 100% !important;
    min-width: 880px;
    margin: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fffdf8 !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table :is(th, td),
body.theme-baozipt.page-user-ban-log .user-ban-log-table :is(th, td) {
    padding: 10px 11px !important;
    border: 0 !important;
    border-right: 1px solid #ecd9bd !important;
    border-bottom: 1px solid #ecd9bd !important;
    background: #fffdf8 !important;
    vertical-align: middle;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table :is(th, td):last-child,
body.theme-baozipt.page-user-ban-log .user-ban-log-table :is(th, td):last-child {
    border-right: 0 !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table tr:last-child > td,
body.theme-baozipt.page-user-ban-log .user-ban-log-table tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table .colhead,
body.theme-baozipt.page-user-ban-log .user-ban-log-table th {
    color: #664326 !important;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffe5bb, #fff0d9) !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-results-table .colhead a {
    color: #884619 !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-empty {
    display: grid;
    min-height: 130px;
    place-items: center;
    padding: 22px;
    color: #8b7562;
    text-align: center;
    background: #fffaf1;
}

body.theme-baozipt.page-user-ban-log.is-authenticated td.user-ban-log-empty {
    display: table-cell !important;
    width: auto !important;
    height: 130px;
    padding: 22px !important;
    color: #8b7562;
    text-align: center;
    vertical-align: middle;
    background: #fffaf1 !important;
}

body.theme-baozipt.page-ipsearch .ipsearch-pagination,
body.theme-baozipt.page-user-ban-log .user-ban-log-pagination {
    padding: 12px 14px;
    text-align: center;
    border-top: 1px solid #ecd9bd;
    background: #fff9ef;
}

/* Bonus exchange: one scrolling surface per wide data group. */
body.theme-baozipt.page-mybonus .mybonus-page {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    gap: 14px;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table-wrap,
body.theme-baozipt.page-mybonus .mybonus-info-table-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: var(--baozi-shadow);
    scrollbar-color: #dda164 #fff1dc;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table,
body.theme-baozipt.page-mybonus .mybonus-info-table {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fffdf8 !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table {
    min-width: 820px;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table > tbody > tr > td,
body.theme-baozipt.page-mybonus .mybonus-info-table > tbody > tr > td {
    background: #fffdf8 !important;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table > tbody > tr > td.colhead,
body.theme-baozipt.page-mybonus .mybonus-info-table > tbody > tr > td.colhead {
    color: #654126 !important;
    background: linear-gradient(90deg, #ffe3b6, #fff0d8) !important;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-mybonus .mybonus-exchange-table table :is(tbody, tr, td) {
    border-color: #ecd9bd !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-mybonus .mybonus-info-table {
    width: 100% !important;
}

body.theme-baozipt.page-mybonus .mybonus-info-table > tbody > tr > td.text {
    padding: 18px !important;
}

body.theme-baozipt.page-mybonus .mybonus-info-table table {
    max-width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Agreement article. */
body.theme-baozipt.page-useragreement .user-agreement-page {
    width: min(100%, 1180px);
    min-width: 0;
    margin: 0 auto;
}

body.theme-baozipt.page-useragreement .user-agreement-page.baozi-admin-page {
    gap: 14px;
}

body.theme-baozipt.page-useragreement .user-agreement-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 24px 28px;
    color: #584a3d;
    font-size: 12.5px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    border: 1px solid var(--baozi-line);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: var(--baozi-shadow);
}

body.theme-baozipt.page-useragreement .user-agreement-card p {
    margin: 0 0 1.15em;
}

body.theme-baozipt.page-useragreement .user-agreement-card p:last-child {
    margin-bottom: 0;
}

body.theme-baozipt.page-useragreement .user-agreement-page--guest .user-agreement-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Authenticated user-ban log. */
body.theme-baozipt.page-user-ban-log .user-ban-log-page {
    width: min(100%, 1320px);
    margin: 0 auto;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-filter {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    align-items: center;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-filter label {
    color: #65482f;
    font-size: 11px;
    font-weight: 800;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-filter input[type="search"] {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 38px;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-filter .btn {
    min-width: 92px;
    min-height: 38px;
    margin: 0;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-reset {
    color: #76583d !important;
    border-color: #d9b887 !important;
    background: #fff9ef !important;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-card .baozi-admin-card__header small {
    color: #9b6d45;
    font-size: 11px;
}

body.theme-baozipt.page-user-ban-log .user-ban-log-table th:nth-child(1),
body.theme-baozipt.page-user-ban-log .user-ban-log-table td:nth-child(1) { width: 70px; }
body.theme-baozipt.page-user-ban-log .user-ban-log-table th:nth-child(2),
body.theme-baozipt.page-user-ban-log .user-ban-log-table td:nth-child(2) { width: 80px; }
body.theme-baozipt.page-user-ban-log .user-ban-log-table th:nth-child(3),
body.theme-baozipt.page-user-ban-log .user-ban-log-table td:nth-child(3) { width: 160px; }
body.theme-baozipt.page-user-ban-log .user-ban-log-table th:nth-child(5),
body.theme-baozipt.page-user-ban-log .user-ban-log-table td:nth-child(5) { width: 180px; }

@media (max-width: 760px) {
    body.theme-baozipt:is(
        .page-staffmess, .page-friends, .page-ipsearch, .page-mybonus,
        .page-useragreement, .page-user-ban-log
    ) #outer {
        padding: 10px !important;
    }

    body.theme-baozipt.page-staffmess .bulk-admin-form__table,
    body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody {
        display: block;
        width: 100% !important;
    }

    body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr > td {
        display: block;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 11px !important;
    }

    body.theme-baozipt.page-staffmess .bulk-admin-form__table > tbody > tr > td:first-child:not([colspan]) {
        padding-bottom: 4px !important;
        border-bottom: 0 !important;
    }

    body.theme-baozipt.page-staffmess .staffmess-class-grid {
        display: table;
    }

    body.theme-baozipt.page-staffmess .staffmess-class-grid td {
        width: 50%;
        padding: 5px 3px !important;
        font-size: 10px;
    }

    body.theme-baozipt.page-staffmess .staffmess-sender {
        align-items: flex-start;
        flex-direction: column;
    }

    body.theme-baozipt.page-staffmess .staffmess-submit-row input[type="submit"] {
        width: 100% !important;
    }

    body.theme-baozipt.page-friends .friends-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-friends .friends-person {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
    }

    body.theme-baozipt.page-friends .friends-person__avatar {
        width: 58px;
        height: 58px;
    }

    body.theme-baozipt.page-friends .friends-person__actions {
        min-width: 0;
        grid-column: 1 / -1;
        flex-direction: row;
    }

    body.theme-baozipt.page-friends .friends-person__actions a {
        flex: 1 1 0;
    }

    body.theme-baozipt.page-friends .friends-footer-action .btn {
        width: 100% !important;
    }

    body.theme-baozipt.page-ipsearch .ipsearch-form,
    body.theme-baozipt.page-user-ban-log .user-ban-log-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-ipsearch .ipsearch-actions input[type="submit"],
    body.theme-baozipt.page-user-ban-log .user-ban-log-filter .btn {
        width: 100% !important;
    }

    body.theme-baozipt.page-ipsearch .ipsearch-results-table,
    body.theme-baozipt.page-user-ban-log .user-ban-log-table {
        min-width: 760px;
    }

    body.theme-baozipt.page-mybonus .mybonus-exchange-table {
        min-width: 760px;
    }

    body.theme-baozipt.page-mybonus .mybonus-gift-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.theme-baozipt.page-mybonus .mybonus-gift-field--message {
        grid-column: auto;
    }

    body.theme-baozipt.page-mybonus .mybonus-info-table > tbody > tr > td.text {
        padding: 14px !important;
    }

    body.theme-baozipt.page-useragreement .user-agreement-card {
        padding: 16px 14px;
        font-size: 11.5px;
        line-height: 1.75;
    }
}

/* BaoziPT mobile mailbox cards - production hotfix 2026-08-24 */
@media (max-width: 760px) {
    .theme-baozipt.page-messages .pm-center > .pm-mailbox-form {
        overflow: visible !important;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .theme-baozipt.page-messages .pm-center > .pm-mailbox-form > .pm-message-list {
        display: block;
        width: 100% !important;
        min-width: 0;
        overflow: visible;
        background: transparent !important;
    }

    .theme-baozipt.page-messages .pm-message-list > tbody {
        display: grid;
        width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .theme-baozipt.page-messages .pm-message-list__head {
        display: none;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-row {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: 48px minmax(0, 1fr) 44px;
        grid-template-areas:
            "status subject select"
            "status person select"
            "status date select";
        overflow: hidden;
        border: 1px solid #e8cda9;
        border-radius: 11px;
        background: #fffdf9;
        box-shadow: 0 4px 12px rgba(138, 82, 30, .045);
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-row > td {
        box-sizing: border-box;
        display: block;
        width: auto !important;
        min-width: 0;
        height: auto;
        padding: 5px 10px !important;
        border: 0 !important;
        background: transparent !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-row:hover > td {
        background: transparent !important;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-status {
        display: flex;
        width: auto !important;
        min-width: 0;
        grid-area: status;
        align-items: center;
        justify-content: center;
        padding: 8px 6px !important;
        border-right: 1px solid #efddc5 !important;
        background: #fff7ea !important;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-status img.pm-status-icon {
        width: 30px;
        height: 30px;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-subject {
        grid-area: subject;
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-subject__link {
        display: -webkit-box;
        overflow: hidden;
        color: #a94013;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.45;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-person {
        display: flex;
        width: auto !important;
        min-width: 0;
        grid-area: person;
        align-items: center;
        gap: 6px;
        color: #5d4b3b;
        font-size: 11px;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-person::before,
    .theme-baozipt.page-messages .pm-message-list .pm-message-date::before {
        flex: none;
        color: #9a7657;
        font-size: 10px;
        font-weight: 800;
        content: attr(data-label) "：";
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-person__value {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-date {
        display: flex;
        width: auto !important;
        min-width: 0;
        grid-area: date;
        align-items: center;
        gap: 6px;
        padding-top: 4px !important;
        padding-bottom: 10px !important;
        color: #806b59;
        font-size: 10px;
        line-height: 1.4;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-date__value {
        white-space: nowrap;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-select {
        display: flex;
        width: auto !important;
        min-width: 0;
        grid-area: select;
        align-items: center;
        justify-content: center;
        padding: 8px !important;
        border-left: 1px solid #efddc5 !important;
        background: #fffaf2 !important;
    }

    .theme-baozipt.page-messages .pm-message-select .checkbox {
        width: 21px;
        height: 21px;
        margin: 0;
        accent-color: var(--baozi-orange);
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-actions,
    .theme-baozipt.page-messages .pm-message-list .pm-message-filters-row {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-actions > td,
    .theme-baozipt.page-messages .pm-message-list .pm-message-filters-row > td {
        box-sizing: border-box;
        display: block;
        width: 100% !important;
        min-width: 0;
        border: 1px solid #ead2b1 !important;
        border-radius: 10px;
    }

    .theme-baozipt.page-messages .pm-message-actions__inner {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .theme-baozipt.page-messages .pm-message-actions__inner > input,
    .theme-baozipt.page-messages .pm-message-actions__inner > select {
        flex: 1 1 132px;
        width: auto !important;
        min-width: 0;
    }

    .theme-baozipt.page-messages .pm-message-filters__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-baozipt.page-messages .pm-message-filter {
        width: 100%;
        justify-content: center;
    }
}

/* BaoziPT desktop mailbox columns - production hotfix 2026-08-24 */
@media (min-width: 761px) {
    .theme-baozipt.page-messages .pm-message-list .pm-message-subject {
        min-width: 220px;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-person,
    .theme-baozipt.page-messages .pm-message-list .pm-message-list__person-head {
        width: 28% !important;
        min-width: 150px;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-date,
    .theme-baozipt.page-messages .pm-message-list .pm-message-list__date-head {
        width: 132px !important;
        min-width: 132px;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-date__value {
        white-space: nowrap;
    }

    .theme-baozipt.page-messages .pm-message-list .pm-message-select,
    .theme-baozipt.page-messages .pm-message-list .pm-message-list__select-head {
        width: 56px !important;
        min-width: 56px;
        text-align: center;
    }
}

/* BaoziPT pagination nav intrinsic sizing - production hotfix 2026-08-24 */
body.theme-baozipt:is(
    .page-messages,
    .page-staffbox,
    .page-torrents,
    .page-viewrequests,
    .page-subtitles,
    .page-forums
) p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__divider + a,
body.theme-baozipt:is(
    .page-messages,
    .page-staffbox,
    .page-torrents,
    .page-viewrequests,
    .page-subtitles,
    .page-forums
) p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__divider + font.gray > b,
body.theme-baozipt:is(
    .page-messages,
    .page-staffbox,
    .page-torrents,
    .page-viewrequests,
    .page-subtitles,
    .page-forums
) p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__nav-gap + a,
body.theme-baozipt:is(
    .page-messages,
    .page-staffbox,
    .page-torrents,
    .page-viewrequests,
    .page-subtitles,
    .page-forums
) p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__nav-gap + font.gray > b,
.theme-baozipt.page-forums .forum-pagination__line > .baozi-list-pager__divider + a,
.theme-baozipt.page-forums .forum-pagination__line > .baozi-list-pager__divider + font.gray,
.theme-baozipt.page-forums .forum-pagination__line > .baozi-list-pager__nav-gap + a,
.theme-baozipt.page-forums .forum-pagination__line > .baozi-list-pager__nav-gap + font.gray {
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
}

/* BaoziPT mobile pagination scroll origin - production hotfix 2026-08-24 */
@media (max-width: 760px) {
    body.theme-baozipt:is(
        .page-messages,
        .page-staffbox,
        .page-torrents,
        .page-viewrequests,
        .page-subtitles,
        .page-forums
    ) p.nexus-pagination.nexus-pagination--baozi {
        justify-content: flex-start !important;
    }
}


/* BaoziPT message view mobile action layout - production hotfix 2026-08-24 */
@media (max-width: 760px) {
    .theme-baozipt.page-messages .pm-message-view__actions {
        display: flex !important;
        width: 200% !important;
        flex-direction: column;
    }

    .theme-baozipt.page-messages .pm-message-view__actions > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .theme-baozipt.page-messages .pm-message-view__links {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .theme-baozipt.page-messages .pm-message-view__links a {
        display: inline-flex;
        flex: 0 0 auto;
    }
}


/* BaoziPT passkey beside login action - production sync 2026-08-27 */
.theme-baozipt.page-login .auth-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: stretch;
}

.theme-baozipt.page-login .auth-form-actions #passkey_box {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.theme-baozipt.page-login .auth-form-actions #passkey_login {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 8px 11px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid #e9530b !important;
    border-radius: 7px;
    background: linear-gradient(100deg, #f16c09, #ff520b) !important;
    box-shadow: 0 8px 18px rgba(226, 83, 11, .12);
}

.theme-baozipt.page-login .auth-form-actions #passkey_login:hover,
.theme-baozipt.page-login .auth-form-actions #passkey_login:focus-visible {
    background: linear-gradient(100deg, #e85c00, #ef4100) !important;
}

.theme-baozipt.page-login .auth-form-actions #passkey_login br { display: none; }

.theme-baozipt.page-login .auth-form-actions #passkey_login img {
    width: 25px !important;
    height: 25px;
    flex: 0 0 25px;
    padding: 2px;
    border-radius: 4px;
    background: rgba(255, 250, 241, .92);
}

 (max-width: 440px) {
    .theme-baozipt.page-login .auth-form-actions { grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
    .theme-baozipt.page-login .auth-form-actions #passkey_login { gap: 5px; padding: 7px 8px; font-size: 11px; }
    .theme-baozipt.page-login .auth-form-actions #passkey_login img { width: 23px !important; height: 23px; flex-basis: 23px; }
}


/* BaoziPT attendance main frame reset - production hotfix 2026-08-28 */
body.theme-baozipt.page-attendance.is-authenticated #outer > table.main.nexus-main-frame {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-attendance.is-authenticated #outer > table.main.nexus-main-frame > tbody,
body.theme-baozipt.page-attendance.is-authenticated #outer > table.main.nexus-main-frame > tbody > tr,
body.theme-baozipt.page-attendance.is-authenticated #outer > table.main.nexus-main-frame > tbody > tr > td.embedded {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-attendance.is-authenticated #outer > table.main.nexus-main-frame > tbody > tr > td.embedded {
    padding: 0 !important;
}

/* BaoziPT 2026-08-28: salary history fields. */
.theme-baozipt.page-view_salary .baozi-wide-table-scroll {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #ecd5b4;
    border-radius: 11px;
    background: #fffdf9;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #e6a05e #fff1dc;
}
.theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table {
    min-width: 1320px;
    border: 0 !important;
    border-radius: 0 !important;
}
.theme-baozipt.page-view_salary .salary-join-period,
.theme-baozipt.page-view_salary .salary-unmet-cell {
    text-align: center;
}
.theme-baozipt.page-view_salary .salary-empty-value {
    color: #8b7969;
    font-size: 12px;
}
.theme-baozipt.page-view_salary .salary-unmet-cell small {
    display: block;
    margin-top: 2px;
    color: #8b7969;
    font-size: 11px;
    font-weight: 600;
}
.theme-baozipt.page-view_salary .salary-unmet-cell.is-alert {
    color: #d3261d !important;
    font-weight: 900 !important;
    background: #fff0ed !important;
}
.theme-baozipt.page-view_salary .salary-unmet-cell.is-alert small {
    color: #d3261d !important;
    font-weight: 900;
}
@media (max-width: 760px) {
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll {
        min-width: 100%;
    }
}

/* BaoziPT 2026-08-28: salary table width and streak display refinement. */
@media (min-width: 1101px) {
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table {
        width: 100% !important;
        min-width: 0;
        table-layout: fixed !important;
    }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td) {
        padding: 9px 5px !important;
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(1) { width: 4.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(2) { width: 7%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(3) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(4) { width: 5.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(5) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(6) { width: 4.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(7) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(8) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(9) { width: 7%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(10) { width: 4.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(11) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(12) { width: 6%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(13) { width: 10%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(14) { width: 6.5%; }
    .theme-baozipt.page-view_salary .baozi-wide-table-scroll .history-table :is(th, td):nth-child(15) { width: 12%; }
}


/* BaoziPT mybonus invite reclaim 2026-08-30 begin */
body.theme-baozipt.page-mybonus .mybonus-reclaim-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body.theme-baozipt.page-mybonus .mybonus-reclaim-options label {
    color: #6a4a32;
    font-weight: 700;
}

body.theme-baozipt.page-mybonus .mybonus-reclaim-options select {
    width: min(100%, 300px);
    min-height: 38px;
}

body.theme-baozipt.page-mybonus .mybonus-reclaim-reward strong,
body.theme-baozipt.page-mybonus .mybonus-reclaim-reward small {
    display: block;
}

body.theme-baozipt.page-mybonus .mybonus-reclaim-reward strong {
    color: #5f7e2a;
    font-size: 18px;
}

body.theme-baozipt.page-mybonus .mybonus-reclaim-reward small {
    margin-top: 3px;
    color: #8a735e;
}
/* BaoziPT mybonus invite reclaim 2026-08-30 end */

/* BaoziPT torrents advanced semantic rows 2026-08-30 begin */
body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label {
    display: flex !important;
    grid-column: 1;
    align-items: center;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label > td,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label > td {
    display: flex !important;
    width: 100% !important;
    height: 100%;
    min-height: 40px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 9px 4px !important;
    color: #6b4a32;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items {
    display: grid !important;
    grid-column: 2;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    align-items: stretch;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid #f0e1cd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 3px 6px !important;
    color: #c74415;
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    box-sizing: border-box;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td:hover,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td:hover {
    background: #fff3e2 !important;
}

body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td:last-child,
body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-items > td:last-child {
    width: 76px !important;
    grid-column: -2 / -1;
    justify-self: end;
    justify-content: flex-end;
    padding-right: 0 !important;
}

@media (max-width: 680px) {
    body.theme-baozipt.page-torrents .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label > td,
    body.theme-baozipt.page-special .torrent-search-box__taxonomy-grid > table > tbody > tr.torrent-search-box__taxonomy-label > td {
        justify-content: flex-start;
        padding: 5px 2px 0 !important;
        text-align: left;
    }
}
/* BaoziPT torrents advanced semantic rows 2026-08-30 end */

/* BaoziPT mybonus reclaim reward nowrap 2026-08-30 begin */
body.theme-baozipt.page-mybonus .mybonus-reclaim-reward strong {
    white-space: nowrap;
}
/* BaoziPT mybonus reclaim reward nowrap 2026-08-30 end */

/* BaoziPT mobile userbar bonus nowrap 2026-08-30 begin */
@media (max-width: 760px) {
    .theme-baozipt .userbar--home .userbar__identity {
        padding: 11px;
    }

    .theme-baozipt .userbar__bonus {
        flex-wrap: wrap;
        column-gap: 2px;
        row-gap: 2px;
        padding: 2px 6px 2px 3px;
    }

    .theme-baozipt .userbar__bonus-value,
    .theme-baozipt .userbar__bonus.is-long .userbar__bonus-value,
    .theme-baozipt .userbar__bonus.is-xlong .userbar__bonus-value {
        flex: 0 0 auto;
        max-width: none;
        overflow-wrap: normal;
        white-space: nowrap;
        word-break: keep-all;
    }

    .theme-baozipt .userbar__bonus-value wbr {
        display: none;
    }
}
/* BaoziPT mobile userbar bonus nowrap 2026-08-30 end */
/* BaoziPT require-seed section 2026-08-30 begin */
body.theme-baozipt.page-requireseed #outer,
body.theme-baozipt.page-requireseed .require-seed-page,
body.theme-baozipt.page-requireseed .require-seed-list-card,
body.theme-baozipt.page-requireseed .require-seed-list-card__body {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.theme-baozipt.page-requireseed .require-seed-page {
    display: grid;
    gap: 16px;
}

body.theme-baozipt.page-requireseed .require-seed-hero {
    margin: 0;
}

body.theme-baozipt.page-requireseed .require-seed-hero__mark svg {
    width: 42px;
    height: 42px;
    overflow: visible;
    fill: rgba(255, 248, 225, .16);
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.theme-baozipt.page-requireseed .require-seed-hero__copy > span:last-child {
    color: #7e6049;
    font-size: 12px;
    line-height: 1.55;
}

body.theme-baozipt.page-requireseed .require-seed-rules ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 16px 18px 18px;
    list-style: none;
    counter-reset: require-seed-rule;
}

body.theme-baozipt.page-requireseed .require-seed-rules li {
    position: relative;
    min-width: 0;
    min-height: 84px;
    padding: 13px 13px 13px 46px;
    color: #765943;
    line-height: 1.7;
    border: 1px solid #edd5b3;
    border-radius: 11px;
    background: linear-gradient(145deg, #fffdf8, #fff5e7);
    counter-increment: require-seed-rule;
}

body.theme-baozipt.page-requireseed .require-seed-rules li::before {
    content: counter(require-seed-rule);
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9d38, #f25b18);
    box-shadow: 0 3px 8px rgba(225, 90, 22, .18);
}

body.theme-baozipt.page-requireseed .require-seed-rules b {
    color: #b94a1b;
}

body.theme-baozipt.page-requireseed .require-seed-priority {
    display: flex;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 10px;
    margin: -2px 18px 18px;
    padding: 11px 13px;
    color: #5c6634;
    line-height: 1.65;
    border: 1px solid #ccd79a;
    border-radius: 10px;
    background: linear-gradient(100deg, #f5f8e8, #fffdf6);
}

body.theme-baozipt.page-requireseed .require-seed-priority strong {
    flex: 0 0 auto;
    color: #556b28;
    font-weight: 900;
    white-space: nowrap;
}

body.theme-baozipt.page-requireseed .require-seed-priority--global {
    color: #8a4b28;
    border-color: #edbd80;
    background: linear-gradient(100deg, #fff0da, #fffaf1);
}

body.theme-baozipt.page-requireseed .require-seed-priority--global strong {
    color: #c24d16;
}

body.theme-baozipt.page-requireseed .require-seed-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e8c696;
    border-radius: 12px;
    background: linear-gradient(105deg, #fff3de, #fffaf2 52%, #fff1da);
    box-shadow: 0 5px 15px rgba(125, 78, 29, .055);
}

body.theme-baozipt.page-requireseed .require-seed-stats > div {
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 10px 8px;
    border-right: 1px solid #ead2ad;
}

body.theme-baozipt.page-requireseed .require-seed-stats > div:last-child {
    border-right: 0;
}

body.theme-baozipt.page-requireseed .require-seed-stats strong {
    color: #d84c0b;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

body.theme-baozipt.page-requireseed .require-seed-stats span {
    color: #76583e;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.theme-baozipt.page-requireseed .require-seed-filter {
    display: grid;
    grid-template-columns: minmax(142px, .8fr) minmax(185px, 1fr) minmax(142px, .8fr) minmax(240px, 1.6fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px 18px 18px;
}

body.theme-baozipt.page-requireseed .require-seed-filter label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #67462f;
    font-size: 11px;
    font-weight: 800;
}

body.theme-baozipt.page-requireseed .require-seed-filter select,
body.theme-baozipt.page-requireseed .require-seed-filter input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 11px;
    color: #4c3b2f;
    border: 1px solid #e5b978;
    border-radius: 9px;
    background: #fffdf9;
    outline: 0;
}

body.theme-baozipt.page-requireseed .require-seed-filter select:focus,
body.theme-baozipt.page-requireseed .require-seed-filter input[type="search"]:focus {
    border-color: var(--baozi-orange);
    box-shadow: 0 0 0 3px rgba(240, 92, 20, .12);
}

body.theme-baozipt.page-requireseed .require-seed-filter__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.theme-baozipt.page-requireseed .require-seed-filter__actions .btn,
body.theme-baozipt.page-requireseed .require-seed-filter__reset,
body.theme-baozipt.page-requireseed .require-seed-rss__secondary,
body.theme-baozipt.page-requireseed .require-seed-rss__controls .btn {
    display: inline-flex;
    box-sizing: border-box;
    min-width: 72px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border-radius: 9px;
}

body.theme-baozipt.page-requireseed .require-seed-filter__reset,
body.theme-baozipt.page-requireseed .require-seed-rss__secondary {
    color: #a94a1f;
    border: 1px solid #e8b676;
    background: #fff9ef;
}

body.theme-baozipt.page-requireseed .require-seed-filter__reset:hover,
body.theme-baozipt.page-requireseed .require-seed-filter__reset:focus-visible,
body.theme-baozipt.page-requireseed .require-seed-rss__secondary:hover,
body.theme-baozipt.page-requireseed .require-seed-rss__secondary:focus-visible {
    color: #fff;
    border-color: var(--baozi-orange);
    background: var(--baozi-orange);
}

body.theme-baozipt.page-requireseed .require-seed-rss__body {
    padding: 15px 18px 17px;
}

body.theme-baozipt.page-requireseed .require-seed-rss__body > p:first-child {
    margin: 0 0 11px;
    color: #7e6049;
}

body.theme-baozipt.page-requireseed .require-seed-rss__controls {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

body.theme-baozipt.page-requireseed .require-seed-rss__url {
    min-width: 0;
    flex: 1 1 auto;
}

body.theme-baozipt.page-requireseed .require-seed-rss__url input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 12px;
    color: #6b4a31;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: 1px solid #e5b978;
    border-radius: 9px;
    background: #fffdf9;
}

body.theme-baozipt.page-requireseed .require-seed-rss__feedback,
body.theme-baozipt.page-requireseed .require-seed-rss__unavailable {
    min-height: 18px;
    margin: 8px 0 0;
    color: #4d7a35;
    font-size: 11px;
    font-weight: 700;
}

body.theme-baozipt.page-requireseed .require-seed-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.theme-baozipt.page-requireseed .require-seed-list-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #ecd7b9;
    background: linear-gradient(90deg, #ffedd4, #fff8ed);
}

body.theme-baozipt.page-requireseed .require-seed-list-card__heading .baozi-utility-card__title {
    flex: 1 1 auto;
    border-bottom: 0;
    background: transparent !important;
}

body.theme-baozipt.page-requireseed .require-seed-list-card__heading > span {
    flex: 0 0 auto;
    padding-right: 18px;
    color: #8a684b;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.theme-baozipt.page-requireseed .require-seed-list-card__body {
    padding: 14px;
}

body.theme-baozipt.page-requireseed .require-seed-unavailable .baozi-utility-empty {
    margin: 14px;
}

body.theme-baozipt.page-requireseed .require-seed-list-card .baozi-list-pager--top {
    margin: 0 0 14px;
}

body.theme-baozipt.page-requireseed .require-seed-list-card .baozi-list-pager--bottom {
    margin-top: 14px;
}

body.theme-baozipt.page-requireseed .torrent-list-scroll {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    contain: inline-size;
    overscroll-behavior-inline: contain;
    border-radius: 12px;
    scrollbar-color: #dda164 #fff1dc;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.theme-baozipt.page-requireseed .torrent-list-scroll:focus-visible {
    outline: 2px solid rgba(239, 92, 20, .42);
    outline-offset: 3px;
}

body.theme-baozipt.page-requireseed table.torrents {
    width: 100% !important;
    min-width: 1080px;
    margin: 0 !important;
    overflow: hidden !important;
    table-layout: auto !important;
    border: 1px solid #e6c28f !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    background: #fffaf3 !important;
    box-shadow: 0 5px 15px rgba(125, 78, 29, .055) !important;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr > td {
    padding: 9px 8px !important;
    border: 0 !important;
    border-right: 1px solid #ead3b2 !important;
    border-bottom: 1px solid #ead3b2 !important;
    background: transparent !important;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr > td:last-child {
    border-right: 0 !important;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.theme-baozipt.page-requireseed table.torrents td.colhead,
body.theme-baozipt.page-requireseed table.torrents td.colhead2 {
    height: 44px;
    color: #654226;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffe8c4, #fff2de) !important;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr:not(:first-child) > td {
    height: 64px;
    vertical-align: middle;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr > td:first-child {
    width: 64px;
    min-width: 64px;
    padding: 6px !important;
    text-align: center;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr > td:nth-child(2) {
    width: 100%;
    min-width: 360px;
    padding: 0 !important;
}

body.theme-baozipt.page-requireseed table.torrents > tbody > tr > td:nth-child(n + 3) {
    width: 1%;
    min-width: 42px;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.theme-baozipt.page-requireseed table.torrents .torrentname {
    width: 100% !important;
    min-width: 330px;
    table-layout: fixed !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.theme-baozipt.page-requireseed table.torrents .torrentname > tbody > tr > td {
    height: auto !important;
    padding: 5px 8px !important;
    border: 0 !important;
    background: transparent !important;
}

body.theme-baozipt.page-requireseed table.torrents .torrentname a {
    color: #c74415;
    font-weight: 750;
}

body.theme-baozipt.page-requireseed .require-seed-badges {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

body.theme-baozipt.page-requireseed .require-seed-badge {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
}

body.theme-baozipt.page-requireseed .require-seed-badge--official {
    color: #fff;
    background: #ee611c;
}

body.theme-baozipt.page-requireseed .require-seed-badge--general {
    color: #76502f;
    border-color: #dfb271;
    background: #fff2d9;
}

body.theme-baozipt.page-requireseed .require-seed-badge--active {
    color: #fff;
    background: #df8d25;
}

body.theme-baozipt.page-requireseed .require-seed-badge--grace {
    color: #58762f;
    border-color: #b6c785;
    background: #edf3d8;
}

body.theme-baozipt.page-requireseed .require-seed-badge--expired {
    color: #856d5e;
    border-color: #d9c7b8;
    background: #f5eee7;
}

body.theme-baozipt.page-requireseed .require-seed-badge--free {
    color: #fff;
    background: #3d8e43;
}

body.theme-baozipt.page-requireseed .require-seed-badge--priority {
    color: #a03c17;
    border-color: #e6a26c;
    background: #fff0dc;
}

body.theme-baozipt.page-requireseed .require-seed-badge--duration {
    color: #4f7b3d;
    border-color: #c9ddb2;
    background: #eff7e8;
}

body.theme-baozipt.page-requireseed table.torrents img:is(.comments, .time, .size, .seeders, .leechers, .snatched) {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px !important;
}

body.theme-baozipt.page-requireseed table.torrents img.comments { background-image: url("../../pic/baozi/torrent-icons/comments.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.time { background-image: url("../../pic/baozi/torrent-icons/time.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.size { background-image: url("../../pic/baozi/torrent-icons/size.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.seeders { background-image: url("../../pic/baozi/torrent-icons/seeders.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.leechers { background-image: url("../../pic/baozi/torrent-icons/leechers.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.snatched { background-image: url("../../pic/baozi/torrent-icons/snatched.svg") !important; }

body.theme-baozipt.page-requireseed table.torrents img:is(.download, .bookmark, .delbookmark, .staff_edit, .staff_delete) {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 22px 22px !important;
}

body.theme-baozipt.page-requireseed table.torrents img.download { background-image: url("../../pic/baozi/torrent-icons/download.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.delbookmark { background-image: url("../../pic/baozi/torrent-icons/bookmark.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.bookmark { background-image: url("../../pic/baozi/torrent-icons/bookmark-active.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.staff_edit { background-image: url("../../pic/baozi/torrent-icons/edit.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.staff_delete { background-image: url("../../pic/baozi/torrent-icons/delete.svg") !important; }

body.theme-baozipt.page-requireseed table.torrents img:is(.c_movies, .c_doc, .c_anime, .c_tvseries, .c_tvshows, .c_mv, .c_sports, .c_misc, .c_hqaudio, .c_shortdrama, [title="短剧"][alt="短剧"]) {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 48px 48px !important;
    box-shadow: 0 2px 5px rgba(112, 67, 44, .12);
}

body.theme-baozipt.page-requireseed table.torrents img.c_movies { background-image: url("../../pic/baozi/category-icons/movies.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_doc { background-image: url("../../pic/baozi/category-icons/documentaries.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_anime { background-image: url("../../pic/baozi/category-icons/anime.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_tvseries { background-image: url("../../pic/baozi/category-icons/tv-series.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_tvshows { background-image: url("../../pic/baozi/category-icons/tv-shows.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_mv { background-image: url("../../pic/baozi/category-icons/music-videos.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_sports { background-image: url("../../pic/baozi/category-icons/sports.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_hqaudio { background-image: url("../../pic/baozi/category-icons/hq-audio.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img.c_misc { background-image: url("../../pic/baozi/category-icons/misc.svg") !important; }
body.theme-baozipt.page-requireseed table.torrents img:is(.c_shortdrama, [title="短剧"][alt="短剧"]) { background-image: url("../../pic/baozi/category-icons/short-drama.svg") !important; }

@media (max-width: 1180px) {
    body.theme-baozipt.page-requireseed .require-seed-rules ol {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-baozipt.page-requireseed .require-seed-rules li {
        min-height: 0;
    }

    body.theme-baozipt.page-requireseed .require-seed-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.theme-baozipt.page-requireseed .require-seed-stats > div:nth-child(3) {
        border-right: 0;
    }

    body.theme-baozipt.page-requireseed .require-seed-stats > div:nth-child(-n + 3) {
        border-bottom: 1px solid #ead2ad;
    }

    body.theme-baozipt.page-requireseed .require-seed-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-baozipt.page-requireseed .require-seed-filter__keyword {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body.theme-baozipt.page-requireseed #outer {
        padding: 10px !important;
    }

    body.theme-baozipt.page-requireseed .require-seed-page {
        gap: 12px;
    }

    body.theme-baozipt.page-requireseed .require-seed-hero {
        gap: 10px;
        min-height: 74px;
        padding: 11px 12px;
    }

    body.theme-baozipt.page-requireseed .require-seed-hero__copy > span:last-child {
        font-size: 10.5px;
    }

    body.theme-baozipt.page-requireseed .require-seed-rules ol,
    body.theme-baozipt.page-requireseed .require-seed-filter,
    body.theme-baozipt.page-requireseed .require-seed-rss__body {
        padding: 12px;
    }

    body.theme-baozipt.page-requireseed .require-seed-priority {
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        margin: 0 12px 12px;
        padding: 10px 11px;
        font-size: 11px;
    }

    body.theme-baozipt.page-requireseed .require-seed-rules li {
        padding: 11px 11px 11px 42px;
        font-size: 11px;
    }

    body.theme-baozipt.page-requireseed .require-seed-rules li::before {
        top: 11px;
        left: 11px;
    }

    body.theme-baozipt.page-requireseed .require-seed-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-baozipt.page-requireseed .require-seed-stats > div {
        min-height: 65px;
        border-right: 1px solid #ead2ad;
        border-bottom: 1px solid #ead2ad;
    }

    body.theme-baozipt.page-requireseed .require-seed-stats > div:nth-child(even) {
        border-right: 0;
    }

    body.theme-baozipt.page-requireseed .require-seed-stats > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    body.theme-baozipt.page-requireseed .require-seed-filter {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.theme-baozipt.page-requireseed .require-seed-filter__keyword {
        grid-column: auto;
    }

    body.theme-baozipt.page-requireseed .require-seed-filter__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-baozipt.page-requireseed .require-seed-filter__actions > * {
        width: 100%;
    }

    body.theme-baozipt.page-requireseed .require-seed-rss__controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-baozipt.page-requireseed .require-seed-rss__url {
        grid-column: 1 / -1;
    }

    body.theme-baozipt.page-requireseed .require-seed-rss__secondary,
    body.theme-baozipt.page-requireseed .require-seed-rss__controls .btn {
        width: 100%;
    }

    body.theme-baozipt.page-requireseed .require-seed-list-card__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    body.theme-baozipt.page-requireseed .require-seed-list-card__heading > span {
        padding: 0 12px 11px;
    }

    body.theme-baozipt.page-requireseed .require-seed-list-card__body {
        padding: 10px;
    }

    body.theme-baozipt.page-requireseed .torrent-list-scroll > table.torrents {
        width: 1080px !important;
        min-width: 1080px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    body.theme-baozipt.page-requireseed .require-seed-badges {
        display: flex;
        width: fit-content;
        margin: 5px 0 0;
    }
}
/* BaoziPT require-seed section 2026-08-30 end */

/* Keep the seed-zone pager aligned with the other BaoziPT list pages without
   rewriting the production selector group above. */
body.theme-baozipt.page-requireseed p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__divider + a,
body.theme-baozipt.page-requireseed p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__divider + font.gray > b,
body.theme-baozipt.page-requireseed p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__nav-gap + a,
body.theme-baozipt.page-requireseed p.nexus-pagination.nexus-pagination--baozi > .baozi-list-pager__nav-gap + font.gray > b {
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
}

@media (max-width: 760px) {
    body.theme-baozipt.page-requireseed p.nexus-pagination.nexus-pagination--baozi {
        justify-content: flex-start !important;
    }
}
/* BaoziPT in-flow promotion spacing 2026-08-30 begin */
body.theme-baozipt.page-index #outer > table.nexus-alert--promotion {
    margin-bottom: 14px !important;
}

body.theme-baozipt.page-index #outer > table.nexus-alert--promotion + br {
    display: none !important;
}
/* BaoziPT in-flow promotion spacing 2026-08-30 end */

/* BaoziPT forum moderation toolbar 2026-09-17 begin */
body.theme-baozipt.page-forums .forum-topic__moderation {
    display: grid;
    min-height: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 14px 18px;
    padding: 12px 16px;
}

body.theme-baozipt.page-forums .forum-topic__moderation > h2 {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 0 18px 0 2px;
    white-space: nowrap;
    border-right: 1px solid #ead3b1;
}

body.theme-baozipt.page-forums .forum-topic__moderation > h2::before {
    width: 4px;
    height: 22px;
    flex: 0 0 auto;
    content: "";
    border-radius: 999px;
    background: var(--baozi-orange);
    box-shadow: 0 3px 9px rgba(237, 90, 23, .22);
}

body.theme-baozipt.page-forums .forum-topic__moderation > h2 font,
body.theme-baozipt.page-forums .forum-topic__moderation-actions font {
    display: contents !important;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions {
    display: flex !important;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

/* Malformed legacy post markup can visually wrap the moderation forms in the
   first form. Flatten only that repaired layout; clean pages keep five forms. */
body.theme-baozipt.page-forums .forum-topic__moderation-actions > form:has(form) {
    display: contents !important;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions form {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions label {
    display: inline-flex !important;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #6c4c34;
    font-weight: 700;
    white-space: nowrap;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions select {
    width: auto !important;
    min-width: 128px;
    height: 38px;
    margin: 0 !important;
    border-radius: 9px;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions input[type="submit"] {
    min-width: 64px;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 14px;
    border-radius: 9px;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions input[name="sticky"] + input[type="submit"],
body.theme-baozipt.page-forums .forum-topic__moderation-actions input[name="locked"] + input[type="submit"] {
    color: #c24c16 !important;
    border-color: #efb36f !important;
    background: #fff6e9 !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions input[name="forumid"] + input[type="submit"] {
    color: #b33b2e !important;
    border-color: #e8aaa0 !important;
    background: #fff1ed !important;
    box-shadow: none !important;
}

body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="movetopic"],
body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="hltopic"] {
    min-height: 46px;
    padding: 4px 5px 4px 10px;
    border: 1px solid #ecd4b1;
    border-radius: 11px;
    background: #fffdf8;
    box-shadow: 0 3px 10px rgba(126, 76, 29, .05);
}

@media (max-width: 760px) {
    body.theme-baozipt.page-forums .forum-topic__moderation {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        padding: 13px;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation > h2 {
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid #ead3b1;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions input[type="submit"] {
        width: 100%;
        min-width: 0;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="setsticky"],
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="setlocked"],
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action="?"] {
        width: 100% !important;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="movetopic"],
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="hltopic"] {
        display: grid !important;
        width: 100% !important;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="movetopic"] label,
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="hltopic"] label {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.theme-baozipt.page-forums .forum-topic__moderation-actions select {
        width: 100% !important;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="movetopic"],
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="hltopic"],
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="movetopic"] label,
    body.theme-baozipt.page-forums .forum-topic__moderation-actions form[action*="hltopic"] label {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* BaoziPT forum moderation toolbar 2026-09-17 end */

/* Inline Cloudflare verification on the BaoziPT login form. */
.theme-baozipt.page-login .auth-turnstile {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e4caa7;
    border-radius: 9px;
    background: rgba(255, 248, 235, .86);
}
.theme-baozipt.page-login .auth-turnstile__label {
    color: #755339;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.theme-baozipt.page-login .auth-turnstile .cf-turnstile {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 65px;
}
.theme-baozipt.page-login .auth-turnstile iframe { max-width: 100%; }
@media (max-width: 440px) {
    .theme-baozipt.page-login .auth-turnstile { padding: 10px; }
}

.theme-baozipt.page-login .auth-turnstile__status {
    margin: 0;
    color: #a64425;
    font-size: 12px;
    line-height: 1.5;
}
.theme-baozipt.page-login .auth-turnstile__status[hidden] { display: none !important; }

/* Keep the verification and account links visible on wide login layouts. */
@media (min-width: 1121px) {
    .theme-baozipt.page-login .auth-layout--login { min-height: 712px; }
    .theme-baozipt.page-login .auth-layout--login > .auth-card { max-height: 660px; }
}
