:root {
    --bg-page: #f4f7fb;
    --bg-soft: #eef3ff;
    --panel: #ffffff;
    --panel-soft: #f8faff;
    --line: #e6ebf5;
    --line-strong: #d8e1f0;
    --text-main: #1f2a44;
    --text-muted: #7b879f;
    --primary: #315efb;
    --primary-deep: #284fda;
    --primary-soft: #edf2ff;
    --danger: #ff6a57;
    --shadow-soft: 0 14px 36px rgba(31, 42, 68, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --font-ui: "Source Han Sans SC", "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg-page);
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(49, 94, 251, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.micro-label {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #8d98ae;
    font-weight: 700;
}

.solid-btn,
.soft-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.solid-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.22);
}

.soft-btn {
    background: #fff;
    border-color: var(--line);
    color: var(--text-main);
}

.solid-btn:hover,
.soft-btn:hover,
.nav-link:hover,
.header-link:hover {
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

.login-brand-panel,
.login-form-panel,
.admin-global-header,
.admin-sidebar,
.metric-card,
.panel-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.total-login-page {
    min-height: 100vh;
}

.login-shell {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: center;
}

[hidden] {
    display: none !important;
}

.login-brand-panel {
    padding: 40px;
    border-radius: 30px;
}

.login-brand-panel h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: -0.05em;
}

.login-brand-panel p,
.brand-block p,
.metric-card p,
.mini-panel p,
.list-item p,
.note-list,
.table-row span,
.topbar-desc,
.nav-section-label,
.global-brand span,
.admin-user-card span {
    color: var(--text-muted);
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--text-muted);
}

.demo-account-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.demo-account-box div,
.mini-panel,
.list-item,
.table-row {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.demo-account-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.feature-points {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    margin: 0;
}

.login-form-panel {
    border-radius: 30px;
    padding: 32px;
}

.total-login-form {
    display: grid;
    gap: 16px;
}

.total-login-form h2 {
    margin: -4px 0 8px;
}

.total-login-form label {
    display: grid;
    gap: 8px;
}

.total-login-form input {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-app {
    min-height: 100vh;
}

.admin-global-header {
    width: min(1440px, calc(100% - 32px));
    margin: 18px auto 0;
    min-height: 74px;
    padding: 14px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.global-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7056 0%, #ff5b6a 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.global-brand strong,
.admin-user-card strong {
    display: block;
    font-size: 1rem;
}

.global-actions,
.topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-status,
.topbar-chip,
.header-link {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.header-status {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid #dce5ff;
}

.header-link {
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--line);
}

.admin-user-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2a3042 0%, #4a5879 100%);
}

.admin-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: 252px 1fr;
    gap: 18px;
    padding-bottom: 24px;
}

.admin-sidebar {
    border-radius: 20px;
    padding: 22px 18px 18px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 18px;
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
}

.brand-block {
    padding: 4px 8px 10px;
}

.brand-block h1 {
    margin: 8px 0 10px;
    font-size: 1.9rem;
}

.nav-section-label {
    padding: 0 8px;
    font-size: 0.84rem;
    font-weight: 600;
}

.admin-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.nav-link {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px 0 18px;
    border-radius: 14px;
    color: #51607f;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
}

.nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    background: #c4cede;
    flex: 0 0 auto;
}

.nav-link.active {
    background: linear-gradient(180deg, #f1f5ff 0%, #ecf2ff 100%);
    color: var(--primary);
    border-color: #dbe4ff;
}

.nav-link.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(49, 94, 251, 0.12);
}

.sidebar-footer {
    display: grid;
    gap: 10px;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.admin-topbar {
    padding: 28px 28px 24px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #3f67ef 50%, var(--primary-deep) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(49, 94, 251, 0.22);
}

.admin-topbar .micro-label,
.admin-topbar .topbar-desc {
    color: rgba(255, 255, 255, 0.82);
}

.admin-topbar h2,
.panel-head h3,
.mini-panel h4,
.list-item h4 {
    margin: 6px 0 0;
}

.admin-topbar h2 {
    font-size: clamp(1.9rem, 2vw, 2.4rem);
}

.topbar-desc {
    margin: 10px 0 0;
    max-width: 680px;
    line-height: 1.7;
}

.topbar-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.topbar-chip.ghost {
    background: rgba(255, 255, 255, 0.1);
}

.stats-grid,
.content-grid,
.module-grid {
    display: grid;
    gap: 16px;
}

.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
    grid-template-columns: 1.25fr 0.85fr 0.85fr;
}

.two-col-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.panel-card {
    border-radius: 18px;
    padding: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -16px;
    top: -16px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(49, 94, 251, 0.06);
}

.metric-card span {
    position: relative;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.metric-card strong {
    position: relative;
    display: block;
    margin: 12px 0 8px;
    font-size: 2rem;
}

.panel-head {
    margin-bottom: 16px;
}

.wide-panel {
    min-height: 100%;
}

.stack-list,
.table-like,
.note-list {
    display: grid;
    gap: 12px;
}

.note-list {
    margin: 0;
    padding-left: 18px;
}

.table-row {
    display: grid;
    gap: 6px;
}

.table-row strong {
    font-size: 0.96rem;
}

.floating-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(18px);
    background: rgba(31, 42, 68, 0.92);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
}

.floating-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
    .login-shell,
    .admin-shell,
    .dashboard-grid,
    .two-col-layout,
    .three-col,
    .four-col,
    .cols-4,
    .cols-3 {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 900px) {
    .admin-global-header,
    .admin-shell {
        width: min(100% - 20px, 100%);
    }

    .admin-global-header,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .login-shell,
    .admin-shell {
        width: min(100% - 20px, 100%);
    }

    .login-brand-panel,
    .login-form-panel,
    .admin-global-header,
    .admin-sidebar,
    .admin-topbar,
    .metric-card,
    .panel-card {
        padding: 18px;
        border-radius: 18px;
    }

    .demo-account-box {
        grid-template-columns: 1fr;
    }
}

.merchant-console-page {
    margin: 0;
    background: #f7f8fa;
    color: #2b2f36;
}

.merchant-login-page {
    background:
        radial-gradient(circle at top right, rgba(80, 112, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #f8f9fc 0%, #f4f6fb 100%);
}

.merchant-console-app {
    min-height: 100vh;
}

.merchant-header {
    height: 58px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #eceff4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.merchant-login-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

.merchant-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.merchant-logo {
    min-width: 56px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4d5f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.merchant-header-brand strong {
    font-size: 1.05rem;
    color: #23262d;
}

.merchant-login-tip {
    justify-self: end;
    color: #8a93a6;
    font-size: 0.88rem;
}

.merchant-top-nav,
.merchant-header-user,
.merchant-card-actions,
.merchant-filter-group,
.merchant-pagination,
.merchant-table-footer {
    display: flex;
    align-items: center;
}

.merchant-top-nav {
    gap: 28px;
    min-width: 0;
}

.merchant-top-link {
    color: #5d6575;
    font-size: 0.95rem;
    line-height: 58px;
    border-bottom: 2px solid transparent;
}

.merchant-top-link.active {
    color: #23262d;
    font-weight: 600;
}

.merchant-header-user {
    gap: 16px;
}

.merchant-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #697386;
    opacity: 0.75;
}

.merchant-user-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.merchant-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #48516a 0%, #222a3d 100%);
    color: #fff;
    font-weight: 700;
}

.merchant-user-box strong,
.merchant-empty-box strong {
    display: block;
    font-size: 0.94rem;
}

.merchant-user-box span,
.merchant-card-head p,
.merchant-empty-box p,
.merchant-page-info,
.merchant-side-title {
    color: #8a93a6;
    font-size: 0.86rem;
}

.merchant-body {
    display: grid;
    grid-template-columns: 356px 1fr;
    min-height: calc(100vh - 58px);
}

.merchant-login-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: calc(100vh - 58px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    padding: 44px 0;
}

.merchant-login-intro {
    display: grid;
    gap: 16px;
}

.merchant-login-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #5070ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.merchant-login-intro h1,
.merchant-login-card-head h2 {
    margin: 0;
    color: #23262d;
}

.merchant-login-intro h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.merchant-login-intro p,
.merchant-login-card-head p,
.merchant-login-credentials span {
    color: #6f7890;
}

.merchant-login-highlights,
.merchant-login-credentials {
    display: grid;
    gap: 14px;
}

.merchant-login-highlights {
    margin-top: 8px;
}

.merchant-login-highlights div,
.merchant-login-credentials div {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e9edf5;
    box-shadow: 0 10px 28px rgba(31, 42, 68, 0.05);
}

.merchant-login-highlights strong,
.merchant-login-credentials strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.merchant-login-card-wrap {
    display: flex;
    justify-content: flex-end;
}

.merchant-login-card {
    width: min(460px, 100%);
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e9edf5;
    box-shadow: 0 22px 48px rgba(31, 42, 68, 0.08);
}

.merchant-login-card-head {
    display: grid;
    gap: 10px;
}

.merchant-login-card label {
    display: grid;
    gap: 8px;
}

.merchant-login-card input {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #e3e8f1;
    background: #fff;
    padding: 0 14px;
}

.merchant-login-submit {
    min-height: 44px;
    border-radius: 10px;
    margin-top: 6px;
}

.merchant-login-copy {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e7f0;
    background: #fff;
    color: #546078;
    cursor: pointer;
}

.merchant-sidebar-panel {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-right: 1px solid #eceff4;
    padding: 14px;
}

.merchant-side-layout {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
}

.merchant-primary-nav,
.merchant-secondary-group {
    display: grid;
    gap: 8px;
}

.merchant-secondary-group[hidden] {
    display: none !important;
}

.merchant-side-title {
    padding: 8px 14px 10px;
    font-weight: 600;
    color: #8a93a6;
    font-size: 0.84rem;
}

.merchant-primary-nav {
    align-content: start;
}

.merchant-primary-item {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #edf1f8;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #556077;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.merchant-primary-item:hover,
.merchant-primary-item:focus-visible,
.merchant-primary-item.active {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border-color: #dfe7fb;
    color: #3d64ff;
    transform: translateX(3px);
    box-shadow: 0 14px 28px rgba(61, 100, 255, 0.12);
}

.merchant-primary-item.active {
    box-shadow: 0 18px 30px rgba(61, 100, 255, 0.16);
}

.merchant-primary-item span:last-child {
    font-size: 0.8rem;
    line-height: 1.25;
    flex: 1;
}

.merchant-primary-icon {
    width: 22px;
    height: 22px;
    position: relative;
    color: currentColor;
    flex: 0 0 auto;
    opacity: 0.92;
}

.merchant-primary-icon::before,
.merchant-primary-icon::after {
    content: "";
    position: absolute;
    border: 1.6px solid currentColor;
}

.merchant-primary-icon-overview::before {
    inset: 3px 4px 4px;
    border-radius: 5px;
}

.merchant-primary-icon-overview::after {
    left: 5px;
    right: 5px;
    top: 1px;
    height: 8px;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: rotate(45deg);
    border-left: 0;
}

.merchant-primary-icon-store::before {
    inset: 5px 3px 3px;
    border-radius: 4px;
}

.merchant-primary-icon-store::after {
    left: 2px;
    right: 2px;
    top: 2px;
    height: 6px;
    border-radius: 4px 4px 0 0;
}

.merchant-primary-icon-goods::before {
    inset: 3px;
    border-radius: 6px;
}

.merchant-primary-icon-goods::after {
    left: 6px;
    right: 6px;
    top: 6px;
    bottom: 6px;
    border-left: 0;
    border-right: 0;
}

.merchant-primary-icon-order::before {
    inset: 3px 4px;
    border-radius: 6px;
}

.merchant-primary-icon-order::after {
    width: 8px;
    height: 4px;
    border-top: 0;
    border-right: 0;
    left: 7px;
    top: 9px;
    transform: rotate(-45deg);
}

.merchant-primary-icon-member::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    left: 6px;
    top: 2px;
}

.merchant-primary-icon-member::after {
    left: 4px;
    right: 4px;
    bottom: 3px;
    height: 8px;
    border-radius: 8px 8px 5px 5px;
}

.merchant-primary-icon-marketing::before {
    left: 5px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.merchant-primary-icon-marketing::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    left: 9px;
    top: 7px;
    background: currentColor;
    border-color: currentColor;
}

.merchant-primary-icon-finance::before {
    inset: 4px 3px;
    border-radius: 999px;
}

.merchant-primary-icon-finance::after {
    left: 10px;
    top: 2px;
    bottom: 2px;
    border-left-width: 1.8px;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
}

.merchant-primary-icon-data::before {
    left: 3px;
    bottom: 3px;
    width: 4px;
    height: 10px;
    border-radius: 3px 3px 0 0;
    background: currentColor;
    border-color: currentColor;
}

.merchant-primary-icon-data::after {
    left: 10px;
    bottom: 3px;
    width: 9px;
    height: 15px;
    border-radius: 3px 3px 0 0;
    background: currentColor;
    border-color: currentColor;
}

.merchant-primary-icon-system::before {
    inset: 4px;
    border-radius: 50%;
}

.merchant-primary-icon-system::after {
    inset: 1px;
    border-radius: 50%;
    border-style: dashed;
}

.merchant-primary-icon-notify::before {
    width: 14px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 3px 3px 1px 1px;
    top: 5px;
}

.merchant-primary-icon-notify::after {
    width: 6px;
    height: 4px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 6px 6px;
    top: 14px;
    left: 11px;
}

.merchant-primary-icon-notes::before {
    width: 12px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 2px;
    top: 4px;
    left: 7px;
}

.merchant-primary-icon-notes::after {
    width: 8px;
    height: 2px;
    background: currentColor;
    top: 8px;
    left: 9px;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
    border: none;
}

.merchant-secondary-panel {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 22px;
    padding: 12px 10px;
    box-shadow: 0 18px 34px rgba(31, 42, 68, 0.06);
    align-content: start;
    opacity: 0;
    transform: translateX(-14px) scale(0.98);
    transform-origin: left center;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.merchant-secondary-panel[hidden] {
    display: none;
}

.merchant-secondary-panel.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 22px 38px rgba(31, 42, 68, 0.08);
}

.merchant-side-item {
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    color: #303644;
    position: relative;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.merchant-side-item:hover {
    background: #f5f8ff;
    color: #4468ff;
    padding-left: 18px;
}

.merchant-side-item.active {
    background: #eef3ff;
    color: #4468ff;
    font-weight: 600;
}

.merchant-side-item.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    bottom: 11px;
    width: 4px;
    border-radius: 999px;
    background: #4468ff;
}

.merchant-side-dot {
    display: none;
}

.merchant-main-panel {
    min-width: 0;
    padding: 0 18px 18px;
    overflow-x: hidden;
}

.merchant-overview-dashboard {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.merchant-overview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 2px 0;
}

.merchant-overview-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.merchant-overview-heading h1 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #23262d;
}

.merchant-overview-heading span {
    color: #9199ab;
    font-size: 0.95rem;
}

.merchant-overview-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.merchant-overview-chip {
    min-width: 78px;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #edf1f7;
    background: #f6f7fb;
    color: #59637a;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.merchant-overview-chip.active {
    background: #456bff;
    border-color: #456bff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(69, 107, 255, 0.22);
}

.merchant-overview-date {
    min-width: 178px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #edf1f7;
    background: #f6f7fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.merchant-overview-date.active {
    border-color: #cfd9f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(69, 107, 255, 0.08);
}

.merchant-overview-date input {
    width: 100%;
    border: 0;
    padding: 0;
    color: #a1a9b9;
    background: transparent;
    font: inherit;
    outline: none;
}

.merchant-overview-date-sep {
    color: #9ba3b4;
}

.merchant-overview-date-end {
    gap: 10px;
}

.merchant-overview-calendar {
    width: 18px;
    height: 18px;
    position: relative;
    flex: 0 0 auto;
    color: #6f7890;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.merchant-overview-calendar::before,
.merchant-overview-calendar::after {
    content: "";
    position: absolute;
    border: 1.6px solid currentColor;
}

.merchant-overview-calendar::before {
    inset: 3px 1px 1px;
    border-radius: 4px;
}

.merchant-overview-calendar::after {
    left: 4px;
    right: 4px;
    top: 0;
    height: 5px;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.merchant-overview-board {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #edf1f7;
    box-shadow: 0 10px 28px rgba(31, 42, 68, 0.04);
}

.merchant-overview-board-head {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3444;
}

.merchant-overview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.merchant-overview-metric {
    min-height: 120px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f0f3f8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.merchant-overview-metric:hover {
    border-color: #dfe6f5;
    box-shadow: 0 12px 22px rgba(31, 42, 68, 0.05);
    transform: translateY(-1px);
}

.merchant-overview-metric.featured {
    border: 2px solid #4468ff;
    background: linear-gradient(180deg, rgba(68, 104, 255, 0.06) 0%, #ffffff 100%);
}

.merchant-overview-metric.compact {
    min-height: 108px;
}

.merchant-overview-metric span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #697385;
    font-size: 0.92rem;
}

.merchant-overview-metric span::after {
    content: "?";
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #c8d0de;
    color: #9aa3b4;
    font-size: 0.7rem;
}

.merchant-overview-metric strong {
    display: block;
    margin: 18px 0 16px;
    font-size: 2rem;
    color: #23262d;
    line-height: 1;
}

.merchant-overview-metric p {
    color: #9199aa;
    font-size: 0.94rem;
}

.merchant-overview-metric p em {
    font-style: normal;
}

.merchant-overview-metric p em.is-up {
    color: #1e9c5e;
}

.merchant-overview-metric p em.is-down {
    color: #d45a5a;
}

.merchant-overview-ranking {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.merchant-overview-ranking.single {
    grid-template-columns: 1fr;
}

.merchant-overview-ranking-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
    border: 1px solid #edf1f7;
}

.merchant-overview-ranking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.merchant-overview-ranking-head strong {
    display: block;
    color: #243042;
    font-size: 0.98rem;
}

.merchant-overview-ranking-head span {
    display: block;
    margin-top: 4px;
    color: #8c95a6;
    font-size: 0.82rem;
}

.merchant-overview-ranking-head em {
    min-width: 52px;
    height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef3ff;
    color: #4468ff;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 700;
}

.merchant-overview-ranking-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.merchant-overview-ranking-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.035);
}

.merchant-overview-ranking-item.top {
    border-color: #dfe7ff;
    background: linear-gradient(180deg, #fdfefe 0%, #f8faff 100%);
}

.merchant-overview-ranking-item.wide {
    grid-column: auto;
}

.merchant-overview-ranking-index {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f5f9;
    color: #6f7888;
    font-weight: 700;
}

.merchant-overview-ranking-index.top {
    background: linear-gradient(180deg, #4b71ff 0%, #6c8bff 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(71, 113, 255, 0.18);
}

.merchant-overview-ranking-thumb {
    position: relative;
    min-height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #dce6ff 0%, #eef3ff 55%, #f7f9ff 100%);
}

.merchant-overview-ranking-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.92) 0 18%, transparent 19%),
                radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.5) 0 14%, transparent 15%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.merchant-overview-ranking-thumb::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(18deg);
}

.merchant-overview-ranking-thumb.spa {
    background: linear-gradient(135deg, #89a8ff 0%, #5e79f7 48%, #d9e3ff 100%);
}

.merchant-overview-ranking-thumb.hydration {
    background: linear-gradient(135deg, #6acfc8 0%, #8be2d7 44%, #daf8f3 100%);
}

.merchant-overview-ranking-thumb.couple {
    background: linear-gradient(135deg, #ff9ca7 0%, #ffbf91 48%, #ffe6c8 100%);
}

.merchant-overview-ranking-thumb.lunch {
    background: linear-gradient(135deg, #9daafc 0%, #c7d0ff 52%, #eff2ff 100%);
}

.merchant-overview-ranking-thumb.clean {
    background: linear-gradient(135deg, #9fd6b4 0%, #d3ecd8 52%, #f1faf3 100%);
}

.merchant-overview-ranking-thumb .merchant-overview-ranking-index {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1;
}

.merchant-overview-ranking-thumb-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 1;
    min-height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #2e3a51;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.merchant-overview-ranking-meta {
    min-width: 0;
}

.merchant-overview-ranking-meta strong {
    display: block;
    color: #232d3b;
    font-size: 0.88rem;
    line-height: 1.4;
}

.merchant-overview-ranking-stats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.merchant-overview-ranking-stats span {
    min-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f4f7fb;
    color: #5f6a7c;
    font-size: 0.74rem;
    font-weight: 600;
}

.merchant-overview-chart-card {
    margin-top: 18px;
    padding-top: 4px;
}

.merchant-overview-legend {
    width: fit-content;
    min-height: 30px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #f4f6ff;
    color: #56607a;
    font-weight: 600;
}

.merchant-overview-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4d72ff;
}

.merchant-overview-chart {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.merchant-overview-y-axis {
    display: grid;
    align-content: space-between;
    padding: 10px 0 26px;
    color: #a0a8b8;
    font-size: 0.88rem;
}

.merchant-overview-plot {
    position: relative;
    min-height: 280px;
    padding-bottom: 36px;
}

.merchant-overview-grid-lines {
    position: absolute;
    inset: 18px 0 36px;
    display: grid;
    align-content: space-between;
}

.merchant-overview-grid-lines span {
    border-top: 1px dashed #e6eaf1;
}

.merchant-overview-line {
    position: absolute;
    inset: 0 0 36px;
    width: 100%;
    height: calc(100% - 36px);
    filter: drop-shadow(0 16px 18px rgba(71, 113, 255, 0.08));
}

.merchant-overview-area-path {
    fill: url(#merchantOverviewFill);
}

.merchant-overview-line-path {
    fill: none;
    stroke: #4771ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.merchant-overview-x-axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    color: #a0a8b8;
    font-size: 0.88rem;
}

.merchant-overview-x-axis span:last-child {
    text-align: right;
}

.merchant-overview-x-axis span {
    transition: color 0.2s ease, transform 0.2s ease;
}

.merchant-overview-x-axis span.is-focus {
    color: #456bff;
    transform: translateY(-1px);
    font-weight: 600;
}

.merchant-overview-label,
.merchant-section-label,
.merchant-section-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.merchant-overview-label,
.merchant-section-label {
    background: #eef2ff;
    color: #5070ff;
}

.merchant-overview-hero h1,
.merchant-section-head h2,
.merchant-detail-card h3 {
    margin: 10px 0 0;
}

.merchant-overview-hero p,
.merchant-section-head p,
.merchant-kpi-card p,
.merchant-module-card p,
.merchant-detail-card p,
.merchant-process-grid p,
.merchant-finance-strip span {
    color: #70788d;
}

.merchant-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.merchant-ghost-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dfe5f1;
    background: #fff;
    color: #4f5b75;
    cursor: pointer;
}

.merchant-kpi-grid,
.merchant-module-matrix,
.merchant-detail-grid,
.merchant-process-grid {
    display: grid;
    gap: 16px;
}

.merchant-kpi-grid {
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.merchant-kpi-card,
.merchant-module-card,
.merchant-section-card,
.merchant-detail-card {
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 14px;
    min-width: 0;
}

.merchant-kpi-card,
.merchant-module-card {
    padding: 18px 20px;
}

.merchant-kpi-card span,
.merchant-module-card span {
    display: block;
    font-size: 0.88rem;
    color: #7a8396;
}

.merchant-kpi-card strong,
.merchant-module-card strong,
.merchant-finance-strip strong,
.merchant-process-grid strong {
    display: block;
    margin: 10px 0 8px;
    color: #252b36;
}

.merchant-kpi-card strong {
    font-size: 1.7rem;
}

.merchant-module-matrix {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-section-stack {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.merchant-section-card {
    padding: 22px;
}

.merchant-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.merchant-section-tag {
    background: #f3f5f9;
    color: #5d6780;
}

.merchant-detail-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merchant-detail-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-detail-card {
    padding: 18px;
}

.merchant-detail-card.wide {
    grid-column: span 2;
}

.merchant-cert-workspace {
    margin: 16px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 16px;
}

.merchant-cert-form,
.merchant-cert-form-grid,
.merchant-cert-upload-grid,
.merchant-cert-summary-list {
    display: grid;
    gap: 14px;
}

.merchant-cert-form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-cert-form-grid.cols-3,
.merchant-cert-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.total-note-publish-page-head {
    margin-bottom: 12px;
}

.total-notes-page.merchant-note-publish-card .merchant-note-publish-tabs {
    margin: 0 28px 16px;
}

.merchant-note-publish-card {
    padding: 0;
    overflow: hidden;
}

.merchant-note-publish-tabs {
    display: flex;
    align-items: center;
    gap: 52px;
    padding: 0 32px;
    border-bottom: 1px solid #edf0f5;
}

.merchant-note-publish-tab {
    position: relative;
    min-width: fit-content;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa0ad;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.merchant-note-publish-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 3px;
    border-radius: 999px;
    background: #3f63ff;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.merchant-note-publish-tab.active {
    color: #3f63ff;
}

.merchant-note-publish-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.merchant-note-upload-panel {
    padding: 34px 34px 28px;
}

.merchant-note-upload-panel[hidden] {
    display: none;
}

.merchant-note-upload-dropzone {
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px dashed #dfe4ec;
    border-radius: 4px;
    background: #ffffff;
    color: #4f5258;
    text-align: center;
    cursor: pointer;
}

.merchant-note-upload-dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.merchant-note-upload-dropzone.is-dragover {
    border-color: #90a7ff;
    background: #fbfcff;
}

.merchant-note-upload-icon {
    width: 52px;
    height: 52px;
    color: #8f9198;
}

.merchant-note-upload-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.merchant-note-upload-dropzone strong,
.merchant-note-upload-dropzone em,
.merchant-note-upload-file {
    font-style: normal;
    font-weight: 400;
}

.merchant-note-upload-dropzone strong {
    color: #4f5258;
    font-size: 14px;
}

.merchant-note-upload-dropzone em,
.merchant-note-upload-file {
    color: #a0a3aa;
    font-size: 14px;
}

.merchant-note-upload-btn {
    min-width: 102px;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 4px;
    background: #4c6fff;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(76, 111, 255, 0.16);
}

.merchant-note-upload-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.merchant-note-upload-tip-card {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}

.merchant-note-upload-tip-card h3 {
    margin: 0 0 14px;
    color: #4b4f57;
    font-size: 18px;
    font-weight: 500;
}

.merchant-note-upload-tip-card p {
    margin: 0;
    color: #a0a3aa;
    font-size: 14px;
    line-height: 1.9;
}

.merchant-note-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 40px;
    align-items: start;
}

.merchant-note-editor-main {
    display: grid;
    gap: 18px;
}

.merchant-note-editor-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-note-editor-title-wrap h2,
.merchant-note-editor-block h3 {
    margin: 0;
    color: #35383f;
}

.merchant-note-editor-title-wrap h2 {
    font-size: 20px;
    font-weight: 500;
}

.merchant-note-editor-mark {
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: #4c6fff;
}

.merchant-note-editor-block {
    display: grid;
    gap: 12px;
}

.merchant-note-editor-headline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.merchant-note-editor-headline h3,
.merchant-note-editor-settings h3 {
    font-size: 16px;
    font-weight: 500;
}

.merchant-note-editor-more {
    border: 0;
    background: transparent;
    color: #4c6fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.merchant-note-editor-thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-note-editor-thumb-card {
    width: 108px;
    height: 74px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e8ebf1;
    background: #fff;
}

.merchant-note-editor-thumb-media,
.merchant-note-preview-image-card {
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f4d4cf 0%, #b18d72 50%, #9c755b 100%);
}

.merchant-note-editor-thumb-poster {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,244,247,0.92) 100%);
    border: 1px solid rgba(238, 82, 115, 0.22);
}

.merchant-note-editor-thumb-poster::before,
.merchant-note-preview-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #ff3156 0 8%, transparent 8% 92%, #ff3156 92% 100%),
        linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.94) 34% 66%, transparent 66% 100%);
    opacity: 0.92;
}

.merchant-note-editor-thumb-badge,
.merchant-note-preview-image-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff6c8b 0%, #ff3e6d 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 18px rgba(255, 62, 109, 0.25);
}

.merchant-note-editor-input-wrap,
.merchant-note-editor-textarea-wrap {
    position: relative;
    display: block;
}

.merchant-note-editor-input-wrap input,
.merchant-note-editor-textarea-wrap textarea,
.merchant-note-editor-select {
    width: 100%;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
    color: #363940;
    font: inherit;
    box-sizing: border-box;
}

.merchant-note-editor-input-wrap input {
    height: 38px;
    padding: 0 68px 0 14px;
}

.merchant-note-editor-textarea-wrap textarea {
    min-height: 78px;
    padding: 14px 72px 14px 14px;
    resize: vertical;
}

.merchant-note-editor-input-wrap span,
.merchant-note-editor-textarea-wrap span {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #9ea3ad;
    font-size: 13px;
}

.merchant-note-editor-input-wrap span {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.merchant-note-editor-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-note-editor-chip {
    height: 28px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
    color: #4c5058;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.merchant-note-editor-tool-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.merchant-note-editor-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #d8e1ff 0%, #b9c9ff 42%, #f2f5ff 100%);
}

.merchant-note-editor-tool-icon::before,
.merchant-note-editor-tool-icon::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.86);
}

.merchant-note-editor-tool-icon.tag::before {
    width: 28px;
    height: 18px;
    left: 8px;
    top: 13px;
    border-radius: 10px;
    transform: rotate(18deg);
}

.merchant-note-editor-tool-icon.tag::after {
    width: 10px;
    height: 10px;
    right: 8px;
    top: 17px;
    border-radius: 50%;
}

.merchant-note-editor-tool-icon.link::before {
    width: 20px;
    height: 20px;
    left: 8px;
    top: 12px;
    border-radius: 50%;
    box-shadow: 12px 0 0 rgba(255, 255, 255, 0.86);
}

.merchant-note-editor-tool-icon.link::after {
    width: 20px;
    height: 8px;
    left: 12px;
    top: 18px;
    border-radius: 999px;
}

.merchant-note-editor-tool-copy strong,
.merchant-note-editor-tool-copy span {
    display: block;
}

.merchant-note-editor-tool-copy strong {
    color: #41454d;
    font-size: 14px;
    font-weight: 500;
}

.merchant-note-editor-tool-copy span {
    margin-top: 4px;
    color: #a0a3aa;
    font-size: 14px;
}

.merchant-note-editor-tool-btn {
    width: 82px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #4c6fff;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.merchant-note-editor-settings {
    margin-top: 8px;
    gap: 18px;
}

.merchant-note-editor-setting-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.merchant-note-editor-setting-row.vertical {
    align-items: start;
}

.merchant-note-editor-setting-label {
    color: #4a4d54;
    font-size: 14px;
}

.merchant-note-editor-select {
    height: 32px;
    padding: 0 14px;
    text-align: left;
    color: #9ea3ad;
    cursor: pointer;
}

.merchant-note-editor-radio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.merchant-note-editor-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666b74;
    font-size: 14px;
}

.merchant-note-editor-radio input {
    margin: 0;
    accent-color: #4c6fff;
}

.merchant-note-editor-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.merchant-note-editor-submit,
.merchant-note-editor-cancel {
    min-width: 100px;
    height: 38px;
    border-radius: 4px;
}

.merchant-note-preview {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding-top: 26px;
}

.merchant-note-preview-phone {
    width: 242px;
    padding: 10px;
    border: 1px solid #d8e2ff;
    border-radius: 34px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(102, 128, 191, 0.12);
}

.merchant-note-preview-screen {
    min-height: 480px;
    border: 1px solid #eef2fb;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
}

.merchant-note-preview-status,
.merchant-note-preview-topbar,
.merchant-note-preview-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.merchant-note-preview-status {
    padding: 12px 18px 10px;
    color: #242831;
    font-size: 11px;
    font-weight: 600;
}

.merchant-note-preview-status-icons {
    display: flex;
    gap: 4px;
}

.merchant-note-preview-status-icons span {
    display: block;
    background: #1e232c;
    border-radius: 999px;
}

.merchant-note-preview-status-icons span:nth-child(1) {
    width: 3px;
    height: 7px;
    align-self: end;
}

.merchant-note-preview-status-icons span:nth-child(2) {
    width: 10px;
    height: 7px;
}

.merchant-note-preview-status-icons span:nth-child(3) {
    width: 14px;
    height: 7px;
}

.merchant-note-preview-topbar {
    padding: 0 12px 10px;
}

.merchant-note-preview-back {
    font-size: 24px;
    color: #383d45;
    line-height: 1;
}

.merchant-note-preview-brand-badge {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff4a63 0%, #ff2d55 100%);
    position: relative;
}

.merchant-note-preview-brand-badge::before {
    content: "";
    position: absolute;
    inset: 7px 5px 7px 5px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.merchant-note-preview-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8f949e;
    font-size: 12px;
}

.merchant-note-preview-top-actions button {
    min-width: 28px;
    height: 18px;
    padding: 0 6px;
    border: 1px solid #ffd2da;
    border-radius: 999px;
    background: #fff;
    color: #ff4d68;
    font-size: 10px;
}

.merchant-note-preview-banner {
    height: 6px;
    background: linear-gradient(90deg, #ff4c69 0 20%, #fff1f4 20% 80%, #ff4c69 80% 100%);
}

.merchant-note-preview-image {
    padding: 10px 12px 0;
}

.merchant-note-preview-image-card {
    position: relative;
    height: 95px;
    border-radius: 2px;
    overflow: hidden;
}

.merchant-note-preview-content {
    padding: 8px 12px 0;
}

.merchant-note-preview-content strong,
.merchant-note-preview-content p,
.merchant-note-preview-empty {
    display: block;
}

.merchant-note-preview-content strong {
    color: #2f333a;
    font-size: 12px;
    font-weight: 500;
}

.merchant-note-preview-content p {
    margin: 8px 0 0;
    color: #9ea3ad;
    font-size: 9px;
}

.merchant-note-preview-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.merchant-note-preview-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff4a63 0%, #ff2d55 100%);
}

.merchant-note-preview-author-bar {
    flex: 1;
    height: 16px;
    border-radius: 999px;
    background: #f1f3f7;
}

.merchant-note-preview-empty {
    margin-top: 34px;
    color: #b7bcc6;
    font-size: 9px;
    text-align: center;
}

.merchant-note-preview-bottom-bar {
    gap: 12px;
    margin-top: 118px;
    padding: 10px 12px 14px;
    border-top: 1px solid #f0f3f8;
}

.merchant-note-preview-input {
    flex: 1;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f6fa;
    color: #afb4bc;
    font-size: 10px;
    line-height: 24px;
}

.merchant-note-preview-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #50545b;
    font-size: 11px;
}

.merchant-note-preview-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.merchant-note-preview-tab {
    min-width: 80px;
    height: 30px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #7d828a;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.merchant-note-preview-tab.active {
    background: #4c6fff;
    color: #fff;
}

.merchant-note-video-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e6ebf5;
    border-radius: 10px;
    background: #fbfcff;
}

.merchant-note-video-cover {
    position: relative;
    height: 168px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a3147 0%, #131722 100%);
}

.merchant-note-video-cover::before,
.merchant-note-video-preview-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(255,255,255,0.14) 0%, transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.22) 100%);
}

.merchant-note-video-play,
.merchant-note-video-preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 20px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6px);
}

.merchant-note-video-meta strong,
.merchant-note-video-meta span {
    display: block;
}

.merchant-note-video-meta strong {
    color: #333842;
    font-size: 15px;
    font-weight: 600;
}

.merchant-note-video-meta span {
    margin-top: 8px;
    color: #97a0ad;
    font-size: 13px;
    line-height: 1.8;
}

.merchant-note-video-preview-screen {
    display: flex;
    flex-direction: column;
}

.merchant-note-video-preview-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 20px 16px 26px;
    background: linear-gradient(180deg, #242a39 0%, #11141d 100%);
}

.merchant-note-video-preview-stage strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.merchant-note-manage-page {
    padding: 14px 16px 18px;
    background: #fff;
}

.merchant-note-manage-head h2 {
    margin: 0;
    color: #22262f;
    font-size: 17px;
    font-weight: 500;
}

.merchant-note-manage-toolbar {
    margin-top: 12px;
}

.merchant-note-manage-create {
    min-width: 58px;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: #4c6fff;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.merchant-note-manage-grid {
    display: grid;
    grid-template-columns: repeat(4, 176px);
    gap: 8px;
    margin-top: 10px;
}

.merchant-note-manage-card {
    overflow: hidden;
    border: 1px solid #eceff5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.merchant-note-manage-card.is-hidden {
    background: #fbfcff;
}

.merchant-note-manage-card.is-hidden .merchant-note-manage-cover {
    filter: grayscale(0.18) saturate(0.7);
}

.merchant-note-manage-cover {
    position: relative;
    height: 242px;
    overflow: hidden;
    border-bottom: 1px solid #f3f5f9;
    background: #f7f8fb;
}

.merchant-note-manage-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 40px;
    height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(24, 28, 36, 0.76);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.merchant-note-manage-cover.photo.camera {
    background:
        radial-gradient(circle at 72% 68%, rgba(0, 0, 0, 0.84) 0 16%, transparent 17%),
        radial-gradient(circle at 72% 68%, rgba(22, 25, 30, 0.92) 0 23%, transparent 24%),
        linear-gradient(135deg, rgba(27, 33, 46, 0.98) 0 38%, rgba(37, 44, 58, 0.92) 39% 66%, transparent 67%),
        linear-gradient(90deg, #10160f 0%, #1f2215 46%, #6e8c30 100%);
}

.merchant-note-manage-cover.photo.camera::before {
    content: "Canon";
    position: absolute;
    left: 40px;
    top: 46px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    color: #4f545d;
    font-size: 12px;
    font-weight: 600;
}

.merchant-note-manage-cover.photo.hotpot {
    background:
        radial-gradient(circle at 50% 48%, #fef0b7 0 21%, #cf1a12 22% 33%, #3f3022 34% 37%, transparent 38%),
        radial-gradient(circle at 37% 40%, #fff2c8 0 10%, #d63b1f 11% 18%, transparent 19%),
        radial-gradient(circle at 64% 39%, #ffd1ab 0 12%, #c62218 13% 20%, transparent 21%),
        linear-gradient(0deg, transparent 0 68%, rgba(255,255,255,0.1) 68%),
        linear-gradient(135deg, #8d3d16 0%, #e8af4c 40%, #7d2418 72%, #ba6f34 100%);
}

.merchant-note-manage-cover.photo.monument {
    background:
        linear-gradient(180deg, #2894ff 0%, #4aabff 34%, #8dd3ff 67%, #dfd0b2 68%, #d8bc90 100%);
}

.merchant-note-manage-cover.photo.monument::before {
    content: "";
    position: absolute;
    left: 94px;
    bottom: 30px;
    width: 54px;
    height: 136px;
    background: linear-gradient(180deg, #c8824b 0%, #ab5e36 100%);
    clip-path: polygon(14% 100%, 20% 5%, 87% 0, 100% 100%);
    box-shadow: inset -8px 0 0 rgba(255, 255, 255, 0.08);
}

.merchant-note-manage-cover.photo.monument::after {
    content: "";
    position: absolute;
    left: 60px;
    bottom: 76px;
    width: 44px;
    height: 58px;
    border-radius: 4px;
    background: linear-gradient(180deg, #f07c1e 0%, #c95718 100%);
    box-shadow: -30px 18px 0 -22px #f4cd85;
}

.merchant-note-manage-cover.poster {
    background-color: #fff;
}

.merchant-note-manage-cover.poster.rumor-one {
    background:
        linear-gradient(#edf2fb 1px, transparent 1px),
        linear-gradient(90deg, #edf2fb 1px, transparent 1px),
        #fff;
    background-size: 12px 12px;
}

.merchant-note-manage-cover.poster.rumor-two {
    background:
        radial-gradient(circle, #ecedf3 1px, transparent 1px),
        #fff;
    background-size: 8px 8px;
}

.merchant-note-manage-rumor-text {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: grid;
    gap: 4px;
}

.merchant-note-manage-rumor-text strong {
    display: block;
    color: #181b20;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.merchant-note-manage-rumor-text.large {
    top: 132px;
    left: 18px;
}

.merchant-note-manage-rumor-text.large strong {
    font-size: 24px;
    line-height: 1.05;
}

.merchant-note-manage-phone-illustration {
    position: absolute;
    left: 54px;
    top: 26px;
    width: 70px;
    height: 102px;
    border: 3px solid #1e232c;
    border-radius: 18px;
    background: #fff;
    box-shadow: 14px 6px 0 -10px #ffd9d9, -18px 8px 0 -12px #ffd9d9;
}

.merchant-note-manage-phone-illustration::before {
    content: "";
    position: absolute;
    inset: 10px 12px 18px;
    background: linear-gradient(180deg, #eef3fb 0%, #ffffff 100%);
}

.merchant-note-manage-phone-illustration::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #1e232c;
    transform: translateX(-50%);
}

.merchant-note-manage-body {
    padding: 10px 10px 12px;
}

.merchant-note-manage-body h3,
.merchant-note-manage-body p,
.merchant-note-manage-body span {
    margin: 0;
}

.merchant-note-manage-body h3 {
    color: #353941;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    min-height: 34px;
}

.merchant-note-manage-body p {
    min-height: 18px;
    margin-top: 2px;
    color: #737b88;
    font-size: 12px;
}

.merchant-note-manage-body > span {
    display: block;
    margin-top: 8px;
    color: #9197a3;
    font-size: 11px;
}

.merchant-note-manage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.merchant-note-manage-action {
    min-width: 54px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #dfe5f1;
    background: #fff;
    color: #5c6474;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.merchant-note-manage-action.delete {
    color: #d54c57;
    border-color: #f0c9cd;
    background: #fff8f8;
}

.merchant-note-manage-action.hide {
    color: #4c6fff;
    border-color: #d7e0ff;
    background: #f6f8ff;
}

.merchant-note-manage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #7f8794;
    font-size: 12px;
}

.merchant-note-manage-footer-left,
.merchant-note-manage-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-note-manage-page-size,
.merchant-note-manage-page-arrow,
.merchant-note-manage-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-note-manage-page-number.active {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4c6fff;
}

.merchant-note-manage-pagination input {
    width: 24px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4c6fff;
    font: inherit;
    text-align: center;
}

.merchant-note-manage-pagination input:focus {
    outline: none;
}

.merchant-finance-account-page {
    padding: 22px 0 18px;
    background: #fff;
}

.merchant-finance-account-title {
    margin: 0 32px 24px;
    color: #22262f;
    font-size: 22px;
    font-weight: 500;
}

.merchant-finance-account-filters {
    display: grid;
    grid-template-columns: 528px 528px 100px;
    gap: 32px;
    align-items: center;
    padding: 0 32px 28px;
    border-bottom: 14px solid #f6f8fb;
}

.merchant-finance-filter-select,
.merchant-finance-filter-input {
    height: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f7f8fa;
    color: #b2b6bd;
    box-sizing: border-box;
}

.merchant-finance-filter-select span,
.merchant-finance-filter-input span {
    color: #7d828a;
    font-size: 17px;
    font-weight: 600;
}

.merchant-finance-filter-select select,
.merchant-finance-filter-input input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #6d727d;
    font: inherit;
    font-size: 17px;
}

.merchant-finance-filter-select select:focus,
.merchant-finance-filter-input input:focus {
    outline: none;
}

.merchant-finance-filter-query {
    width: 100px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #f7f8fa;
    color: #4c6fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.merchant-finance-account-table-wrap {
    margin: 36px 32px 0;
    border: 1px solid #f0f2f5;
    background: #fff;
}

.merchant-finance-account-table-head,
.merchant-finance-account-row {
    display: grid;
    grid-template-columns: 270px 134px 136px 136px 194px 134px 238px 380px;
    align-items: center;
}

.merchant-finance-account-table-head {
    min-height: 72px;
    padding: 0 24px;
    background: #fafbfd;
    color: #273247;
    font-size: 18px;
}

.merchant-finance-account-row {
    min-height: 102px;
    padding: 0 24px;
    border-top: 1px solid #eff2f6;
    color: #3a4352;
    font-size: 17px;
}

.merchant-finance-account-store {
    color: #34405a;
    font-size: 19px;
}

.merchant-finance-bind-status {
    width: fit-content;
    min-width: 76px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 17px;
}

.merchant-finance-bind-status.is-bound {
    background: #dff5f2;
    color: #11889a;
}

.merchant-finance-bind-status.is-unbound {
    border: 1px solid #e5e8ef;
    background: #fff;
    color: #656d7c;
}

.merchant-finance-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.merchant-finance-account-actions a {
    color: #4c6fff;
    text-decoration: none;
    font-size: 17px;
}

.merchant-finance-account-scrollbar {
    position: relative;
    height: 14px;
    margin: 8px 32px 0;
    border-radius: 999px;
    background: #a9a9a9;
}

.merchant-finance-account-scrollbar::before,
.merchant-finance-account-scrollbar::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: translateY(-50%);
}

.merchant-finance-account-scrollbar::before {
    left: 6px;
    border-right: 10px solid #7f8288;
}

.merchant-finance-account-scrollbar::after {
    right: 6px;
    border-left: 10px solid #7f8288;
}

.merchant-finance-account-scrollbar span {
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: #8a8c90;
}

.merchant-finance-account-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 32px 0;
    color: #707785;
    font-size: 18px;
}

.merchant-finance-account-footer-left,
.merchant-finance-account-pagination {
    display: flex;
    align-items: center;
    gap: 18px;
}

.merchant-finance-account-page-size,
.merchant-finance-account-page-arrow,
.merchant-finance-account-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-account-page-number.active {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4c6fff;
}

.merchant-finance-account-pagination input {
    width: 44px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f5f7fa;
    color: #4c6fff;
    font: inherit;
    text-align: center;
}

.merchant-finance-account-pagination input:focus {
    outline: none;
}

.merchant-finance-funds-page {
    padding: 18px 14px 18px;
    background: #fff;
}

.merchant-finance-funds-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-finance-funds-title-row h2 {
    margin: 0;
    color: #2a2f36;
    font-size: 22px;
    font-weight: 500;
}

.merchant-finance-funds-help {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dde5;
    border-radius: 50%;
    color: #9aa1ad;
    font-size: 11px;
}

.merchant-finance-funds-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 18px;
}

.merchant-finance-funds-summary-item {
    position: relative;
    min-height: 56px;
}

.merchant-finance-funds-summary-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -13px;
    width: 1px;
    height: 40px;
    background: #eef1f5;
}

.merchant-finance-funds-summary-item span,
.merchant-finance-funds-card-values span,
.merchant-finance-funds-card p,
.merchant-finance-funds-footer,
.merchant-finance-funds-table-head,
.merchant-finance-funds-filters input,
.merchant-finance-funds-filters select {
    color: #8d94a3;
}

.merchant-finance-funds-summary-item span {
    display: block;
    font-size: 13px;
}

.merchant-finance-funds-summary-item strong {
    display: block;
    margin-top: 8px;
    color: #303644;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.merchant-finance-funds-summary-item a,
.merchant-finance-funds-card-head a {
    color: #4c6fff;
    text-decoration: none;
    font-size: 13px;
}

.merchant-finance-funds-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.merchant-finance-funds-card {
    min-height: 152px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fbfcff;
    border: 1px solid #f0f2f8;
}

.merchant-finance-funds-card-head,
.merchant-finance-funds-card-title,
.merchant-finance-funds-card-values,
.merchant-finance-funds-filter-actions,
.merchant-finance-funds-footer-left,
.merchant-finance-funds-pagination,
.merchant-finance-funds-record-tabs,
.merchant-finance-funds-record-switches {
    display: flex;
    align-items: center;
}

.merchant-finance-funds-card-head {
    justify-content: space-between;
}

.merchant-finance-funds-card-title {
    gap: 8px;
    color: #596174;
}

.merchant-finance-funds-card-title strong {
    color: #596174;
    font-size: 14px;
    font-weight: 500;
}

.merchant-finance-funds-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.merchant-finance-funds-icon.store {
    background: #ff6a5e;
}

.merchant-finance-funds-icon.store::before {
    content: "";
    position: absolute;
    inset: 5px 4px 4px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.merchant-finance-funds-icon.wechat {
    background: #2dc24f;
}

.merchant-finance-funds-icon.wechat::before,
.merchant-finance-funds-icon.wechat::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.merchant-finance-funds-icon.wechat::before {
    width: 7px;
    height: 7px;
    left: 3px;
    top: 5px;
}

.merchant-finance-funds-icon.wechat::after {
    width: 9px;
    height: 9px;
    right: 3px;
    top: 3px;
}

.merchant-finance-funds-card-values {
    gap: 56px;
    margin-top: 18px;
}

.merchant-finance-funds-card-values.with-copy {
    gap: 72px;
}

.merchant-finance-funds-card-values div strong {
    display: block;
    margin-top: 10px;
    color: #303644;
    font-size: 35px;
    font-weight: 500;
}

.merchant-finance-funds-card-values button,
.merchant-finance-funds-filter-actions button {
    border: 0;
    background: transparent;
    color: #4c6fff;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-funds-card p {
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.65;
}

.merchant-finance-funds-divider {
    height: 12px;
    margin: 18px -14px 0;
    background: #f6f8fb;
}

.merchant-finance-funds-record-tabs {
    gap: 30px;
    margin-top: 14px;
    border-bottom: 1px solid #eaeef4;
}

.merchant-finance-funds-record-tab {
    position: relative;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    color: #4d5567;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.merchant-finance-funds-record-tab.active {
    color: #1f2530;
}

.merchant-finance-funds-record-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #4c6fff;
}

.merchant-finance-funds-record-switches {
    gap: 14px;
    margin-top: 10px;
}

.merchant-finance-funds-switch {
    min-width: 86px;
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #f5f7fb;
    color: #8d94a3;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.merchant-finance-funds-switch.active {
    background: #edf2ff;
    color: #4c6fff;
}

.merchant-finance-funds-filters {
    display: grid;
    grid-template-columns: 86px 1fr 42px 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.merchant-finance-funds-filters input,
.merchant-finance-funds-filters select {
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #f7f8fa;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.merchant-finance-funds-business-input {
    grid-column: 1 / span 2;
}

.merchant-finance-funds-filter-actions {
    grid-column: 5 / span 2;
    justify-content: end;
    gap: 20px;
}

.merchant-finance-funds-filter-actions .is-primary {
    color: #4c6fff;
}

.merchant-finance-funds-table-wrap {
    margin-top: 16px;
    border-radius: 8px;
    background: #fff;
}

.merchant-finance-funds-table-head {
    display: grid;
    grid-template-columns: 150px 140px 120px 120px 120px 170px 1fr;
    gap: 0;
    padding: 0 12px;
    min-height: 42px;
    background: #fafbfd;
    font-size: 13px;
}

.merchant-finance-funds-table-head span {
    display: flex;
    align-items: center;
}

.merchant-finance-funds-scrollbar {
    position: relative;
    height: 10px;
    margin-top: 8px;
    background: #a4a7ac;
    border-radius: 999px;
}

.merchant-finance-funds-scrollbar span {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    bottom: 0;
    background: #8a8d92;
    border-radius: 999px;
}

.merchant-finance-funds-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: #bcc1ca;
    font-size: 13px;
}

.merchant-finance-funds-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    color: #707785;
    font-size: 13px;
}

.merchant-finance-funds-page-size,
.merchant-finance-funds-page-arrow,
.merchant-finance-funds-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-funds-page-number.active {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-funds-pagination input {
    width: 26px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    background: #f5f7fa;
    text-align: center;
    font: inherit;
    color: #717786;
}

.merchant-finance-funds-pagination input:focus {
    outline: none;
}

.merchant-finance-settlement-page {
    min-width: 0;
    padding: 24px 0 18px;
    background: #f6f8fc;
}

.merchant-finance-settlement-head,
.merchant-finance-settlement-filter-card,
.merchant-finance-settlement-table-card,
.merchant-finance-settlement-summary-card,
.merchant-finance-settlement-detail-drawer {
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.merchant-finance-settlement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 28px;
    padding: 24px 26px;
}

.merchant-finance-settlement-head h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.3;
    max-width: 720px;
}

.merchant-finance-settlement-head p {
    margin: 0;
    max-width: 860px;
    color: #6b7280;
    line-height: 1.7;
}

.merchant-finance-settlement-help {
    min-width: 92px;
    height: 40px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #3b4a67;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-settlement-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 28px 0;
}

.merchant-finance-settlement-summary-card {
    padding: 18px 18px 16px;
}

.merchant-finance-settlement-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.merchant-finance-settlement-summary-card strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
}

.merchant-finance-settlement-summary-card p {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.merchant-finance-settlement-summary-card.is-refund strong {
    color: #dc2626;
}

.merchant-finance-settlement-tab {
    position: relative;
    padding: 0 2px 16px;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-finance-settlement-tab.active {
    color: #0f172a;
}

.merchant-finance-settlement-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #4c6fff;
}

.merchant-finance-settlement-filter-card,
.merchant-finance-settlement-table-card {
    min-width: 0;
    margin: 18px 28px 0;
    padding: 22px 24px;
    overflow: hidden;
}

.merchant-finance-settlement-filter-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: end;
}

.merchant-finance-settlement-field,
.merchant-finance-settlement-date-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.merchant-finance-settlement-field span,
.merchant-finance-settlement-date-field span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.merchant-finance-settlement-field.is-search {
    grid-column: span 2;
}

.merchant-finance-settlement-field input,
.merchant-finance-settlement-field select,
.merchant-finance-settlement-date-field > button,
.merchant-finance-settlement-date-range {
    width: 100%;
    height: 44px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
    color: #334155;
    font: inherit;
    font-size: 14px;
}

.merchant-finance-settlement-field input,
.merchant-finance-settlement-field select {
    padding: 0 14px;
}

.merchant-finance-settlement-field select,
.merchant-finance-settlement-date-field > button {
    appearance: none;
    cursor: pointer;
    text-align: left;
}

.merchant-finance-settlement-date-field {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
}

.merchant-finance-settlement-date-field.is-inline {
    grid-column: 1 / 5;
}

.merchant-finance-settlement-date-field > button {
    position: relative;
    padding: 0 14px;
}

.merchant-finance-settlement-date-field > button::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 8px;
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: 0 0, 6px 0;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-finance-settlement-field select {
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: calc(100% - 24px) 18px, calc(100% - 18px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-finance-settlement-date-range {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.merchant-finance-settlement-date-range input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #5f6673;
    font: inherit;
}

.merchant-finance-settlement-date-range input:focus {
    outline: none;
}

.merchant-finance-settlement-calendar {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #b2b7c0;
    border-radius: 4px;
    box-sizing: border-box;
}

.merchant-finance-settlement-calendar::before,
.merchant-finance-settlement-calendar::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: #b2b7c0;
}

.merchant-finance-settlement-calendar::before {
    left: 3px;
}

.merchant-finance-settlement-calendar::after {
    right: 3px;
}

.merchant-finance-settlement-clear {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7d9de;
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.merchant-finance-settlement-filter-actions,
.merchant-finance-settlement-footer-left,
.merchant-finance-settlement-pagination {
    display: flex;
    align-items: center;
}

.merchant-finance-settlement-filter-actions {
    grid-column: 5 / 6;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.merchant-finance-settlement-filter-actions button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-finance-settlement-filter-actions .is-primary {
    border-color: #4c6fff;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-settlement-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 18px 28px 0;
    padding: 0 4px;
}

.merchant-finance-settlement-table-head,
.merchant-finance-settlement-row {
    display: grid;
    grid-template-columns: 160px 220px 110px 108px 110px 112px 96px 96px 96px 100px 114px 100px 90px;
    align-items: center;
    gap: 12px;
    min-width: 1550px;
}

.merchant-finance-settlement-table-head {
    padding: 0 18px 14px;
    border-bottom: 1px solid #e8edf4;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.merchant-finance-settlement-table-head span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.merchant-finance-settlement-table-body {
    overflow-x: auto;
}

.merchant-finance-settlement-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #c5c7cd;
    font-size: 15px;
}

.merchant-finance-settlement-row {
    padding: 14px 18px;
    min-height: 78px;
    border-bottom: 1px solid #eef2f7;
    color: #1f2937;
    font-size: 14px;
    background: #fff;
}

.merchant-finance-settlement-row:last-child {
    border-bottom: 0;
}

.merchant-finance-settlement-row:hover {
    background: #fbfcff;
}

.merchant-finance-settlement-record,
.merchant-finance-settlement-goods {
    display: grid;
    gap: 4px;
}

.merchant-finance-settlement-record {
    color: #0f172a;
    font-weight: 700;
}

.merchant-finance-settlement-record small,
.merchant-finance-settlement-goods small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.merchant-finance-settlement-goods strong {
    color: #0f172a;
}

.merchant-finance-settlement-amount {
    color: #0f172a;
    font-weight: 800;
}

.merchant-finance-settlement-amount.is-negative {
    color: #dc2626;
}

.merchant-finance-settlement-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.merchant-finance-settlement-status.is-settled {
    background: #ecfdf5;
    color: #059669;
}

.merchant-finance-settlement-status.is-pending {
    background: #eff6ff;
    color: #2563eb;
}

.merchant-finance-settlement-status.is-refund {
    background: #fef2f2;
    color: #dc2626;
}

.merchant-finance-settlement-status.is-adjust {
    background: #fff7ed;
    color: #ea580c;
}

.merchant-finance-settlement-status.is-abnormal {
    background: #fff7ed;
    color: #c2410c;
}

.merchant-finance-settlement-row button[data-finance-settlement-detail] {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8e0ec;
    border-radius: 10px;
    background: #fff;
    color: #3b4a67;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-finance-settlement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 28px 0;
    color: #666d79;
    font-size: 14px;
}

.merchant-finance-settlement-footer-left,
.merchant-finance-settlement-pagination {
    gap: 14px;
}

.merchant-finance-settlement-page-size,
.merchant-finance-settlement-page-arrow,
.merchant-finance-settlement-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-settlement-page-number.active {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-settlement-pagination input {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666d79;
    font: inherit;
    text-align: center;
}

.merchant-finance-settlement-pagination input:focus {
    outline: none;
}

.merchant-finance-settlement-detail-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    z-index: 59;
}

.merchant-finance-settlement-detail-drawer {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(460px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    z-index: 60;
}

.merchant-finance-settlement-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e8edf4;
}

.merchant-finance-settlement-detail-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 22px;
}

.merchant-finance-settlement-detail-head button {
    width: 36px;
    height: 36px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.merchant-finance-settlement-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 22px;
}

.merchant-finance-settlement-detail-section {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    background: #fbfcfe;
}

.merchant-finance-settlement-detail-section-title {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.merchant-finance-settlement-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.merchant-finance-settlement-detail-grid div,
.merchant-finance-settlement-detail-amounts div {
    display: grid;
    gap: 6px;
}

.merchant-finance-settlement-detail-grid span,
.merchant-finance-settlement-detail-amounts span {
    color: #64748b;
    font-size: 12px;
}

.merchant-finance-settlement-detail-grid strong,
.merchant-finance-settlement-detail-amounts strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.6;
}

.merchant-finance-settlement-detail-grid .is-wide {
    grid-column: 1 / -1;
}

.merchant-finance-settlement-detail-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.merchant-finance-settlement-detail-amounts .is-emphasis {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef3ff;
}

.merchant-finance-settlement-detail-amounts .is-emphasis strong {
    font-size: 20px;
    color: #3156d3;
}

.merchant-finance-settlement-timeline {
    display: grid;
    gap: 12px;
}

.merchant-finance-settlement-timeline-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
}

.merchant-finance-settlement-timeline-dot {
    position: relative;
    width: 14px;
}

.merchant-finance-settlement-timeline-dot::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4c6fff;
}

.merchant-finance-settlement-timeline-content {
    padding-bottom: 12px;
    border-bottom: 1px dashed #d7dfeb;
}

.merchant-finance-settlement-timeline-item:last-child .merchant-finance-settlement-timeline-content {
    border-bottom: 0;
    padding-bottom: 0;
}

.merchant-finance-settlement-timeline-content strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.merchant-finance-settlement-timeline-content span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.merchant-order-sales-page {
    min-width: 0;
    padding: 0 0 18px;
    background: #f5f5f5;
}

.merchant-order-sales-filter-card,
.merchant-order-sales-table-card {
    min-width: 0;
    margin: 26px 28px 0;
    padding: 26px 30px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.merchant-order-sales-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 30px;
    align-items: center;
}

.merchant-order-sales-date-box,
.merchant-order-sales-field-box {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f7f7f8;
    box-sizing: border-box;
}

.merchant-order-sales-field-label {
    flex: 0 0 auto;
    margin-right: 14px;
    color: #676d78;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.merchant-order-sales-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #b2b7c0;
}

.merchant-order-sales-date-range input,
.merchant-order-sales-field-box input,
.merchant-order-sales-field-box select,
.merchant-order-sales-pagination input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #8b9099;
    font: inherit;
    font-size: 15px;
}

.merchant-order-sales-date-range input:focus,
.merchant-order-sales-field-box input:focus,
.merchant-order-sales-field-box select:focus,
.merchant-order-sales-pagination input:focus {
    outline: none;
}

.merchant-order-sales-field-box input,
.merchant-order-sales-field-box select {
    width: 100%;
}

.merchant-order-sales-field-box select {
    appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 10px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-order-sales-date-trigger {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.merchant-order-sales-date-trigger::before,
.merchant-order-sales-date-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    box-sizing: border-box;
}

.merchant-order-sales-date-trigger::before {
    top: 2px;
    width: 18px;
    height: 16px;
    border: 2px solid #a9afb8;
    border-radius: 4px;
}

.merchant-order-sales-date-trigger::after {
    top: 0;
    left: 4px;
    width: 10px;
    height: 4px;
    border-top: 2px solid #a9afb8;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
}

.merchant-order-sales-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.merchant-order-sales-filter-actions button {
    border: 0;
    background: transparent;
    color: #565d6a;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.merchant-order-sales-filter-actions .is-primary {
    color: #4c6fff;
}

.merchant-order-sales-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.merchant-order-sales-toolbar button {
    min-width: 98px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #4c6fff;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-order-sales-scroll-area {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    background: #fafbfd;
    scrollbar-width: none;
}

.merchant-order-sales-scroll-area::-webkit-scrollbar {
    display: none;
}

.merchant-order-sales-wide-content {
    width: 2110px;
    min-width: 2110px;
}

.merchant-order-sales-table-head {
    display: grid;
    grid-template-columns: 170px 170px 130px 130px 170px 170px 170px 150px 220px 120px 120px 120px 120px;
    min-height: 96px;
    padding: 0 24px;
    align-items: center;
    color: #535d6b;
    font-size: 14px;
}

.merchant-order-sales-table-head span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.merchant-order-sales-scrollbar {
    position: relative;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: #a5a6aa;
    cursor: pointer;
}

.merchant-order-sales-scrollbar::before,
.merchant-order-sales-scrollbar::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translateY(-50%);
}

.merchant-order-sales-scrollbar::before {
    left: 4px;
    border-right: 8px solid #7f8288;
}

.merchant-order-sales-scrollbar::after {
    right: 4px;
    border-left: 8px solid #7f8288;
}

.merchant-order-sales-scrollbar span {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 520px;
    max-width: calc(100% - 48px);
    border-radius: 999px;
    background: #8a8d92;
    cursor: grab;
}

.merchant-order-sales-scrollbar span.is-dragging {
    cursor: grabbing;
}

.merchant-order-sales-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #c5c7cd;
    font-size: 15px;
}

.merchant-order-sales-footer,
.merchant-order-sales-footer-left,
.merchant-order-sales-pagination {
    display: flex;
    align-items: center;
}

.merchant-order-sales-footer {
    justify-content: space-between;
    gap: 20px;
    margin: 16px 28px 0;
    color: #666d79;
    font-size: 14px;
}

.merchant-order-sales-footer-left,
.merchant-order-sales-pagination {
    gap: 14px;
}

.merchant-order-sales-page-size,
.merchant-order-sales-page-arrow,
.merchant-order-sales-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-order-sales-page-number.active {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4c6fff;
}

.merchant-order-sales-pagination input {
    width: 40px;
    height: 38px;
    border-radius: 8px;
    background: #f3f4f6;
    text-align: center;
    color: #666d79;
}

@media (max-width: 1320px) {
    .merchant-order-sales-filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .merchant-order-sales-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .merchant-order-sales-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .merchant-order-sales-date-box,
    .merchant-order-sales-field-box {
        height: auto;
        min-height: 48px;
        padding: 12px 18px;
    }

    .merchant-order-sales-date-box,
    .merchant-order-sales-field-box,
    .merchant-order-sales-footer {
        flex-wrap: wrap;
    }

    .merchant-order-sales-footer {
        align-items: flex-start;
    }
}

.merchant-order-verification-page {
    min-width: 0;
    padding: 0 0 18px;
    background: #f5f5f5;
}

.merchant-order-verification-filter-card,
.merchant-order-verification-table-card {
    min-width: 0;
    margin: 26px 28px 0;
    padding: 26px 30px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.merchant-order-verification-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 24px;
    align-items: center;
}

.merchant-order-verification-date-box,
.merchant-order-verification-field-box {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f7f7f8;
    box-sizing: border-box;
}

.merchant-order-verification-date-box.is-wide {
    grid-column: span 2;
}

.merchant-order-verification-field-label {
    flex: 0 0 auto;
    margin-right: 14px;
    color: #676d78;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.merchant-order-verification-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #b2b7c0;
}

.merchant-order-verification-date-range input,
.merchant-order-verification-field-box input,
.merchant-order-verification-field-box select,
.merchant-order-verification-pagination input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #8b9099;
    font: inherit;
    font-size: 15px;
}

.merchant-order-verification-date-range input:focus,
.merchant-order-verification-field-box input:focus,
.merchant-order-verification-field-box select:focus,
.merchant-order-verification-pagination input:focus {
    outline: none;
}

.merchant-order-verification-field-box input,
.merchant-order-verification-field-box select {
    width: 100%;
}

.merchant-order-verification-field-box select {
    appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 10px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-order-verification-date-trigger {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.merchant-order-verification-date-trigger::before,
.merchant-order-verification-date-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    box-sizing: border-box;
}

.merchant-order-verification-date-trigger::before {
    top: 2px;
    width: 18px;
    height: 16px;
    border: 2px solid #a9afb8;
    border-radius: 4px;
}

.merchant-order-verification-date-trigger::after {
    top: 0;
    left: 4px;
    width: 10px;
    height: 4px;
    border-top: 2px solid #a9afb8;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
}

.merchant-order-verification-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.merchant-order-verification-filter-actions button {
    border: 0;
    background: transparent;
    color: #565d6a;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.merchant-order-verification-filter-actions .is-primary {
    color: #4c6fff;
}

.merchant-order-verification-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.merchant-order-verification-toolbar button {
    min-width: 98px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #4c6fff;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-order-verification-scroll-area {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    background: #fafbfd;
    scrollbar-width: none;
}

.merchant-order-verification-scroll-area::-webkit-scrollbar {
    display: none;
}

.merchant-order-verification-wide-content {
    width: 4210px;
    min-width: 4210px;
}

.merchant-order-verification-table-head {
    display: grid;
    grid-template-columns: 170px 170px 130px 170px 170px 130px 170px 150px 220px 150px 120px 170px 150px 170px 140px 140px 140px 170px 140px 140px 120px 120px 140px 120px 140px 140px 100px;
    min-height: 96px;
    padding: 0 24px;
    align-items: center;
    color: #535d6b;
    font-size: 14px;
}

.merchant-order-verification-table-head span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.merchant-order-verification-help {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f4;
    color: #7f8794;
    font-size: 12px;
    font-weight: 700;
}

.merchant-order-verification-scrollbar {
    position: relative;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: #a5a6aa;
    cursor: pointer;
}

.merchant-order-verification-scrollbar::before,
.merchant-order-verification-scrollbar::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translateY(-50%);
}

.merchant-order-verification-scrollbar::before {
    left: 4px;
    border-right: 8px solid #7f8288;
}

.merchant-order-verification-scrollbar::after {
    right: 4px;
    border-left: 8px solid #7f8288;
}

.merchant-order-verification-scrollbar span {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 460px;
    max-width: calc(100% - 48px);
    border-radius: 999px;
    background: #8a8d92;
    cursor: grab;
}

.merchant-order-verification-scrollbar span.is-dragging {
    cursor: grabbing;
}

.merchant-order-verification-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #c5c7cd;
    font-size: 15px;
}

.merchant-order-verification-footer,
.merchant-order-verification-footer-left,
.merchant-order-verification-pagination {
    display: flex;
    align-items: center;
}

.merchant-order-verification-footer {
    justify-content: space-between;
    gap: 20px;
    margin: 16px 28px 0;
    color: #666d79;
    font-size: 14px;
}

.merchant-order-verification-footer-left,
.merchant-order-verification-pagination {
    gap: 14px;
}

.merchant-order-verification-page-size,
.merchant-order-verification-page-arrow,
.merchant-order-verification-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-order-verification-page-number.active {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4c6fff;
}

.merchant-order-verification-pagination input {
    width: 40px;
    height: 38px;
    border-radius: 8px;
    background: #f3f4f6;
    text-align: center;
    color: #666d79;
}

@media (max-width: 1320px) {
    .merchant-order-verification-filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .merchant-order-verification-date-box.is-wide,
    .merchant-order-verification-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .merchant-order-verification-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .merchant-order-verification-date-box,
    .merchant-order-verification-field-box {
        height: auto;
        min-height: 48px;
        padding: 12px 18px;
    }

    .merchant-order-verification-date-box.is-wide {
        grid-column: auto;
    }

    .merchant-order-verification-date-box,
    .merchant-order-verification-field-box,
    .merchant-order-verification-footer {
        flex-wrap: wrap;
    }

    .merchant-order-verification-footer {
        align-items: flex-start;
    }
}

.merchant-order-code-page {
    min-width: 0;
    min-height: 560px;
    padding: 0 28px 24px;
    background: #f5f5f5;
}

.merchant-order-code-head {
    padding: 12px 0 18px;
}

.merchant-order-code-head h2 {
    margin: 0;
    color: #242a35;
    font-size: 24px;
    font-weight: 500;
}

.merchant-order-code-card {
    min-width: 0;
    min-height: 420px;
    padding: 36px 30px;
    border-radius: 16px;
    background: #fff;
}

.merchant-order-code-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 14px;
    align-items: center;
}

.merchant-order-code-input-group {
    position: relative;
    display: grid;
    grid-template-columns: clamp(220px, 17vw, 268px) 1px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
    border: 1px solid #4c6fff;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(76, 111, 255, 0.05);
}

.merchant-order-code-store-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: #4a4f59;
    font: inherit;
    cursor: pointer;
}

.merchant-order-code-store-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #6e7480;
    border-radius: 3px;
    box-sizing: border-box;
}

.merchant-order-code-store-icon::before,
.merchant-order-code-store-icon::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    border-top: 2px solid #6e7480;
}

.merchant-order-code-store-icon::before {
    top: 4px;
}

.merchant-order-code-store-icon::after {
    top: 8px;
}

.merchant-order-code-store-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.merchant-order-code-store-caret {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.merchant-order-code-store-caret::before,
.merchant-order-code-store-caret::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 8px;
    border-top: 2px solid #767d89;
}

.merchant-order-code-store-caret::before {
    left: 0;
    transform: rotate(45deg);
}

.merchant-order-code-store-caret::after {
    right: 0;
    transform: rotate(-45deg);
}

.merchant-order-code-divider {
    width: 1px;
    height: 28px;
    background: #dfe2e8;
}

.merchant-order-code-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
}

.merchant-order-code-input-wrap input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #2a313d;
    font: inherit;
    font-size: 17px;
}

.merchant-order-code-input-wrap input::placeholder {
    color: #b7bcc5;
}

.merchant-order-code-input-wrap input:focus,
.merchant-order-code-store-search input:focus {
    outline: none;
}

.merchant-order-code-counter {
    flex: 0 0 auto;
    color: #8d93a0;
    font-size: 16px;
}

.merchant-order-code-submit {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #4664ef;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-order-code-store-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    width: 688px;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(28, 34, 44, 0.14);
    overflow: hidden;
    z-index: 15;
}

.merchant-order-code-store-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    margin: 12px 14px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f6f6f7;
}

.merchant-order-code-store-search-icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #8e95a1;
    border-radius: 50%;
    box-sizing: border-box;
}

.merchant-order-code-store-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -2px;
    width: 7px;
    border-top: 2px solid #8e95a1;
    transform: rotate(45deg);
    transform-origin: right center;
}

.merchant-order-code-store-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #3a4350;
    font: inherit;
    font-size: 16px;
}

.merchant-order-code-store-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 308px;
    border-top: 1px solid #eff1f4;
}

.merchant-order-code-region-list {
    display: grid;
    align-content: start;
    background: #fff;
    border-right: 1px solid #eff1f4;
}

.merchant-order-code-region-list button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    padding: 0 22px;
    border: 0;
    background: transparent;
    color: #343c47;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.merchant-order-code-region-list button::after {
    content: "›";
    color: #59606d;
    font-size: 24px;
    line-height: 1;
}

.merchant-order-code-region-list button.active {
    background: #eef2ff;
}

.merchant-order-code-store-list {
    display: grid;
    align-content: start;
    padding: 10px 0;
    background: #fff;
}

.merchant-order-code-store-list button {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px 24px 18px 56px;
    border: 0;
    background: transparent;
    color: #3a414c;
    text-align: left;
    cursor: pointer;
}

.merchant-order-code-store-list button::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 24px;
    width: 12px;
    height: 6px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    opacity: 0;
}

.merchant-order-code-store-list button.active::before {
    border-left-color: #111;
    border-bottom-color: #111;
    opacity: 1;
}

.merchant-order-code-store-list strong {
    font-size: 16px;
    font-weight: 500;
}

.merchant-order-code-store-list span {
    color: #7f8794;
    font-size: 15px;
}

.merchant-order-code-store-list button[hidden] {
    display: none;
}

.merchant-order-code-store-empty {
    padding: 32px 24px;
    color: #9aa1ad;
    font-size: 15px;
}

@media (max-width: 1180px) {
    .merchant-order-code-entry {
        grid-template-columns: minmax(0, 1fr);
    }

    .merchant-order-code-submit {
        width: 136px;
    }
}

@media (max-width: 960px) {
    .merchant-order-code-input-group {
        grid-template-columns: 1fr;
        padding: 10px 14px;
        gap: 10px;
    }

    .merchant-order-code-divider {
        display: none;
    }

    .merchant-order-code-store-trigger,
    .merchant-order-code-input-wrap {
        padding: 0;
    }

    .merchant-order-code-store-panel {
        left: 0;
        width: min(100%, 688px);
    }
}

@media (max-width: 760px) {
    .merchant-order-code-page {
        padding: 0 16px 24px;
    }

    .merchant-order-code-card {
        padding: 24px 18px;
    }

    .merchant-order-code-store-panel {
        width: 100%;
    }

    .merchant-order-code-store-body {
        grid-template-columns: 1fr;
    }

    .merchant-order-code-region-list {
        border-right: 0;
        border-bottom: 1px solid #eff1f4;
    }
}

.merchant-finance-monthly-page {
    min-width: 0;
    padding: 24px 0 18px;
    background: #f6f8fc;
}

.merchant-finance-monthly-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 28px;
    padding: 24px 26px;
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.merchant-finance-monthly-head h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
}

.merchant-finance-monthly-head p {
    margin: 0;
    max-width: 860px;
    color: #6b7280;
    line-height: 1.7;
}

.merchant-finance-monthly-help {
    min-width: 104px;
    height: 40px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #3b4a67;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-monthly-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 28px 0;
}

.merchant-finance-monthly-summary-card,
.merchant-finance-monthly-notice,
.merchant-finance-monthly-filter-card,
.merchant-finance-monthly-table-card,
.merchant-finance-monthly-detail-drawer {
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.merchant-finance-monthly-summary-card {
    padding: 18px;
}

.merchant-finance-monthly-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.merchant-finance-monthly-summary-card strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
}

.merchant-finance-monthly-summary-card p {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.merchant-finance-monthly-summary-card.is-refund strong {
    color: #dc2626;
}

.merchant-finance-monthly-notice {
    min-width: 0;
    margin: 18px 28px 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, #eef3ff 0%, #f7faff 100%);
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 14px;
    align-items: start;
    box-sizing: border-box;
}

.merchant-finance-monthly-notice-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4c6fff;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.merchant-finance-monthly-notice-content {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.merchant-finance-monthly-notice-content p {
    margin: 0;
    color: #3f4654;
    font-size: 14px;
    line-height: 1.8;
}

.merchant-finance-monthly-notice-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #7f8795;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.merchant-finance-monthly-filter-card,
.merchant-finance-monthly-table-card {
    min-width: 0;
    margin: 18px 28px 0;
    padding: 22px 24px;
    overflow: hidden;
}

.merchant-finance-monthly-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: end;
}

.merchant-finance-monthly-field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.merchant-finance-monthly-field > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.merchant-finance-monthly-inline-input,
.merchant-finance-monthly-field input,
.merchant-finance-monthly-field select {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    box-sizing: border-box;
}

.merchant-finance-monthly-field input,
.merchant-finance-monthly-field select {
    min-width: 0;
    border: 1px solid #dce4ee;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 14px;
}

.merchant-finance-monthly-field input:focus,
.merchant-finance-monthly-field select:focus {
    outline: none;
}

.merchant-finance-monthly-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: calc(100% - 20px) 17px, calc(100% - 14px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-finance-monthly-field.is-period {
    grid-column: span 2;
}

.merchant-finance-monthly-calendar {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #b2b7c0;
    border-radius: 4px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.merchant-finance-monthly-calendar::before,
.merchant-finance-monthly-calendar::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: #b2b7c0;
}

.merchant-finance-monthly-calendar::before {
    left: 3px;
}

.merchant-finance-monthly-calendar::after {
    right: 3px;
}

.merchant-finance-monthly-actions,
.merchant-finance-monthly-footer-left,
.merchant-finance-monthly-pagination {
    display: flex;
    align-items: center;
}

.merchant-finance-monthly-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.merchant-finance-monthly-actions button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-finance-monthly-actions .is-primary {
    min-width: 82px;
    height: 42px;
    border-color: #4c6fff;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-monthly-table-head,
.merchant-finance-monthly-row {
    display: grid;
    grid-template-columns: 180px 100px 112px 118px 118px 118px 118px 128px 90px 94px;
    align-items: center;
    gap: 12px;
    min-width: 1280px;
}

.merchant-finance-monthly-table-head span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.merchant-finance-monthly-table-head {
    padding: 0 18px 14px;
    border-bottom: 1px solid #e8edf4;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.merchant-finance-monthly-table-body {
    overflow-x: auto;
}

.merchant-finance-monthly-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: #c5c7cd;
    font-size: 15px;
}

.merchant-finance-monthly-row {
    padding: 14px 18px;
    min-height: 78px;
    border-bottom: 1px solid #eef2f7;
    color: #1f2937;
    font-size: 14px;
    background: #fff;
}

.merchant-finance-monthly-row:last-child {
    border-bottom: 0;
}

.merchant-finance-monthly-bill {
    display: grid;
    gap: 4px;
    color: #0f172a;
    font-weight: 700;
}

.merchant-finance-monthly-bill small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.merchant-finance-monthly-net {
    color: #0f172a;
    font-weight: 800;
}

.merchant-finance-monthly-row .is-negative {
    color: #dc2626;
}

.merchant-finance-monthly-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.merchant-finance-monthly-status.is-pending {
    background: #eff6ff;
    color: #2563eb;
}

.merchant-finance-monthly-status.is-confirmed {
    background: #ecfdf5;
    color: #059669;
}

.merchant-finance-monthly-status.is-issued {
    background: #f1f5f9;
    color: #475569;
}

.merchant-finance-monthly-row button[data-finance-monthly-detail] {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8e0ec;
    border-radius: 10px;
    background: #fff;
    color: #3b4a67;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.merchant-finance-monthly-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 28px 0;
    color: #666d79;
    font-size: 14px;
}

.merchant-finance-monthly-footer-left,
.merchant-finance-monthly-pagination {
    gap: 14px;
}

.merchant-finance-monthly-page-size,
.merchant-finance-monthly-page-arrow,
.merchant-finance-monthly-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-monthly-page-number.active {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-monthly-pagination input {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666d79;
    font: inherit;
    text-align: center;
}

.merchant-finance-monthly-pagination input:focus {
    outline: none;
}

.merchant-finance-monthly-detail-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    z-index: 59;
}

.merchant-finance-monthly-detail-drawer {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(460px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    z-index: 60;
}

.merchant-finance-monthly-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e8edf4;
}

.merchant-finance-monthly-detail-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 22px;
}

.merchant-finance-monthly-detail-head button {
    width: 36px;
    height: 36px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.merchant-finance-monthly-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 22px;
}

.merchant-finance-monthly-detail-section {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    background: #fbfcfe;
}

.merchant-finance-monthly-detail-section-title {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.merchant-finance-monthly-detail-grid,
.merchant-finance-monthly-detail-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.merchant-finance-monthly-detail-grid div,
.merchant-finance-monthly-detail-amounts div {
    display: grid;
    gap: 6px;
}

.merchant-finance-monthly-detail-grid span,
.merchant-finance-monthly-detail-amounts span {
    color: #64748b;
    font-size: 12px;
}

.merchant-finance-monthly-detail-grid strong,
.merchant-finance-monthly-detail-amounts strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.6;
}

.merchant-finance-monthly-detail-grid .is-wide,
.merchant-finance-monthly-detail-amounts .is-emphasis {
    grid-column: 1 / -1;
}

.merchant-finance-monthly-detail-amounts .is-emphasis {
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef3ff;
}

.merchant-finance-monthly-detail-amounts .is-emphasis strong {
    font-size: 20px;
    color: #3156d3;
}

.merchant-finance-monthly-timeline {
    display: grid;
    gap: 12px;
}

.merchant-finance-monthly-timeline-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
}

.merchant-finance-monthly-timeline-dot {
    position: relative;
    width: 14px;
}

.merchant-finance-monthly-timeline-dot::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4c6fff;
}

.merchant-finance-monthly-timeline-content {
    padding-bottom: 12px;
    border-bottom: 1px dashed #d7dfeb;
}

.merchant-finance-monthly-timeline-item:last-child .merchant-finance-monthly-timeline-content {
    border-bottom: 0;
    padding-bottom: 0;
}

.merchant-finance-monthly-timeline-content strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.merchant-finance-monthly-timeline-content span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.merchant-finance-invoice-page {
    min-width: 0;
    padding: 0 0 18px;
    background: #fff;
}

.merchant-finance-invoice-tabs {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    align-items: end;
    gap: 38px;
    padding: 0 18px;
    min-height: 70px;
    border-bottom: 1px solid #ebeef4;
}

.merchant-finance-invoice-tab,
.merchant-finance-invoice-manage-link {
    text-decoration: none;
    color: #4c5360;
}

.merchant-finance-invoice-tab {
    position: relative;
    padding: 0 0 16px;
    font-size: 16px;
    font-weight: 500;
}

.merchant-finance-invoice-tab.active {
    color: #23262f;
}

.merchant-finance-invoice-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #4c6fff;
}

.merchant-finance-invoice-manage-link {
    justify-self: end;
    padding-bottom: 16px;
    color: #7f8795;
    font-size: 14px;
}

.merchant-finance-invoice-notice,
.merchant-finance-invoice-filter-card,
.merchant-finance-invoice-table-card {
    margin: 24px 18px 0;
    border-radius: 14px;
    background: #fff;
}

.merchant-finance-invoice-notice {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 14px;
    padding: 22px 18px;
    background: #eef3ff;
    box-sizing: border-box;
}

.merchant-finance-invoice-notice-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4c6fff;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.merchant-finance-invoice-notice-content {
    display: grid;
    gap: 8px;
}

.merchant-finance-invoice-notice-content p {
    margin: 0;
    color: #3f4654;
    font-size: 14px;
    line-height: 1.75;
}

.merchant-finance-invoice-notice-content a {
    color: #4c6fff;
    text-decoration: none;
}

.merchant-finance-invoice-notice-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #7f8795;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.merchant-finance-invoice-filter-card,
.merchant-finance-invoice-table-card {
    padding: 0;
    overflow: hidden;
}

.merchant-finance-invoice-filter-card {
    padding: 0 18px 18px;
}

.merchant-finance-invoice-filter-card.compact {
    padding-top: 16px;
}

.merchant-finance-invoice-filter-grid {
    display: grid;
    gap: 18px 28px;
    align-items: center;
}

.merchant-finance-invoice-filter-grid.manage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    padding-top: 18px;
}

.merchant-finance-invoice-filter-grid.records {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.merchant-finance-invoice-field {
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f7f7f8;
    box-sizing: border-box;
    color: #6d7582;
}

.merchant-finance-invoice-field span {
    flex: 0 0 auto;
    color: #5f6674;
    font-size: 16px;
    font-weight: 600;
}

.merchant-finance-invoice-field input,
.merchant-finance-invoice-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #7e8592;
    font: inherit;
    font-size: 15px;
}

.merchant-finance-invoice-field input:focus,
.merchant-finance-invoice-field select:focus {
    outline: none;
}

.merchant-finance-invoice-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca2ac 50%), linear-gradient(135deg, #9ca2ac 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.merchant-finance-invoice-field.date-range-field {
    padding-right: 10px;
}

.merchant-finance-invoice-date-range {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
}

.merchant-finance-invoice-date-range input {
    min-width: 0;
}

.merchant-finance-invoice-date-range .calendar {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #b2b7c0;
    border-radius: 4px;
    box-sizing: border-box;
}

.merchant-finance-invoice-date-range .calendar::before,
.merchant-finance-invoice-date-range .calendar::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: #b2b7c0;
}

.merchant-finance-invoice-date-range .calendar::before {
    left: 3px;
}

.merchant-finance-invoice-date-range .calendar::after {
    right: 3px;
}

.merchant-finance-invoice-filter-actions,
.merchant-finance-invoice-footer-left,
.merchant-finance-invoice-pagination,
.merchant-finance-invoice-toolbar {
    display: flex;
    align-items: center;
}

.merchant-finance-invoice-filter-actions {
    justify-content: flex-end;
    gap: 22px;
}

.merchant-finance-invoice-filter-actions.align-right {
    grid-column: 3 / 4;
}

.merchant-finance-invoice-filter-actions button,
.merchant-finance-invoice-toolbar button {
    border: 0;
    background: transparent;
    color: #5d6575;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.merchant-finance-invoice-filter-actions .is-primary,
.merchant-finance-invoice-toolbar .is-primary {
    min-width: 94px;
    height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background: #4c6fff;
    color: #fff;
}

.merchant-finance-invoice-toolbar {
    gap: 22px;
    margin: 8px 18px 0;
    color: #49505d;
    font-size: 15px;
}

.merchant-finance-invoice-toolbar button:not(.is-primary) {
    min-width: 154px;
    height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f7f7f8;
    color: #4c6fff;
}

.merchant-finance-invoice-table-card {
    min-width: 0;
    background: #fff;
}

.merchant-finance-invoice-table-head {
    display: grid;
    align-items: center;
    min-height: 72px;
    padding: 0 18px;
    color: #565f6d;
    font-size: 14px;
}

.merchant-finance-invoice-table-head.manage {
    grid-template-columns: 56px 160px 210px 210px 170px 140px 170px 120px 180px;
}

.merchant-finance-invoice-table-head.platform {
    grid-template-columns: 220px 220px 260px 180px 220px 170px 180px 120px;
    width: 100%;
}

.merchant-finance-invoice-table-head.merchant {
    grid-template-columns: 230px 230px 180px 200px 210px 150px 120px;
}

.merchant-finance-invoice-table-head span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.merchant-finance-invoice-table-head .checkbox-cell::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 1px solid #d6dbe5;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.merchant-finance-invoice-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    color: #c5c7cd;
    font-size: 15px;
}

.merchant-finance-invoice-empty.tall {
    min-height: 208px;
}

.merchant-finance-invoice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 18px 0;
    color: #666d79;
    font-size: 14px;
}

.merchant-finance-invoice-footer-left,
.merchant-finance-invoice-pagination {
    gap: 14px;
}

.merchant-finance-invoice-page-size,
.merchant-finance-invoice-page-arrow,
.merchant-finance-invoice-page-number {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.merchant-finance-invoice-page-number.active {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4c6fff;
}

.merchant-finance-invoice-pagination input {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666d79;
    font: inherit;
    text-align: center;
}

.merchant-finance-invoice-pagination input:focus {
    outline: none;
}

.merchant-finance-invoice-scroll-area {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.merchant-finance-invoice-scroll-area::-webkit-scrollbar {
    display: none;
}

.merchant-finance-invoice-wide-content {
    width: 1570px;
    min-width: 1570px;
}

.merchant-finance-invoice-scrollbar {
    position: relative;
    height: 10px;
    margin: 4px 18px 0;
    border-radius: 999px;
    background: #9fa1a6;
    cursor: pointer;
}

.merchant-finance-invoice-scrollbar::before,
.merchant-finance-invoice-scrollbar::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translateY(-50%);
}

.merchant-finance-invoice-scrollbar::before {
    left: 4px;
    border-right: 8px solid #7f8288;
}

.merchant-finance-invoice-scrollbar::after {
    right: 4px;
    border-left: 8px solid #7f8288;
}

.merchant-finance-invoice-scrollbar span {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 560px;
    max-width: calc(100% - 48px);
    border-radius: 999px;
    background: #8a8d92;
    cursor: grab;
}

.merchant-finance-invoice-scrollbar span.is-dragging {
    cursor: grabbing;
}

@media (max-width: 1280px) {
    .merchant-note-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .merchant-note-preview {
        justify-items: start;
        padding-top: 0;
    }
}

.merchant-form-field {
    display: grid;
    gap: 8px;
    color: #4c576e;
    font-size: 0.92rem;
}

.merchant-form-field input,
.merchant-form-field select,
.merchant-form-field textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #dbe3f0;
    background: #fbfcff;
    color: #252b36;
    font: inherit;
    box-sizing: border-box;
}

.merchant-form-field textarea {
    resize: vertical;
    min-height: 96px;
}

.merchant-form-field-block {
    grid-column: 1 / -1;
}

.merchant-cert-upload {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px dashed #cfd9eb;
    border-radius: 12px;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
    cursor: pointer;
}

.merchant-cert-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.merchant-cert-upload-title {
    font-size: 0.84rem;
    color: #6d7891;
}

.merchant-cert-upload strong,
.merchant-cert-side-note strong,
.merchant-cert-summary-list strong,
.merchant-cert-empty {
    color: #252b36;
}

.merchant-cert-upload em,
.merchant-cert-file-name,
.merchant-cert-summary-list span,
.merchant-cert-side-note {
    color: #6f7890;
    font-style: normal;
}

.merchant-cert-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8faff;
    border: 1px solid #edf2fb;
}

.merchant-cert-side-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #fbfcff;
    border: 1px solid #eef2f8;
}

.merchant-cert-filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.merchant-cert-filter {
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #5a657d;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.merchant-cert-filter.active {
    background: #4f73ff;
    border-color: #4f73ff;
    color: #fff;
}

.merchant-cert-status-grid,
.merchant-cert-progress-list,
.merchant-cert-remind-list,
.merchant-cert-history {
    display: grid;
    gap: 14px;
}

.merchant-cert-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.merchant-cert-status-card {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #e8edf6;
    background: #fff;
}

.merchant-cert-status-card span,
.merchant-cert-progress-item p,
.merchant-cert-remind-list span,
.merchant-cert-history span {
    color: #6c768b;
}

.merchant-cert-status-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 1.6rem;
    color: #252b36;
}

.merchant-cert-status-card.pending {
    background: linear-gradient(180deg, #fff8ed 0%, #ffffff 100%);
}

.merchant-cert-status-card.approved {
    background: linear-gradient(180deg, #effaf3 0%, #ffffff 100%);
}

.merchant-cert-status-card.rejected {
    background: linear-gradient(180deg, #fff1f1 0%, #ffffff 100%);
}

.merchant-cert-doc-card,
.merchant-cert-progress-item,
.merchant-cert-remind-list div,
.merchant-cert-history div {
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #fbfcff;
}

.merchant-cert-doc-head,
.merchant-cert-panel-head,
.merchant-cert-actions,
.merchant-cert-remind-list div,
.merchant-cert-history div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.merchant-cert-doc-head,
.merchant-cert-panel-head {
    margin-bottom: 14px;
}

.merchant-cert-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.merchant-cert-pill.pending {
    background: #fff1d6;
    color: #a66507;
}

.merchant-cert-pill.approved {
    background: #dff5e6;
    color: #1f7a42;
}

.merchant-cert-pill.rejected {
    background: #ffe0e0;
    color: #b53a3a;
}

.merchant-cert-actions {
    margin-top: 16px;
}

.merchant-cert-progress-item,
.merchant-cert-remind-list div,
.merchant-cert-history div {
    padding: 14px 16px;
}

.merchant-cert-progress-item {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    row-gap: 8px;
}

.merchant-cert-progress-item strong,
.merchant-cert-remind-list strong,
.merchant-cert-history strong {
    color: #252b36;
}

.merchant-cert-progress-item p {
    grid-column: 1 / -1;
    margin: 0;
}

.merchant-cert-remind-list,
.merchant-cert-history {
    margin-top: 8px;
}

.merchant-cert-panels {
    margin-top: 16px;
}

.merchant-cert-empty {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8faff;
    border: 1px dashed #d8e2f1;
}

.merchant-goods-create-panel {
    padding: 0;
    background: transparent;
    border: 0;
}

.merchant-goods-list-page {
    display: grid;
    gap: 18px;
}

.merchant-goods-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.merchant-goods-list-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1f2530;
}

.merchant-goods-list-subtitle {
    margin: 8px 0 0;
    color: #7b879f;
    font-size: 0.93rem;
}

.merchant-goods-list-create-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-goods-list-search-card,
.merchant-goods-list-table-card {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
}

.merchant-goods-list-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.merchant-goods-list-stat-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #edf1f7;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 14px 30px rgba(31, 42, 68, 0.04);
    display: grid;
    gap: 10px;
}

.merchant-goods-list-stat-card span,
.merchant-goods-list-stat-card em {
    color: #7b879f;
    font-style: normal;
}

.merchant-goods-list-stat-card strong {
    color: #1f2a44;
    font-size: 1.7rem;
    line-height: 1;
}

.merchant-goods-list-stat-card.highlight {
    background: linear-gradient(135deg, #315efb 0%, #284fda 100%);
    border-color: transparent;
}

.merchant-goods-list-stat-card.highlight span,
.merchant-goods-list-stat-card.highlight em,
.merchant-goods-list-stat-card.highlight strong {
    color: #fff;
}

.merchant-goods-list-stat-card.warn {
    background: linear-gradient(180deg, #fffaf5 0%, #fff4e7 100%);
    border-color: #ffe4b8;
}

.merchant-goods-list-stat-card.warn strong {
    color: #d98a1f;
}

.merchant-goods-list-search-card {
    padding: 22px 24px;
}

.merchant-goods-list-search-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.merchant-goods-list-search-box {
    display: grid;
    gap: 10px;
}

.merchant-goods-list-search-box span {
    font-size: 0.88rem;
    color: #6f7890;
    font-weight: 600;
}

.merchant-goods-list-search-box.wide {
    min-width: 0;
}

.merchant-goods-list-search-box input,
.merchant-goods-list-search-box select {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #f1f3f8;
    border-radius: 10px;
    background: #f7f8fb;
    color: #303644;
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.merchant-goods-list-search-box select {
    appearance: none;
}

.merchant-goods-list-search-box input:focus,
.merchant-goods-list-search-box select:focus {
    outline: none;
    border-color: #cdd8f5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(69, 107, 255, 0.08);
}

.merchant-goods-list-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.merchant-goods-list-filter-tags,
.merchant-goods-list-search-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.merchant-goods-list-filter-chip {
    border: 1px solid #dbe4ff;
    background: #edf2ff;
    color: #315efb;
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.merchant-goods-list-filter-chip.active,
.merchant-goods-list-filter-chip:hover {
    background: #315efb;
    color: #fff;
    border-color: #315efb;
}

.merchant-goods-list-text-btn,
.merchant-goods-list-query-btn,
.merchant-goods-list-page-size,
.merchant-goods-list-page-arrow,
.merchant-goods-list-page-number,
.merchant-goods-detail-head button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.merchant-goods-list-text-btn {
    color: #4d5668;
}

.merchant-goods-list-query-btn {
    min-width: 92px;
    height: 48px;
    border-radius: 10px;
    background: #f6f7fb;
    color: #456bff;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.merchant-goods-list-query-btn:hover {
    background: #eef3ff;
    box-shadow: 0 10px 20px rgba(69, 107, 255, 0.08);
}

.merchant-goods-list-table-card {
    padding: 24px 24px 18px;
}

.merchant-goods-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.merchant-goods-list-toolbar-copy {
    display: grid;
    gap: 6px;
}

.merchant-goods-list-toolbar-copy strong {
    color: #1f2a44;
    font-size: 1rem;
}

.merchant-goods-list-toolbar-copy span {
    color: #7b879f;
    font-size: 0.92rem;
}

.merchant-goods-list-create-btn {
    min-width: 102px;
    justify-content: center;
    text-decoration: none;
}

.merchant-goods-list-create-btn.secondary {
    background: #edf2ff;
    color: #315efb;
}

.merchant-goods-list-scroll {
    overflow-x: auto;
    border-top: 1px solid #eff2f7;
}

.merchant-goods-list-table-head,
.merchant-goods-list-row {
    min-width: 1450px;
    display: grid;
    grid-template-columns: 330px 160px 170px 160px 170px 210px 150px 230px;
    align-items: stretch;
}

.merchant-goods-list-table-head {
    min-height: 58px;
    background: #fafbfd;
    color: #4f596e;
    font-size: 0.96rem;
    border-bottom: 1px solid #e9edf5;
}

.merchant-goods-list-table-head span {
    padding: 0 18px;
    display: flex;
    align-items: center;
}

.merchant-goods-list-row {
    min-height: 116px;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
    transition: background-color 0.2s ease;
}

.merchant-goods-list-row:hover {
    background: #fcfdff;
}

.merchant-goods-list-row > span,
.merchant-goods-list-row > div {
    padding: 18px;
    display: flex;
    align-items: center;
    color: #354055;
}

.merchant-goods-list-name-cell {
    gap: 16px;
}

.merchant-goods-list-name-cell > div {
    display: grid;
    gap: 8px;
}

.merchant-goods-list-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff5a71 0%, #ff334f 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.merchant-goods-list-name-cell strong {
    display: block;
    margin-bottom: 8px;
    color: #1f2530;
    font-size: 1rem;
    font-weight: 600;
}

.merchant-goods-list-name-cell span:last-child,
.merchant-goods-list-time-cell span {
    color: #7f879a;
}

.merchant-goods-list-name-cell em,
.merchant-goods-list-status-cell em,
.merchant-goods-list-meta-cell span {
    color: #7f879a;
    font-style: normal;
    font-size: 0.88rem;
}

.merchant-goods-list-mode-cell,
.merchant-goods-list-meta-cell,
.merchant-goods-list-status-cell {
    display: grid !important;
    gap: 8px;
    align-content: center;
}

.merchant-goods-list-meta-cell strong,
.merchant-goods-list-status-cell strong {
    color: #1f2530;
}

.merchant-goods-list-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.merchant-goods-list-mode-badge.fixed-combo {
    color: #315efb;
    background: #edf2ff;
}

.merchant-goods-list-mode-badge.single-dimension-sku {
    color: #9152ff;
    background: #f3edff;
}

.merchant-goods-list-mode-badge.duration-card-mode {
    color: #0f9d73;
    background: #e7f8f1;
}

.merchant-goods-list-mode-badge.general-voucher-mode {
    color: #ff7b2c;
    background: #fff1e7;
}

.merchant-goods-list-mode-badge.calendar-room-mode {
    color: #d14b7a;
    background: #ffeaf1;
}

.merchant-goods-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 600;
}

.merchant-goods-list-badge.on-sale {
    background: #e8f7ee;
    color: #15915b;
}

.merchant-goods-list-badge.review {
    background: #eef2ff;
    color: #456bff;
}

.merchant-goods-list-badge.off-sale {
    background: #f3f5f9;
    color: #798196;
}

.merchant-goods-list-time-cell {
    display: grid !important;
    gap: 10px;
    align-content: center;
}

.merchant-goods-list-actions {
    display: grid !important;
    gap: 8px;
    align-content: center;
    border-left: 1px solid #edf1f7;
}

.merchant-goods-list-actions a {
    color: #456bff;
    text-decoration: none;
    width: fit-content;
    transition: color 0.2s ease;
}

.merchant-goods-list-actions a:hover {
    color: #274cf2;
}

.merchant-goods-list-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.merchant-goods-list-footer-left,
.merchant-goods-list-pagination {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6f7890;
}

.merchant-goods-list-page-size {
    min-width: 128px;
    height: 48px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #f8f9fc;
    color: #333d51;
}

.merchant-goods-list-row[hidden] {
    display: none;
}

.merchant-goods-detail-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.merchant-goods-detail-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
}

.merchant-goods-detail-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -24px 0 44px rgba(15, 23, 42, 0.18);
    display: grid;
    grid-template-rows: auto 1fr;
}

.merchant-goods-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #edf1f7;
}

.merchant-goods-detail-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #315efb;
    font-size: 0.85rem;
    font-weight: 700;
}

.merchant-goods-detail-head h3 {
    margin: 0;
    color: #1f2a44;
    font-size: 1.18rem;
}

.merchant-goods-detail-head p {
    margin: 8px 0 0;
    color: #7b879f;
}

.merchant-goods-detail-head button {
    min-width: 72px;
    height: 38px;
    border-radius: 10px;
    background: #edf2ff;
    color: #315efb;
}

.merchant-goods-detail-body {
    padding: 24px;
    overflow: auto;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-goods-detail-body article {
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #f9fbff;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.merchant-goods-detail-body article.full {
    grid-column: 1 / -1;
}

.merchant-goods-detail-body span {
    color: #7b879f;
    font-size: 0.88rem;
}

.merchant-goods-detail-body strong,
.merchant-goods-detail-body p {
    margin: 0;
    color: #1f2a44;
    line-height: 1.7;
}

.merchant-goods-breadcrumb {
    margin-bottom: 10px;
    color: #7b8498;
    font-size: 0.88rem;
}

@media (max-width: 1200px) {
    .merchant-goods-list-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-goods-list-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .merchant-goods-list-header,
    .merchant-goods-list-search-actions,
    .merchant-goods-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .merchant-goods-list-overview,
    .merchant-goods-list-search-grid,
    .merchant-goods-detail-body {
        grid-template-columns: 1fr;
    }

    .merchant-goods-list-create-group {
        flex-wrap: wrap;
    }
}

.merchant-goods-form,
.merchant-goods-form-stack,
.merchant-goods-grid,
.merchant-goods-option-stack {
    display: grid;
    gap: 16px;
}

.merchant-goods-block {
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 14px;
    overflow: hidden;
}

.merchant-goods-category-block {
    overflow: visible;
}

.merchant-goods-block-title {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #25304a;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.merchant-goods-block-body {
    padding: 18px;
}

.merchant-goods-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-goods-field,
.merchant-goods-inline-field {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4d576c;
    font-size: 0.9rem;
}

.merchant-goods-field {
    width: 100%;
}

.merchant-goods-category-field {
    align-items: flex-start;
}

.merchant-goods-category-picker {
    position: relative;
    width: 100%;
    max-width: 620px;
}

.merchant-goods-category-trigger {
    position: relative;
    width: 100%;
    height: 38px;
    padding: 0 40px 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #fbfcff;
    color: #6a7488;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.merchant-goods-category-trigger::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8a93a6;
    border-bottom: 2px solid #8a93a6;
    transform: rotate(45deg);
}

.merchant-goods-category-trigger.is-selected {
    color: #25304a;
}

.merchant-goods-category-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 520px;
    max-width: 620px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(28, 40, 68, 0.16);
    overflow: hidden;
}

.merchant-goods-category-panel[hidden] {
    display: none !important;
}

.merchant-goods-category-column {
    min-height: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
}

.merchant-goods-category-column + .merchant-goods-category-column {
    border-left: 1px solid #edf1f7;
}

.merchant-goods-category-option,
.merchant-goods-category-empty {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    color: #4b556c;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    box-sizing: border-box;
}

.merchant-goods-category-option {
    position: relative;
    cursor: pointer;
}

.merchant-goods-category-option:hover,
.merchant-goods-category-option.active {
    background: #f2f6ff;
    color: #2b4fd6;
}

.merchant-goods-category-option.has-children::after {
    content: ">";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #97a0b3;
}

.merchant-goods-category-empty {
    color: #a0a8b8;
    cursor: default;
}

.merchant-goods-field select,
.merchant-goods-field input,
.merchant-goods-inline-text,
.merchant-goods-date-range input,
.merchant-goods-spec-row input,
.merchant-goods-spec-row select,
.merchant-goods-money-wrap input,
.merchant-goods-textarea-wrap textarea {
    border: 1px solid #dbe3f0;
    background: #fbfcff;
    border-radius: 8px;
    color: #25304a;
    font: inherit;
    box-sizing: border-box;
}

.merchant-goods-field select,
.merchant-goods-field input,
.merchant-goods-inline-text,
.merchant-goods-date-range input,
.merchant-goods-money-wrap input {
    height: 38px;
    padding: 0 12px;
}

.merchant-goods-label {
    width: 96px;
    flex: 0 0 96px;
    color: #4b556c;
}

.merchant-goods-label.required::after {
    content: "*";
    color: #f05b5b;
    margin-left: 2px;
}

.merchant-goods-radio,
.merchant-goods-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3d4660;
}

.merchant-goods-radio input,
.merchant-goods-checkbox input {
    accent-color: #4f73ff;
}

@media (max-width: 1024px) {
    .merchant-goods-category-panel {
        min-width: 100%;
        grid-template-columns: 1fr;
        max-width: none;
    }

    .merchant-goods-category-column {
        min-height: 0;
        max-height: 180px;
    }

    .merchant-goods-category-column + .merchant-goods-category-column {
        border-left: 0;
        border-top: 1px solid #edf1f7;
    }
}

.merchant-goods-chip {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d8e1ef;
    background: #fff;
    color: #42506b;
    cursor: pointer;
}

.merchant-goods-text-tip,
.merchant-goods-helper-text,
.merchant-goods-block-body p,
.merchant-goods-upload-box p {
    color: #8b93a7;
    font-size: 0.82rem;
    margin: 0;
}

#goods-create-1 .merchant-pro-builder {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    border: 1px solid #e6ecf7;
    border-radius: 20px;
    padding: 22px;
}

#goods-create-1 .merchant-pro-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.95fr);
    gap: 22px;
    align-items: start;
}

#goods-create-1 .merchant-pro-main {
    display: grid;
    gap: 18px;
}

#goods-create-1 .merchant-pro-card {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 52, 86, 0.05);
    overflow: hidden;
}

#goods-create-1 .merchant-pro-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#goods-create-1 .merchant-pro-card-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#goods-create-1 .merchant-pro-card-mark {
    width: 4px;
    min-width: 4px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4f73ff 0%, #80a3ff 100%);
    margin-top: 2px;
}

#goods-create-1 .merchant-pro-card-head h3,
#goods-create-1 .merchant-pro-card-head p,
#goods-create-1 .merchant-pro-subhead,
#goods-create-1 .merchant-pro-summary-box span,
#goods-create-1 .merchant-pro-summary-box strong,
#goods-create-1 .merchant-pro-discount-box,
#goods-create-1 .merchant-pro-rule-card,
#goods-create-1 .merchant-pro-preview-card,
#goods-create-1 .merchant-pro-preview-panel,
#goods-create-1 .merchant-pro-action-bar {
    margin: 0;
}

#goods-create-1 .merchant-pro-card-head h3 {
    font-size: 1rem;
    color: #1d2940;
    margin-bottom: 4px;
}

#goods-create-1 .merchant-pro-card-head p {
    color: #8390a7;
    font-size: 0.82rem;
    line-height: 1.5;
}

#goods-create-1 .merchant-pro-head-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3f63eb;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

#goods-create-1 .merchant-pro-card-body {
    padding: 18px;
    display: grid;
    gap: 18px;
}

#goods-create-1 .merchant-pro-field-stack,
#goods-create-1 .merchant-pro-detail-stack {
    display: grid;
    gap: 14px;
}

#goods-create-1 .merchant-pro-grid {
    display: grid;
    gap: 16px;
}

#goods-create-1 .merchant-pro-grid-basic {
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.95fr);
}

#goods-create-1 .merchant-pro-grid-media {
    grid-template-columns: minmax(320px, 0.86fr) minmax(260px, 0.94fr);
    align-items: start;
}

#goods-create-1 .merchant-pro-grid-price {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#goods-create-1 .merchant-pro-field-block {
    position: relative;
    display: grid;
    gap: 8px;
}

#goods-create-1 .merchant-pro-field-block input,
#goods-create-1 .merchant-pro-field-block select,
#goods-create-1 .merchant-pro-field-block textarea,
#goods-create-1 .merchant-pro-time-row input,
#goods-create-1 .merchant-pro-group-head input,
#goods-create-1 .merchant-pro-group-head select,
#goods-create-1 .merchant-pro-item-row input,
#goods-create-1 .merchant-pro-item-row select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e2f0;
    background: #fbfcff;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    color: #24324b;
    box-sizing: border-box;
}

#goods-create-1 .merchant-pro-field-block textarea {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

#goods-create-1 .merchant-pro-field-block em {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #9ba6b8;
    font-size: 0.74rem;
    font-style: normal;
}

#goods-create-1 .merchant-pro-field-label {
    font-size: 0.86rem;
    color: #42506b;
    font-weight: 600;
}

#goods-create-1 .merchant-pro-field-label.required::after {
    content: "*";
    color: #f05b5b;
    margin-left: 2px;
}

#goods-create-1 .merchant-pro-tip-box,
#goods-create-1 .merchant-pro-discount-box,
#goods-create-1 .merchant-pro-summary-box,
#goods-create-1 .merchant-pro-rule-card,
#goods-create-1 .merchant-pro-editor-foot {
    border-radius: 14px;
    padding: 14px 16px;
}

#goods-create-1 .merchant-pro-tip-box {
    background: #f5f8fd;
    border: 1px solid #e8eef8;
}

#goods-create-1 .merchant-pro-tip-box strong,
#goods-create-1 .merchant-pro-subhead,
#goods-create-1 .merchant-pro-rule-card strong,
#goods-create-1 .merchant-pro-discount-box strong,
#goods-create-1 .merchant-pro-editor-foot strong {
    display: block;
    color: #30405e;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

#goods-create-1 .merchant-pro-tip-box p,
#goods-create-1 .merchant-pro-inline-tip,
#goods-create-1 .merchant-pro-discount-box p,
#goods-create-1 .merchant-pro-rule-card p,
#goods-create-1 .merchant-pro-group-foot span,
#goods-create-1 .merchant-pro-editor-foot span {
    color: #8591a8;
    font-size: 0.78rem;
    line-height: 1.6;
}

#goods-create-1 .merchant-pro-cover-panel {
    display: grid;
    gap: 12px;
    max-width: 460px;
}

#goods-create-1 .merchant-pro-cover-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #eef3fb center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(220, 229, 243, 0.9);
}

#goods-create-1 .merchant-pro-cover-swatches,
#goods-create-1 .merchant-pro-banner-list,
#goods-create-1 .merchant-pro-chip-row,
#goods-create-1 .merchant-pro-editor-toolbar,
#goods-create-1 .merchant-pro-preview-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#goods-create-1 .merchant-pro-swatches-item,
#goods-create-1 .merchant-pro-banner-thumb,
#goods-create-1 .merchant-pro-banner-add {
    width: 70px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid #d8e2f0;
    background: #eef3fb center/cover no-repeat;
}

#goods-create-1 .merchant-pro-swatches-item {
    cursor: pointer;
}

#goods-create-1 .merchant-pro-swatches-item.active {
    border-color: #4f73ff;
    box-shadow: 0 0 0 3px rgba(79, 115, 255, 0.14);
}

#goods-create-1 .merchant-pro-banner-add {
    background: #fff;
    color: #4f73ff;
    font-size: 1.4rem;
    cursor: pointer;
}

#goods-create-1 .merchant-pro-mini-btn {
    height: 34px;
    padding: 0 14px;
}

#goods-create-1 .merchant-pro-group-list {
    display: grid;
    gap: 14px;
}

#goods-create-1 .merchant-pro-group {
    border: 1px solid #e7edf7;
    background: #fafcff;
    border-radius: 16px;
    overflow: hidden;
}

#goods-create-1 .merchant-pro-group-head,
#goods-create-1 .merchant-pro-group-foot,
#goods-create-1 .merchant-pro-item-row,
#goods-create-1 .merchant-pro-table-head,
#goods-create-1 .merchant-pro-preview-price-row,
#goods-create-1 .merchant-pro-preview-meta,
#goods-create-1 .merchant-pro-preview-total-row,
#goods-create-1 .merchant-pro-phone-bottombar {
    display: grid;
    align-items: center;
}

#goods-create-1 .merchant-pro-group-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #ecf1f8;
    background: #f5f8fd;
}

#goods-create-1 .merchant-pro-group-main {
    display: grid;
    grid-template-columns: 28px minmax(160px, 1fr) minmax(140px, 180px);
    gap: 10px;
    align-items: center;
}

#goods-create-1 .merchant-pro-group-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #4f73ff;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#goods-create-1 .merchant-pro-link {
    border: 0;
    background: transparent;
    color: #4f73ff;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

#goods-create-1 .merchant-pro-link.danger,
#goods-create-1 .merchant-pro-icon-delete {
    color: #e45e5e;
}

#goods-create-1 .merchant-pro-table {
    padding: 0 16px 12px;
}

#goods-create-1 .merchant-pro-table-head,
#goods-create-1 .merchant-pro-item-row {
    grid-template-columns: 42px minmax(160px, 2fr) 108px 82px 88px 92px 52px;
    gap: 10px;
}

#goods-create-1 .merchant-pro-table-head {
    padding: 12px 0 8px;
    color: #8c98ab;
    font-size: 0.74rem;
}

#goods-create-1 .merchant-pro-item-row {
    padding: 10px 0;
    border-top: 1px solid #edf2f8;
}

#goods-create-1 .merchant-pro-item-index {
    color: #94a0b3;
    font-weight: 600;
    text-align: center;
}

#goods-create-1 .merchant-pro-item-row strong {
    color: #24324b;
    font-size: 0.82rem;
}

#goods-create-1 .merchant-pro-icon-delete {
    width: 34px;
    height: 34px;
    border: 1px solid #f0d7d7;
    border-radius: 10px;
    background: #fff6f6;
    cursor: pointer;
}

#goods-create-1 .merchant-pro-group-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px 14px;
    border-top: 1px solid #edf2f8;
}

#goods-create-1 .merchant-pro-summary-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    background: #ebfaf2;
    border: 1px solid #cfeeda;
}

#goods-create-1 .merchant-pro-summary-box em,
#goods-create-1 .merchant-pro-discount-box em {
    color: #0f9a66;
    font-style: normal;
    font-weight: 700;
}

#goods-create-1 .merchant-pro-discount-box {
    background: #fff8f1;
    border: 1px solid #ffe7ca;
}

#goods-create-1 .merchant-pro-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#goods-create-1 .merchant-pro-rule-card {
    background: #f7f9fd;
    border: 1px solid #e8eef8;
}

#goods-create-1 .merchant-pro-choice-row,
#goods-create-1 .merchant-pro-time-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

#goods-create-1 .merchant-pro-choice-row.vertical {
    display: grid;
    gap: 10px;
}

#goods-create-1 .merchant-pro-choice-row label,
#goods-create-1 .merchant-pro-time-row span {
    color: #4f5c74;
    font-size: 0.82rem;
}

#goods-create-1 .merchant-pro-chip-row span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dce5f3;
    font-size: 0.78rem;
    color: #73809a;
}

#goods-create-1 .merchant-pro-chip-row span.active {
    color: #3559e2;
    background: #eef4ff;
    border-color: #bfd0ff;
}

#goods-create-1 .merchant-pro-editor {
    border: 1px solid #e2e9f4;
    border-radius: 16px;
    overflow: hidden;
}

#goods-create-1 .merchant-pro-editor-toolbar {
    padding: 12px;
    background: #f6f9fd;
    border-bottom: 1px solid #e9eff8;
}

#goods-create-1 .merchant-pro-editor-toolbar button {
    border: 1px solid #d7e0ef;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    color: #40506d;
    font: inherit;
    cursor: pointer;
}

#goods-create-1 .merchant-pro-editor textarea {
    width: 100%;
    min-height: 180px;
    border: 0;
    padding: 14px 16px;
    resize: vertical;
    background: #fffdfa;
    color: #2a3550;
    font: inherit;
    box-sizing: border-box;
}

#goods-create-1 .merchant-pro-editor-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    background: #f1f6ff;
    border-top: 1px solid #e1ebfd;
}

#goods-create-1 .merchant-pro-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#goods-create-1 .merchant-pro-preview-shell {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 14px;
}

#goods-create-1 .merchant-pro-preview-tabs {
    padding: 8px;
    background: linear-gradient(180deg, rgba(223, 230, 243, 0.95) 0%, rgba(213, 222, 238, 0.85) 100%);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px rgba(147, 163, 192, 0.2);
}

#goods-create-1 .merchant-pro-preview-tabs button {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5b6986;
    padding: 14px 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s ease;
}

#goods-create-1 .merchant-pro-preview-tabs button.active {
    background: #fff;
    color: #3f63eb;
    box-shadow: 0 10px 24px rgba(58, 82, 135, 0.12);
}

#goods-create-1 .merchant-pro-phone {
    position: relative;
    background: #101319;
    border-radius: 40px;
    padding: 10px;
    border: 5px solid #222b35;
    box-shadow: 0 28px 50px rgba(18, 24, 38, 0.24);
}

#goods-create-1 .merchant-pro-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 110px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #06080c;
    z-index: 2;
}

#goods-create-1 .merchant-pro-phone-screen {
    min-height: 640px;
    border-radius: 30px;
    background: linear-gradient(180deg, #f8f9fd 0%, #f1f4fb 100%);
    overflow: hidden;
    position: relative;
    padding-bottom: 62px;
}

#goods-create-1 .merchant-pro-phone-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 16px 14px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #ebeff6;
}

#goods-create-1 .merchant-pro-phone-topbar strong {
    color: #1f2c45;
    font-size: 0.8rem;
}

#goods-create-1 .merchant-pro-phone-topbar div {
    display: flex;
    gap: 6px;
}

#goods-create-1 .merchant-pro-phone-topbar span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #eff3f9;
}

#goods-create-1 .merchant-pro-preview-panel {
    padding: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
}

#goods-create-1 .merchant-pro-preview-panel[hidden] {
    display: none !important;
}

#goods-create-1 .merchant-pro-preview-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #eaeff6 center/cover no-repeat;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 38, 56, 0.14);
}

#goods-create-1 .merchant-pro-preview-badge,
#goods-create-1 .merchant-pro-preview-cover small {
    position: absolute;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    border-radius: 999px;
    font-size: 0.64rem;
    padding: 5px 8px;
}

#goods-create-1 .merchant-pro-preview-badge {
    top: 12px;
    left: 12px;
    background: #e93e68;
}

#goods-create-1 .merchant-pro-preview-cover small {
    right: 12px;
    bottom: 12px;
}

#goods-create-1 .merchant-pro-preview-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #edf1f7;
    padding: 18px;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(131, 146, 176, 0.1);
}

#goods-create-1 .merchant-pro-preview-card.slim {
    gap: 8px;
}

#goods-create-1 .merchant-pro-preview-card.compact-guarantee {
    gap: 10px;
    padding: 14px 16px;
}

#goods-create-1 .merchant-pro-preview-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f3f8;
}

#goods-create-1 .merchant-pro-preview-section-head h4 {
    margin: 0;
}

#goods-create-1 .merchant-pro-preview-section-head span {
    font-size: 0.62rem;
    color: #97a1b5;
    font-weight: 700;
}

#goods-create-1 .merchant-pro-preview-notice-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6ff 0%, #f4f8ff 100%);
    border: 1px solid #dceaff;
}

#goods-create-1 .merchant-pro-preview-notice-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #dfeeff;
    color: #2f76db;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

#goods-create-1 .merchant-pro-preview-notice-copy {
    display: grid;
    gap: 3px;
}

#goods-create-1 .merchant-pro-preview-notice-copy strong {
    color: #27486d;
    font-size: 0.72rem;
}

#goods-create-1 .merchant-pro-preview-notice-copy span {
    color: #7a8ba5;
    font-size: 0.62rem;
    line-height: 1.45;
}

#goods-create-1 .merchant-pro-preview-notice-card button {
    border: 0;
    background: transparent;
    color: #2e6fe1;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
}

#goods-create-1 .merchant-pro-preview-price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

#goods-create-1 .merchant-pro-preview-price-row b {
    display: block;
    color: #f14b5d;
    font-size: 0.76rem;
}

#goods-create-1 .merchant-pro-preview-price-row b em,
#goods-create-1 .merchant-pro-phone-bottombar strong {
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 800;
    margin-left: 4px;
}

#goods-create-1 .merchant-pro-preview-price-row span,
#goods-create-1 .merchant-pro-preview-meta span,
#goods-create-1 .merchant-pro-preview-list span,
#goods-create-1 .merchant-pro-preview-notes,
#goods-create-1 .merchant-pro-preview-html,
#goods-create-1 .merchant-pro-phone-bottombar span {
    color: #7e8ba2;
    font-size: 0.72rem;
    line-height: 1.6;
}

#goods-create-1 .merchant-pro-preview-price-row strong {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3f5;
    border: 1px solid #ffd5dc;
    color: #e25063;
    font-size: 0.7rem;
    align-self: start;
}

#goods-create-1 .merchant-pro-preview-card h4 {
    margin: 0;
    color: #1d2a42;
    font-size: 0.92rem;
}

#goods-create-1 .merchant-pro-preview-card p {
    margin: 0;
}

#goods-create-1 .merchant-pro-preview-meta,
#goods-create-1 .merchant-pro-preview-total-row,
#goods-create-1 .merchant-pro-phone-bottombar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#goods-create-1 .merchant-pro-preview-mini-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#goods-create-1 .merchant-pro-preview-mini-head strong {
    color: #26446e;
    font-size: 0.8rem;
}

#goods-create-1 .merchant-pro-preview-mini-head span {
    color: #8b97ad;
    font-size: 0.68rem;
}

#goods-create-1 .merchant-pro-preview-list {
    display: grid;
    gap: 8px;
}

#goods-create-1 .merchant-pro-preview-list div {
    padding: 7px 0;
    border-bottom: 1px dashed #edf1f7;
}

#goods-create-1 .merchant-pro-preview-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#goods-create-1 .merchant-pro-preview-list div:last-child {
    border-bottom: 0;
}

#goods-create-1 .merchant-pro-preview-guarantee-title {
    font-size: 0.66rem;
    color: #97a1b2;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#goods-create-1 .merchant-pro-preview-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#goods-create-1 .merchant-pro-preview-guarantee-grid span {
    padding: 8px 6px;
    border-radius: 12px;
    background: #edf9f2;
    color: #18945f;
    text-align: center;
    font-size: 0.64rem;
    font-weight: 800;
}

#goods-create-1 .merchant-pro-preview-total-row strong {
    color: #123d68;
    font-size: 0.9rem;
    text-align: right;
}

#goods-create-1 .merchant-pro-preview-bullet-list {
    margin: 0;
    padding-left: 20px;
    color: #4e5c73;
    display: grid;
    gap: 8px;
}

#goods-create-1 .merchant-pro-preview-refund-box {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff4f6;
    border: 1px solid #ffdbe1;
    color: #d0576a;
    font-size: 0.72rem;
    line-height: 1.6;
}

#goods-create-1 .merchant-pro-preview-notes {
    white-space: pre-line;
    color: #58677f;
    line-height: 1.8;
}

#goods-create-1 .merchant-pro-preview-html {
    line-height: 1.78;
    color: #55627b;
}

#goods-create-1 .merchant-pro-preview-html h2,
#goods-create-1 .merchant-pro-preview-html p,
#goods-create-1 .merchant-pro-preview-html ul {
    margin: 0 0 10px;
}

#goods-create-1 .merchant-pro-preview-html h2 {
    color: #24344e;
    font-size: 1rem;
}

#goods-create-1 .merchant-pro-preview-html blockquote {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 4px solid #ff8da1;
    background: #fff6f8;
    border-radius: 12px;
}

#goods-create-1 .merchant-pro-preview-card.accent-indigo {
    box-shadow: 0 10px 28px rgba(94, 113, 182, 0.08);
}

#goods-create-1 .merchant-pro-preview-card.accent-amber {
    box-shadow: 0 10px 28px rgba(191, 149, 66, 0.08);
}

#goods-create-1 .merchant-pro-preview-card.accent-rose {
    box-shadow: 0 10px 28px rgba(203, 95, 118, 0.08);
}

#goods-create-1 .merchant-pro-preview-card.accent-indigo .merchant-pro-preview-section-head h4::before,
#goods-create-1 .merchant-pro-preview-card.accent-amber .merchant-pro-preview-section-head h4::before,
#goods-create-1 .merchant-pro-preview-card.accent-rose .merchant-pro-preview-section-head h4::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: -2px;
}

#goods-create-1 .merchant-pro-preview-card.accent-indigo .merchant-pro-preview-section-head h4::before {
    background: #586cf2;
}

#goods-create-1 .merchant-pro-preview-card.accent-amber .merchant-pro-preview-section-head h4::before {
    background: #f1a53c;
}

#goods-create-1 .merchant-pro-preview-card.accent-rose .merchant-pro-preview-section-head h4::before {
    background: #ef5e7d;
}

#goods-create-1 .merchant-pro-preview-html ul {
    padding-left: 18px;
}

#goods-create-1 .merchant-pro-phone-bottombar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #ebeff6;
    box-shadow: 0 -10px 24px rgba(147, 159, 184, 0.12);
}

#goods-create-1 .merchant-pro-phone-bottombar div {
    display: grid;
}

#goods-create-1 .merchant-pro-phone-bottombar strong {
    color: #f14b5d;
    line-height: 1;
}

#goods-create-1 .merchant-pro-phone-bottombar button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4a62 0%, #ff6b56 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 18px rgba(255, 96, 108, 0.2);
}

@media (max-width: 1280px) {
    #goods-create-1 .merchant-pro-builder-layout {
        grid-template-columns: 1fr;
    }

    #goods-create-1 .merchant-pro-preview-shell {
        position: static;
    }
}

@media (max-width: 1024px) {
    #goods-create-1 .merchant-pro-grid-basic,
    #goods-create-1 .merchant-pro-grid-media,
    #goods-create-1 .merchant-pro-grid-price,
    #goods-create-1 .merchant-pro-rule-grid,
    #goods-create-1 .merchant-pro-summary-box,
    #goods-create-1 .merchant-pro-editor-foot {
        grid-template-columns: 1fr;
    }

    #goods-create-1 .merchant-pro-group-main,
    #goods-create-1 .merchant-pro-table-head,
    #goods-create-1 .merchant-pro-item-row,
    #goods-create-1 .merchant-pro-preview-meta,
    #goods-create-1 .merchant-pro-preview-total-row,
    #goods-create-1 .merchant-pro-phone-bottombar {
        grid-template-columns: 1fr;
    }

    #goods-create-1 .merchant-pro-group-head,
    #goods-create-1 .merchant-pro-group-foot,
    #goods-create-1 .merchant-pro-preview-price-row {
        grid-template-columns: 1fr;
    }

    #goods-create-1 .merchant-pro-table-head {
        display: none;
    }

    #goods-create-1 .merchant-pro-item-row {
        padding: 14px;
        border: 1px solid #e8edf6;
        border-radius: 14px;
        margin-top: 10px;
        background: #fff;
    }
}

.merchant-goods-combo-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 12px;
}

.merchant-goods-input-wrap,
.merchant-goods-textarea-wrap {
    position: relative;
    flex: 1;
}

.merchant-goods-input-wrap input,
.merchant-goods-textarea-wrap textarea {
    width: 100%;
    padding-right: 54px;
}

.merchant-goods-input-wrap em,
.merchant-goods-textarea-wrap em {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a7b8;
    font-style: normal;
    font-size: 0.78rem;
}

.merchant-goods-textarea-wrap em {
    top: auto;
    bottom: 12px;
    transform: none;
}

.merchant-goods-spec-box,
.merchant-goods-schedule-box {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #ebeff6;
    background: #fbfcff;
}

.merchant-goods-spec-row,
.merchant-goods-spec-actions,
.merchant-goods-summary-bar,
.merchant-goods-money-wrap,
.merchant-goods-date-range,
.merchant-goods-inline-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-goods-spec-row {
    flex-wrap: wrap;
}

.merchant-goods-icon-btn,
.merchant-goods-link-group button,
.merchant-goods-summary-bar button {
    border: 0;
    background: transparent;
    color: #4f73ff;
    cursor: pointer;
}

.merchant-goods-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef3ff;
    color: #4f73ff;
}

.merchant-goods-spec-row input:first-of-type {
    flex: 1 1 180px;
}

.merchant-goods-spec-row input:last-of-type {
    width: 120px;
}

.merchant-goods-counter,
.merchant-goods-unit {
    color: #8d95a8;
    font-size: 0.82rem;
}

.merchant-goods-spec-actions {
    justify-content: space-between;
    margin-top: 10px;
}

.merchant-goods-link-group {
    display: inline-flex;
    gap: 14px;
}

.merchant-goods-summary-bar {
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5ff;
    color: #73809d;
    font-size: 0.84rem;
}

.merchant-goods-money-wrap input {
    flex: 1;
}

.merchant-goods-upload-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.merchant-goods-upload-box {
    display: grid;
    gap: 10px;
}

.merchant-goods-upload-card {
    width: 84px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px dashed #d7dfed;
    background: #fbfcff;
    color: #8c95a9;
    cursor: pointer;
    font-size: 1.4rem;
}

.merchant-goods-upload-card small {
    font-size: 0.72rem;
}

.merchant-goods-footer-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-top: 8px;
}

.merchant-goods-footer-actions .merchant-ghost-btn,
.merchant-goods-footer-actions .merchant-primary-btn {
    min-width: 92px;
}

.merchant-goods-schedule-box p {
    margin-top: 8px;
}

.merchant-goods-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

.merchant-goods-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.merchant-goods-switch span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d9e2f4;
    position: relative;
}

.merchant-goods-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 48, 92, 0.18);
}

.merchant-goods-switch input:checked + span {
    background: #4f73ff;
}

.merchant-goods-switch input:checked + span::after {
    left: 21px;
}

.merchant-goods-inline-field.vertical-start {
    align-items: flex-start;
}

.merchant-goods-option-stack {
    gap: 10px;
}

.merchant-goods-option-stack.horizontal-options {
    display: flex;
    flex-wrap: wrap;
}

.merchant-goods-inline-text {
    width: 180px;
}

.merchant-goods-notice-field {
    align-items: flex-start;
}

.merchant-goods-textarea-wrap {
    flex: 1;
}

.merchant-goods-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 54px 12px 12px;
    resize: vertical;
}

.merchant-feature-list {
    margin: 14px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #4d5669;
}

.merchant-process-grid {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-process-grid div {
    padding: 14px;
    border-radius: 12px;
    background: #f8faff;
    border: 1px solid #edf2fb;
}

.merchant-finance-strip {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8faff;
    border: 1px solid #edf2fb;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.merchant-finance-strip div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef2f8;
}

.merchant-toolbar-panel,
.merchant-table-card {
    background: #fff;
    border: 1px solid #eceff4;
    border-radius: 10px;
}

.merchant-toolbar-panel {
    margin-top: 14px;
    padding: 12px 16px;
}

.merchant-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.merchant-search-box {
    height: 36px;
    width: min(420px, 100%);
    border-radius: 8px;
    background: #f5f7fb;
    border: 1px solid #eef1f6;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.merchant-search-box input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    color: #2d3442;
}

.merchant-search-icon {
    width: 14px;
    height: 14px;
    border: 2px solid #a1a9b8;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.merchant-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 6px;
    height: 2px;
    background: #a1a9b8;
    transform: rotate(45deg);
    border-radius: 999px;
}

.merchant-filter-group {
    gap: 8px;
}

.merchant-filter-btn,
.merchant-page-btn,
.merchant-primary-btn,
.merchant-text-btn {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.merchant-filter-btn {
    min-width: 40px;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: transparent;
    color: #7b8497;
}

.merchant-filter-btn.active {
    background: #f1f4fa;
    color: #2f3644;
}

.merchant-table-card {
    margin-top: 18px;
    overflow: hidden;
}

.merchant-card-head,
.merchant-table-head,
.merchant-table-footer {
    padding-left: 20px;
    padding-right: 20px;
}

.merchant-card-head {
    padding-top: 18px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.merchant-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.merchant-card-actions {
    gap: 10px;
}

.merchant-text-btn {
    height: 34px;
    padding: 0 10px;
    background: transparent;
    color: #8d96ab;
}

.merchant-primary-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #5070ff;
    color: #fff;
}

.merchant-table-head {
    min-height: 44px;
    display: grid;
    grid-template-columns: 36px 2.2fr 1fr 1fr 1fr 0.9fr;
    align-items: center;
    color: #666f82;
    font-size: 0.9rem;
    background: #fafbfd;
    border-top: 1px solid #eef1f6;
    border-bottom: 1px solid #eef1f6;
}

.checkbox-cell {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #f0f2f7;
    border: 1px solid #e3e7f0;
}

.merchant-col-note {
    padding-left: 10px;
}

.merchant-empty-state {
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.merchant-empty-box {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.merchant-empty-illustration {
    width: 84px;
    height: 84px;
    border: 2px solid #eceff4;
    border-radius: 10px;
    position: relative;
    background: linear-gradient(180deg, #fbfcfe 0%, #f2f5fa 100%);
}

.merchant-empty-illustration::before,
.merchant-empty-illustration::after {
    content: "";
    position: absolute;
    top: 18px;
    width: 18px;
    height: 54px;
    background: #f0f3f8;
    border: 1px solid #e4e8f0;
}

.merchant-empty-illustration::before {
    left: 16px;
}

.merchant-empty-illustration::after {
    right: 16px;
}

.merchant-empty-illustration span {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 24px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #111;
}

.merchant-table-footer {
    min-height: 54px;
    border-top: 1px solid #eef1f6;
    justify-content: space-between;
    gap: 16px;
}

.merchant-page-size {
    min-width: 86px;
    height: 34px;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4b5568;
}

.merchant-pagination {
    gap: 8px;
}

.merchant-page-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eef2ff;
    color: #5070ff;
}

@media (max-width: 1100px) {
    .merchant-header {
        grid-template-columns: 1fr;
        height: auto;
        padding: 14px 18px;
    }
    .merchant-body {
        grid-template-columns: 1fr;
    }


@media (max-width: 720px) {
    .merchant-overview-ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-overview-ranking-thumb {
        min-height: 88px;
    }
}

@media (max-width: 560px) {
    .merchant-overview-ranking-list {
        grid-template-columns: 1fr;
    }
}
    .merchant-login-main {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 100%);
    }

    .merchant-login-card-wrap {
        justify-content: flex-start;
    }

    .merchant-sidebar-panel {
        border-right: 0;
        border-bottom: 1px solid #eceff4;
    }

    .merchant-side-layout {
        grid-template-columns: 1fr;
    }

    .merchant-primary-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .merchant-primary-item {
        justify-content: center;
        text-align: center;
    }

    .merchant-primary-item span:last-child {
        flex: 0 1 auto;
    }
}

@media (max-width: 760px) {
    .merchant-main-panel {
        padding: 0 12px 12px;
    }

    .merchant-toolbar-row,
    .merchant-card-head,
    .merchant-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .merchant-table-head {
        grid-template-columns: 36px 1.6fr 1fr 1fr;
        row-gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .merchant-table-head span:nth-child(5),
    .merchant-table-head span:nth-child(6) {
        display: none;
    }

    .merchant-overview-toolbar,
    .merchant-overview-heading,
    .merchant-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .merchant-primary-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-primary-item {
        min-height: 60px;
        padding: 10px 6px;
        justify-content: center;
    }

    .merchant-secondary-panel {
        padding: 10px 8px;
    }

    .merchant-collab-summary,
    .merchant-collab-card-grid,
    .merchant-collab-card-grid.two-columns,
    .merchant-collab-quick-grid,
    .merchant-collab-process,
    .merchant-collab-form-grid {
        grid-template-columns: 1fr;
    }

    .merchant-kpi-grid,
    .merchant-module-matrix,
    .merchant-overview-metrics,
    .merchant-overview-ranking,
    .merchant-cert-status-grid,
    .merchant-cert-workspace,
    .merchant-detail-grid.cols-3,
    .merchant-detail-grid.cols-2,
    .merchant-goods-grid.two-columns,
    .merchant-cert-form-grid.cols-2,
    .merchant-cert-form-grid.cols-3,
    .merchant-cert-upload-grid,
    .merchant-process-grid,
    .merchant-finance-strip {
        grid-template-columns: 1fr;
    }

    .merchant-goods-combo-row,
    .merchant-goods-upload-row {
        grid-template-columns: 1fr;
    }

    .merchant-overview-chart {
        grid-template-columns: 1fr;
    }

    .merchant-overview-ranking-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-overview-ranking-item,
    .merchant-overview-ranking-item.wide {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .merchant-overview-ranking-thumb {
        min-height: 96px;
    }

    .merchant-overview-y-axis {
        display: none;
    }

    .merchant-overview-date {
        min-width: 0;
        width: 100%;
    }

    .merchant-goods-field,
    .merchant-goods-inline-field,
    .merchant-goods-spec-row,
    .merchant-goods-spec-actions,
    .merchant-goods-summary-bar,
    .merchant-goods-date-range,
    .merchant-goods-inline-input,
    .merchant-goods-footer-actions,
    .merchant-goods-option-stack.horizontal-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .merchant-goods-label {
        width: auto;
        flex-basis: auto;
    }

    .merchant-goods-inline-text,
    .merchant-goods-spec-row input:last-of-type {
        width: 100%;
    }

    .merchant-detail-card.wide {
        grid-column: span 1;
    }

    .merchant-cert-doc-head,
    .merchant-cert-panel-head,
    .merchant-cert-actions,
    .merchant-cert-remind-list div,
    .merchant-cert-history div {
        flex-direction: column;
        align-items: flex-start;
    }
}

.merchant-marketing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 26px 28px 0;
    padding: 24px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.merchant-marketing-head h2 {
    margin: 8px 0 6px;
    font-size: 24px;
    color: #1f2937;
}

.merchant-marketing-head p {
    margin: 0;
    max-width: 720px;
    color: #6a7383;
    line-height: 1.6;
}

.merchant-marketing-filter-card,
.merchant-marketing-table-card {
    margin: 18px 28px 0;
    padding: 20px 24px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.merchant-marketing-filter-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: end;
}

.merchant-marketing-field {
    display: grid;
    gap: 8px;
}

.merchant-marketing-field span {
    color: #6a7383;
    font-size: 14px;
}

.merchant-marketing-field input,
.merchant-marketing-field select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    font: inherit;
    color: #354055;
}

.merchant-marketing-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.merchant-marketing-filter-actions button {
    min-width: 92px;
    min-height: 44px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.merchant-marketing-filter-actions .is-primary {
    border-color: #4b6fff;
    background: #4b6fff;
    color: #fff;
}

.merchant-marketing-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.merchant-marketing-table {
    border: 1px solid #edf1f7;
    border-radius: 12px;
    overflow: hidden;
}

.merchant-marketing-table-head,
.merchant-marketing-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    min-height: 64px;
}

.merchant-marketing-table-head {
    min-height: 56px;
    background: #fafbfd;
    color: #535d6b;
    font-size: 14px;
    border-bottom: 1px solid #edf1f7;
}

.merchant-marketing-row {
    border-bottom: 1px solid #edf1f7;
    background: #fff;
    font-size: 14px;
    color: #354055;
}

.merchant-collab-page {
    min-width: 0;
}

.merchant-collab-summary {
    margin: 18px 28px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.merchant-collab-summary-card,
.merchant-collab-card,
.merchant-collab-process-card,
.merchant-collab-quick-card {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.merchant-collab-summary-card {
    padding: 18px 20px;
    display: grid;
    gap: 8px;
}

.merchant-collab-summary-card span,
.merchant-collab-meta,
.merchant-collab-inline-tip {
    color: #6a7383;
    font-size: 13px;
}

.merchant-collab-summary-card strong {
    font-size: 30px;
    line-height: 1;
    color: #1f2937;
}

.merchant-collab-summary-card p,
.merchant-collab-card p,
.merchant-collab-process-card p,
.merchant-collab-quick-card span {
    margin: 0;
    color: #6a7383;
    line-height: 1.65;
}

.merchant-collab-card-grid,
.merchant-collab-quick-grid,
.merchant-collab-process {
    margin: 18px 28px 0;
    display: grid;
    gap: 16px;
}

.merchant-collab-card-grid,
.merchant-collab-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merchant-collab-card-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-collab-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.merchant-collab-card,
.merchant-collab-process-card,
.merchant-collab-quick-card {
    padding: 22px 24px;
}

.merchant-collab-card.is-alert {
    border-color: #ffd8b5;
    background: linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
}

.merchant-collab-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.merchant-collab-card-head h3,
.merchant-collab-process-card strong,
.merchant-collab-quick-card strong {
    margin: 0;
    color: #1f2937;
}

.merchant-collab-card-head span,
.merchant-collab-process-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #466cff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.merchant-collab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
}

.merchant-collab-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #354055;
    display: grid;
    gap: 8px;
}

.merchant-collab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.merchant-collab-actions a {
    color: #466cff;
    font-weight: 600;
}

.merchant-collab-inline-tip {
    display: block;
    margin-top: 6px;
}

.merchant-collab-form-card {
    display: grid;
    gap: 18px;
}

.merchant-collab-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.merchant-collab-field-wide {
    grid-column: 1 / -1;
}

.merchant-marketing-field textarea {
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    font: inherit;
    color: #354055;
    resize: vertical;
}

.merchant-collab-quick-card {
    display: grid;
    gap: 10px;
}

.merchant-collab-quick-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.merchant-collab-quick-card:hover,
.merchant-collab-quick-card.is-active {
    transform: translateY(-2px);
    border-color: #d9e4ff;
    box-shadow: 0 12px 28px rgba(70, 108, 255, 0.12);
}

.cols-collab-8 {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.9fr 0.9fr 1fr;
}

.cols-collab-7 {
    grid-template-columns: 1.7fr 1fr 1.5fr 1fr 1fr 1fr 1fr;
}

.cols-collab-6 {
    grid-template-columns: 1.8fr 1fr 1.5fr 1fr 1fr 1fr;
}

.merchant-collab-process-card {
    position: relative;
    overflow: hidden;
}

.merchant-collab-process-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #4b6fff 0%, #7fa1ff 100%);
}

.merchant-collab-process-card strong {
    display: block;
    margin: 14px 0 10px;
    font-size: 17px;
}

.merchant-collab-timeline-panel {
    margin-top: 16px;
}

.merchant-collab-timeline-panel .merchant-system-card-head {
    margin-bottom: 20px;
}

.merchant-collab-timeline-panel button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.merchant-marketing-row:last-child {
    border-bottom: none;
}

.merchant-marketing-row:hover {
    background: #fcfdff;
}

.merchant-marketing-row strong {
    color: #1f2937;
}

.merchant-marketing-row[hidden] {
    display: none;
}

.merchant-marketing-table-head.cols-coupon,
.merchant-marketing-row.cols-coupon {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 1fr 1.5fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-reduction,
.merchant-marketing-row.cols-reduction {
    grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr 1fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-gift,
.merchant-marketing-row.cols-gift {
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr 1.2fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-discount,
.merchant-marketing-row.cols-discount {
    grid-template-columns: 1.2fr 0.75fr 1.2fr 1.2fr 1fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-seckill,
.merchant-marketing-row.cols-seckill {
    grid-template-columns: 1.2fr 1.2fr 0.75fr 0.9fr 1.1fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-promotion,
.merchant-marketing-row.cols-promotion {
    grid-template-columns: 1.3fr 0.9fr 0.8fr 1.1fr 1fr 0.75fr 1.1fr;
}

.merchant-marketing-table-head.cols-review,
.merchant-marketing-row.cols-review {
    grid-template-columns: 0.7fr 1.1fr 0.65fr 2fr 1fr 0.8fr 0.8fr;
}

.merchant-marketing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.merchant-marketing-badge.on {
    color: #1f7a4f;
    background: #e8f7ef;
}

.merchant-marketing-badge.pending {
    color: #b76a00;
    background: #fff4e5;
}

.merchant-marketing-badge.off {
    color: #6a7383;
    background: #f0f2f6;
}

.merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.merchant-marketing-actions a {
    color: #4b6fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.merchant-marketing-footer {
    margin-top: 14px;
    color: #8a93a3;
    font-size: 14px;
}

.merchant-marketing-create-panel {
    min-width: 0;
    padding: 0 0 24px;
    background: #f5f5f5;
}

.merchant-marketing-page {
    padding-bottom: 18px;
}

.merchant-marketing-create-panel .merchant-goods-breadcrumb {
    margin: 22px 28px 0;
}

.merchant-marketing-create-panel .merchant-goods-breadcrumb a {
    color: #4b6fff;
    text-decoration: none;
}

.merchant-marketing-create-panel .merchant-goods-form {
    margin: 14px 28px 0;
    gap: 18px;
}

.merchant-marketing-form-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 28px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8edf6;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.merchant-marketing-form-foot button,
.merchant-marketing-form-cancel {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    color: #354055;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.merchant-marketing-form-foot .merchant-primary-btn {
    border-color: #4b6fff;
    background: #4b6fff;
    color: #fff;
}

.merchant-marketing-tier-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px dashed #dbe2ec;
    border-radius: 10px;
    background: #fbfcff;
}

    .merchant-member-page .merchant-member-filter-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-marketing-table-head.cols-member-list,
    .merchant-marketing-row.cols-member-list {
        grid-template-columns: 1.1fr 1fr 0.9fr 1fr 1fr 1fr 1.1fr;
    }

    .merchant-marketing-table-head.cols-member-adjust,
    .merchant-marketing-row.cols-member-adjust {
        grid-template-columns: 1fr 0.9fr 1.1fr 1.6fr 1.2fr 0.8fr;
    }

    .merchant-marketing-table-head.cols-member-push,
    .merchant-marketing-row.cols-member-push {
        grid-template-columns: 0.9fr 1.4fr 1.1fr 0.9fr 1.1fr 0.8fr;
    }

    .merchant-member-level-tag {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
    }

    .merchant-member-level-tag.normal {
        color: #5f6b7a;
        background: #eef2f7;
    }

    .merchant-member-level-tag.silver {
        color: #4f6b8f;
        background: #e8f0fb;
    }

    .merchant-member-level-tag.gold {
        color: #9a6b16;
        background: #fff4df;
    }

    .merchant-member-level-tag.diamond {
        color: #5b49b8;
        background: #efeaff;
    }

    .merchant-member-level-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin: 18px 28px 0;
    }

    .merchant-member-level-card {
        padding: 18px 18px 16px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-member-level-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }

    .merchant-member-level-card-head input {
        flex: 1;
        min-height: 40px;
        padding: 0 12px;
        border: 1px solid #e3e8f0;
        border-radius: 10px;
        font: inherit;
        font-weight: 600;
        color: #1f2937;
    }

    .merchant-member-level-card-badge {
        flex-shrink: 0;
        min-width: 44px;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
    }

    .merchant-member-level-card-badge.normal {
        color: #5f6b7a;
        background: #eef2f7;
    }

    .merchant-member-level-card-badge.silver {
        color: #4f6b8f;
        background: #e8f0fb;
    }

    .merchant-member-level-card-badge.gold {
        color: #9a6b16;
        background: #fff4df;
    }

    .merchant-member-level-card-badge.diamond {
        color: #5b49b8;
        background: #efeaff;
    }

    .merchant-member-level-field {
        display: grid;
        gap: 8px;
        margin-bottom: 12px;
    }

    .merchant-member-level-field span {
        color: #6a7383;
        font-size: 13px;
    }

    .merchant-member-level-field input {
        min-height: 40px;
        padding: 0 12px;
        border: 1px solid #e3e8f0;
        border-radius: 10px;
        font: inherit;
        color: #354055;
    }

    .merchant-member-level-switches {
        display: grid;
        gap: 10px;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px dashed #edf1f7;
    }

    .merchant-member-level-switch-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #535d6b;
        font-size: 14px;
    }

    .merchant-member-adjust-card {
        margin: 18px 28px 28px;
        padding: 22px 24px 24px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-member-adjust-form {
        display: grid;
        gap: 16px;
    }

    .merchant-member-adjust-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .merchant-member-adjust-head h3 {
        margin: 0 0 6px;
        font-size: 18px;
        color: #1f2937;
    }

    .merchant-member-adjust-head p {
        margin: 0;
        color: #6a7383;
        line-height: 1.6;
    }

    .merchant-member-adjust-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
    }

    .merchant-member-adjust-reason {
        grid-column: 1 / -1;
    }

    .merchant-member-adjust-reason textarea {
        min-height: 96px;
        padding: 12px 14px;
        border: 1px solid #e3e8f0;
        border-radius: 10px;
        font: inherit;
        resize: vertical;
        color: #354055;
    }

    .merchant-member-adjust-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin: 16px 0 20px;
    }

    .merchant-member-adjust-actions button {
        min-width: 92px;
        min-height: 44px;
        border: 1px solid #dbe2ec;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .merchant-member-history-table {
        margin-top: 4px;
    }

    .merchant-member-marketing-grid {
        display: grid;
        grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
        gap: 18px;
        margin: 18px 28px 0;
    }

    .merchant-member-marketing-card {
        padding: 22px 24px 24px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-member-marketing-card h3 {
        margin: 0 0 8px;
        font-size: 18px;
        color: #1f2937;
    }

    .merchant-member-marketing-card > p {
        margin: 0 0 18px;
        color: #6a7383;
        line-height: 1.6;
    }

    .merchant-member-marketing-form {
        display: grid;
        gap: 14px;
    }

    .merchant-member-marketing-form .merchant-primary-btn {
        justify-self: start;
    }

    .merchant-member-push-copy textarea {
        min-height: 120px;
        padding: 12px 14px;
        border: 1px solid #e3e8f0;
        border-radius: 10px;
        font: inherit;
        resize: vertical;
        color: #354055;
    }

    .merchant-member-push-schedule {
        display: grid;
        gap: 12px;
    }

    .merchant-member-push-schedule .merchant-goods-radio {
        margin-right: 18px;
    }

    .merchant-member-push-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .merchant-member-push-actions button {
        min-height: 44px;
        padding: 0 18px;
        border: 1px solid #dbe2ec;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .merchant-member-push-history-title {
        color: #535d6b;
        font-size: 15px;
        font-weight: 600;
    }

    .merchant-member-detail-page {
        padding-top: 8px;
    }

    .merchant-member-detail-page .merchant-goods-breadcrumb {
        margin: 20px 28px 0;
    }

    .merchant-member-detail-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        margin: 16px 28px 0;
        padding: 22px 24px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-member-detail-profile {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .merchant-member-detail-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6f8dff, #4b6fff);
        color: #fff;
        font-size: 22px;
        font-weight: 700;
    }

    .merchant-member-detail-profile h2 {
        margin: 0 0 8px;
        font-size: 22px;
        color: #1f2937;
    }

    .merchant-member-detail-profile p {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        color: #6a7383;
    }

    .merchant-member-detail-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(110px, 1fr));
        gap: 14px 24px;
    }

    .merchant-member-detail-stats div {
        display: grid;
        gap: 6px;
    }

    .merchant-member-detail-stats span {
        color: #6a7383;
        font-size: 13px;
    }

    .merchant-member-detail-stats strong {
        color: #1f2937;
        font-size: 16px;
    }

    .merchant-marketing-table-head.cols-member-orders,
    .merchant-marketing-row.cols-member-orders {
        grid-template-columns: 1.1fr 1.4fr 0.9fr 0.9fr 0.9fr 0.9fr 1.2fr;
    }

    .merchant-member-order-status {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
    }

    .merchant-member-order-status.is-done {
        color: #1f7a4d;
        background: #e8f8ef;
    }

    .merchant-member-order-status.is-pending {
        color: #9a6b16;
        background: #fff4df;
    }

    .merchant-member-order-status.is-refund {
        color: #b4234f;
        background: #ffeaf0;
    }

    .merchant-member-detail-empty {
        margin: 0;
        padding: 28px 18px;
        text-align: center;
        color: #6a7383;
    }

    .merchant-system-page {
        min-width: 0;
    }

    .merchant-system-account-grid {
        display: grid;
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
        gap: 18px;
        margin: 18px 28px 0;
    }

    .merchant-system-card {
        padding: 22px 24px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-system-card h3 {
        margin: 0 0 16px;
        font-size: 17px;
        color: #1f2937;
    }

    .merchant-system-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 16px;
    }

    .merchant-system-card-head p {
        margin: 0;
        color: #6a7383;
        font-size: 14px;
        line-height: 1.6;
    }

    .merchant-system-form {
        display: grid;
        gap: 14px;
    }

    .merchant-system-subaccount-permissions {
        display: grid;
        gap: 14px;
    }

    .merchant-system-subaccount-permissions h4 {
        margin: 0;
        font-size: 16px;
        color: #1f2937;
    }

    .merchant-system-subaccount-permissions h4 em {
        margin-left: 6px;
        color: #8a93a3;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
    }

    .merchant-system-form-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: end;
    }

    .merchant-system-form-row button,
    .merchant-system-permission-card button,
    .merchant-system-subaccount-permissions button,
    .merchant-store-info-upload-actions button,
    .merchant-store-decoration-banner-actions button,
    .merchant-store-decoration-template-item button,
    .merchant-store-decoration-module-sort button,
    .merchant-store-decoration-nav-card > button[data-store-deco-nav-remove],
    .merchant-store-info-form-foot button,
    .merchant-store-info-map-head button,
    .merchant-member-push-actions button,
    .merchant-member-adjust-actions button,
    .merchant-member-detail-page .merchant-marketing-toolbar button {
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #dbe2ec;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .merchant-system-permission-card {
        margin: 18px 28px 28px;
    }

    .merchant-system-permission-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 22px;
        margin-bottom: 18px;
    }

    .merchant-system-notify-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin: 18px 28px 0;
    }

    .merchant-system-notify-card {
        padding: 18px 18px 14px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-system-notify-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px dashed #edf1f7;
    }

    .merchant-system-notify-channels,
    .merchant-system-switch-list {
        display: grid;
        gap: 10px;
    }

    .merchant-system-message-filter {
        margin: 0 0 16px;
        padding: 0;
        box-shadow: none;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    }

    .merchant-system-security-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin: 18px 28px 0;
    }

    .merchant-system-strength {
        display: grid;
        gap: 8px;
        margin-bottom: 12px;
    }

    .merchant-system-strength-bar {
        height: 8px;
        border-radius: 999px;
        background: #edf1f7;
        overflow: hidden;
    }

    .merchant-system-strength-bar em {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #ffb347, #ff6b6b);
    }

    .merchant-system-strength-bar em.is-strong {
        background: linear-gradient(90deg, #5ad67d, #2fbf71);
    }

    .merchant-system-helper {
        margin: 0 0 14px;
        color: #6a7383;
        font-size: 13px;
        line-height: 1.6;
    }

    .merchant-marketing-table-head.cols-system-subaccount,
    .merchant-marketing-row.cols-system-subaccount {
        grid-template-columns: 1fr 1.1fr 0.8fr 1.3fr 0.8fr 1fr;
    }

    .merchant-marketing-table-head.cols-system-message,
    .merchant-marketing-row.cols-system-message {
        grid-template-columns: 0.9fr 1.4fr 1fr 1.1fr 0.8fr 0.8fr;
    }

    .merchant-marketing-table-head.cols-system-audit,
    .merchant-marketing-row.cols-system-audit {
        grid-template-columns: 1.1fr 0.8fr 0.8fr 1.6fr 1fr;
    }

    .merchant-marketing-table-head.cols-system-login,
    .merchant-marketing-row.cols-system-login {
        grid-template-columns: 1.1fr 0.9fr 1fr 1.1fr 1.2fr 0.8fr;
    }

    .merchant-system-subaccount-modal .merchant-refund-detail-panel {
        width: min(640px, calc(100vw - 32px));
    }

    .merchant-system-subaccount-form {
        display: grid;
        gap: 20px;
    }

    .merchant-system-subaccount-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
    }

    .merchant-store-info-page {
        min-width: 0;
        padding-bottom: 18px;
    }

    .merchant-store-info-page .merchant-goods-form {
        margin: 0 28px 28px;
    }

    .merchant-store-info-form {
        display: grid;
        gap: 18px;
    }

    .merchant-store-info-inline-btn {
        margin-left: auto;
        min-height: 34px;
        padding: 0 14px;
        border: 1px solid #dbe2ec;
        border-radius: 999px;
        background: #f7f9fd;
        color: #4f5b75;
        font: inherit;
        font-size: 13px;
        cursor: pointer;
    }

    .merchant-store-info-hint {
        margin: 0;
        color: #6a7383;
        font-size: 13px;
    }

    .merchant-store-info-hint strong {
        color: #4b6fff;
    }

    .merchant-store-info-upload-grid {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 24px;
    }

    .merchant-store-info-upload-item {
        display: grid;
        gap: 10px;
    }

    .merchant-store-info-upload-box {
        display: block;
    }

    .merchant-store-info-upload-preview {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 180px;
        aspect-ratio: 1 / 1;
        border: 1px dashed #cfd8ea;
        border-radius: 14px;
        background: #fafbfd;
        overflow: hidden;
    }

    .merchant-store-info-upload-preview.wide {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .merchant-store-info-upload-preview img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .merchant-store-info-upload-preview.has-image .merchant-store-info-upload-placeholder {
        display: none;
    }

    .merchant-store-info-upload-placeholder {
        display: grid;
        gap: 6px;
        justify-items: center;
        padding: 24px;
        text-align: center;
        color: #6a7383;
    }

    .merchant-store-info-upload-placeholder em {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #eef2ff;
        color: #4b6fff;
        font-size: 24px;
        font-style: normal;
    }

    .merchant-store-info-upload-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .merchant-store-info-hours-table {
        border: 1px solid #edf1f7;
        border-radius: 12px;
        overflow: hidden;
    }

    .merchant-store-info-hours-head,
    .merchant-store-info-hours-row {
        display: grid;
        grid-template-columns: 72px 88px 120px 120px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 12px 16px;
    }

    .merchant-store-info-hours-head {
        background: #fafbfd;
        color: #535d6b;
        font-size: 14px;
    }

    .merchant-store-info-hours-row {
        border-top: 1px solid #edf1f7;
    }

    .merchant-store-info-hours-row input[type="time"],
    .merchant-store-info-hours-row input[type="text"] {
        min-height: 40px;
        padding: 0 10px;
        border: 1px solid #e3e8f0;
        border-radius: 8px;
        font: inherit;
    }

    .merchant-store-info-hours-row.is-closed input[type="time"],
    .merchant-store-info-hours-row.is-closed input[type="text"] {
        opacity: 0.45;
        pointer-events: none;
    }

    .merchant-store-info-field-full {
        grid-column: 1 / -1;
    }

    .merchant-store-info-map-card {
        margin-top: 16px;
        padding: 16px 18px;
        border: 1px solid #edf1f7;
        border-radius: 12px;
        background: #fafbfd;
    }

    .merchant-store-info-map-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }

    .merchant-store-info-map-preview {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 180px;
        border-radius: 10px;
        background: linear-gradient(135deg, #e8f0fb 0%, #f3f6fb 55%, #e8f4ef 100%);
        color: #6a7383;
        font-size: 14px;
    }

    .merchant-store-info-form-foot {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 8px;
    }

    .merchant-store-decoration-page {
        min-width: 0;
        padding-bottom: 18px;
        --store-deco-primary: #4b6fff;
        --store-deco-secondary: #94a3b8;
    }

    .merchant-store-decoration-page .merchant-marketing-head {
        align-items: flex-start;
        gap: 14px;
    }

    .merchant-store-decoration-page .merchant-marketing-head > div {
        min-width: 0;
        flex: 1;
    }

    .merchant-store-decoration-page .merchant-marketing-head h2 {
        font-size: clamp(28px, 3vw, 34px);
        line-height: 1.28;
        word-break: keep-all;
    }

    .merchant-store-decoration-page .merchant-marketing-head p {
        max-width: 820px;
    }

    .merchant-store-decoration-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 332px;
        gap: 22px;
        margin: 0 28px 28px;
        align-items: start;
    }

    .merchant-store-decoration-form {
        display: grid;
        gap: 16px;
    }

    .merchant-store-decoration-overview-card,
    .merchant-store-decoration-stage,
    .merchant-store-decoration-preview {
        border: 1px solid #e4e9f1;
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
        box-shadow: 0 12px 30px rgba(31, 45, 61, 0.05);
    }

    .merchant-store-decoration-overview-card {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 20px 22px;
    }

    .merchant-store-decoration-overview-kicker {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        background: #eef3ff;
        color: #4b6fff;
        font-size: 12px;
        font-weight: 700;
    }

    .merchant-store-decoration-overview-card h3 {
        margin: 10px 0 8px;
        color: #1f2937;
        font-size: 22px;
    }

    .merchant-store-decoration-overview-card p {
        margin: 0;
        color: #6a7383;
        line-height: 1.7;
    }

    .merchant-store-decoration-overview-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
        max-width: 320px;
    }

    .merchant-store-decoration-overview-tags span {
        min-height: 34px;
        padding: 0 14px;
        border: 1px solid #dce4ee;
        border-radius: 999px;
        background: #f8fafc;
        color: #516075;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
    }

    .merchant-store-decoration-stage {
        padding: 18px 20px 20px;
    }

    .merchant-store-decoration-stage .merchant-goods-block-body {
        padding: 0;
    }

    .merchant-store-decoration-stage-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #edf1f6;
    }

    .merchant-store-decoration-stage-index {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        background: #f3f6fb;
        color: #4b6fff;
        font-size: 12px;
        font-weight: 700;
    }

    .merchant-store-decoration-stage-title {
        margin-top: 10px;
        color: #1f2937;
        font-size: 18px;
        font-weight: 700;
    }

    .merchant-store-decoration-stage-head p {
        margin: 8px 0 0;
        color: #6a7383;
        line-height: 1.7;
    }

    .merchant-store-decoration-stage-tip {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 12px;
        border-radius: 999px;
        background: #f8fafc;
        color: #7b8798;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid #dce4ee;
        white-space: nowrap;
    }

    .merchant-store-decoration-inline-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding: 0;
        color: #1f2937;
        font-size: 15px;
        font-weight: 700;
    }

    .merchant-store-decoration-mode-grid,
    .merchant-store-decoration-template-grid,
    .merchant-store-decoration-color-grid,
    .merchant-store-decoration-nav-grid {
        display: grid;
        gap: 16px;
    }

    .merchant-store-decoration-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-store-decoration-template-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .merchant-store-decoration-template-panel {
        margin-top: 16px;
    }

    .merchant-store-decoration-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 14px;
    }

    .merchant-store-decoration-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .merchant-store-decoration-mode-card,
    .merchant-store-decoration-template-item,
    .merchant-store-decoration-banner-row,
    .merchant-store-decoration-module-row,
    .merchant-store-decoration-nav-card,
    .merchant-store-report-summary-card {
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
    }

    .merchant-store-decoration-mode-card {
        display: grid;
        gap: 8px;
        padding: 18px;
        border: 1px solid #dde5ef;
        cursor: pointer;
        background: #f9fbfd;
    }

    .merchant-store-decoration-mode-card.active {
        border-color: #4b6fff;
        background: linear-gradient(180deg, rgba(75, 111, 255, 0.08), rgba(255, 255, 255, 0.9));
        box-shadow: 0 0 0 3px rgba(75, 111, 255, 0.1);
    }

    .merchant-store-decoration-mode-card input[type="radio"] {
        margin: 0;
    }

    .merchant-store-decoration-mode-badge {
        display: inline-flex;
        align-items: center;
        justify-self: start;
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: #eef3ff;
        color: #4b6fff;
        font-size: 11px;
        font-weight: 700;
    }

    .merchant-store-decoration-mode-card strong {
        color: #1f2937;
        font-size: 16px;
    }

    .merchant-store-decoration-mode-card p {
        margin: 0;
        color: #6a7383;
        line-height: 1.7;
        font-size: 13px;
    }

    .merchant-store-decoration-mode-card button {
        justify-self: start;
    }

    .merchant-store-decoration-template-item {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid #e6ebf3;
        background: #fbfcfe;
    }

    .merchant-store-decoration-template-item.active {
        border-color: #4b6fff;
        background: linear-gradient(180deg, rgba(75, 111, 255, 0.07), rgba(255, 255, 255, 0.95));
        box-shadow: 0 0 0 3px rgba(75, 111, 255, 0.08);
    }

    .merchant-store-decoration-template-item strong {
        color: #1f2937;
        font-size: 15px;
    }

    .merchant-store-decoration-template-item em {
        color: #6a7383;
        font-size: 13px;
        font-style: normal;
    }

    .merchant-store-decoration-template-thumb {
        display: block;
        height: 92px;
        border-radius: 10px;
        background: linear-gradient(135deg, #dbe6ff, #eef3ff);
    }

    .merchant-store-decoration-template-thumb.beauty-a {
        background: linear-gradient(135deg, #dbe6ff, #eef3ff 52%, #f9fbff);
    }

    .merchant-store-decoration-template-thumb.beauty-b {
        background: linear-gradient(135deg, #d9e6f6, #edf4fa 55%, #f7fbfe);
    }

    .merchant-store-decoration-template-thumb.beauty-c {
        background: linear-gradient(135deg, #dbe7ff, #dcecf7 52%, #f7fbff);
    }

    .merchant-store-decoration-banner-list,
    .merchant-store-decoration-module-list {
        display: grid;
        gap: 12px;
    }

    .merchant-store-decoration-banner-row {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 12px;
        border: 1px solid #e6ebf3;
        background: #fbfcfe;
    }

    .merchant-store-decoration-banner-preview {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 64px;
        border-radius: 8px;
        background: linear-gradient(135deg, #4b6fff, #7b8dba);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        background-size: cover;
        background-position: center;
    }

    .merchant-store-decoration-banner-preview.is-alt {
        background: linear-gradient(135deg, #5e79d6, #8ea0c2);
    }

    .merchant-store-decoration-banner-preview.has-image {
        color: transparent;
    }

    .merchant-store-decoration-banner-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .merchant-store-decoration-color-field {
        display: grid;
        grid-template-columns: auto 70px minmax(96px, 1fr);
        gap: 10px;
        align-items: center;
        padding: 14px;
        border: 1px solid #e6ebf3;
        border-radius: 14px;
        background: #fbfcfe;
    }

    .merchant-store-decoration-color-field span {
        color: #535d6b;
        font-size: 14px;
        font-weight: 600;
    }

    .merchant-store-decoration-color-field input[type="color"] {
        width: 70px;
        height: 42px;
        padding: 0;
        border: 1px solid #dbe2ec;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .merchant-store-decoration-color-field input[type="text"] {
        min-height: 42px;
        padding: 0 12px;
        border: 1px solid #e3e8f0;
        border-radius: 10px;
        font: inherit;
        color: #354055;
    }

    .merchant-store-decoration-color-presets {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .merchant-store-decoration-color-presets > span {
        color: #6a7383;
        font-size: 13px;
    }

    .merchant-store-decoration-color-presets button {
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid #dbe2ec;
        border-radius: 999px;
        background: #fff;
        color: #4f5b75;
        cursor: pointer;
    }

    .merchant-store-decoration-color-presets button.active {
        border-color: #4b6fff;
        background: #eef2ff;
        color: #4b6fff;
    }

    .merchant-store-decoration-module-row {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto auto;
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        border: 1px solid #e6ebf3;
        background: #fbfcfe;
    }

    .merchant-store-decoration-module-handle {
        color: #9aa3b2;
        font-size: 18px;
        line-height: 1;
        text-align: center;
        cursor: grab;
    }

    .merchant-store-decoration-module-sort {
        display: flex;
        gap: 8px;
    }

    .merchant-store-decoration-module-row.is-off {
        opacity: 0.58;
        background: #fbfcff;
    }

    .merchant-store-decoration-nav-card {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
        border: 1px solid #e6ebf3;
        background: #fbfcfe;
    }

    .merchant-store-decoration-nav-card > button[data-store-deco-nav-remove] {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .merchant-store-decoration-nav-icon {
        grid-row: span 2;
        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--store-deco-primary, #4b6fff), var(--store-deco-secondary, #ff6b6b));
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
    }

    .merchant-store-decoration-preview {
        position: sticky;
        top: 88px;
        padding: 18px;
    }

    .merchant-store-decoration-preview-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        color: #4f5b75;
        font-size: 13px;
    }

    .merchant-store-decoration-preview-head strong {
        color: #1f2937;
        font-size: 16px;
    }

    .merchant-store-decoration-preview-note {
        margin-bottom: 16px;
        color: #6a7383;
        font-size: 13px;
        line-height: 1.7;
    }

    .merchant-store-decoration-phone-shell {
        padding: 12px;
        border-radius: 24px;
        background: linear-gradient(180deg, #eef3ff 0%, #f8fafc 100%);
        border: 1px solid #e1e8f2;
    }

    .merchant-store-decoration-phone {
        width: 100%;
        max-width: 268px;
        margin: 0 auto;
        padding: 12px 10px 16px;
        border-radius: 28px;
        background: linear-gradient(180deg, #1f2937 0%, #334155 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .merchant-store-decoration-phone-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        color: #f8fafc;
        font-size: 12px;
        font-weight: 700;
    }

    .merchant-store-decoration-phone-topbar small {
        color: rgba(248, 250, 252, 0.72);
        font-size: 11px;
    }

    .merchant-store-decoration-phone-banner,
    .merchant-store-decoration-nav-icon,
    .merchant-store-decoration-phone-nav em {
        background: linear-gradient(135deg, var(--store-deco-primary, #4b6fff), var(--store-deco-secondary, #ff6b6b));
    }

    .merchant-store-decoration-phone-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 10px;
    }

    .merchant-store-decoration-phone-modules,
    .merchant-store-report-summary {
        display: grid;
        gap: 8px;
    }

    .merchant-store-decoration-form-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding: 16px 18px;
        border: 1px solid #e4e9f1;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
    }

    .merchant-store-report-page {
        min-width: 0;
        padding-bottom: 18px;
    }

    .merchant-store-report-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0 28px 18px;
    }

    .merchant-store-report-summary-card {
        padding: 18px 20px;
    }

    .merchant-store-report-summary-card.is-alert strong {
        color: #e34d59;
    }

    .merchant-store-report-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }

    .merchant-marketing-table-head.cols-store-report,
    .merchant-marketing-row.cols-store-report {
        grid-template-columns: 1.1fr 1.1fr 1fr 1.4fr 1fr 1fr;
    }


    .merchant-finance-settlement-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-finance-settlement-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-finance-settlement-field.is-search,
    .merchant-finance-settlement-date-field.is-inline,
    .merchant-finance-settlement-filter-actions {
        grid-column: 1 / -1;
    }

    .merchant-finance-settlement-head {
        flex-direction: column;
    }
    .merchant-store-report-modal .merchant-refund-detail-panel {
        width: min(720px, calc(100vw - 32px));
    }

    .merchant-store-report-user-desc p {
        margin: 0 0 12px;
        padding: 12px 14px;
        border-radius: 10px;
        background: #fafbfd;
        color: #354055;
        line-height: 1.6;
    }

    .merchant-store-report-evidence-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .merchant-store-report-evidence-thumb {
        width: 88px;
        height: 88px;
        border-radius: 10px;
        background: linear-gradient(135deg, #e8f0fb, #dbe8ff);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6a7383;
        font-size: 12px;
    }

    .merchant-refund-detail-remark-field em {
        display: block;
        margin-top: 6px;
        text-align: right;
        color: #9aa3b2;
        font-size: 12px;
        font-style: normal;
    }

    .merchant-store-report-appeal-upload-grid {
        display: grid;
        grid-template-columns: repeat(3, 88px);
        gap: 10px;
    }

    .merchant-store-report-appeal-upload {
        display: grid;
        gap: 10px;
        margin-top: 12px;
    }

    .merchant-store-report-appeal-upload > span {
        color: #535d6b;
        font-size: 14px;
        font-weight: 600;
    }

    .merchant-store-report-appeal-upload-item {
        display: grid;
        gap: 4px;
        justify-items: center;
        min-height: 88px;
        padding: 12px 8px;
        border: 1px dashed #cfd8ea;
        border-radius: 10px;
        background: #fafbfd;
        cursor: pointer;
        text-align: center;
    }

    .merchant-store-report-appeal-upload-item input {
        display: none;
    }

    .merchant-store-report-appeal-upload-item.has-image {
        padding: 0;
        border-style: solid;
        overflow: hidden;
    }

    .merchant-store-report-appeal-upload-item.has-image span,
    .merchant-store-report-appeal-upload-item.has-image small {
        display: none;
    }

    .merchant-store-report-appeal-upload-item.has-image::after {
        content: "";
        display: block;
        width: 100%;
        height: 88px;
        background: var(--appeal-thumb) center/cover no-repeat;
    }

    @media (max-width: 1280px) {
        .merchant-member-level-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .merchant-member-marketing-grid,
        .merchant-store-decoration-layout,
        .merchant-system-account-grid {
            grid-template-columns: 1fr;
        }

        .merchant-store-decoration-overview-card,
        .merchant-store-decoration-stage-head {
            flex-direction: column;
        }

        .merchant-store-decoration-overview-tags {
            justify-content: flex-start;
            max-width: none;
        }

        .merchant-store-decoration-preview {
            position: static;
        }

        .merchant-store-decoration-page .merchant-marketing-head {
            flex-direction: column;
            align-items: flex-start;
        }

        .merchant-store-report-summary,
        .merchant-store-info-upload-grid {
            grid-template-columns: 1fr;
        }

        .merchant-finance-monthly-summary-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .merchant-finance-monthly-filter-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .merchant-finance-monthly-field.is-period,
        .merchant-finance-monthly-actions {
            grid-column: 1 / -1;
        }

        .merchant-finance-monthly-head {
            flex-direction: column;
        }

        .merchant-system-notify-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 900px) {
        .merchant-marketing-filter-card {
            grid-template-columns: 1fr;
        }

        .merchant-marketing-table-head,
        .merchant-marketing-row {
            grid-template-columns: 1fr !important;
            min-height: auto;
            padding: 14px 18px;
            gap: 8px;
        }

        .merchant-marketing-table-head {
            display: none;
        }

        .merchant-marketing-row > span::before {
            content: attr(data-label);
            display: block;
            margin-bottom: 4px;
            color: #8a93a3;
            font-size: 12px;
        }

        .merchant-member-page .merchant-member-filter-card,
        .merchant-member-level-grid,
        .merchant-member-adjust-grid,
        .merchant-system-security-grid,
        .merchant-system-notify-grid,
        .merchant-store-report-filter,
        .merchant-store-decoration-mode-grid,
        .merchant-store-decoration-template-grid,
        .merchant-store-decoration-color-grid,
        .merchant-store-decoration-nav-grid,
        .merchant-store-info-hours-head,
        .merchant-store-info-hours-row,
        .merchant-system-subaccount-form-grid {
            grid-template-columns: 1fr;
        }

        .merchant-marketing-table-head.cols-member-list,
        .merchant-marketing-row.cols-member-list,
        .merchant-marketing-table-head.cols-member-adjust,
        .merchant-marketing-row.cols-member-adjust,
        .merchant-marketing-table-head.cols-member-push,
        .merchant-marketing-row.cols-member-push,
        .merchant-marketing-table-head.cols-member-orders,
        .merchant-marketing-row.cols-member-orders,
        .merchant-marketing-table-head.cols-system-subaccount,
        .merchant-marketing-row.cols-system-subaccount,
        .merchant-marketing-table-head.cols-system-message,
        .merchant-marketing-row.cols-system-message,
        .merchant-marketing-table-head.cols-system-audit,
        .merchant-marketing-row.cols-system-audit,
        .merchant-marketing-table-head.cols-system-login,
        .merchant-marketing-row.cols-system-login,
        .merchant-marketing-table-head.cols-store-report,
        .merchant-marketing-row.cols-store-report,
        .merchant-store-decoration-banner-row {
            grid-template-columns: 1fr;
        }

        .merchant-store-decoration-inline-title {
            flex-direction: column;
            align-items: flex-start;
        }

        .merchant-store-decoration-page .merchant-marketing-head h2 {
            font-size: 26px;
        }

        .merchant-store-decoration-page .merchant-marketing-head p {
            max-width: none;
        }

        .merchant-finance-settlement-summary-grid,
        .merchant-finance-settlement-filter-grid,
        .merchant-finance-settlement-detail-grid,
        .merchant-finance-settlement-detail-amounts,
        .merchant-finance-monthly-summary-grid,
        .merchant-finance-monthly-filter-grid,
        .merchant-finance-monthly-detail-grid,
        .merchant-finance-monthly-detail-amounts {
            grid-template-columns: 1fr;
        }

        .merchant-finance-settlement-tabs {
            overflow-x: auto;
            padding-bottom: 2px;
        }

        .merchant-finance-settlement-filter-actions {
            justify-content: flex-start;
        }

        .merchant-finance-settlement-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .merchant-finance-monthly-actions {
            justify-content: flex-start;
        }

        .merchant-finance-monthly-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .merchant-finance-monthly-detail-drawer {
            inset: auto 10px 10px 10px;
            width: auto;
        }

        .merchant-finance-settlement-detail-drawer {
            inset: auto 10px 10px 10px;
            width: auto;
        }

        .merchant-finance-settlement-head {
            padding: 20px 18px;
        }

        .merchant-finance-settlement-head h2 {
            font-size: 24px;
            line-height: 1.35;
            max-width: none;
        }

        .merchant-finance-settlement-head p {
            font-size: 14px;
        }

        .merchant-member-detail-head,
        .merchant-system-form-row,
        .merchant-store-info-map-head {
            flex-direction: column;
        }

        .merchant-member-detail-stats {
            width: 100%;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 600px) {
        .merchant-store-report-appeal-upload-grid {
            grid-template-columns: repeat(2, 88px);
        }
    }

/* —— 总后台控制台（dashboard SPA） —— */

.total-console-page.total-fullscreen-layout {
    height: 100vh;
    overflow: hidden;
}

.total-console-page {
    background: var(--bg-page);
    color: var(--text-main);
}

.total-dashboard-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.total-fullscreen-layout .total-console-header.admin-global-header {
    width: 100%;
    margin: 0;
    flex-shrink: 0;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(31, 42, 68, 0.04);
}

.total-console-body {
    flex: 1;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 356px minmax(0, 1fr);
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: #fff;
}

.total-sidebar-panel {
    border-right: 1px solid #eceff4;
    border-radius: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.total-sidebar-panel .merchant-side-layout {
    height: 100%;
    min-height: 0;
}

.total-main-panel {
    height: 100%;
    min-height: 0;
    min-width: 0;
    background: #f7f8fa;
    padding: 18px 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
}

.total-overview-shell {
    display: grid;
    gap: 16px;
}

.total-dashboard-hero {
    padding: 28px 28px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #3f67ef 50%, var(--primary-deep) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(49, 94, 251, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.total-dashboard-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.8rem, 2vw, 2.3rem);
}

.total-dashboard-hero p {
    margin: 0;
    max-width: 640px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.total-dashboard-hero .micro-label {
    color: rgba(255, 255, 255, 0.72);
}

.total-dashboard-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.total-dashboard-hero-chips span {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.total-overview-stats .metric-card,
.total-finance-stats .metric-card,
.total-trend-stats .metric-card {
    border-radius: 16px;
}

.total-panel-stack {
    display: grid;
    gap: 0;
}

.total-panel-stack > [data-total-panel] {
    border-radius: 18px;
}

.total-quick-link {
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.total-quick-link:hover {
    transform: translateY(-2px);
    border-color: #d9e4ff;
    box-shadow: 0 12px 28px rgba(70, 108, 255, 0.1);
}

.total-config-switches {
    display: grid;
    gap: 12px;
}

.total-version-list .list-item button,
.total-role-grid .mini-panel button {
    margin-top: 12px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.total-trend-filters {
    margin-bottom: 4px;
}

.total-trend-chart {
    margin-top: 4px;
}

.total-trend-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 160px;
    padding: 8px 4px 0;
}

.total-trend-bars span {
    display: block;
    height: var(--h, 50%);
    min-height: 24px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #6b8cff 0%, var(--primary) 100%);
    transition: height 0.35s ease;
}

.cols-total-monitor {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr 0.8fr 0.8fr;
}

.cols-total-audit {
    grid-template-columns: 1.2fr 1fr 1fr 2fr 0.9fr;
}

.cols-total-alert {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr 0.8fr 0.8fr;
}

.cols-total-admin {
    grid-template-columns: 1fr 0.9fr 1fr 1fr 0.8fr 1fr 0.9fr;
}

/* —— 管理员权限 —— */

.total-admin-stats,
.total-admin-entry {
    margin-bottom: 16px;
}

.cols-total-admin-role {
    grid-template-columns: 1fr 0.85fr 0.65fr 0.9fr 0.65fr 1.2fr 0.75fr;
}

.cols-total-admin-perms {
    grid-template-columns: 1.2fr 1fr 0.9fr 0.65fr 0.55fr 1.3fr;
}

.cols-total-admin-perm-matrix {
    grid-template-columns: 1.2fr 0.55fr 0.55fr 0.55fr 0.55fr;
}

.total-admin-perm-matrix-wrap .merchant-marketing-row {
    align-items: center;
}

.total-admin-perm-check {
    display: flex;
    justify-content: center;
}

.total-admin-button-perms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.total-admin-button-perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
}

.total-admin-button-perm-item em {
    margin-left: auto;
}

@media (max-width: 1200px) {
    .cols-total-admin-role,
    .cols-total-admin-perms,
    .cols-total-admin-perm-matrix {
        grid-template-columns: 1fr;
    }

    .total-admin-button-perms {
        grid-template-columns: 1fr;
    }
}

.cols-total-abnormal {
    grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr 0.8fr;
}

.cols-total-merchant {
    grid-template-columns: 1.5fr 1fr 1fr 0.7fr 0.9fr 1fr;
}

.cols-total-merchant-list {
    grid-template-columns: 1.3fr 0.85fr 0.95fr 0.95fr 0.8fr 0.55fr 0.85fr 1fr;
}

.cols-total-merchant-audit {
    grid-template-columns: 1.1fr 1.2fr 0.9fr 1.1fr 1fr 0.8fr 1fr;
}

.cols-total-merchant-cert {
    grid-template-columns: 1fr 1.2fr 1fr 0.8fr 0.8fr;
}

.cols-total-merchant-goods {
    grid-template-columns: 1.5fr 1.1fr 0.7fr 0.6fr 0.8fr 0.8fr;
}

.cols-total-complaint-order {
    grid-template-columns: 1fr 1fr 1.2fr 1.1fr 0.9fr 0.9fr 1fr 0.85fr 0.8fr 1fr;
}

.cols-total-complaint-merchant {
    grid-template-columns: 1fr 1.2fr 0.9fr 0.9fr 1fr 1fr 0.85fr 0.8fr 1.1fr;
}

.total-complaint-handler-cell {
    font-size: 0.9rem;
    color: var(--text-main);
}

.total-complaint-handler-cell.is-unassigned {
    color: var(--text-muted);
}

.total-complaint-feature-banner {
    margin: 0 28px 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid rgba(230, 162, 60, 0.35);
    font-size: 0.88rem;
    line-height: 1.65;
    color: #6b4e16;
}

.total-complaint-feature-banner code {
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.merchant-console-page .total-complaint-feature-banner,
.merchant-console-page .merchant-enroll-banner {
    margin: 0 0 16px;
}

.total-enroll-product-list {
    list-style: none;
    margin: 0;
    padding: 12px 20px 20px;
    display: grid;
    gap: 8px;
}

.total-enroll-product-list li {
    padding: 10px 14px;
    border-radius: 10px;
    background: #f5f7fa;
    font-size: 0.9rem;
}

.merchant-enroll-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.merchant-enroll-activity-meta {
    font-size: 0.88rem;
    color: #667085;
    line-height: 1.55;
}

.total-governance-preview-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin: 0 28px 16px;
}

.total-governance-preview-card {
    margin: 0;
}

.total-governance-preview-thumb {
    min-height: 180px;
    border-radius: 12px;
    margin: 0 20px 12px;
    background: linear-gradient(135deg, #e8f4ff, #f5f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #4a5568;
}

.total-governance-preview-thumb.is-video {
    background: linear-gradient(135deg, #1f2937, #4b5563);
    color: #f8fafc;
}

.total-governance-preview-thumb.is-comment {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
}

.total-governance-preview-thumb.is-risk {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
}

.total-governance-preview-text {
    margin: 0 20px 16px;
    line-height: 1.7;
    color: #334155;
}

.total-governance-goods-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 20px 20px;
}

.total-governance-goods-media-grid span {
    display: block;
    padding: 28px 12px;
    text-align: center;
    border-radius: 10px;
    background: #f5f7fa;
    font-size: 0.85rem;
    color: #475569;
}

.merchant-note-manage-cover.photo.spa {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.merchant-note-manage-status-badge.pending {
    background: #fff7e6;
    color: #b45309;
}

@media (max-width: 1100px) {
    .total-governance-preview-layout {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 18px;
    }
}

.total-platform-marketing-banner {
    margin: 0 28px 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f0f5ff;
    border: 1px solid rgba(61, 111, 216, 0.18);
    font-size: 0.9rem;
    line-height: 1.65;
    color: #3d5a80;
}

.total-console-page .total-platform-marketing-stats {
    margin: 0 28px 20px;
    gap: 14px;
}

.total-platform-marketing-entry {
    margin: 0 28px 8px;
}

.total-console-page .total-platform-marketing-page .merchant-marketing-head,
.total-console-page .total-platform-marketing-page .total-platform-marketing-banner,
.total-console-page .total-platform-marketing-page .merchant-marketing-filter-card,
.total-console-page .total-platform-marketing-page .merchant-marketing-table-card,
.total-console-page .total-platform-marketing-page .merchant-goods-form {
    margin-left: 28px;
    margin-right: 28px;
}

.merchant-marketing-table-head.cols-total-platform-coupon,
.merchant-marketing-row.cols-total-platform-coupon {
    grid-template-columns: 1.1fr 0.75fr 0.8fr 1fr 0.85fr 1fr 0.85fr 1fr 0.95fr 0.7fr 1fr;
}

.merchant-marketing-table-head.cols-total-platform-reduction,
.merchant-marketing-row.cols-total-platform-reduction {
    grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr 1fr 0.95fr 0.75fr 1fr;
}

.merchant-marketing-table-head.cols-total-platform-gift,
.merchant-marketing-row.cols-total-platform-gift {
    grid-template-columns: 1.1fr 0.8fr 1.2fr 1fr 1fr 1fr 0.95fr 0.75fr 1fr;
}

.merchant-marketing-table-head.cols-total-platform-discount,
.merchant-marketing-row.cols-total-platform-discount {
    grid-template-columns: 1.1fr 0.9fr 1fr 0.9fr 1fr 1fr 0.95fr 0.75fr 1fr;
}

.merchant-marketing-table-head.cols-total-platform-seckill,
.merchant-marketing-row.cols-total-platform-seckill {
    grid-template-columns: 1fr 1.1fr 0.75fr 0.85fr 1fr 0.9fr 0.95fr 0.75fr 1fr;
}

.merchant-marketing-table-head.cols-total-platform-enroll,
.merchant-marketing-row.cols-total-platform-enroll {
    grid-template-columns: 1.1fr 1.2fr 0.8fr 0.6fr 1fr 0.75fr 1fr;
}

.total-platform-subsidy-form {
    margin-bottom: 20px;
}

.total-complaint-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.total-complaint-detail-head h2 {
    margin: 6px 0 8px;
}

.total-complaint-detail-head p {
    margin: 0;
    color: var(--text-muted);
}

.total-complaint-detail-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.total-complaint-detail-type-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.total-complaint-detail-stats {
    margin-bottom: 12px;
}

.total-complaint-content-card {
    margin-bottom: 12px;
}

.total-complaint-content-text {
    margin: 0;
    line-height: 1.75;
    color: var(--text-main);
}

.total-complaint-materials-desc {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.total-complaint-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 4px 0 8px;
}

.total-complaint-evidence-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.total-complaint-evidence-thumb {
    border-radius: 12px;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.82rem;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

.total-complaint-evidence-thumb.photos { background: linear-gradient(135deg, #5b8def, #3d6fd8); }
.total-complaint-evidence-thumb.license { background: linear-gradient(135deg, #6abf69, #4a9a4a); }
.total-complaint-evidence-thumb.idcard { background: linear-gradient(135deg, #f0a04b, #d97b2b); }
.total-complaint-evidence-thumb.industry { background: linear-gradient(135deg, #9b7bd4, #7a5bb8); }

.total-complaint-evidence-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.total-complaint-evidence-file {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 0.92rem;
}

.total-complaint-evidence-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.total-complaint-evidence-body button {
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.total-complaint-evidence-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.total-complaint-timeline-card {
    margin-bottom: 12px;
}

.total-complaint-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.total-complaint-timeline li {
    position: relative;
    padding: 0 0 16px 20px;
    border-left: 2px solid var(--line);
    margin-left: 6px;
}

.total-complaint-timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.total-complaint-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand, #3d6fd8);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}

.total-complaint-timeline time {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.total-complaint-timeline strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.total-complaint-timeline p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.total-complaint-result-card {
    margin-bottom: 12px;
}

.total-complaint-result-text {
    margin: 0;
    line-height: 1.7;
    color: #2d6a3e;
}

.total-complaint-user-comp-card,
.total-complaint-merchant-punish-card {
    margin-bottom: 12px;
}

.total-complaint-dispose-text {
    margin: 0;
    line-height: 1.75;
    color: var(--text-main);
}

.total-complaint-merchant-punish-card .total-complaint-dispose-text {
    color: #8b3a3a;
}

.total-audit-reject-dialog.is-dispose {
    width: min(600px, 100%);
}

.total-complaint-dispose-block {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.total-complaint-dispose-block h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.total-complaint-dispose-fields {
    margin-top: 8px;
}

.total-complaint-dispose-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.total-complaint-dispose-hint {
    margin: 6px 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.total-complaint-dispose-checks {
    display: grid;
    gap: 10px;
}

.total-complaint-dispose-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.total-complaint-dispose-checks select {
    margin-left: 28px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.88rem;
}

.total-complaint-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.total-complaint-detail-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--brand, #3d6fd8);
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
}

.total-complaint-detail-actions .merchant-primary-btn {
    margin-right: 0;
}

.total-console-page .total-complaint-detail-stats {
    margin: 0 28px 20px;
    gap: 14px;
}

.total-console-page .total-complaint-detail-head {
    margin: 0 28px 16px;
}

.total-console-page .total-complaint-detail-actions {
    margin: 8px 28px 0;
}

@media (max-width: 900px) {
    .total-complaint-detail-head {
        flex-direction: column;
    }

    .total-complaint-detail-head-meta {
        align-items: flex-start;
    }

    .total-complaint-evidence-grid {
        grid-template-columns: 1fr;
    }
}

.total-console-page .total-merchant-complaint-stats {
    margin: 0 28px 20px;
    gap: 14px;
}

.total-console-page .total-merchant-complaint-stats .metric-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 42, 68, 0.04);
}

.total-console-page .total-merchant-complaint-stats .metric-card.is-complaint strong {
    color: #e64545;
}

.total-console-page #merchant-complaints .total-audit-tabs {
    margin: 0 28px 16px;
}

.total-merchant-stats {
    margin-bottom: 4px;
}

.total-merchant-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.total-merchant-detail-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.total-merchant-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.total-merchant-detail-profile h2 {
    margin: 0 0 6px;
}

.total-merchant-detail-profile p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.total-merchant-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.total-merchant-detail-actions button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.total-merchant-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.total-merchant-detail-dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.total-merchant-detail-dl div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
}

.total-merchant-detail-dl dt {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.total-merchant-detail-dl dd {
    margin: 0;
    font-weight: 600;
}

.total-onboard-stats-card {
    margin-top: 16px;
}

.total-onboard-bars {
    min-height: 120px;
}

.total-onboard-base-hint {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.total-onboard-base-hint a {
    color: var(--primary);
    font-weight: 600;
}

.total-onboard-category-card {
    margin-top: 4px;
}

.cols-total-onboard-category {
    grid-template-columns: 1.4fr 90px 2fr 100px;
}

.total-onboard-qual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.total-onboard-qual-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4256d0;
    font-size: 0.78rem;
    font-weight: 600;
}

.total-onboard-category-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
}

.total-onboard-category-empty {
    padding: 16px;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .cols-total-onboard-category {
        grid-template-columns: 1fr;
    }
}

.total-audit-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 0 16px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
}

.total-audit-tab {
    position: relative;
    padding: 0 2px 14px;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.total-audit-tab em {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.total-audit-tab.active {
    color: #0f172a;
}

.total-audit-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

.total-audit-tab-panel {
    display: block;
}

.total-audit-tab-panel[hidden] {
    display: none !important;
}

.total-audit-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.total-audit-detail-head h2 {
    margin: 6px 0 8px;
}

.total-audit-detail-head p {
    margin: 0;
    color: var(--text-muted);
}

.total-audit-detail-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.total-audit-detail-type {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.total-audit-detail-stats {
    margin-bottom: 12px;
}

.total-audit-note-card,
.total-audit-reject-card {
    margin-bottom: 12px;
}

.total-audit-note-text,
.total-audit-reject-text {
    margin: 0;
    line-height: 1.7;
    color: var(--text-main);
}

.total-audit-reject-text {
    color: #c0392b;
}

.total-audit-materials-desc {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.total-audit-materials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 4px 0 8px;
}

.total-audit-material-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.total-audit-material-thumb {
    border-radius: 12px;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.total-audit-material-thumb.license {
    background: linear-gradient(135deg, #4b6fff 0%, #315efb 100%);
}

.total-audit-material-thumb.idcard {
    background: linear-gradient(135deg, #5b7cff 0%, #7fa1ff 100%);
}

.total-audit-material-thumb.industry {
    background: linear-gradient(135deg, #3d9bfd 0%, #2a7fd9 100%);
}

.total-audit-material-thumb.photos {
    background: linear-gradient(135deg, #ff8a5c 0%, #ff6a57 100%);
}

.total-audit-material-thumb.bank {
    background: linear-gradient(135deg, #2a3042 0%, #4a5879 100%);
}

.total-audit-material-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.total-audit-material-file {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--text-main);
}

.total-audit-material-meta {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.total-audit-material-files {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.total-audit-material-card button {
    margin-top: 10px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 0.86rem;
}

.total-audit-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.total-audit-detail-actions button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.total-audit-detail-actions .merchant-primary-btn {
    border: none;
}

@media (max-width: 900px) {
    .total-audit-materials-grid {
        grid-template-columns: 1fr;
    }

    .total-audit-detail-head {
        flex-direction: column;
    }

    .total-audit-detail-head-meta {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .total-merchant-detail-grid {
        grid-template-columns: 1fr;
    }

    .total-merchant-detail-head {
        flex-direction: column;
    }
}

.cols-total-consumer-user {
    grid-template-columns: 1.35fr 1fr 0.95fr 0.85fr 0.7fr 0.9fr 0.85fr 0.9fr;
}

.cols-total-consumer-login {
    grid-template-columns: 1.2fr 0.95fr 1fr 0.8fr 0.85fr;
}

.cols-total-consumer-level {
    grid-template-columns: 1fr 0.9fr 1.6fr 0.8fr 0.7fr;
}

.cols-total-consumer-risk {
    grid-template-columns: 1.2fr 1fr 0.75fr 1.15fr 0.85fr 1.35fr 0.75fr;
}

/* 用户中心 · 视觉美化 */

.total-consumer-page .total-consumer-head-badge {
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border: 1px solid #d9e4ff;
    color: #315efb;
    font-weight: 600;
}

.total-consumer-page .total-consumer-head-badge.is-warn {
    background: linear-gradient(135deg, #fff7e6 0%, #fffdf5 100%);
    border-color: #ffe4b5;
    color: #b45309;
}

.total-consumer-overview-stats,
.total-consumer-risk-stats {
    margin: 0 28px 20px;
}

.total-consumer-overview-stats .metric-card,
.total-consumer-risk-stats .metric-card,
.total-consumer-detail-stats .metric-card {
    border-radius: 16px;
    border: 1px solid var(--total-border);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-consumer-overview-stats .metric-card:hover,
.total-consumer-detail-stats .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.08);
}

.total-consumer-overview-stats .metric-card.is-consumer-total {
    border-color: #d9e4ff;
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
}

.total-consumer-overview-stats .metric-card.is-consumer-ordered,
.total-consumer-detail-stats .metric-card.is-consumer-ordered {
    border-color: #c8e6d9;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.total-consumer-overview-stats .metric-card.is-consumer-ordered strong,
.total-consumer-detail-stats .metric-card.is-consumer-ordered strong {
    color: #15803d;
}

.total-consumer-overview-stats .metric-card.is-consumer-browse {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.total-consumer-overview-stats .metric-card.is-consumer-browse strong {
    color: #2563eb;
}

.total-consumer-overview-stats .metric-card.is-consumer-risk,
.total-consumer-risk-stats .metric-card.is-consumer-risk,
.total-consumer-detail-stats .metric-card.is-consumer-risk {
    border-color: #ffd8d8;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.total-consumer-overview-stats .metric-card.is-consumer-risk strong,
.total-consumer-risk-stats .metric-card.is-consumer-risk strong,
.total-consumer-detail-stats .metric-card.is-consumer-risk strong {
    color: #dc2626;
}

.total-consumer-risk-stats .metric-card.is-consumer-banned strong {
    color: #991b1b;
}

.total-consumer-risk-stats .metric-card.is-consumer-high strong {
    color: #b45309;
}

.total-consumer-metric-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-consumer-metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #eef4ff center/16px no-repeat;
    flex-shrink: 0;
}

.total-consumer-metric-icon.is-users {
    background-color: #eef4ff;
    background-image: radial-gradient(circle, #315efb 0 35%, transparent 36%);
}

.total-consumer-metric-icon.is-order {
    background-color: #ecfdf3;
    background-image: linear-gradient(#15803d, #15803d);
    background-size: 14px 2px;
    background-position: center 11px;
}

.total-consumer-metric-icon.is-browse {
    background-color: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    width: 26px;
    height: 26px;
}

.total-consumer-metric-icon.is-risk {
    background-color: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    font-style: normal;
    content: "!";
}

.total-consumer-metric-icon.is-risk::before {
    content: "!";
}

.total-consumer-channel-split {
    margin: 0 28px 20px;
}

.total-consumer-channel-card {
    position: relative;
    padding-top: 18px;
    border-radius: 14px;
    border: 1px solid var(--total-border);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-consumer-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 42, 68, 0.06);
}

.total-consumer-channel-card.is-wx {
    border-color: #c8e6d9;
    background: linear-gradient(180deg, #f6fff9 0%, #fff 100%);
}

.total-consumer-channel-card.is-app {
    border-color: #d9e4ff;
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
}

.total-consumer-channel-card.is-h5 {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.total-consumer-channel-card.is-active {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.total-consumer-channel-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #eef4ff;
}

.total-consumer-channel-icon.is-wx {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.total-consumer-channel-icon.is-app {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.total-consumer-channel-icon.is-h5 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.total-consumer-channel-icon.is-active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.total-consumer-entry {
    margin: 0 28px 8px;
}

.total-consumer-entry-card {
    position: relative;
    padding: 20px 20px 18px 56px;
    border-radius: 16px;
    border: 1px solid var(--total-border);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.total-consumer-entry-card:hover {
    border-color: #c7d8ff;
}

.total-consumer-entry-icon {
    position: absolute;
    left: 18px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eef4ff;
}

.total-consumer-entry-icon.is-list {
    background: linear-gradient(135deg, #6b8cff, #315efb);
}

.total-consumer-entry-icon.is-level {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.total-consumer-entry-icon.is-risk {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.total-consumer-entry-arrow {
    display: inline-flex;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.total-consumer-banner {
    margin: 0 28px 16px;
    border-radius: 12px;
    border: 1px solid #d9e4ff;
    background: linear-gradient(90deg, #f5f8ff 0%, #ffffff 100%);
}

.total-consumer-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.total-consumer-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-consumer-page-info {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

.total-consumer-page-size select {
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 0.82rem;
    color: #4b5568;
    background: #fff;
}

.total-consumer-list-empty {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.total-consumer-user-tabs {
    margin: 0 28px 14px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--total-border);
    background: #f7f9fc;
    gap: 6px;
}

.total-consumer-user-tabs .merchant-overview-chip {
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
}

.total-consumer-user-tabs .merchant-overview-chip.active {
    background: #fff;
    border-color: #d9e4ff;
    box-shadow: 0 4px 12px rgba(49, 94, 251, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.total-consumer-table-card {
    border-radius: 16px;
    overflow: hidden;
}

.total-consumer-table .merchant-marketing-table-head {
    background: linear-gradient(180deg, #f3f6fb 0%, #eef2f8 100%);
    font-weight: 600;
    color: #5a6578;
}

.total-consumer-user-row,
.total-consumer-risk-row,
.total-consumer-login-row {
    transition: background 0.15s ease;
}

.total-consumer-user-row:hover,
.total-consumer-risk-row:hover,
.total-consumer-login-row:hover {
    background: #f8faff;
}

.total-consumer-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.total-consumer-user-cell small {
    display: block;
    font-size: 0.78rem;
    color: #8b95a8;
    margin-top: 2px;
}

.total-consumer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #6b8cff 0%, #315efb 100%);
    flex-shrink: 0;
}

.total-consumer-avatar.is-sm {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.total-consumer-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #5a6578;
}

.total-consumer-channel-pill,
.total-consumer-type-pill,
.total-consumer-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.2;
}

.total-consumer-channel-pill.is-wx {
    background: #ecfdf3;
    color: #15803d;
}

.total-consumer-channel-pill.is-app {
    background: #eff6ff;
    color: #2563eb;
}

.total-consumer-channel-pill.is-h5 {
    background: #fffbeb;
    color: #b45309;
}

.total-consumer-channel-pill.is-other {
    background: #f3f4f6;
    color: #4b5563;
}

.total-consumer-type-pill.is-ordered {
    background: #ecfdf3;
    color: #15803d;
}

.total-consumer-type-pill.is-browse {
    background: #eff6ff;
    color: #2563eb;
}

.total-consumer-level-pill.tier-base {
    background: #f3f4f6;
    color: #4b5563;
}

.total-consumer-level-pill.tier-silver {
    background: #f1f5f9;
    color: #475569;
}

.total-consumer-level-pill.tier-gold {
    background: #fffbeb;
    color: #b45309;
}

.total-consumer-level-pill.tier-diamond {
    background: linear-gradient(135deg, #ede9fe, #faf5ff);
    color: #6d28d9;
}

.total-consumer-risk-score {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.total-consumer-risk-score strong {
    font-size: 1rem;
    line-height: 1;
}

.total-consumer-risk-score i {
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: #e8edf5;
    position: relative;
}

.total-consumer-risk-score i::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--pct, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #6b8cff, #315efb);
}

.total-consumer-risk-score.is-mid i::after {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.total-consumer-risk-score.is-high i::after {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.total-consumer-risk-score.is-high strong {
    color: #dc2626;
}

.total-consumer-risk-event {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

.total-consumer-level-shell {
    margin: 0 28px 20px;
    padding: 20px;
    border-radius: 16px;
}

.total-consumer-level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.total-consumer-level-card {
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--total-border);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-consumer-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 42, 68, 0.08);
}

.total-consumer-level-card.tier-base {
    border-color: #e5e7eb;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.total-consumer-level-card.tier-silver {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.total-consumer-level-card.tier-gold {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.total-consumer-level-card.tier-diamond {
    border-color: #ddd6fe;
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.total-consumer-level-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.total-consumer-level-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(135deg, #6b8cff, #315efb);
}

.tier-silver .total-consumer-level-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.tier-gold .total-consumer-level-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.tier-diamond .total-consumer-level-badge {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.total-consumer-level-card-head strong {
    display: block;
    font-size: 1.05rem;
    color: #1a2238;
}

.total-consumer-level-card-head span {
    font-size: 0.8rem;
    color: #8b95a8;
}

.total-consumer-level-perks {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #5a6578;
    line-height: 1.5;
}

.total-consumer-level-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f4;
    font-size: 0.84rem;
    color: #6b7280;
}

.total-consumer-level-foot strong {
    font-size: 1.1rem;
    color: #1a2238;
}

.total-consumer-detail-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin: 16px 28px 20px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--total-border);
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 55%, #fff 100%);
    box-shadow: 0 8px 24px rgba(49, 94, 251, 0.06);
}

.total-consumer-detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6b8cff 0%, #315efb 100%);
    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.25);
}

.total-consumer-detail-avatar.tier-silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 10px 24px rgba(100, 116, 139, 0.25);
}

.total-consumer-detail-avatar.tier-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
}

.total-consumer-detail-avatar.tier-diamond {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
}

.total-consumer-detail-intro h2 {
    margin: 4px 0 6px;
    font-size: 1.5rem;
    color: #1a2238;
}

.total-consumer-detail-intro p {
    color: #6b7280;
    font-size: 0.9rem;
}

.total-consumer-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.total-consumer-risk-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #d9e4ff;
    background: #fff;
    box-shadow: inset 0 0 0 6px #f5f8ff;
}

.total-consumer-risk-ring strong {
    font-size: 1.35rem;
    line-height: 1;
    color: #315efb;
}

.total-consumer-risk-ring span {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #8b95a8;
}

.total-consumer-risk-ring.is-mid {
    border-color: #fde68a;
    box-shadow: inset 0 0 0 6px #fffbeb;
}

.total-consumer-risk-ring.is-mid strong {
    color: #d97706;
}

.total-consumer-risk-ring.is-high {
    border-color: #fecaca;
    box-shadow: inset 0 0 0 6px #fef2f2;
}

.total-consumer-risk-ring.is-high strong {
    color: #dc2626;
}

.total-consumer-detail-stats {
    margin: 0 28px 16px;
}

.total-consumer-tags-card {
    border-radius: 16px;
}

.total-consumer-login-result {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-style: normal;
}

.total-consumer-login-result.is-ok {
    background: #ecfdf3;
    color: #15803d;
}

.total-consumer-login-result.is-bad {
    background: #fef2f2;
    color: #dc2626;
}

.total-consumer-detail-actions button {
    border-radius: 10px;
}

.total-consumer-detail-actions button[data-total-user-detail-ban] {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff5f5;
}

.total-consumer-detail-actions button[data-total-user-detail-watch] {
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}

.total-consumer-member-shops-wrap {
    margin: 0;
}

.total-consumer-member-shops-btn {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.total-consumer-member-shops-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.total-consumer-member-shops-btn strong {
    color: #1a2238;
    font-weight: 700;
}

.total-consumer-member-shops-empty {
    font-size: 0.84rem;
    color: #9ca3af;
}

.total-consumer-member-shops-dialog {
    width: min(640px, calc(100vw - 32px));
}

.total-consumer-member-shops-body {
    max-height: min(52vh, 480px);
    overflow: auto;
}

.total-consumer-member-shops-hint {
    margin: 0 0 14px;
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.5;
}

.total-consumer-member-shops-list {
    display: grid;
    gap: 12px;
}

.total-consumer-member-shop-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--total-border);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.total-consumer-member-shop-card:hover {
    border-color: #d9e4ff;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.08);
}

.total-consumer-member-shop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.total-consumer-member-shop-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6b8cff, #315efb);
    flex-shrink: 0;
}

.total-consumer-member-shop-head strong {
    display: block;
    font-size: 0.98rem;
    color: #1a2238;
}

.total-consumer-member-shop-head span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #8b95a8;
}

.total-consumer-member-shop-level {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    font-style: normal;
    background: #fffbeb;
    color: #b45309;
    white-space: nowrap;
}

.total-consumer-member-shop-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 0;
    border-top: 1px dashed #e2e8f4;
    border-bottom: 1px dashed #e2e8f4;
}

.total-consumer-member-shop-meta span {
    display: block;
    font-size: 0.76rem;
    color: #8b95a8;
}

.total-consumer-member-shop-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    color: #1a2238;
}

.total-consumer-member-shop-actions {
    margin-top: 10px;
}

.total-consumer-member-shop-actions a {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 1100px) {
    .total-consumer-member-shop-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .total-consumer-level-grid {
        grid-template-columns: 1fr;
    }

    .total-consumer-detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .total-consumer-detail-avatar {
        margin: 0 auto;
    }

    .total-consumer-detail-tags {
        justify-content: center;
    }

    .total-consumer-risk-ring-wrap {
        display: flex;
        justify-content: center;
    }
}

.total-consumer-channel-split {
    margin-bottom: 20px;
}

.total-consumer-entry {
    margin-top: 8px;
}

.total-consumer-user-tabs {
    margin-bottom: 12px;
}

.cols-total-user {
    grid-template-columns: 1fr 1fr 1fr 1fr 0.9fr 0.9fr;
}

.cols-total-user-orders {
    grid-template-columns: 1.2fr 1.2fr 0.8fr 1fr 0.8fr 0.9fr;
}

.total-user-risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px 20px;
}

.total-user-risk-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f0f5ff;
    color: #3d6fd6;
}

.total-user-risk-tags span.is-warn {
    background: #fff7e6;
    color: #b45309;
}

.total-user-risk-tags span.is-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.cols-total-review {
    grid-template-columns: 36px minmax(132px, 1.15fr) 76px 84px 104px 68px 72px 92px 92px 44px 56px minmax(108px, 1fr) 76px 76px minmax(168px, auto);
}

.total-content-note-category-stats {
    margin-bottom: 12px;
}

/* —— 内容审核详情 —— */

.total-content-audit-detail-page {
    padding-bottom: 0;
}

.total-content-audit-detail-page .merchant-goods-breadcrumb {
    margin-bottom: 12px;
}

.total-content-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px 20px;
    border-radius: 16px;
    margin-bottom: 0;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 42%, #818cf8 100%);
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.22);
}

.total-content-detail-hero.is-video {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
}

.total-content-detail-hero.is-comment {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 42%, #fb923c 100%);
    box-shadow: 0 14px 36px rgba(234, 88, 12, 0.22);
}

.total-content-detail-hero.is-risk {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 42%, #f87171 100%);
    box-shadow: 0 14px 36px rgba(220, 38, 38, 0.24);
}

.total-content-detail-hero-visual {
    display: grid;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.total-content-detail-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 20px;
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.total-content-detail-thumb-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 84px;
    line-height: 1.35;
}

.total-content-detail-hero-main {
    min-width: 0;
}

.total-content-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.total-content-detail-label {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.total-content-detail-type-chip {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.total-content-detail-hero h2 {
    margin: 0 0 8px;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-content-detail-meta,
.total-content-detail-submeta {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.total-content-detail-meta strong,
.total-content-detail-submeta strong {
    color: #fff;
    font-weight: 700;
}

.total-content-detail-meta {
    margin-bottom: 4px;
}

.total-content-detail-body {
    padding: 18px 4px 12px;
}

.total-content-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-content-detail-metric {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.total-content-detail-metric span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}

.total-content-detail-metric strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.total-content-detail-metric.is-engage strong {
    color: #4f46e5;
}

.total-content-detail-metric em {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-style: normal;
    color: #94a3b8;
}

.total-content-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-content-detail-info-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.total-content-detail-info-card span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}

.total-content-detail-info-card strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.total-content-detail-info-card em {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-style: normal;
    color: #64748b;
    line-height: 1.45;
}

.total-content-detail-info-card.is-ai.is-pass {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ecfdf5, #f0fdf4);
}

.total-content-detail-info-card.is-ai.is-pass strong {
    color: #047857;
}

.total-content-detail-info-card.is-ai.is-reject {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2, #fff1f2);
}

.total-content-detail-info-card.is-ai.is-reject strong {
    color: #b91c1c;
}

.total-content-detail-info-card.is-ai.is-warn {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

.total-content-detail-info-card.is-ai.is-warn strong {
    color: #c2410c;
}

.total-content-detail-category-panel {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 55%, #f8fafc 100%);
}

.total-content-detail-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.total-content-detail-section-head h4 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

.total-content-detail-section-head p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.total-content-detail-pay-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.total-content-detail-pay-badge.is-paid {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
}

.total-content-detail-pay-badge.is-free {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.total-content-detail-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.total-content-detail-category-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.total-content-detail-category-item span {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-content-detail-category-item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #312e81;
    line-height: 1.45;
}

.total-content-detail-category-item em {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    font-style: normal;
    color: #64748b;
    line-height: 1.4;
}

.total-content-detail-section {
    margin-bottom: 16px;
}

.total-content-detail-preview-box {
    border-radius: 16px;
    border: 1px solid #e8edf5;
    background: #fff;
    overflow: hidden;
}

.total-content-detail-preview-media {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    color: #475569;
    background: linear-gradient(135deg, #e8f4ff, #f5f0ff);
}

.total-content-detail-preview-media.is-video {
    background: linear-gradient(135deg, #1f2937, #4b5563);
    color: #f8fafc;
}

.total-content-detail-preview-media.comment {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
}

.total-content-detail-preview-media.is-risk {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
}

.total-content-detail-preview-media.spa {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #9d174d;
}

.total-content-detail-body-text {
    margin: 0;
    padding: 16px 18px 18px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #334155;
    border: none;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.total-content-detail-reject-section {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fef2f2, #fff1f2);
}

.total-content-detail-reject-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #b91c1c;
}

.total-content-detail-comments-card {
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid #e8edf5;
    box-shadow: none;
}

.total-content-detail-timeline {
    padding: 4px 0 0;
}

.total-content-detail-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px -4px 0;
    padding: 16px 18px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e8edf5;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.total-content-detail-foot .total-gc-foot-btn[hidden] {
    display: none;
}

.total-gc-foot-btn.is-danger {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2, #fee2e2);
    color: #b91c1c;
}

.total-gc-foot-btn.is-danger:hover {
    border-color: #fca5a5;
    background: #fecaca;
}

@media (max-width: 1100px) {
    .total-content-detail-metrics,
    .total-content-detail-info-grid,
    .total-content-detail-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-content-detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .total-content-detail-metrics,
    .total-content-detail-info-grid,
    .total-content-detail-category-grid {
        grid-template-columns: 1fr;
    }

    .total-content-detail-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .total-content-detail-foot .total-gc-foot-btn {
        width: 100%;
        justify-content: center;
    }
}

.total-note-subscription-cell {
    font-size: 12px;
    line-height: 1.35;
    color: #475569;
}

.cols-total-goods {
    grid-template-columns: 1.4fr 0.85fr 1.1fr 1fr 0.9fr 0.85fr 1fr;
}

.cols-total-goods-center {
    grid-template-columns: 1.15fr 0.85fr 0.95fr 0.78fr 0.78fr 0.65fr 0.68fr 0.82fr 0.72fr 1.05fr;
}

.total-gc-sales-amount {
    font-weight: 600;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.cols-total-gc-detail-orders {
    grid-template-columns: 1.15fr 0.95fr 0.8fr 1fr 0.78fr 0.62fr;
}

.total-gc-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.total-gc-detail-section-head h4 {
    margin: 0;
}

.total-gc-detail-section-head span {
    font-size: 0.8rem;
    color: #64748b;
}

.total-gc-detail-orders-section {
    margin-bottom: 4px;
}

.total-gc-detail-orders-table {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.total-gc-detail-orders-table .merchant-marketing-table-head {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf5;
}

.total-gc-detail-orders-table .merchant-marketing-row {
    border-bottom: 1px solid #f1f5f9;
}

.total-gc-detail-orders-table .merchant-marketing-row:last-child {
    border-bottom: none;
}

.total-gc-detail-orders-empty span:first-child {
    color: #94a3b8;
    font-weight: 500;
}

.total-gc-detail-orders-table .merchant-marketing-actions {
    gap: 4px;
}

.cols-total-category {
    grid-template-columns: 0.55fr 0.65fr 1.15fr 0.95fr 0.6fr 0.75fr 0.75fr 1.05fr;
}

.total-category-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 1.05rem;
    line-height: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.total-category-list-icon.is-beauty { background: #fdf2f8; border-color: #fbcfe8; }
.total-category-list-icon.is-food { background: #fff7ed; border-color: #fed7aa; }
.total-category-list-icon.is-hotel { background: #eff6ff; border-color: #bfdbfe; }
.total-category-list-icon.is-fun { background: #f5f3ff; border-color: #ddd6fe; }
.total-category-list-icon.is-car { background: #f1f5f9; border-color: #cbd5e1; }
.total-category-list-icon.is-shop { background: #fefce8; border-color: #fef08a; }
.total-category-list-icon.is-health { background: #ecfdf5; border-color: #a7f3d0; }
.total-category-list-icon.is-edu { background: #e0f2fe; border-color: #bae6fd; }
.total-category-list-icon.is-life { background: #f0fdf4; border-color: #bbf7d0; }
.total-category-list-icon.is-default { background: #f8fafc; border-color: #e2e8f0; }
.total-category-list-icon.is-inherit {
    font-size: 0.72rem;
    color: #94a3b8;
    background: #f8fafc;
}

.total-category-icon-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.total-category-icon-option {
    display: grid;
    gap: 4px;
    align-items: center;
    justify-items: center;
    padding: 10px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.total-category-icon-option span {
    font-size: 1.35rem;
    line-height: 1;
}

.total-category-icon-option em {
    font-size: 0.68rem;
    font-style: normal;
    color: #64748b;
    font-weight: 600;
}

.total-category-icon-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.total-category-icon-option.is-active {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.total-category-icon-option.is-active em {
    color: #1d4ed8;
}

.total-category-edit-icon.has-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.total-category-hero-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.total-category-edit-preview-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-category-edit-preview-with-icon .total-category-list-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
}

@media (max-width: 520px) {
    .total-category-icon-picker {
        grid-template-columns: repeat(3, 1fr);
    }
}

.total-goods-center-stats,
.total-category-stats {
    margin-bottom: 16px;
}

.total-category-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* 商品中心列表操作与详情弹窗 */
.total-gc-row-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.total-gc-row-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.total-gc-row-action:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
}

.total-gc-row-action.is-primary {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.total-gc-row-action.is-primary:hover {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.total-gc-row-action.is-warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.total-gc-row-action.is-warn:hover {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.total-gc-row-action.is-warn:hover {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.total-gc-row-action.is-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.total-gc-row-action.is-success:hover {
    border-color: #6ee7b7;
    background: #d1fae5;
    color: #065f46;
}

.cols-total-goods .merchant-marketing-actions {
    gap: 6px;
}

/* 商品审核详情页 */
.total-goods-audit-detail-page {
    padding-bottom: 0;
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.total-goods-audit-detail-page .merchant-goods-breadcrumb {
    margin-bottom: 12px;
}

.total-goods-audit-detail-hero {
    border-radius: 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 38%, #ea580c 100%);
}

.total-goods-audit-detail-hero .total-gc-detail-hero-main h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-goods-audit-detail-label {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.total-goods-audit-detail-body {
    padding: 18px 4px 12px;
    overflow: auto;
    min-height: 0;
}

.total-goods-audit-audit-hint p {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.total-goods-audit-materials-hint {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.total-goods-audit-detail-foot {
    margin: 0 -4px;
    border-radius: 0 0 16px 16px;
}

.total-goods-audit-detail-foot .total-gc-foot-btn[hidden] {
    display: none;
}

.total-gc-foot-btn.is-success {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    color: #047857;
}

.total-gc-foot-btn.is-success:hover {
    border-color: #6ee7b7;
    background: #bbf7d0;
}

.total-gc-foot-btn.is-warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.total-gc-foot-btn.is-warn:hover {
    border-color: #fdba74;
    background: #ffedd5;
}

.cols-total-goods-center .merchant-marketing-actions {
    gap: 6px;
}

/* 商品中心：全屏详情（打开时隐藏列表） */
.total-goods-center-page.merchant-section-card {
    padding-bottom: 0;
    min-height: calc(100vh - 96px);
}

.total-gc-split-shell {
    display: block;
    min-height: calc(100vh - 140px);
}

.total-gc-split-shell.is-detail-open {
    display: block;
    min-height: calc(100vh - 140px);
}

.total-gc-split-shell.is-detail-open .total-gc-list-shell {
    display: none;
}

.total-gc-detail-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: calc(100vh - 140px);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.total-gc-detail-panel[hidden] {
    display: none !important;
}

.total-gc-split-shell.is-detail-open .total-gc-detail-panel {
    display: grid;
    width: 100%;
    min-height: calc(100vh - 140px);
}

.total-gc-list-shell {
    min-width: 0;
}

.total-gc-detail-dialog {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.total-gc-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 42%, #0ea5e9 100%);
    color: #fff;
}

.total-gc-detail-hero-visual {
    display: grid;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.total-gc-detail-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.total-gc-detail-thumb.is-beauty { background: linear-gradient(145deg, rgba(253, 242, 248, 0.35), rgba(251, 207, 232, 0.2)); }
.total-gc-detail-thumb.is-food { background: linear-gradient(145deg, rgba(255, 247, 237, 0.35), rgba(254, 215, 170, 0.2)); }
.total-gc-detail-thumb.is-hotel { background: linear-gradient(145deg, rgba(239, 246, 255, 0.35), rgba(191, 219, 254, 0.2)); }
.total-gc-detail-thumb.is-fun { background: linear-gradient(145deg, rgba(245, 243, 255, 0.35), rgba(221, 214, 254, 0.2)); }
.total-gc-detail-thumb.is-car { background: linear-gradient(145deg, rgba(241, 245, 249, 0.35), rgba(203, 213, 225, 0.2)); }
.total-gc-detail-thumb.is-shop { background: linear-gradient(145deg, rgba(254, 252, 232, 0.35), rgba(254, 240, 138, 0.2)); }
.total-gc-detail-thumb.is-health { background: linear-gradient(145deg, rgba(236, 253, 245, 0.35), rgba(167, 243, 208, 0.2)); }
.total-gc-detail-thumb.is-edu { background: linear-gradient(145deg, rgba(224, 242, 254, 0.35), rgba(186, 230, 253, 0.2)); }
.total-gc-detail-thumb.is-life { background: linear-gradient(145deg, rgba(240, 253, 244, 0.35), rgba(187, 247, 208, 0.2)); }

.total-gc-detail-thumb-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 80px;
    line-height: 1.35;
}

.total-gc-detail-hero-main {
    min-width: 0;
}

.total-gc-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.total-gc-detail-badges .merchant-marketing-badge {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.total-gc-detail-mode {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.total-gc-detail-hero h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-gc-detail-meta,
.total-gc-detail-merchant-line {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.total-gc-detail-meta strong,
.total-gc-detail-merchant-line strong {
    color: #fff;
    font-weight: 700;
}

.total-gc-detail-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.total-gc-detail-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.total-gc-detail-body {
    padding: 18px 22px 8px;
    overflow: auto;
    min-height: 0;
}

.total-gc-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.total-gc-detail-metric {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.total-gc-detail-metric.is-price {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #f0f9ff);
}

.total-gc-detail-metric span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-gc-detail-metric strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.3;
}

.total-gc-detail-metric.is-price strong {
    color: #1d4ed8;
}

.total-gc-detail-metric.is-high,
.total-gc-detail-risk-wrap.is-high {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2, #fff1f2);
}

.total-gc-detail-metric.is-high strong,
.total-gc-detail-risk-wrap.is-high strong {
    color: #b91c1c;
}

.total-gc-detail-metric em {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-style: normal;
    color: #94a3b8;
    line-height: 1.4;
}

.total-gc-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.total-gc-detail-info-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.total-gc-detail-info-card span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-gc-detail-info-card strong {
    display: block;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.4;
}

.total-gc-detail-info-card em {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-style: normal;
    color: #94a3b8;
}

.total-gc-detail-section {
    margin-bottom: 14px;
}

.total-gc-detail-section h4 {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.total-gc-detail-section p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #475569;
}

.total-gc-detail-reject p {
    color: #b91c1c;
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
}

.total-gc-detail-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.total-gc-detail-media-item {
    display: grid;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    text-align: center;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
}

.total-gc-detail-media-item::before {
    content: "🖼";
    font-size: 1.25rem;
    line-height: 1;
}

.total-gc-detail-timeline {
    margin-top: 4px;
}

.total-gc-detail-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px 20px;
    border-top: 1px solid #e8edf5;
    background: #f8fafc;
}

.total-gc-foot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.total-gc-foot-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.total-gc-foot-btn.secondary {
    background: transparent;
    color: #64748b;
}

.total-gc-foot-btn.is-accent {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}

.total-gc-foot-btn.is-accent:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.total-gc-foot-btn.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.total-gc-foot-btn.is-danger:hover {
    border-color: #fca5a5;
    background: #fee2e2;
}

@media (max-width: 640px) {
    .total-gc-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-gc-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .total-gc-detail-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .total-gc-detail-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .total-gc-detail-hero {
        position: relative;
    }
}

/* 商品审核 · 驳回弹窗 */
.total-goods-audit-reject-dialog {
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.total-goods-audit-reject-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 42%, #ea580c 100%);
    color: #fff;
}

.total-goods-audit-reject-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.total-goods-audit-reject-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.total-goods-audit-reject-icon svg {
    width: 26px;
    height: 26px;
}

.total-goods-audit-reject-label {
    display: inline-flex;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.total-goods-audit-reject-hero h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-goods-audit-reject-hero p {
    margin: 6px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.total-goods-audit-reject-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.total-goods-audit-reject-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.total-goods-audit-reject-body {
    padding: 18px 22px 12px;
}

.total-goods-audit-reject-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.total-goods-audit-reject-meta div {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
}

.total-goods-audit-reject-meta span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-goods-audit-reject-meta strong {
    display: block;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.4;
}

.total-goods-audit-reject-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 22px 20px;
    border-top: 1px solid #e8edf5;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .total-goods-audit-reject-meta {
        grid-template-columns: 1fr;
    }
}

/* 商品治理 · 强制下架弹窗 */
.total-goods-audit-delist-dialog {
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.total-goods-audit-delist-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 42%, #dc2626 100%);
    color: #fff;
}

.total-goods-audit-delist-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.total-goods-audit-delist-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.total-goods-audit-delist-icon svg {
    width: 26px;
    height: 26px;
}

.total-goods-audit-delist-label {
    display: inline-flex;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.total-goods-audit-delist-hero h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-goods-audit-delist-hero p {
    margin: 6px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.total-goods-audit-delist-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.total-goods-audit-delist-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.total-goods-audit-delist-body {
    padding: 20px 22px 8px;
}

.total-goods-audit-delist-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.total-goods-audit-delist-meta div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.total-goods-audit-delist-meta span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-goods-audit-delist-meta strong {
    display: block;
    font-size: 0.86rem;
    color: #0f172a;
    line-height: 1.4;
}

.total-goods-audit-delist-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 22px 20px;
    border-top: 1px solid #e8edf5;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .total-goods-audit-delist-meta {
        grid-template-columns: 1fr;
    }
}

/* 商品管理 P0：审核分派 / SLA / 批量 / 变更 / 申诉 / 违规库 */
.cols-total-goods-audit {
    grid-template-columns: 0.4fr 1fr 0.88fr 0.55fr 0.5fr 0.62fr 0.82fr 0.58fr 0.72fr 0.5fr 0.52fr 0.95fr;
}

.cols-total-goods-audit-hub-mini {
    grid-template-columns: 0.9fr 1.1fr 0.85fr 0.62fr 0.62fr 0.5fr;
}

.cols-total-goods-audit-policy {
    grid-template-columns: 0.85fr 0.75fr 0.55fr 0.45fr 0.5fr 1.2fr 1fr 0.45fr;
}

.total-ai-risk-badge,
.total-audit-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.total-ai-risk-badge.is-l0 {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.total-ai-risk-badge.is-l1 {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.total-ai-risk-badge.is-l2 {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.total-ai-risk-badge.is-l3 {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.total-ai-risk-badge.is-l4 {
    background: #450a0a;
    color: #fecaca;
    border: 1px solid #991b1b;
}

.total-audit-tier-badge.is-s1 {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.total-audit-tier-badge.is-s2 {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.total-audit-tier-badge.is-s3 {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.total-audit-tier-badge.is-s4 {
    background: #fdf2f8;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.total-goods-ai-report-section {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: 14px;
    padding: 16px 18px;
}

.total-goods-ai-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.total-goods-ai-report-metric {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
}

.total-goods-ai-report-metric span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.total-goods-ai-report-metric strong {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: #0f172a;
}

.total-goods-ai-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.total-goods-ai-check-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.total-goods-ai-check-item.is-pass {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.total-goods-ai-check-item.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.total-goods-ai-check-item.is-fail {
    border-color: #fecaca;
    background: #fef2f2;
}

.total-goods-ai-check-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
}

.total-goods-ai-check-head span {
    color: #64748b;
    font-size: 0.76rem;
}

.total-goods-ai-check-item p {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #334155;
}

.total-goods-ai-check-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.total-goods-ai-check-tags em {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-style: normal;
}

.total-goods-ai-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.total-goods-audit-hub-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 16px;
    margin-top: 16px;
}

.total-goods-audit-hub-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.total-goods-audit-tier-bars {
    display: grid;
    gap: 10px;
}

.total-goods-audit-tier-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.total-goods-audit-tier-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.total-goods-audit-tier-track em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.total-goods-audit-domain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.total-goods-audit-domain-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.84rem;
}

.total-goods-audit-policy-legend-wrap {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.total-goods-audit-policy-legend {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.total-goods-audit-policy-legend li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    font-size: 0.84rem;
}

.stats-grid.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .stats-grid.cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .total-goods-ai-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-goods-audit-hub-split {
        grid-template-columns: 1fr;
    }
}

.total-goods-audit-stats {
    margin-bottom: 14px;
}

.total-goods-audit-batch-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.total-goods-audit-batch-bar > span {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e40af;
    margin-right: 4px;
}

.total-goods-audit-check,
.total-goods-audit-check-all {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.total-goods-audit-check input,
.total-goods-audit-check-all input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.total-goods-sla-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

.total-goods-sla-badge.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.total-goods-sla-badge.is-warning {
    background: #fffbeb;
    color: #b45309;
}

.total-goods-sla-badge.is-overdue {
    background: #fef2f2;
    color: #b91c1c;
}

.cols-total-goods-change {
    grid-template-columns: 0.42fr 1.05fr 0.62fr 0.85fr 0.85fr 0.72fr 0.95fr 0.62fr 1fr;
}

.total-goods-change-before {
    color: #64748b;
}

.total-goods-change-after {
    color: #1d4ed8;
    font-weight: 600;
}

.total-goods-change-diff {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-goods-change-diff article {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
}

.total-goods-change-diff article span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 6px;
}

.total-goods-change-diff article strong {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.45;
}

.total-goods-change-diff .is-before strong {
    color: #64748b;
}

.total-goods-change-diff .is-after {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.total-goods-change-diff .is-after strong {
    color: #1d4ed8;
}

.cols-total-goods-appeal {
    grid-template-columns: 0.9fr 1fr 0.85fr 0.72fr 1.4fr 0.95fr 0.72fr 0.62fr 0.95fr;
}

.total-goods-appeal-original {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* 申诉复议详情 */
.total-goods-appeal-detail-page .total-goods-audit-detail-hero {
    align-items: stretch;
}

.total-goods-appeal-detail-body {
    padding-top: 4px;
}

.total-goods-appeal-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-goods-appeal-compare article {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
}

.total-goods-appeal-compare h4 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.total-goods-appeal-compare p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
}

.total-goods-appeal-compare .is-original {
    border-color: #fecaca;
    background: #fef2f2;
}

.total-goods-appeal-compare .is-original h4 {
    color: #b91c1c;
}

.total-goods-appeal-compare .is-fix {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.total-goods-appeal-compare .is-fix h4 {
    color: #1d4ed8;
}

.total-goods-appeal-materials-hint {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.total-goods-appeal-detail-foot {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .total-goods-appeal-compare {
        grid-template-columns: 1fr;
    }
}

.total-violation-tabs {
    margin-bottom: 12px;
}

.cols-total-violation-words {
    grid-template-columns: 1fr 0.9fr 0.55fr 0.75fr;
}

.cols-total-violation-prohibited {
    grid-template-columns: 1.1fr 0.9fr 0.65fr 0.55fr 0.75fr;
}

.cols-total-violation-cases {
    grid-template-columns: 0.9fr 0.72fr 1.6fr 0.55fr 0.75fr;
}

.total-violation-case-reason {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}

.total-goods-audit-assign-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
}

.total-goods-audit-assign-label {
    display: inline-flex;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
}

.total-goods-audit-assign-body,
.total-violation-edit-body {
    padding: 20px 22px 8px;
}

.total-gc-foot-btn.is-primary {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}

@media (max-width: 1100px) {
    .cols-total-goods-audit,
    .cols-total-goods-change,
    .cols-total-goods-appeal,
    .cols-total-goods-audit-hub-mini,
    .cols-total-goods-audit-policy {
        grid-template-columns: 1fr;
    }

    .total-goods-change-diff {
        grid-template-columns: 1fr;
    }
}

/* 类目新增 / 编辑弹窗 */
.total-category-edit-dialog {
    width: min(480px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.total-category-edit-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #0f4c81 0%, #1d6fb8 48%, #3b8fd4 100%);
    color: #fff;
}

.total-category-edit-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.total-category-edit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.total-category-edit-icon svg {
    width: 26px;
    height: 26px;
}

.total-category-edit-level {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.total-category-edit-level.is-l2 {
    background: rgba(255, 237, 213, 0.22);
    border-color: rgba(255, 237, 213, 0.45);
}

.total-category-edit-hero h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-category-edit-hero p {
    margin: 6px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.total-category-edit-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.total-category-edit-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.04);
}

.total-category-edit-body {
    padding: 18px 22px 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
}

.total-category-edit-preview {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.total-category-edit-preview-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

.total-category-edit-preview strong {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.total-category-edit-preview em {
    font-size: 0.78rem;
    font-style: normal;
    color: #94a3b8;
}

.total-category-edit-form {
    display: grid;
    gap: 14px;
}

.total-category-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.total-category-edit-field {
    display: grid;
    gap: 8px;
}

.total-category-edit-label span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.total-category-edit-label em {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    font-style: normal;
    color: #94a3b8;
}

.total-category-edit-input,
.total-category-edit-select-wrap select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    font-size: 0.92rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-category-edit-input:focus,
.total-category-edit-select-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.total-category-edit-select-wrap {
    position: relative;
}

.total-category-edit-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.total-category-edit-select-wrap select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.total-category-status-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 42px;
}

.total-category-status-option {
    position: relative;
    display: block;
    height: 100%;
    cursor: pointer;
}

.total-category-status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.total-category-status-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.15s ease;
}

.total-category-status-option input:checked + span {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.total-category-status-option input[value="停用"]:checked + span {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.12);
}

.total-category-edit-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 20px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.total-category-edit-cancel {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.total-category-edit-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.total-category-edit-foot .merchant-primary-btn {
    min-width: 108px;
    height: 40px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

/* 费率新增 / 编辑弹窗 */
.total-rate-edit-dialog {
    width: min(580px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 32px 72px rgba(6, 78, 59, 0.28);
}

.total-rate-edit-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 20px;
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 42%, #14b8a6 100%);
    color: #fff;
    overflow: hidden;
}

.total-rate-edit-hero-glow {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
    pointer-events: none;
}

.total-rate-edit-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    z-index: 1;
}

.total-rate-edit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.total-rate-edit-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.total-rate-edit-mode {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.total-rate-edit-dialog.is-edit .total-rate-edit-mode {
    background: rgba(254, 243, 199, 0.22);
    border-color: rgba(254, 243, 199, 0.45);
}

.total-rate-edit-hero h3 {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-rate-edit-hero p {
    margin: 6px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.84);
}

.total-rate-edit-close {
    flex-shrink: 0;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.total-rate-edit-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.04);
}

.total-rate-edit-body {
    max-height: min(62vh, 560px);
    overflow-y: auto;
    padding: 16px 20px 8px;
    background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 48px, #fff 160px);
}

.total-rate-edit-preview-card {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ccfbf1;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.total-rate-edit-preview-top {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.total-rate-edit-preview-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f766e;
    letter-spacing: 0.03em;
}

.total-rate-edit-preview-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.total-rate-edit-preview-meta {
    font-size: 0.8rem;
    font-style: normal;
    color: #64748b;
}

.total-rate-edit-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.total-rate-edit-metric {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.total-rate-edit-metric span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}

.total-rate-edit-metric strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.total-rate-edit-metric.is-base {
    border-color: #99f6e4;
    background: linear-gradient(180deg, #f0fdfa, #ecfeff);
}

.total-rate-edit-metric.is-base strong {
    color: #0f766e;
}

.total-rate-edit-metric.is-cap {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb, #fefce8);
}

.total-rate-edit-metric.is-cap strong {
    color: #b45309;
}

.total-rate-edit-metric.is-min {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.total-rate-edit-metric.is-min strong {
    color: #334155;
}

.total-rate-edit-preview-hint {
    margin: 10px 0 0;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.45;
}

.total-rate-edit-section {
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
}

.total-rate-edit-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.total-rate-edit-section-head h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.total-rate-edit-section-head p {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: #94a3b8;
}

.total-rate-edit-section-body {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.total-rate-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.total-rate-edit-field {
    display: grid;
    gap: 6px;
}

.total-rate-edit-label span {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.total-rate-edit-label em {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    font-style: normal;
    color: #94a3b8;
}

.total-rate-edit-input,
.total-rate-edit-select-wrap select,
.total-rate-edit-tier-row input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-rate-edit-input:focus,
.total-rate-edit-select-wrap select:focus,
.total-rate-edit-tier-row input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.total-rate-edit-select-wrap {
    position: relative;
}

.total-rate-edit-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.total-rate-edit-select-wrap select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.total-rate-edit-suffix-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-rate-edit-suffix-wrap:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.total-rate-edit-suffix-wrap .total-rate-edit-input {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.total-rate-edit-suffix-wrap .total-rate-edit-input:focus {
    box-shadow: none;
}

.total-rate-edit-suffix {
    flex-shrink: 0;
    padding: 0 12px;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

.total-rate-edit-suffix-wrap.is-money .total-rate-edit-suffix {
    border-left: none;
    border-right: 1px solid #e2e8f0;
}

.total-rate-status-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 40px;
}

.total-rate-status-option {
    position: relative;
    display: block;
    height: 100%;
    cursor: pointer;
}

.total-rate-status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.total-rate-status-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.15s ease;
}

.total-rate-status-option input[value="生效中"]:checked + span {
    border-color: #0d9488;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0f766e;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.15);
}

.total-rate-status-option input[value="待生效"]:checked + span {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
}

.total-rate-status-option input[value="已停用"]:checked + span {
    border-color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.total-rate-edit-section.is-tiers .total-rate-edit-section-head {
    align-items: center;
}

.total-rate-edit-tier-add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.total-rate-edit-tier-add span {
    font-size: 1rem;
    line-height: 1;
}

.total-rate-edit-tier-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.total-rate-edit-tiers-block {
    padding: 0 14px 14px;
}

.total-rate-edit-tier-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.65fr 1fr 40px;
    gap: 8px;
    padding: 8px 4px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.total-rate-edit-tiers {
    display: grid;
    gap: 6px;
}

.total-rate-edit-tier-row {
    display: grid;
    grid-template-columns: 1.2fr 0.65fr 1fr 40px;
    gap: 8px;
    align-items: center;
}

.total-rate-edit-tier-row input {
    height: 36px;
    font-size: 0.86rem;
}

.total-rate-edit-tier-remove {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.total-rate-edit-tier-remove:hover {
    background: #fee2e2;
}

.total-rate-edit-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.total-rate-edit-cancel {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.total-rate-edit-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.total-rate-edit-submit {
    min-width: 112px;
    height: 40px;
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.32) !important;
}

.total-rate-edit-submit:hover {
    filter: brightness(1.05);
}

@media (max-width: 560px) {
    .total-rate-edit-metrics {
        grid-template-columns: 1fr;
    }

    .total-rate-edit-row {
        grid-template-columns: 1fr;
    }

    .total-rate-edit-tier-columns,
    .total-rate-edit-tier-row {
        grid-template-columns: 1fr 1fr;
    }

    .total-rate-edit-tier-columns span:nth-child(3),
    .total-rate-edit-tier-columns span:nth-child(4) {
        display: none;
    }

    .total-rate-status-switch {
        grid-template-columns: 1fr;
        height: auto;
    }

    .total-rate-status-option span {
        height: 38px;
    }

    .total-rate-edit-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .total-rate-edit-foot {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 520px) {
    .total-category-edit-row {
        grid-template-columns: 1fr;
    }

    .total-category-edit-hero {
        padding: 18px 16px 14px;
    }

    .total-category-edit-body,
    .total-category-edit-foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.cols-total-finance {
    grid-template-columns: 1.1fr 1.2fr 0.85fr 0.85fr 0.75fr 0.95fr 0.85fr;
}

.cols-total-settle-merchants {
    grid-template-columns: 1.3fr 0.9fr 0.8fr 0.8fr 0.8fr 0.85fr;
}

.cols-total-finance-rich {
    grid-template-columns: 1fr 0.95fr 1fr 0.65fr 0.8fr 0.8fr 0.75fr 0.7fr 0.85fr 0.7fr;
}

.cols-total-rate-rich {
    grid-template-columns: 1.2fr 0.75fr 0.85fr 1fr 0.9fr 0.75fr 0.8fr;
}

.cols-total-rate-tier {
    grid-template-columns: 1fr 0.8fr 1.5fr;
}

.cols-total-settle-rich {
    grid-template-columns: 1.1fr 0.85fr 0.65fr 0.85fr 0.85fr 0.9fr 0.75fr 0.75fr;
}

.cols-total-settle-merchants-rich {
    grid-template-columns: 1.2fr 0.85fr 0.75fr 0.75fr 0.8fr 0.75fr 0.8fr;
}

.cols-total-settle-adjust {
    grid-template-columns: 0.9fr 1fr 1fr 0.75fr 1.4fr;
}

.cols-total-settle-orders {
    grid-template-columns: 1.1fr 1.2fr 0.85fr 0.75fr 0.85fr 0.75fr;
}

.cols-total-audit-items {
    grid-template-columns: 0.9fr 0.75fr 1fr 1.3fr 0.7fr;
}

.total-finance-channel-split {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 28px 16px;
}

.total-finance-channel-split article {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--total-border, #e8edf5);
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.total-finance-channel-split span {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
}

.total-finance-channel-split strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
}

.total-finance-channel-split p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.total-finance-flow-tabs,
.total-finance-settle-tabs {
    margin: 0 28px 12px;
}

.total-finance-breakdown-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin: 0 28px 16px;
}

.total-finance-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 20px 8px;
}

.total-finance-breakdown-grid div {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f8fc;
    border: 1px solid #e8edf5;
}

.total-finance-breakdown-grid span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
}

.total-finance-breakdown-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    color: #1e293b;
}

.total-finance-breakdown-note {
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.total-finance-doc-list {
    padding: 12px 20px 20px;
    display: grid;
    gap: 10px;
}

.total-finance-doc-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e8edf5;
}

.total-finance-doc-list div:last-child {
    border-bottom: 0;
}

.total-finance-doc-list span {
    color: #64748b;
    font-size: 0.85rem;
}

.total-finance-settle-summary {
    margin: 0 28px 16px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #f8faff;
}

.total-finance-audit-steps {
    margin: 0 28px 16px;
}

.total-finance-audit-step-list {
    display: flex;
    gap: 8px;
    padding: 16px 20px 20px;
    flex-wrap: wrap;
}

.total-finance-audit-step-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f1f5f9;
    color: #64748b;
}

.total-finance-audit-step-list span.is-done {
    background: #ecfdf5;
    color: #047857;
}

.total-finance-bank-hint {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: normal;
    margin-top: 2px;
}

.total-finance-diff-tag {
    font-size: 0.72rem;
    color: #b45309;
    font-style: normal;
}

@media (max-width: 1100px) {
    .total-finance-breakdown-layout,
    .total-finance-channel-split,
    .total-finance-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

.cols-total-rate,
.cols-total-settle,
.cols-total-export {
    grid-template-columns: 1.4fr 0.9fr 1fr 1fr 0.8fr 0.9fr;
}

.cols-total-data-alert {
    grid-template-columns: 1.1fr 0.85fr 0.9fr 0.85fr 1fr 0.8fr 0.85fr;
}

.cols-total-audit-diff {
    grid-template-columns: 1fr 0.9fr 1fr 1fr 0.8fr 0.85fr 0.85fr;
}

@media (max-width: 1100px) {
    .total-console-page.total-fullscreen-layout {
        height: auto;
        overflow: auto;
    }

    .total-dashboard-app {
        height: auto;
        max-height: none;
    }

    .total-console-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .total-sidebar-panel {
        border-right: 0;
        border-bottom: 1px solid #eceff4;
        height: auto;
        max-height: none;
    }

    .total-main-panel {
        height: auto;
        min-height: 50vh;
    }

    .total-dashboard-hero {
        flex-direction: column;
    }

    .total-dashboard-hero-chips {
        justify-content: flex-start;
    }
}

/* —— 总后台视觉优化（全屏控制台） —— */

.total-console-page {
    --total-surface: #ffffff;
    --total-surface-soft: #f6f8fc;
    --total-border: #e8edf5;
    --total-shadow: 0 10px 36px rgba(31, 42, 68, 0.06);
    --total-shadow-lg: 0 18px 48px rgba(49, 94, 251, 0.08);
}

.total-console-page .total-main-panel {
    padding: 20px 24px 28px;
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.05), transparent 32%),
        linear-gradient(180deg, #f3f6fb 0%, #eef2f8 100%);
}

.total-console-page .total-fullscreen-layout .total-console-header.admin-global-header {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 1px 0 var(--total-border);
}

.total-console-page .total-panel-stack {
    gap: 16px;
}

.total-console-page .total-panel-stack > [data-total-panel] {
    background: var(--total-surface);
    border: 1px solid var(--total-border);
    border-radius: 20px;
    box-shadow: var(--total-shadow);
    overflow: hidden;
}

.total-console-page .merchant-marketing-page.merchant-section-card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.total-console-page .merchant-marketing-page .merchant-marketing-head {
    margin: 0;
    padding: 26px 28px 22px;
    border-radius: 0;
    border-bottom: 1px solid var(--total-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: none;
}

.total-console-page .merchant-marketing-page .merchant-section-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.total-console-page .merchant-marketing-page .merchant-marketing-head h2 {
    margin: 10px 0 8px;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: #1a2238;
}

.total-console-page .merchant-marketing-page .merchant-marketing-head p {
    font-size: 0.92rem;
    color: #6b778c;
    line-height: 1.65;
}

.total-console-page .merchant-marketing-page .merchant-section-tag {
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #edf2ff 0%, #e4ecff 100%);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.84rem;
    border: 1px solid #dce6ff;
}

.total-console-page .merchant-marketing-page .merchant-marketing-filter-card,
.total-console-page .merchant-marketing-page .merchant-marketing-table-card {
    margin: 0 28px 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.total-console-page .merchant-marketing-page .merchant-marketing-filter-card {
    padding: 18px 20px;
    margin-top: 20px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: var(--total-surface-soft);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.total-console-page .merchant-marketing-field input,
.total-console-page .merchant-marketing-field select {
    background: #fff;
    border-color: #dfe5f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .merchant-marketing-field input:focus,
.total-console-page .merchant-marketing-field select:focus {
    outline: none;
    border-color: #9eb4ff;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.12);
}

.total-console-page .merchant-marketing-filter-actions button {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.total-console-page .merchant-marketing-filter-actions button:hover {
    transform: translateY(-1px);
}

.total-console-page .merchant-marketing-filter-actions .is-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.25);
}

.total-console-page .merchant-marketing-table {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
}

.total-console-page .merchant-marketing-table-head {
    min-height: 48px;
    padding: 0 20px;
    background: linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
    color: #5a6578;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.total-console-page .merchant-marketing-row {
    min-height: 58px;
    padding: 0 20px;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.total-console-page .merchant-marketing-row:hover {
    background: #f8faff;
}

.total-console-page .merchant-marketing-row:last-child {
    border-bottom: none;
}

.total-console-page .merchant-marketing-row strong {
    color: #1f2a44;
    font-weight: 600;
}

.total-console-page .merchant-marketing-badge {
    min-width: 72px;
    height: 30px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.total-console-page .merchant-marketing-actions a {
    padding: 6px 12px;
    border-radius: 8px;
    background: #f0f4ff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.total-console-page .merchant-marketing-actions a:hover {
    background: var(--primary);
    color: #fff;
}

.total-console-page .merchant-marketing-footer {
    padding: 14px 4px 0;
    color: #7b8798;
    font-size: 0.86rem;
}

.total-console-page .merchant-marketing-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.total-console-page .merchant-marketing-toolbar h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2a44;
}

.total-console-page .merchant-marketing-page .merchant-goods-form,
.total-console-page .merchant-marketing-page .total-role-grid,
.total-console-page .merchant-marketing-page .stack-list,
.total-console-page .merchant-marketing-page .module-grid {
    margin: 0 28px 28px;
}

.total-console-page .merchant-marketing-page .merchant-goods-form {
    padding-bottom: 8px;
}

.total-console-page .merchant-primary-btn {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.22);
}

.total-console-page .merchant-primary-btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid #d9e4ff;
    box-shadow: none;
}

/* 商家审核 · 选项卡 */

.total-console-page #merchant-audit .merchant-marketing-head {
    padding-bottom: 18px;
}

.total-console-page .total-audit-tabs {
    margin: 0 28px 20px;
    padding: 5px;
    gap: 6px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: var(--total-surface-soft);
}

.total-console-page .total-audit-tab {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #64748b;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-audit-tab em {
    min-width: 24px;
    height: 24px;
    background: rgba(49, 94, 251, 0.1);
    color: var(--primary);
}

.total-console-page .total-audit-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(49, 94, 251, 0.12);
}

.total-console-page .total-audit-tab.active::after {
    display: none;
}

.total-console-page .total-audit-tab-panel .merchant-marketing-filter-card {
    margin-top: 0;
}

/* 统计卡片 */

.total-console-page .total-merchant-stats,
.total-console-page .total-audit-detail-stats,
.total-console-page .total-overview-stats {
    margin: 0 28px 20px;
}

.total-console-page .metric-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.08);
}

.total-console-page .metric-card strong {
    color: #1a2238;
    font-size: 1.35rem;
}

/* 审核 / 商家详情 */

.total-console-page .merchant-goods-breadcrumb {
    padding: 22px 28px 0;
    font-size: 0.88rem;
    color: #7b8798;
}

.total-console-page .merchant-goods-breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.total-console-page .total-audit-detail-head {
    margin: 16px 28px 20px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--total-border);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.total-console-page .total-merchant-detail-page .total-merchant-detail-head {
    margin: 16px 28px 20px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--total-border);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.total-console-page .total-audit-detail-stats .metric-card,
.total-console-page .total-merchant-detail-grid .merchant-system-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    box-shadow: none;
}

.total-console-page .total-audit-note-card,
.total-console-page .total-audit-reject-card {
    margin: 0 28px 16px;
    border-radius: 14px;
}

.total-console-page .total-audit-reject-card {
    border-color: #ffd8d8;
    background: #fff8f8;
}

.total-console-page .total-audit-materials-card {
    margin: 0 28px 20px;
    padding: 22px 24px;
    border: 1px solid var(--total-border);
    border-radius: 16px;
    background: var(--total-surface-soft);
}

.total-console-page .total-audit-material-card {
    border-radius: 14px;
    border-color: #e2e8f4;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-audit-material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 42, 68, 0.06);
}

.total-console-page .total-audit-material-thumb {
    border-radius: 12px;
    min-height: 100px;
}

.total-console-page .total-audit-material-card button {
    border-color: #d9e4ff;
    color: var(--primary);
    font-weight: 600;
}

.total-console-page .total-audit-detail-actions {
    margin: 0 28px 8px;
    padding-top: 8px;
}

.total-console-page .total-audit-detail-actions .merchant-primary-btn.secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
}

/* 侧栏 */

.total-console-page .total-sidebar-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    border-right-color: var(--total-border);
}

.total-console-page .merchant-secondary-panel {
    border-radius: 16px;
    border-color: #e8edf5;
    box-shadow: 0 8px 24px rgba(31, 42, 68, 0.05);
}

.total-console-page .merchant-side-item.active {
    background: linear-gradient(90deg, #eef3ff 0%, #f5f8ff 100%);
    color: var(--primary);
    font-weight: 600;
}

/* 总览页 */

.total-console-page .total-overview-shell .metric-card,
.total-console-page .total-overview-shell .panel-card {
    border-radius: 16px;
    border-color: var(--total-border);
    box-shadow: var(--total-shadow);
}

.total-console-page .total-dashboard-hero {
    border-radius: 20px;
    overflow: hidden;
}

.total-console-page .mini-panel.total-quick-link {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 1100px) {
    .total-console-page .merchant-marketing-page .merchant-marketing-filter-card,
    .total-console-page .merchant-marketing-page .merchant-marketing-table-card,
    .total-console-page .total-audit-tabs,
    .total-console-page .total-merchant-stats,
    .total-console-page .total-audit-detail-stats {
        margin-left: 18px;
        margin-right: 18px;
    }

    .total-console-page .total-audit-tab {
        font-size: 0.84rem;
        padding: 10px 12px;
    }
}

/* 商家审核 · 驳回原因弹窗 */
body.total-modal-open {
    overflow: hidden;
}

.total-audit-reject-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.total-audit-reject-modal[hidden] {
    display: none;
}

.total-audit-reject-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.total-audit-reject-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.22);
    animation: total-audit-reject-in 0.22s ease;
}

.total-audit-reject-dialog.is-wide {
    width: min(560px, 100%);
}

.total-complaint-assign-section {
    margin-bottom: 14px;
}

.total-complaint-assign-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
}

.total-complaint-assign-label em {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-muted);
}

.total-complaint-cs-list {
    display: grid;
    gap: 10px;
}

.total-complaint-cs-option {
    display: block;
    cursor: pointer;
}

.total-complaint-cs-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.total-complaint-cs-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.total-complaint-cs-option input:checked + .total-complaint-cs-card {
    border-color: var(--brand, #3d6fd8);
    background: #f0f5ff;
    box-shadow: 0 0 0 1px rgba(61, 111, 216, 0.15);
}

.total-complaint-cs-option input:focus-visible + .total-complaint-cs-card {
    outline: 2px solid rgba(61, 111, 216, 0.35);
    outline-offset: 2px;
}

.total-complaint-cs-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.total-complaint-cs-main strong {
    font-size: 0.95rem;
}

.total-complaint-cs-meta,
.total-complaint-cs-workload {
    font-size: 0.84rem;
    color: var(--text-muted);
}

@keyframes total-audit-reject-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.total-audit-reject-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.total-audit-reject-head.is-form {
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
}

.total-audit-reject-head h3 {
    margin: 6px 0 0;
    color: #1f2a44;
    font-size: 1.15rem;
}

.total-audit-reject-head p {
    margin: 8px 0 0;
    color: #6a7383;
    font-size: 0.88rem;
}

.total-audit-reject-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f4f6fa;
    color: #5c6578;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.total-audit-reject-close:hover {
    background: #edf1f7;
    color: #1f2a44;
}

.total-audit-reject-body {
    padding: 20px 24px 8px;
}

.total-audit-reject-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.total-audit-reject-meta div {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f9fc;
    border: 1px solid #edf1f7;
}

.total-audit-reject-meta span {
    display: block;
    margin-bottom: 6px;
    color: #8a93a5;
    font-size: 0.78rem;
}

.total-audit-reject-meta strong {
    color: #1f2a44;
    font-size: 0.92rem;
    line-height: 1.4;
}

.total-audit-reject-reason-card {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #ffd8d8;
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.total-audit-reject-reason-card h4 {
    margin: 0 0 10px;
    color: #d64545;
    font-size: 0.9rem;
}

.total-audit-reject-reason-card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
}

.total-audit-reject-hint {
    margin: 14px 0 0;
    color: #8a93a5;
    font-size: 0.82rem;
    line-height: 1.6;
}

.total-audit-reject-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 22px;
    border-top: 1px solid #edf1f7;
}

.total-audit-reject-foot button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
}

.total-audit-reject-foot .merchant-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
}

.total-audit-reject-foot .merchant-primary-btn.is-danger {
    border: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #e64545 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(230, 69, 69, 0.28);
}

.total-audit-reject-form-field {
    display: block;
    margin-bottom: 14px;
}

.total-audit-reject-form-field > span {
    display: block;
    margin-bottom: 8px;
    color: #1f2a44;
    font-size: 0.9rem;
    font-weight: 600;
}

.total-audit-reject-form-field > span em {
    margin-left: 6px;
    color: #8a93a5;
    font-size: 0.78rem;
    font-weight: 400;
    font-style: normal;
}

.total-audit-reject-form-field textarea {
    width: 100%;
    min-height: 108px;
    padding: 12px 14px;
    border: 1px solid #dbe2ec;
    border-radius: 12px;
    background: #f8f9fc;
    color: #1f2a44;
    font-size: 0.92rem;
    line-height: 1.65;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.total-audit-reject-form-field textarea:focus {
    outline: none;
    border-color: #6b8cff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.12);
}

.total-audit-reject-form-count {
    display: block;
    margin-top: 6px;
    color: #8a93a5;
    font-size: 0.78rem;
    font-style: normal;
    text-align: right;
}

.total-audit-reject-quick {
    margin-bottom: 4px;
}

.total-audit-reject-quick > span {
    display: block;
    margin-bottom: 8px;
    color: #6a7383;
    font-size: 0.82rem;
}

.total-audit-reject-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.total-audit-reject-quick-tags button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe2ec;
    border-radius: 999px;
    background: #fff;
    color: #4a5568;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.total-audit-reject-quick-tags button:hover {
    border-color: #6b8cff;
    color: #315efb;
    background: #f5f8ff;
}

@media (max-width: 640px) {
    .total-audit-reject-meta {
        grid-template-columns: 1fr;
    }

    .total-audit-reject-foot {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .total-audit-reject-foot button,
    .total-audit-reject-foot .merchant-primary-btn {
        width: 100%;
    }
}

/* 商家详情页 */

.total-merchant-detail-page .total-merchant-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.total-merchant-detail-page .total-merchant-detail-head-main {
    flex: 1 1 320px;
    min-width: 0;
}

.total-merchant-detail-page .total-merchant-detail-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex: 0 1 auto;
}

.total-merchant-detail-page .total-merchant-detail-profile {
    align-items: flex-start;
}

.total-merchant-detail-page .total-merchant-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 1.35rem;
    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.28);
}

.total-merchant-detail-page .total-merchant-detail-profile h2 {
    margin: 4px 0 8px;
    font-size: 1.35rem;
    color: #1a2238;
}

.total-merchant-detail-sub {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6a7383;
    font-size: 0.88rem;
}

.total-merchant-detail-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #315efb;
    font-size: 0.78rem;
    font-weight: 600;
}

.total-merchant-detail-head-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.total-merchant-detail-join-tip {
    color: #8a93a5;
    font-size: 0.84rem;
}

.total-merchant-detail-join-tip strong {
    color: #4a5568;
    font-weight: 600;
}

.total-console-page .total-merchant-detail-page .total-merchant-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.total-console-page .total-merchant-detail-page .total-merchant-detail-actions button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.total-console-page .total-merchant-detail-page .total-merchant-detail-actions button:hover {
    border-color: #ff8a8a;
    color: #e64545;
    background: #fff8f8;
}

.total-console-page .total-merchant-detail-stats {
    margin: 0 28px 20px;
    gap: 14px;
}

.total-console-page .total-merchant-detail-stats .metric-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 42, 68, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-merchant-detail-stats .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 42, 68, 0.08);
}

.total-console-page .total-merchant-detail-stats .metric-card.is-score strong {
    color: #f59e0b;
}

.total-console-page .total-merchant-detail-stats .metric-card.is-complaint strong {
    color: #e64545;
}

.total-console-page .total-merchant-detail-stats .metric-card.is-money strong {
    color: #315efb;
}

.total-merchant-detail-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 28px 20px;
}

.total-merchant-info-card {
    padding: 20px 22px;
    border: 1px solid var(--total-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 42, 68, 0.04);
}

.total-merchant-info-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #edf1f7;
}

.total-merchant-info-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2a44;
}

.total-merchant-info-head p {
    margin: 6px 0 0;
    color: #8a93a5;
    font-size: 0.82rem;
}

.total-merchant-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.total-merchant-info-list li {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: start;
}

.total-merchant-info-list li span {
    color: #8a93a5;
    font-size: 0.86rem;
}

.total-merchant-info-list li strong {
    color: #1f2a44;
    font-size: 0.94rem;
    line-height: 1.5;
    font-weight: 600;
}

.total-merchant-address-box {
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f8ff 0%, #f8f9fc 100%);
    border: 1px solid #e2e8f4;
}

.total-merchant-address-box p {
    margin: 0;
    color: #1f2a44;
    font-size: 0.95rem;
    line-height: 1.7;
}

.total-console-page .total-merchant-cert-card {
    margin: 0 28px 20px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 16px;
    background: var(--total-surface-soft);
    overflow: hidden;
}

.total-console-page .total-merchant-cert-card .merchant-marketing-toolbar {
    padding: 20px 22px 16px;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.total-console-page .total-merchant-cert-card .merchant-marketing-toolbar h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2a44;
}

.total-console-page .total-merchant-cert-card .merchant-marketing-toolbar p {
    margin: 6px 0 0;
    color: #8a93a5;
    font-size: 0.82rem;
}

.total-console-page .total-merchant-cert-card .merchant-marketing-table {
    padding: 0 22px 8px;
}

.total-console-page .total-merchant-detail-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 28px 28px;
    padding-top: 4px;
}

.total-console-page .total-merchant-detail-foot button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
}

.total-console-page .total-merchant-detail-foot .merchant-primary-btn.secondary {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 0 18px;
}

@media (max-width: 1100px) {
    .total-merchant-detail-body {
        grid-template-columns: 1fr;
    }

    .total-console-page .total-merchant-detail-stats {
        margin-left: 18px;
        margin-right: 18px;
    }

    .total-merchant-detail-body,
    .total-console-page .total-merchant-cert-card,
    .total-console-page .total-merchant-detail-foot {
        margin-left: 18px;
        margin-right: 18px;
    }
}

@media (max-width: 720px) {
    .total-merchant-detail-page .total-merchant-detail-head-side {
        align-items: stretch;
        width: 100%;
    }

    .total-console-page .total-merchant-detail-page .total-merchant-detail-actions {
        justify-content: stretch;
    }

    .total-console-page .total-merchant-detail-page .total-merchant-detail-actions .merchant-primary-btn,
    .total-console-page .total-merchant-detail-page .total-merchant-detail-actions button {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* 商家详情 · 经营概括（同步商户后台） */

.total-console-page .total-merchant-snapshot {
    margin: 0 28px 20px;
    padding: 22px 24px;
    border: 1px solid var(--total-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 42, 68, 0.04);
}

.total-console-page .total-merchant-snapshot.is-frozen {
    border-color: #ffd8d8;
    background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
}

.total-merchant-snapshot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f7;
}

.total-merchant-snapshot-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1a2238;
}

.total-merchant-snapshot-head p {
    margin: 6px 0 0;
    color: #8a93a5;
    font-size: 0.84rem;
}

.total-merchant-snapshot-sync {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f4ff;
    color: #315efb;
    font-size: 0.78rem;
    font-weight: 600;
}

.total-merchant-snapshot-empty {
    padding: 28px 20px;
    border-radius: 12px;
    background: #f8f9fc;
    text-align: center;
}

.total-merchant-snapshot-empty p {
    margin: 0;
    color: #8a93a5;
    font-size: 0.92rem;
}

.total-merchant-snapshot-block {
    margin-bottom: 18px;
}

.total-merchant-snapshot-block:last-child {
    margin-bottom: 0;
}

.total-merchant-snapshot-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.total-merchant-snapshot-block-head h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #1f2a44;
}

.total-merchant-snapshot-block-head span {
    color: #8a93a5;
    font-size: 0.78rem;
}

.total-merchant-overview-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.total-merchant-overview-metric {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #edf1f7;
    background: #f8f9fc;
}

.total-merchant-overview-metric.featured {
    border-color: #d9e4ff;
    background: linear-gradient(135deg, #f5f8ff 0%, #eef3ff 100%);
}

.total-merchant-overview-metric.compact {
    padding: 14px 14px;
}

.total-merchant-overview-metric span {
    display: block;
    margin-bottom: 6px;
    color: #8a93a5;
    font-size: 0.78rem;
}

.total-merchant-overview-metric strong {
    display: block;
    color: #1a2238;
    font-size: 1.2rem;
    line-height: 1.2;
}

.total-merchant-overview-metric p {
    margin: 8px 0 0;
    color: #6a7383;
    font-size: 0.76rem;
}

.total-merchant-overview-metric p em {
    color: #2fbf71;
    font-style: normal;
    font-weight: 600;
}

.total-merchant-mini-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.total-merchant-mini-stats article {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #edf1f7;
    background: #fff;
}

.total-merchant-mini-stats article.is-highlight {
    border-color: #c8d9ff;
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
}

.total-merchant-mini-stats article.is-warn {
    border-color: #ffd8b8;
    background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

.total-merchant-mini-stats article span {
    display: block;
    margin-bottom: 6px;
    color: #8a93a5;
    font-size: 0.78rem;
}

.total-merchant-mini-stats article strong {
    display: block;
    color: #1a2238;
    font-size: 1.35rem;
    line-height: 1.2;
}

.total-merchant-mini-stats article em {
    display: block;
    margin-top: 6px;
    color: #8a93a5;
    font-size: 0.74rem;
    font-style: normal;
}

.total-merchant-mini-stats article.is-highlight strong {
    color: #315efb;
}

.total-merchant-mini-stats article.is-warn strong {
    color: #f59e0b;
}

.total-merchant-snapshot-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.total-merchant-snapshot-card {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #edf1f7;
    background: #f8f9fc;
}

.total-merchant-snapshot-card h4 {
    margin: 0;
    font-size: 0.92rem;
    color: #1f2a44;
}

.total-merchant-snapshot-card-desc {
    margin: 4px 0 12px;
    color: #8a93a5;
    font-size: 0.76rem;
}

.total-merchant-snapshot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.total-merchant-snapshot-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #edf1f7;
}

.total-merchant-snapshot-list li span {
    color: #6a7383;
    font-size: 0.84rem;
}

.total-merchant-snapshot-list li strong {
    color: #1a2238;
    font-size: 0.95rem;
    font-weight: 700;
}

.total-merchant-hot-goods-table {
    border-radius: 12px;
    border: 1px solid #edf1f7;
    overflow: hidden;
    background: #fff;
}

.total-merchant-hot-goods-table .merchant-marketing-table-head {
    background: linear-gradient(180deg, #f8f9fc 0%, #f3f6fa 100%);
}

.total-merchant-hot-goods-empty span {
    color: #8a93a5;
}

@media (max-width: 1100px) {
    .total-console-page .total-merchant-snapshot {
        margin-left: 18px;
        margin-right: 18px;
    }

    .total-merchant-overview-metrics,
    .total-merchant-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-merchant-snapshot-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .total-merchant-overview-metrics,
    .total-merchant-mini-stats {
        grid-template-columns: 1fr;
    }

    .total-merchant-snapshot-head {
        flex-direction: column;
    }
}

/* 商家详情 · 营业额 K 线图 */

.total-merchant-kline-block {
    padding-bottom: 4px;
}

.total-merchant-snapshot-block-head.is-kline {
    align-items: center;
}

.total-merchant-kline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.total-merchant-kline-filters .merchant-overview-chip {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.82rem;
}

.total-merchant-kline-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.total-merchant-kline-summary article {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #edf1f7;
    background: #f8f9fc;
}

.total-merchant-kline-summary article span {
    display: block;
    margin-bottom: 6px;
    color: #8a93a5;
    font-size: 0.76rem;
}

.total-merchant-kline-summary article strong {
    color: #1a2238;
    font-size: 1rem;
    font-weight: 700;
}

.total-merchant-kline-summary article strong.is-up {
    color: #e64545;
}

.total-merchant-kline-summary article strong.is-down {
    color: #2fbf71;
}

.total-merchant-kline-chart-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 8px;
    padding: 14px 14px 8px;
    border-radius: 14px;
    border: 1px solid #edf1f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.total-merchant-kline-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    padding-top: 18px;
    padding-bottom: 8px;
}

.total-merchant-kline-y-axis span {
    color: #8a93a5;
    font-size: 0.72rem;
    line-height: 1;
}

.total-merchant-kline-plot-wrap {
    position: relative;
    min-width: 0;
}

.total-merchant-kline-plot-wrap canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.total-merchant-kline-x-axis {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 0 8px 4px 60px;
}

.total-merchant-kline-x-axis span {
    color: #8a93a5;
    font-size: 0.72rem;
}

.total-merchant-kline-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 148px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe2ec;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

.total-merchant-kline-tooltip strong {
    display: block;
    margin-bottom: 6px;
    color: #1a2238;
    font-size: 0.84rem;
}

.total-merchant-kline-tooltip span {
    display: block;
    color: #6a7383;
    font-size: 0.76rem;
    line-height: 1.55;
}

.total-merchant-kline-tooltip.is-up {
    border-color: #ffc9c9;
    background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}

.total-merchant-kline-tooltip.is-down {
    border-color: #b8e8cc;
    background: linear-gradient(180deg, #f3fbf6 0%, #fff 100%);
}

.total-merchant-kline-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 12px;
    color: #6a7383;
    font-size: 0.78rem;
}

.total-merchant-kline-legend em {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: middle;
}

.total-merchant-kline-legend .is-up em {
    background: #e64545;
}

.total-merchant-kline-legend .is-down em {
    background: #2fbf71;
}

.total-merchant-kline-legend .is-hint {
    color: #8a93a5;
}

@media (max-width: 900px) {
    .total-merchant-kline-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-merchant-snapshot-block-head.is-kline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .total-merchant-kline-summary {
        grid-template-columns: 1fr;
    }

    .total-merchant-kline-chart-card {
        grid-template-columns: 1fr;
    }

    .total-merchant-kline-y-axis {
        flex-direction: row;
        height: auto;
        justify-content: space-between;
        padding: 0 8px 8px;
    }

    .total-merchant-kline-x-axis {
        padding-left: 8px;
    }
}

/* 商家归属管理 */

.total-console-page .total-merchant-ownership-card {
    margin: 0 28px 20px;
    padding: 20px 22px;
    border: 1px solid var(--total-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
    box-shadow: 0 6px 18px rgba(31, 42, 68, 0.04);
}

.total-console-page .total-merchant-ownership-card.is-risk {
    border-color: #ffd8d8;
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
}

.total-console-page .total-merchant-ownership-card.is-audit {
    border-color: #ffe4b8;
    background: linear-gradient(135deg, #fffaf3 0%, #fff 100%);
}

.total-merchant-ownership-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #edf1f7;
}

.total-merchant-ownership-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2a44;
}

.total-merchant-ownership-head p {
    margin: 6px 0 0;
    color: #8a93a5;
    font-size: 0.82rem;
}

.total-merchant-ownership-sync {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3ff;
    color: #315efb;
    font-size: 0.76rem;
    font-weight: 600;
}

.total-merchant-ownership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.total-merchant-ownership-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #edf1f7;
    background: #fff;
}

.total-merchant-ownership-item.is-biz {
    border-color: #d9e4ff;
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
}

.total-merchant-ownership-item.is-dept {
    border-color: #e2e8f4;
}

.total-merchant-ownership-item.is-manager {
    border-color: #dce8ff;
}

.total-merchant-ownership-item.is-region {
    border-color: #edf1f7;
    background: #f8f9fc;
}

.total-merchant-ownership-item span {
    display: block;
    margin-bottom: 6px;
    color: #8a93a5;
    font-size: 0.76rem;
}

.total-merchant-ownership-item strong {
    display: block;
    color: #1a2238;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.total-merchant-ownership-item em {
    display: block;
    margin-top: 6px;
    color: #8a93a5;
    font-size: 0.76rem;
    font-style: normal;
    line-height: 1.45;
}

.total-merchant-list-ownership {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #315efb;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
}

.total-merchant-list-ownership.is-risk {
    background: #fff0f0;
    color: #e64545;
}

.total-merchant-list-ownership.is-audit {
    background: #fff6e8;
    color: #d97706;
}

.total-merchant-list-ownership.is-biz {
    background: #eef3ff;
    color: #315efb;
}

@media (max-width: 1100px) {
    .total-console-page .total-merchant-ownership-card {
        margin-left: 18px;
        margin-right: 18px;
    }

    .total-merchant-ownership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .total-merchant-ownership-grid {
        grid-template-columns: 1fr;
    }

    .total-merchant-ownership-head {
        flex-direction: column;
    }
}

/* 用户中心 · 11 项扩展 */

.total-consumer-detail-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 28px 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--total-border);
    background: #f7f9fc;
}

.total-consumer-detail-subnav a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid #d9e4ff;
}

.total-consumer-detail-subnav a:hover {
    background: #eef4ff;
}

.total-consumer-detail-asset-mini {
    margin: 0 28px 16px;
}

.cols-total-consumer-orders { grid-template-columns: 1.1fr 0.9fr 1fr 0.75fr 0.9fr 0.8fr 1fr; }
.cols-total-consumer-assets { grid-template-columns: 1fr 1fr 0.7fr 0.8fr 0.7fr 0.9fr 0.8fr; }
.cols-total-consumer-growth-log { grid-template-columns: 1fr 1fr 0.7fr 0.8fr 1.4fr; }
.cols-total-consumer-complaints { grid-template-columns: 1fr 0.9fr 0.8fr 1fr 0.9fr 0.75fr 1fr; }
.cols-total-consumer-complaints-mini { grid-template-columns: 1fr 0.9fr 1fr 0.7fr 0.8fr; }
.cols-total-consumer-tag-def { grid-template-columns: 1fr 1.4fr 0.7fr 0.8fr; }
.cols-total-consumer-user-tags { grid-template-columns: 1fr 1fr 1.5fr 0.8fr; }
.cols-total-consumer-security-user { grid-template-columns: 1fr 1fr 0.8fr 1fr 1fr 0.8fr; }
.cols-total-consumer-security-log { grid-template-columns: 1fr 0.9fr 0.9fr 1.4fr 0.8fr; }
.cols-total-consumer-blacklist { grid-template-columns: 0.8fr 1fr 0.9fr 1.2fr 1fr 0.7fr 0.8fr; }
.cols-total-consumer-touch { grid-template-columns: 1fr 0.9fr 0.8fr 1.4fr 0.75fr 0.7fr; }
.cols-total-consumer-touch-mini { grid-template-columns: 1fr 0.9fr 1.4fr 0.75fr; }
.cols-total-consumer-deactivate { grid-template-columns: 1fr 0.9fr 0.8fr 1.3fr 1fr 0.75fr 1fr; }
.cols-total-consumer-batch { grid-template-columns: 1fr 0.9fr 1.4fr 0.8fr 1fr 0.9fr; }
.cols-total-consumer-feedback { grid-template-columns: 1fr 0.9fr 0.8fr 1fr 1.2fr 0.75fr 0.7fr; }
.cols-total-consumer-feedback-mini { grid-template-columns: 1fr 1.2fr 1.4fr 0.75fr; }

.total-consumer-tags-layout {
    margin: 0 28px 16px;
    gap: 16px;
}

.total-consumer-segment-list {
    display: grid;
    gap: 10px;
    padding: 4px 0;
}

.total-consumer-segment-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--total-border);
    background: #fff;
}

.total-consumer-segment-card strong {
    display: block;
    color: #1a2238;
}

.total-consumer-segment-card p {
    margin: 6px 0 8px;
    font-size: 0.84rem;
    color: #6b7280;
}

.total-consumer-segment-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.total-consumer-batch-actions {
    margin: 0 28px 16px;
}

.total-consumer-batch-btn {
    cursor: pointer;
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--total-border);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-consumer-batch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.1);
}

.total-consumer-entry-icon.is-order { background: linear-gradient(135deg, #34d399, #059669); }
.total-consumer-entry-icon.is-asset { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.total-consumer-entry-icon.is-complaint { background: linear-gradient(135deg, #fb923c, #ea580c); }
.total-consumer-entry-icon.is-batch { background: linear-gradient(135deg, #38bdf8, #0284c7); }

.total-consumer-assets-stats {
    margin: 0 28px 20px;
}

.total-consumer-security-stats {
    margin: 0 28px 20px;
}

/* —— 商品治理 P1：价格风控 / 属性模板 / 资质绑定 —— */

.total-category-tabs {
    margin: 0 0 16px;
}

.total-category-panel-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0f4ff;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.total-category-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.cols-total-category-template {
    grid-template-columns: 1.1fr 0.9fr 0.8fr 2fr 0.6fr 0.7fr;
}

.cols-total-category-qual {
    grid-template-columns: 1fr 0.6fr 2fr 0.7fr 0.7fr;
}

.total-category-template-fields-cell {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.total-price-rules-stats {
    margin-bottom: 16px;
}

.total-price-rules-global-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.total-price-rules-global-card h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.total-price-rules-global-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.total-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: normal;
}

.merchant-marketing-table-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
}

.merchant-marketing-table-head-row h3 {
    margin: 0;
    font-size: 0.95rem;
}

.cols-total-price-rules {
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 0.6fr 0.8fr;
}

.total-price-rule-l1 {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: normal;
}

.total-category-template-dialog,
.total-category-qual-dialog,
.total-price-rule-edit-dialog {
    max-width: 520px;
}

.total-category-template-body,
.total-price-rule-edit-body {
    padding: 16px 20px 8px;
}

.total-category-template-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.total-category-template-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    font-size: 0.86rem;
    cursor: pointer;
}

.total-category-template-check input {
    accent-color: var(--primary);
}

.total-price-rule-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.total-goods-audit-check-section {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fafbfc;
}

.total-gc-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.total-gc-detail-section-head h4 {
    margin: 0;
}

.total-goods-audit-check-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}

.total-goods-audit-check-badge.is-ok {
    background: #ecfdf5;
    color: #059669;
}

.total-goods-audit-check-badge.is-warn {
    background: #fff7ed;
    color: #ea580c;
}

.total-goods-audit-check-hint {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #64748b;
}

.total-goods-audit-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.total-goods-audit-check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #334155;
}

.total-goods-audit-check-list li.is-ok span {
    color: #059669;
}

.total-goods-audit-check-list li.is-miss span {
    color: #ea580c;
}

.total-goods-audit-check-list li.is-neutral {
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .total-price-rules-global-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cols-total-category-template,
    .cols-total-category-qual,
    .cols-total-price-rules {
        grid-template-columns: 1fr;
    }

    .total-goods-audit-check-list {
        grid-template-columns: 1fr;
    }
}

/* —— 信息通知模块 —— */

.total-notify-banner {
    margin-bottom: 16px;
}

.total-notify-stats {
    margin-bottom: 16px;
}

.total-notify-entry {
    margin-bottom: 20px;
}

.total-notify-page .merchant-marketing-toolbar h3 {
    margin: 0;
    font-size: 0.95rem;
}

.cols-total-notify-announce {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr 0.6fr 0.65fr 0.75fr;
}

.cols-total-notify-push {
    grid-template-columns: 1.2fr 0.75fr 1fr 1fr 0.7fr 0.65fr 0.75fr;
}

.cols-total-notify-records,
.cols-total-notify-records-mini {
    grid-template-columns: 1fr 0.9fr 0.75fr 1.5fr 0.8fr 0.65fr 0.65fr;
}

.cols-total-notify-records-mini {
    grid-template-columns: 1fr 0.75fr 0.9fr 1.5fr 0.65fr;
}

.total-notify-settings-form {
    margin-top: 8px;
}

.total-notify-edit-dialog {
    max-width: 520px;
}

@media (max-width: 1100px) {
    .cols-total-notify-announce,
    .cols-total-notify-push,
    .cols-total-notify-records,
    .cols-total-notify-records-mini {
        grid-template-columns: 1fr;
    }
}

/* —— 内容管理 · 控制台精致版 —— */

.total-console-page .total-notes-hub {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.total-console-page .total-notes-hub .total-note-stats,
.total-console-page .total-notes-hub .total-order-stats-strip,
.total-console-page .total-notes-hub .total-note-overview-stats {
    margin: 20px 28px;
}

.total-console-page .total-notes-hub .total-order-stat-card,
.total-console-page .total-notes-hub .metric-card.total-order-stat-card {
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-notes-hub .total-order-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(49, 94, 251, 0.1);
}

.total-console-page .total-notes-hub .total-order-stat-card::after {
    display: none;
}

.total-console-page .total-notes-hub .total-order-stat-card strong {
    font-size: 1.8rem;
    margin: 10px 0 6px;
    line-height: 1.1;
}

.total-console-page .total-notes-hub .total-order-stat-card p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
}

.total-console-page .total-notes-hub .total-note-overview-modules {
    margin: 0 28px 20px;
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.total-console-page .total-notes-hub .total-note-entry {
    margin: 14px 0 0;
}

/* 内容总览 · 控制台精致版 */
.total-console-page .total-note-overview-page .total-note-overview-stats {
    margin: 20px 28px;
}

.total-console-page .total-note-overview-page .total-note-overview-modules {
    margin: 0 28px 20px;
}

.total-console-page .total-note-overview-page .total-note-entry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.total-console-page .total-note-overview-page .total-order-entry-card {
    position: relative;
    padding: 14px 40px 14px 16px;
    border-color: #e8edf5;
    background: #fff;
}

.total-console-page .total-note-overview-page .total-order-entry-card:hover {
    border-color: #93c5fd;
    background: #fff;
}

.total-console-page .total-note-overview-page .total-order-entry-card:hover .total-order-entry-arrow {
    color: var(--primary);
    transform: translateY(-50%) translateX(2px);
}

.total-console-page .total-note-overview-page .total-order-overview-queue-card {
    margin: 0 28px 28px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.total-console-page .total-note-overview-page .total-order-overview-toolbar {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.total-console-page .total-note-overview-page .total-order-overview-toolbar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-note-overview-page .total-order-overview-queue-card .merchant-marketing-table {
    border: none;
    border-radius: 0;
}

.total-console-page .total-note-overview-page .merchant-marketing-table-head {
    min-height: 44px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.total-console-page .total-note-overview-page .total-order-hub-row {
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
}

.total-console-page .total-note-overview-page .total-order-hub-row:nth-child(even) {
    background: #fafbfd;
}

.total-console-page .total-note-overview-page .total-order-hub-row:hover {
    background: #f0f4ff;
}

.cols-total-note-overview-mini {
    grid-template-columns: 1.35fr 0.55fr 0.85fr 0.65fr 0.8fr 0.5fr;
}

.total-note-overview-cell-title strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.total-console-page .total-note-overview-page .merchant-marketing-badge {
    font-size: 0.72rem;
}

.total-console-page .total-notes-hub .total-order-topic-tip {
    margin: 0 28px 20px;
}

.total-console-page .total-notes-hub .total-order-filter-shell {
    margin: 0 28px 24px;
    padding: 0;
    border: none;
    background: transparent;
}

.total-console-page .total-notes-hub .total-notes-filter-grid {
    display: grid;
    gap: 14px 16px;
    padding: 18px 20px;
    margin: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    align-items: end;
}

.total-console-page .total-notes-hub .total-notes-filter-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.total-console-page .total-notes-hub .total-notes-filter-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.total-console-page .total-notes-hub .total-notes-filter-actions-inline {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid #f1f5f9;
}

.total-console-page .total-notes-content-page .total-notes-filter-grid.cols-3 {
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(180px, 1.2fr) auto;
}

.total-console-page .total-notes-content-page .total-notes-filter-actions-inline {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-end;
    align-self: end;
}

.total-console-page .total-notes-hub .total-notes-batch-bar {
    margin: 0 28px 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    background: #f8fafc;
}

.total-console-page .total-notes-hub .total-notes-table-card {
    margin: 0 28px 28px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.total-console-page .total-notes-hub .total-notes-toolbar {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.total-console-page .total-notes-hub .total-notes-toolbar h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-notes-hub .merchant-marketing-table {
    border: none;
    border-radius: 0;
}

.total-console-page .total-notes-hub .merchant-marketing-table-head {
    min-height: 44px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.total-console-page .total-notes-hub .merchant-marketing-row {
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.total-console-page .total-notes-hub .merchant-marketing-row:nth-child(even) {
    background: #fafbfd;
}

.total-console-page .total-notes-hub .merchant-marketing-row:hover {
    background: #f0f4ff;
}

.total-console-page .total-notes-hub .merchant-marketing-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfd;
}

/* 内容审核列表 · 控制台精致版 */
.total-console-page .total-content-audit-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-content-audit-page .total-notes-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.total-console-page .total-content-audit-page .total-content-review-table {
    min-width: 1280px;
}

.total-console-page .total-content-audit-page .total-content-review-row {
    font-size: 0.84rem;
}

.total-console-page .total-content-audit-page .total-content-review-title strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.total-content-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-content-type-chip.is-image {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.total-content-type-chip.is-video {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.total-content-type-chip.is-comment {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-content-type-chip.is-default {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-content-risk-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-content-risk-pill.is-none {
    color: #94a3b8;
    font-weight: 500;
}

.total-content-risk-pill.is-price {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-content-risk-pill.is-warn {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.total-content-risk-pill.is-offsite {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.total-content-risk-pill.is-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.total-content-risk-pill.is-default {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.total-console-page .total-content-audit-page .total-content-review-category {
    font-size: 0.82rem;
    color: #334155;
}

.total-console-page .total-content-audit-page .total-content-review-split,
.total-console-page .total-content-audit-page .total-content-review-pay,
.total-console-page .total-content-audit-page .total-content-review-likes,
.total-console-page .total-content-audit-page .total-content-review-allow {
    font-size: 0.82rem;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.total-console-page .total-content-audit-page .total-content-review-time {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.total-console-page .total-content-audit-page .total-note-comment-preview {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: #64748b;
}

.total-console-page .total-content-audit-page .merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.total-console-page .total-content-audit-page .merchant-marketing-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
}

.total-console-page .total-content-audit-page .total-notes-filter-grid.cols-3 {
    align-items: end;
}

.total-console-page .total-content-audit-page .merchant-marketing-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.total-console-page .total-content-audit-page .merchant-marketing-field select,
.total-console-page .total-content-audit-page .merchant-marketing-field input {
    min-height: 38px;
    font-size: 0.84rem;
}

/* 笔记类目 · 控制台精致版 */
.total-console-page .total-note-category-page .total-note-category-stats {
    margin: 20px 28px;
}

.total-console-page .total-note-category-page .total-note-category-add-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

.total-console-page .total-note-category-page .total-notes-filter-grid.cols-3 {
    grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.3fr) auto;
}

.total-console-page .total-note-category-page .total-notes-filter-actions-inline {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-end;
    align-self: end;
}

.total-console-page .total-note-category-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-note-category-page .total-notes-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.total-console-page .total-note-category-page .total-note-category-table {
    min-width: 1080px;
}

.total-console-page .total-note-category-page .total-note-category-row {
    font-size: 0.84rem;
}

.total-console-page .total-note-category-page .total-note-category-sort {
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.total-console-page .total-note-category-page .total-note-category-name strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
}

.total-console-page .total-note-category-page .total-note-category-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.total-note-category-scope-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-note-category-scope-chip.is-all {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.total-note-category-scope-chip.is-beauty {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

.total-note-category-scope-chip.is-food {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-note-category-scope-chip.is-hotel {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.total-note-category-scope-chip.is-fun {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.total-note-category-scope-chip.is-default {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-note-category-fee-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid transparent;
    max-width: 220px;
    white-space: normal;
}

.total-note-category-fee-pill.is-free {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.total-note-category-fee-pill.is-paid {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.total-note-category-split-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    max-width: 200px;
    white-space: normal;
}

.total-note-category-split-pill.is-none {
    color: #94a3b8;
    background: transparent;
    border-color: transparent;
}

.total-console-page .total-note-category-page .total-note-category-count {
    font-weight: 600;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.total-console-page .total-note-category-page .merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.total-console-page .total-note-category-page .merchant-marketing-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
}

.total-console-page .total-note-category-page .merchant-marketing-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.total-console-page .total-note-category-page .merchant-marketing-field select,
.total-console-page .total-note-category-page .merchant-marketing-field input {
    min-height: 38px;
    font-size: 0.84rem;
}

.total-console-page .total-notes-hub .total-notes-form-card {
    margin: 0 28px 28px;
    padding: 20px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.total-console-page .total-notes-hub .total-note-report-range {
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--total-border);
    border-radius: 12px;
    background: #f8fafc;
}

.total-console-page .total-notes-hub .total-note-report-range .total-audit-tab {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
}

.total-console-page .total-notes-hub .total-note-report-range .total-audit-tab.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-publish-tabs {
    margin: 0;
    padding: 0 16px;
    gap: 4px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .total-notes-publish-body {
    margin: 0 28px 28px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-panel {
    margin: 0;
    padding: 20px;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .total-notes-publish-audit-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d9e4ff;
    background: linear-gradient(135deg, #edf2ff 0%, #e4ecff 100%);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .total-notes-publish-audit-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-publish-tab {
    height: 46px;
    padding: 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 10px 10px 0 0;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-publish-tab.active {
    color: var(--primary);
    background: #fff;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-publish-tab::after {
    width: 100%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--primary);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-dropzone {
    min-height: 300px;
    gap: 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-dropzone:hover,
.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-dropzone.is-dragover {
    border-color: #93c5fd;
    background: #f0f4ff;
    box-shadow: inset 0 0 0 1px rgba(49, 94, 251, 0.08);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-icon {
    width: 56px;
    height: 56px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef4ff, #dce8ff);
    color: var(--primary);
    box-sizing: border-box;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-dropzone strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-file {
    font-size: 0.8rem;
    color: #94a3b8;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-btn {
    min-width: 120px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.25);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-tips-grid {
    margin-top: 16px;
    gap: 12px;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-tip-card {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-tip-card:hover {
    border-color: #c7d8ff;
    box-shadow: 0 4px 14px rgba(49, 94, 251, 0.06);
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-tip-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-tip-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4ff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-tip-card p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
}

@media (max-width: 720px) {
    .total-console-page .total-notes-hub.merchant-note-publish-card .total-notes-publish-body {
        margin-left: 16px;
        margin-right: 16px;
    }

    .total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-panel {
        padding: 16px;
    }

    .total-console-page .total-notes-hub.merchant-note-publish-card .merchant-note-upload-dropzone {
        min-height: 240px;
    }
}

.total-console-page .total-content-audit-detail-page.total-notes-hub {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.total-console-page .total-content-audit-detail-page .total-notes-detail-crumb {
    margin: 20px 28px 16px;
    font-size: 0.84rem;
    color: #64748b;
}

.total-console-page .total-content-audit-detail-page .total-notes-detail-crumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.total-console-page .total-content-audit-detail-page .total-content-detail-hero {
    margin: 0 28px 16px;
    border-radius: 16px;
    overflow: hidden;
}

.total-console-page .total-content-audit-detail-page .total-content-detail-body {
    padding: 0 28px 8px;
}

.total-console-page .total-content-audit-detail-page .total-content-detail-metrics {
    gap: 12px;
}

.total-console-page .total-content-audit-detail-page .total-content-detail-metric {
    border-radius: 14px;
    border: 1px solid #e8edf5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-console-page .total-content-audit-detail-page .total-content-detail-metric:hover {
    border-color: #c7d8ff;
    box-shadow: 0 4px 14px rgba(49, 94, 251, 0.08);
}

.total-console-page .total-content-audit-detail-page .total-content-detail-info-card,
.total-console-page .total-content-audit-detail-page .total-content-detail-category-panel,
.total-console-page .total-content-audit-detail-page .panel-card {
    border-radius: 14px;
    border: 1px solid var(--total-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1100px) {
    .total-console-page .total-notes-hub .total-notes-filter-grid.cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .total-console-page .total-notes-content-page .total-notes-filter-actions-inline {
        grid-column: 1 / -1;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }
}

@media (max-width: 720px) {
    .total-console-page .total-notes-hub .total-note-stats,
    .total-console-page .total-notes-hub .total-note-overview-modules,
    .total-console-page .total-note-overview-page .total-note-overview-queue-card,
    .total-console-page .total-notes-hub .total-order-topic-tip,
    .total-console-page .total-notes-hub .total-order-filter-shell,
    .total-console-page .total-notes-hub .total-notes-batch-bar,
    .total-console-page .total-notes-hub .total-notes-table-card,
    .total-console-page .total-notes-hub .total-notes-form-card,
    .total-console-page .total-content-audit-detail-page .total-notes-detail-crumb,
    .total-console-page .total-content-audit-detail-page .total-content-detail-hero,
    .total-console-page .total-content-audit-detail-page .total-content-detail-body {
        margin-left: 16px;
        margin-right: 16px;
    }

    .total-console-page .total-notes-hub .total-notes-filter-grid.cols-2,
    .total-console-page .total-notes-hub .total-notes-filter-grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

/* —— 内容管理 / 笔记模块 —— */

.total-note-stats {
    margin-bottom: 16px;
}

.total-note-entry {
    margin-bottom: 20px;
}

.total-note-rules-form {
    margin: 0 28px 28px;
}

/* 推荐规则 · 控制台精致版 */
.total-console-page .total-note-rules-page .total-order-topic-tip {
    margin-bottom: 20px;
}

.total-console-page .total-note-rules-page .total-note-rules-save-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

.total-note-rules-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.total-note-rules-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.total-note-rules-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.total-note-rules-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.total-note-rules-card-icon.is-auto {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}

.total-note-rules-card-icon.is-manual {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
}

.total-note-rules-card-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-note-rules-card-head p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.total-note-rules-list {
    display: grid;
    gap: 0;
}

.total-note-rules-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 140px) auto;
    gap: 14px 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.total-note-rules-row:last-child {
    border-bottom: none;
}

.total-note-rules-row.is-toggle-only {
    grid-template-columns: minmax(0, 1fr) auto;
}

.total-note-rules-row-info strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.total-note-rules-row-info span {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.4;
}

.total-note-rules-threshold {
    display: grid;
    gap: 6px;
}

.total-note-rules-threshold span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.total-note-rules-threshold input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    background: #f8fafc;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.total-note-rules-threshold input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.total-note-rules-switch {
    flex-shrink: 0;
    margin: 0;
}

.total-note-rules-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

@media (max-width: 960px) {
    .total-note-rules-layout {
        grid-template-columns: 1fr;
    }

    .total-note-rules-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .total-note-rules-row.is-toggle-only {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .total-console-page .total-note-rules-page .total-note-rules-form,
    .total-console-page .total-note-rules-page .total-order-topic-tip {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* 推荐位配置 · 控制台精致版 */
.total-console-page .total-note-slots-page .total-order-topic-tip {
    margin-bottom: 20px;
}

.total-console-page .total-note-slots-page .total-note-slot-add-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

.total-console-page .total-note-slots-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-note-slots-page .total-notes-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.total-console-page .total-note-slots-page .total-note-slots-table {
    min-width: 920px;
}

.total-console-page .total-note-slots-page .total-note-slot-row {
    font-size: 0.84rem;
}

.total-console-page .total-note-slots-page .total-note-slot-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-variant-numeric: tabular-nums;
}

.total-console-page .total-note-slots-page .total-note-slot-title strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.total-console-page .total-note-slots-page .total-note-slot-time {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.total-note-slot-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-note-slot-status-pill.is-live {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.total-note-slot-status-pill.is-pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-note-slot-status-pill.is-off {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-note-slot-status-pill.is-default {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.total-console-page .total-note-slots-page .merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.total-note-slot-empty {
    grid-template-columns: 1fr !important;
    justify-content: center;
    padding: 32px 20px !important;
}

.total-note-slot-empty-text {
    font-size: 0.84rem;
    color: #94a3b8;
    text-align: center;
}

/* 违规处置 · 控制台精致版 */
.total-console-page .total-note-violation-page .total-order-topic-tip {
    margin-bottom: 20px;
}

.total-console-page .total-note-violation-page .total-notes-filter-grid.cols-3 {
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(180px, 1.2fr) auto;
}

.total-console-page .total-note-violation-page .total-notes-filter-actions-inline {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-end;
    align-self: end;
}

.total-console-page .total-note-violation-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-note-violation-page .total-notes-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.total-console-page .total-note-violation-page .total-note-violation-table {
    min-width: 960px;
}

.total-console-page .total-note-violation-page .total-note-violation-row {
    font-size: 0.84rem;
}

.total-console-page .total-note-violation-page .total-note-violation-title strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.total-note-violation-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-note-violation-status-pill.is-pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-note-violation-status-pill.is-hidden {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-note-violation-status-pill.is-deleted {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.total-note-violation-status-pill.is-default {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.total-console-page .total-note-violation-page .merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.total-console-page .total-note-violation-page .merchant-marketing-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.total-console-page .total-note-violation-page .merchant-marketing-field select,
.total-console-page .total-note-violation-page .merchant-marketing-field input {
    min-height: 38px;
    font-size: 0.84rem;
}

.total-note-violation-empty {
    grid-template-columns: 1fr !important;
    justify-content: center;
    padding: 32px 20px !important;
}

.total-note-violation-empty-text {
    font-size: 0.84rem;
    color: #94a3b8;
    text-align: center;
}

/* 敏感词库 · 控制台精致版 */
.total-console-page .total-note-keywords-page .total-order-topic-tip {
    margin-bottom: 20px;
}

.total-console-page .total-note-keywords-page .total-note-keyword-add-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

.total-console-page .total-note-keywords-page .total-notes-filter-grid.cols-3 {
    grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.3fr) auto;
}

.total-console-page .total-note-keywords-page .total-notes-filter-actions-inline {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-end;
    align-self: end;
}

.total-console-page .total-note-keywords-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-note-keywords-page .total-notes-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.total-console-page .total-note-keywords-page .total-note-keywords-table {
    min-width: 720px;
}

.total-console-page .total-note-keywords-page .total-note-keyword-row {
    font-size: 0.84rem;
}

.total-console-page .total-note-keywords-page .total-note-keyword-word strong {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.total-note-keyword-scene-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-note-keyword-scene-chip.is-offsite {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.total-note-keyword-scene-chip.is-warn {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.total-note-keyword-scene-chip.is-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.total-note-keyword-scene-chip.is-default {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-console-page .total-note-keywords-page .total-note-keyword-hits {
    font-weight: 600;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    font-size: 0.86rem;
}

.total-note-keyword-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.total-note-keyword-status-pill.is-on {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.total-note-keyword-status-pill.is-off {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.total-console-page .total-note-keywords-page .merchant-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.total-console-page .total-note-keywords-page .merchant-marketing-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.total-console-page .total-note-keywords-page .merchant-marketing-field select,
.total-console-page .total-note-keywords-page .merchant-marketing-field input {
    min-height: 38px;
    font-size: 0.84rem;
}

.total-note-keyword-empty {
    grid-template-columns: 1fr !important;
    justify-content: center;
    padding: 32px 20px !important;
}

.total-note-keyword-empty-text {
    font-size: 0.84rem;
    color: #94a3b8;
    text-align: center;
}

/* 违规报表 · 控制台精致版 */
.total-console-page .total-note-violation-report-page .total-order-topic-tip {
    margin-bottom: 20px;
}

.total-note-report-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    align-self: flex-start;
}

.total-console-page .total-note-violation-report-page .total-note-report-range {
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--total-border);
    border-radius: 12px;
    background: #f8fafc;
}

.total-console-page .total-note-violation-report-page .total-note-report-range .total-audit-tab {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
}

.total-console-page .total-note-violation-report-page .total-note-report-range .total-audit-tab.active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.total-console-page .total-note-violation-report-page .total-note-report-export-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.84rem;
}

.total-console-page .total-note-violation-report-page .total-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.total-console-page .total-note-violation-report-page .total-note-report-table .merchant-marketing-table-head span {
    font-size: 0.76rem;
}

.total-console-page .total-note-violation-report-page .total-note-report-col-offsite {
    color: #6d28d9;
}

.total-console-page .total-note-violation-report-page .total-note-report-col-warn {
    color: #b45309;
}

.total-console-page .total-note-violation-report-page .total-note-report-col-danger {
    color: #b91c1c;
}

.total-console-page .total-note-violation-report-page .total-note-report-row {
    font-size: 0.84rem;
}

.total-console-page .total-note-violation-report-page .total-note-report-period strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.total-note-report-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.total-note-report-count.is-zero {
    color: #94a3b8;
    font-weight: 500;
    background: transparent;
}

.total-note-report-count.is-offsite {
    color: #6d28d9;
    background: #ede9fe;
}

.total-note-report-count.is-warn {
    color: #b45309;
    background: #fef3c7;
}

.total-note-report-count.is-danger {
    color: #b91c1c;
    background: #fef2f2;
}

.total-note-report-count.is-default {
    color: #475569;
    background: #f8fafc;
}

.total-console-page .total-note-violation-report-page .total-note-report-total {
    font-weight: 700;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}

.total-note-report-empty {
    grid-template-columns: 1fr !important;
    justify-content: center;
    padding: 32px 20px !important;
}

.total-note-report-empty-text {
    font-size: 0.84rem;
    color: #94a3b8;
    text-align: center;
}

.total-note-report-range {
    display: flex;
    gap: 8px;
}

.total-note-violation-reason {
    color: #64748b;
    font-size: 0.85rem;
}

.total-note-edit-dialog {
    max-width: 480px;
}

.total-note-detail-stats {
    margin-bottom: 16px;
}

.total-note-comments-card {
    margin-bottom: 16px;
}

.total-note-comment-preview {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}

.total-note-comment-text {
    line-height: 1.5;
    color: #334155;
}

.cols-total-note-comments {
    grid-template-columns: 0.85fr 1.6fr 1fr 0.55fr 0.65fr;
}

.cols-total-note-slots {
    grid-template-columns: 52px minmax(140px, 1.25fr) minmax(100px, 0.9fr) minmax(120px, 1fr) minmax(120px, 1fr) 80px minmax(168px, auto);
}

.cols-total-note-violation {
    grid-template-columns: 36px minmax(132px, 1.2fr) 76px minmax(100px, 0.85fr) minmax(96px, 0.8fr) 80px minmax(168px, auto);
}

.cols-total-note-keywords {
    grid-template-columns: minmax(120px, 1fr) minmax(100px, 0.9fr) 88px 80px minmax(200px, auto);
}

.cols-total-note-category {
    grid-template-columns: 48px minmax(96px, 0.72fr) minmax(120px, 1fr) 88px minmax(148px, 1.15fr) minmax(136px, 1fr) 64px 72px minmax(210px, auto);
}

.cols-note-category {
    grid-template-columns: 0.5fr 0.85fr 1fr 0.75fr 1fr 0.8fr 0.6fr;
}

.total-note-category-split {
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}

.merchant-note-category-fee-hint,
.total-note-category-modal-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.total-note-category-fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.total-note-category-fees {
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}

.merchant-note-editor-select-native {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.merchant-note-manage-pay-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
}

.merchant-note-manage-pay-badge.is-paid {
    color: #9a3412;
    background: #ffedd5;
}

.merchant-note-manage-body [data-note-manage-meta] {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #6b7280;
}

.cols-total-note-report {
    grid-template-columns: minmax(140px, 1.15fr) repeat(4, minmax(72px, 0.75fr)) minmax(64px, 0.55fr);
}

@media (max-width: 1100px) {
    .cols-total-note-comments,
    .cols-note-category {
        grid-template-columns: 1fr;
    }
}

/* —— 订单中心 · 统一 Hub —— */

.total-order-hub {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.total-order-hub-head {
    margin-bottom: 16px;
}

.total-order-hub-head h2 {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.total-order-hub-head p {
    font-size: 0.84rem;
    color: #64748b;
    max-width: 52ch;
}

.total-order-stats-strip {
    margin-bottom: 16px;
}

.total-order-stat-card {
    border-radius: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.total-order-stat-card strong {
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.total-order-stat-card.is-today {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.total-order-stat-card.is-today strong {
    color: #1d4ed8;
}

.total-order-stat-card.is-verify {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.total-order-stat-card.is-verify strong {
    color: #c2410c;
}

.total-order-stat-card.is-refund {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}

.total-order-stat-card.is-refund strong {
    color: #4338ca;
}

.total-order-stat-card.is-risk,
.total-order-stat-card.is-dispute {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}

.total-order-stat-card.is-risk strong,
.total-order-stat-card.is-dispute strong {
    color: #dc2626;
}

.total-order-stat-card.is-fraud strong {
    color: #b45309;
}

.total-order-stat-card.is-fraud {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.total-order-stat-card.is-hold strong {
    color: #7c3aed;
}

.total-order-stat-card.is-hold {
    border-color: #ddd6fe;
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.total-order-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-order-entry-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.total-order-entry-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.total-order-entry-card h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.total-order-entry-card p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.total-order-entry-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    background: #eef2ff;
}

.total-order-entry-icon.is-query {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
}

.total-order-entry-icon.is-verify {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

.total-order-entry-icon.is-risk {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
}

.total-order-entry-icon.is-refund {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
}

.total-order-entry-icon.is-ticket {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
}

.total-order-entry-icon.is-finance {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
}

.total-order-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.total-order-banner {
    margin-bottom: 14px;
    font-size: 0.82rem;
}

.total-order-filter-shell {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 2px;
    margin-bottom: 16px;
}

.total-order-filter-shell .total-order-filter-panel,
.total-order-filter-shell .total-order-query-filter {
    border: 0;
    border-radius: 12px;
    margin: 0;
    background: transparent;
}

.total-order-filter-shell .total-order-query-advanced {
    margin: 0;
    border-radius: 0 0 12px 12px;
    border-top: 1px dashed #e2e8f0;
}

.total-order-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.total-order-table-card .merchant-marketing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.total-order-table-card .merchant-marketing-toolbar h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-order-toolbar-desc {
    margin: 4px 0 0;
    font-size: 0.76rem;
    color: #94a3b8;
}

.total-order-toolbar-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.total-order-toolbar-link:hover {
    color: #1d4ed8;
}

.total-order-hub-row {
    align-items: center;
    transition: background 0.15s ease;
}

.total-order-hub-row:hover {
    background: #f8fafc;
}

.total-order-overview-queue-card {
    margin-bottom: 0;
}

.total-order-empty-queue {
    padding: 28px 16px;
    text-align: center;
    font-size: 0.84rem;
    color: #94a3b8;
}

.cols-total-order-overview-mini {
    grid-template-columns: 1.1fr 0.75fr 0.9fr 0.72fr 0.65fr 0.55fr;
}

.total-order-cell-merchant {
    font-size: 0.84rem;
    color: #334155;
}

.total-order-cell-merchant em {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: normal;
}

.total-order-cell-appointment strong {
    display: block;
    font-size: 0.86rem;
    color: #0f172a;
    font-weight: 600;
}

.total-order-cell-appointment em {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: normal;
}

.total-order-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
    letter-spacing: 0.02em;
}

.total-order-cell-risk-note {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.total-order-risk-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.total-order-risk-pill.is-dispute {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.total-order-risk-pill.is-fraud {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.total-order-risk-pill.is-hold {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.total-order-risk-pill.is-price {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-order-risk-pill.is-default {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

@media (max-width: 1100px) {
    .total-order-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-console-page .total-note-overview-page .total-note-entry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .total-order-entry-grid {
        grid-template-columns: 1fr;
    }
}

/* —— 订单中心 · 综合查询 —— */

.total-order-query-page .total-order-query-stats-strip {
    margin-bottom: 14px;
}

.total-order-query-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.total-order-query-banner {
    margin-bottom: 14px;
}

.total-order-query-filter-shell {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 2px;
    margin-bottom: 16px;
}

.total-order-query-filter-shell .total-order-query-filter {
    border: 0;
    border-radius: 12px 12px 0 0;
    margin: 0;
}

.total-order-query-filter-shell .total-order-query-advanced {
    margin: 0;
    border-radius: 0 0 12px 12px;
    border-top: 1px dashed #e2e8f0;
}

.total-order-query-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.total-order-query-table-card .merchant-marketing-toolbar {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.total-order-query-table-card .merchant-marketing-toolbar h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
}

.total-order-query-row {
    align-items: center;
    transition: background 0.15s ease;
}

.total-order-query-row:hover {
    background: #f8fafc;
}

.total-order-cell-no strong,
.total-order-cell-user strong,
.total-order-cell-goods strong {
    display: block;
    font-size: 0.86rem;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.total-order-cell-no em,
.total-order-cell-user em,
.total-order-cell-goods em,
.total-order-cell-time em {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: normal;
}

.total-order-cell-amount {
    font-weight: 700;
    color: #b45309;
    font-size: 0.9rem;
}

.total-order-cell-time strong {
    display: block;
    font-size: 0.84rem;
    color: #334155;
}

.total-order-pay-pill,
.total-order-verify-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.total-order-pay-pill.is-wechat {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.total-order-pay-pill.is-alipay {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.total-order-pay-pill.is-default {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.total-order-verify-pill.is-done {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.total-order-verify-pill.is-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.total-order-verify-pill.is-partial {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.total-order-verify-pill.is-neutral {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.total-order-row-detail {
    font-weight: 600;
    color: #2563eb;
}

/* 订单综合查询 · 精致布局 */
.total-console-page .total-order-query-page .total-order-query-stats {
    margin: 20px 28px;
}

.total-console-page .total-order-query-page .total-order-stat-card {
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-order-query-page .total-order-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(49, 94, 251, 0.1);
}

.total-console-page .total-order-query-page .total-order-stat-card::after {
    display: none;
}

.total-order-metric-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-order-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.total-order-metric-icon.is-total {
    background: linear-gradient(135deg, #eef4ff, #dce8ff);
    color: #315efb;
}

.total-order-metric-icon.is-verify {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
}

.total-order-metric-icon.is-refund {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: #6366f1;
}

.total-order-metric-icon.is-today {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.total-order-metric-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: #64748b;
}

.total-console-page .total-order-query-page .total-order-stat-card strong {
    font-size: 1.8rem;
    margin: 10px 0 6px;
    line-height: 1.1;
}

.total-console-page .total-order-query-page .total-order-stat-card p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
}

.total-order-query-control {
    margin: 0 28px 20px;
    padding: 16px 18px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.total-order-chips-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.total-order-chips-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.total-console-page .total-order-query-page .total-order-query-chips {
    margin-bottom: 0;
    gap: 6px;
    flex: 1;
}

.total-console-page .total-order-query-page .merchant-overview-chip {
    min-width: auto;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    border-color: #e2e8f0;
    background: #fff;
    color: #475569;
}

.total-console-page .total-order-query-page .merchant-overview-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.total-console-page .total-order-query-page .merchant-overview-chip.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.total-order-query-tip {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(49, 94, 251, 0.06);
    border: 1px solid rgba(49, 94, 251, 0.1);
    font-size: 0.8rem;
    line-height: 1.55;
    color: #475569;
}

.total-console-page .total-order-query-page .total-order-filter-shell {
    margin: 0 28px 24px;
    padding: 0;
    border: none;
    background: transparent;
}

.total-console-page .total-order-query-page .total-order-query-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 18px 20px;
    margin: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: none;
    align-items: end;
}

.total-console-page .total-order-query-page .total-order-query-advanced {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    border-top: 1px dashed #e2e8f0;
    border-radius: 0 0 14px 14px;
    background: #f8fafc;
    box-shadow: none;
}

.total-console-page .total-order-query-page .total-order-query-filter-actions-row {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid #f1f5f9;
}

.total-console-page .total-order-query-page .total-order-query-advanced-toggle {
    border-radius: 10px;
    font-size: 0.84rem;
}

.total-console-page .total-order-query-page .merchant-marketing-field span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.total-console-page .total-order-query-page .merchant-marketing-field input,
.total-console-page .total-order-query-page .merchant-marketing-field select {
    min-height: 40px;
    font-size: 0.88rem;
}

.total-console-page .total-order-query-page .total-order-table-card {
    margin: 0 28px 28px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.total-console-page .total-order-query-page .total-order-query-toolbar {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.total-console-page .total-order-query-page .total-order-export-btn {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #d9e4ff;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.total-console-page .total-order-query-page .total-order-export-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.total-console-page .total-order-query-page .total-order-table-card .merchant-marketing-table {
    border: none;
    border-radius: 0;
}

.total-console-page .total-order-query-page .merchant-marketing-table-head {
    min-height: 44px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.03em;
    text-transform: none;
}

.total-console-page .total-order-query-page .total-order-query-row {
    min-height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
}

.total-console-page .total-order-query-page .total-order-query-row:nth-child(even) {
    background: #fafbfd;
}

.total-console-page .total-order-query-page .total-order-query-row:hover {
    background: #f0f4ff;
}

.total-console-page .total-order-query-page .total-order-cell-no strong {
    font-size: 0.82rem;
    font-weight: 600;
}

.total-console-page .total-order-query-page .total-order-cell-amount {
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.total-console-page .total-order-query-page .merchant-marketing-badge {
    border-radius: 999px;
    min-width: 68px;
    height: 26px;
    font-size: 0.76rem;
}

.total-console-page .total-order-query-page .total-order-row-detail {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f0f4ff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.total-console-page .total-order-query-page .total-order-row-detail:hover {
    background: var(--primary);
    color: #fff;
}

.total-console-page .total-order-query-page .merchant-marketing-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfd;
}

.total-console-page .total-order-query-page .total-order-pay-pill,
.total-console-page .total-order-query-page .total-order-verify-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
}

@media (max-width: 1100px) {
    .total-console-page .total-order-query-page .total-order-query-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .total-console-page .total-order-query-page .total-order-query-stats,
    .total-console-page .total-order-query-page .total-order-query-control,
    .total-console-page .total-order-query-page .total-order-filter-shell,
    .total-console-page .total-order-query-page .total-order-table-card {
        margin-left: 16px;
        margin-right: 16px;
    }

    .total-console-page .total-order-query-page .total-order-query-filter-grid {
        grid-template-columns: 1fr;
    }

    .total-order-chips-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 订单详情页 */
.total-order-detail-page {
    padding-bottom: 0;
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.total-order-detail-hero {
    border-radius: 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 42%, #0ea5e9 100%);
}

.total-order-detail-hero .total-gc-detail-hero-main h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.total-order-detail-label {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.total-order-detail-meta,
.total-order-detail-meta-sub {
    margin: 6px 0 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
}

.total-order-detail-meta-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.total-order-detail-hero-amount {
    text-align: right;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    min-width: 120px;
}

.total-order-detail-hero-amount span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
}

.total-order-detail-hero-amount strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.total-order-detail-hero-amount em {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

.total-order-detail-verify-pill {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.total-order-detail-progress {
    display: flex;
    gap: 6px;
    margin: 14px 0 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.total-order-progress-step {
    flex: 1;
    display: grid;
    gap: 6px;
    text-align: center;
    position: relative;
}

.total-order-progress-step span {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}

.total-order-progress-step em {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: normal;
}

.total-order-progress-step.is-done span {
    background: #10b981;
    color: #fff;
}

.total-order-progress-step.is-done em {
    color: #047857;
    font-weight: 600;
}

.total-order-progress-step.is-active span {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.total-order-progress-step.is-active em {
    color: #1d4ed8;
    font-weight: 600;
}

.total-order-detail-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.total-order-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.total-order-highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #f1f5f9;
}

.total-order-highlight-icon.is-user { background: #eff6ff; }
.total-order-highlight-icon.is-merchant { background: #fff7ed; }
.total-order-highlight-icon.is-pay { background: #ecfdf5; }
.total-order-highlight-icon.is-verify { background: #f5f3ff; }

.total-order-highlight-card span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.total-order-highlight-card strong {
    display: block;
    margin-top: 2px;
    font-size: 0.92rem;
    color: #0f172a;
}

.total-order-highlight-card em {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: #94a3b8;
    font-style: normal;
}

.total-order-detail-body {
    overflow: auto;
    min-height: 0;
    padding-bottom: 12px;
}

.total-order-amount-card {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.total-order-amount-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.total-order-amount-tag.is-done {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.total-order-amount-tag.is-pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.total-order-amount-tag.is-warn {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.total-order-amount-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 12px;
}

.total-order-amount-node {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    min-width: 110px;
}

.total-order-amount-node span {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
}

.total-order-amount-node strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    color: #0f172a;
}

.total-order-amount-node em {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #64748b;
    font-style: normal;
}

.total-order-amount-node.is-pay strong {
    color: #b45309;
}

.total-order-amount-node.is-net strong {
    color: #047857;
}

.total-order-amount-arrow {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9rem;
}

.total-order-amount-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: rgba(255, 255, 255, 0.7);
    flex: 1;
    min-width: 200px;
}

.total-order-amount-split div span {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.total-order-amount-split div strong {
    font-size: 0.88rem;
    color: #334155;
}

.total-order-detail-kv-rich div.is-code strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    color: #1d4ed8;
}

.total-order-detail-kv-rich div.is-wide {
    grid-column: 1 / -1;
}

.total-order-timeline-card {
    margin-top: 0;
}

.total-order-detail-timeline {
    padding: 4px 0;
}

.total-order-detail-foot {
    margin: 0 -4px;
    border-radius: 0 0 16px 16px;
}

@media (max-width: 1100px) {
    .total-order-detail-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-order-detail-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .total-order-detail-hero-amount {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 8px;
    }

    .total-order-amount-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .total-order-amount-arrow {
        display: none;
    }

    .total-order-detail-kv-rich {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .total-order-detail-highlights {
        grid-template-columns: 1fr;
    }

    .total-order-progress-step em {
        font-size: 0.65rem;
    }
}

/* 订单详情 · 控制台精致版 */
.total-console-page .total-order-detail-page {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.total-console-page .total-order-detail-page .total-order-detail-crumb {
    margin: 20px 28px 16px;
    padding: 0;
    font-size: 0.84rem;
    color: #64748b;
}

.total-console-page .total-order-detail-page .total-order-detail-crumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.total-console-page .total-order-detail-page .total-order-detail-crumb a:hover {
    text-decoration: underline;
}

.total-console-page .total-order-detail-page .total-order-detail-crumb span {
    color: #1e293b;
    font-weight: 600;
}

.total-console-page .total-order-detail-page .total-order-detail-top {
    margin: 0 28px 20px;
}

.total-console-page .total-order-detail-page .total-order-detail-hero {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(3, 105, 161, 0.22);
    background: linear-gradient(135deg, #0f4c75 0%, #0369a1 38%, #0ea5e9 100%);
}

.total-console-page .total-order-detail-page .total-gc-detail-badges .merchant-marketing-badge {
    border-radius: 999px;
    font-size: 0.74rem;
    backdrop-filter: blur(4px);
}

.total-console-page .total-order-detail-page .total-order-detail-hero .total-gc-detail-hero-main h2 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

.total-console-page .total-order-detail-page .total-order-detail-hero-amount {
    min-width: 132px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.total-console-page .total-order-detail-page .total-order-detail-hero-amount strong {
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.total-console-page .total-order-detail-page .total-order-detail-progress {
    margin: 16px 0 0;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.total-console-page .total-order-detail-page .total-order-progress-step {
    position: relative;
}

.total-console-page .total-order-detail-page .total-order-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.total-console-page .total-order-detail-page .total-order-progress-step.is-done:not(:last-child)::after {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.total-console-page .total-order-detail-page .total-order-progress-step span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
}

.total-console-page .total-order-detail-page .total-order-detail-highlights {
    margin: 14px 0 0;
    gap: 12px;
}

.total-console-page .total-order-detail-page .total-order-highlight-card {
    padding: 16px 18px;
    border-color: #e8edf5;
    border-radius: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.total-console-page .total-order-detail-page .total-order-highlight-card:hover {
    border-color: #c7d8ff;
    box-shadow: 0 6px 20px rgba(49, 94, 251, 0.08);
    transform: translateY(-1px);
}

.total-console-page .total-order-detail-page .total-order-highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.total-console-page .total-order-detail-page .total-order-highlight-card strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.total-console-page .total-order-detail-page .total-order-detail-body {
    padding: 0 28px 8px;
}

.total-console-page .total-order-detail-page .total-order-detail-layout {
    margin-bottom: 16px;
    gap: 16px;
}

.total-console-page .total-order-detail-page .panel-card {
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.total-console-page .total-order-detail-page .panel-head {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.total-console-page .total-order-detail-page .panel-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-order-detail-page .panel-head p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.total-console-page .total-order-detail-page .panel-card > .total-order-detail-kv,
.total-console-page .total-order-detail-page .panel-card > .total-finance-breakdown-note {
    padding: 16px 20px;
}

.total-console-page .total-order-detail-page .total-order-amount-card .total-order-amount-flow {
    margin: 0 20px;
}

.total-console-page .total-order-detail-page .total-order-amount-card {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #fff 100%);
}

.total-console-page .total-order-detail-page .total-order-amount-flow {
    display: grid;
    grid-template-columns: minmax(100px, auto) auto minmax(180px, 1fr) auto minmax(100px, auto);
    align-items: center;
    gap: 10px 12px;
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e0e7ff;
}

.total-console-page .total-order-detail-page .total-order-amount-node {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border-color: #e8edf5;
}

.total-console-page .total-order-detail-page .total-order-amount-split {
    min-width: 0;
    padding: 12px 14px;
    border-style: solid;
    border-color: #e8edf5;
    background: #f8fafc;
}

.total-console-page .total-order-detail-page .total-order-amount-split div strong {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.total-console-page .total-order-detail-page .total-finance-breakdown-note {
    margin: 0;
    padding: 12px 20px 16px;
    font-size: 0.8rem;
    color: #64748b;
    background: transparent;
}

.total-console-page .total-order-detail-page .total-order-detail-kv {
    gap: 14px 20px;
}

.total-console-page .total-order-detail-page .total-order-detail-kv span {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.total-console-page .total-order-detail-page .total-order-detail-kv strong {
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.45;
}

.total-console-page .total-order-detail-page .total-order-detail-kv-rich div.is-code strong {
    font-size: 0.92rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px dashed #bfdbfe;
}

.total-console-page .total-order-detail-page .total-order-detail-kv-rich div.is-wide strong {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.total-console-page .total-order-detail-page .total-order-detail-grid {
    gap: 16px;
    margin-bottom: 16px;
}

.total-console-page .total-order-detail-page .total-order-timeline-card {
    margin-bottom: 0;
}

.total-console-page .total-order-detail-page .total-order-detail-timeline {
    padding: 12px 20px 16px;
}

.total-console-page .total-order-detail-page .merchant-finance-settlement-timeline-item {
    padding-left: 4px;
}

.total-console-page .total-order-detail-page .total-order-detail-foot {
    margin: 0;
    padding: 14px 28px 20px;
    border-top: 1px solid var(--total-border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 0;
}

.total-console-page .total-order-detail-page .total-gc-foot-btn {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.84rem;
}

.total-console-page .total-order-detail-page .total-gc-foot-btn:not(.secondary):not(.is-warn):not(.is-danger) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.total-console-page .total-order-detail-page .total-gc-foot-btn:not(.secondary):hover {
    filter: brightness(1.05);
}

@media (max-width: 1100px) {
    .total-console-page .total-order-detail-page .total-order-amount-flow {
        grid-template-columns: 1fr 1fr;
    }

    .total-console-page .total-order-detail-page .total-order-amount-arrow {
        display: none;
    }

    .total-console-page .total-order-detail-page .total-order-amount-node.is-net {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .total-console-page .total-order-detail-page .total-order-detail-crumb,
    .total-console-page .total-order-detail-page .total-order-detail-top,
    .total-console-page .total-order-detail-page .total-order-detail-body,
    .total-console-page .total-order-detail-page .total-order-detail-foot {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .total-console-page .total-order-detail-page .total-order-detail-body {
        padding-bottom: 8px;
    }

    .total-console-page .total-order-detail-page .total-order-detail-foot {
        padding: 12px 16px 16px;
    }
}

/* 订单总览 · 控制台精致版 */
.total-console-page .total-order-overview-page .total-order-overview-stats {
    margin: 20px 28px;
}

.total-console-page .total-order-overview-page .total-order-stat-card {
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-order-overview-page .total-order-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(49, 94, 251, 0.1);
}

.total-console-page .total-order-overview-page .total-order-stat-card::after {
    display: none;
}

.total-console-page .total-order-overview-page .total-order-stat-card strong {
    font-size: 1.8rem;
    margin: 10px 0 6px;
    line-height: 1.1;
}

.total-console-page .total-order-overview-page .total-order-stat-card p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
}

.total-order-metric-icon.is-dispute {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.total-order-overview-modules {
    margin: 0 28px 20px;
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.total-order-overview-modules-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-order-overview-modules-head p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.total-console-page .total-order-overview-page .total-order-entry-grid {
    margin: 14px 0 0;
    gap: 10px;
}

.total-console-page .total-order-overview-page .total-order-entry-card {
    position: relative;
    padding: 14px 40px 14px 16px;
    border-color: #e8edf5;
    background: #fff;
}

.total-console-page .total-order-overview-page .total-order-entry-card:hover {
    border-color: #93c5fd;
    background: #fff;
}

.total-order-entry-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.total-console-page .total-order-overview-page .total-order-entry-card:hover .total-order-entry-arrow {
    color: var(--primary);
    transform: translateY(-50%) translateX(2px);
}

.total-console-page .total-order-overview-page .total-order-overview-queue-card {
    margin: 0 28px 28px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.total-console-page .total-order-overview-page .total-order-overview-toolbar {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.total-console-page .total-order-overview-page .total-order-overview-toolbar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-order-overview-page .total-order-overview-queue-card .merchant-marketing-table {
    border: none;
    border-radius: 0;
}

.total-console-page .total-order-overview-page .merchant-marketing-table-head {
    min-height: 44px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.total-console-page .total-order-overview-page .total-order-hub-row {
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
}

.total-console-page .total-order-overview-page .total-order-hub-row:nth-child(even) {
    background: #fafbfd;
}

.total-console-page .total-order-overview-page .total-order-hub-row:hover {
    background: #f0f4ff;
}

.total-console-page .total-order-overview-page .total-order-row-detail {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f0f4ff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.total-console-page .total-order-overview-page .total-order-row-detail:hover {
    background: var(--primary);
    color: #fff;
}

.total-console-page .total-order-overview-page .merchant-marketing-badge {
    border-radius: 999px;
    min-width: 68px;
    height: 26px;
    font-size: 0.76rem;
}

@media (max-width: 720px) {
    .total-console-page .total-order-overview-page .total-order-overview-stats,
    .total-console-page .total-order-overview-page .total-order-overview-modules,
    .total-console-page .total-order-overview-page .total-order-overview-queue-card {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* 异常订单 / 待核销 · 控制台精致版 */
.total-console-page .total-order-abnormal-page .total-order-abnormal-stats,
.total-console-page .total-order-pending-page .total-order-pending-stats {
    margin: 20px 28px;
}

.total-console-page .total-order-abnormal-page .total-order-stat-card,
.total-console-page .total-order-pending-page .total-order-stat-card {
    padding: 18px 20px;
    border: 1px solid var(--total-border);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-console-page .total-order-abnormal-page .total-order-stat-card:hover,
.total-console-page .total-order-pending-page .total-order-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(49, 94, 251, 0.1);
}

.total-console-page .total-order-abnormal-page .total-order-stat-card::after,
.total-console-page .total-order-pending-page .total-order-stat-card::after {
    display: none;
}

.total-console-page .total-order-abnormal-page .total-order-stat-card strong,
.total-console-page .total-order-pending-page .total-order-stat-card strong {
    font-size: 1.8rem;
    margin: 10px 0 6px;
    line-height: 1.1;
}

.total-console-page .total-order-abnormal-page .total-order-stat-card p,
.total-console-page .total-order-pending-page .total-order-stat-card p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
}

.total-order-metric-icon.is-fraud {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
}

.total-order-metric-icon.is-hold {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.total-console-page .total-order-pending-page .total-order-pending-control {
    margin: 0 28px 20px;
}

.total-order-topic-tip {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(49, 94, 251, 0.06);
    border: 1px solid rgba(49, 94, 251, 0.12);
    font-size: 0.8rem;
    line-height: 1.55;
    color: #475569;
}

.total-console-page .total-order-pending-page .total-order-pending-tip {
    margin: 0 28px 20px;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-control {
    margin: 0 28px 20px;
    padding: 16px 18px;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-tabs {
    margin-bottom: 0;
    flex: 1;
}

.total-console-page .total-order-abnormal-page .merchant-overview-chip,
.total-console-page .total-order-pending-page .merchant-overview-chip {
    min-width: auto;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    border-color: #e2e8f0;
    background: #fff;
    color: #475569;
}

.total-console-page .total-order-abnormal-page .merchant-overview-chip.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.total-console-page .total-order-abnormal-page .total-order-filter-shell,
.total-console-page .total-order-pending-page .total-order-filter-shell {
    margin: 0 28px 24px;
    padding: 0;
    border: none;
    background: transparent;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 18px 20px;
    margin: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    align-items: end;
}

.total-console-page .total-order-pending-page .total-order-pending-filter-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.2fr) auto;
    gap: 14px 16px;
    padding: 18px 20px;
    margin: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    align-items: end;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-filter-actions-row {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid #f1f5f9;
}

.total-console-page .total-order-pending-page .total-order-pending-filter-actions-inline {
    justify-content: flex-end;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.total-console-page .total-order-pending-page .total-order-cell-appointment.is-urgent strong {
    color: #ea580c;
}

.total-console-page .total-order-pending-page .total-order-cell-appointment.is-urgent em {
    color: #fdba74;
}

.total-console-page .total-order-pending-page .total-order-code {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
}

.total-console-page .total-order-pending-page .total-order-empty-queue {
    padding: 32px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-table-card,
.total-console-page .total-order-pending-page .total-order-pending-table-card {
    margin: 0 28px 28px;
    padding: 0;
    border: 1px solid var(--total-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-toolbar,
.total-console-page .total-order-pending-page .total-order-pending-toolbar {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.total-console-page .total-order-abnormal-page .total-order-abnormal-toolbar h3,
.total-console-page .total-order-pending-page .total-order-pending-toolbar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.total-console-page .total-order-pending-page .total-order-export-btn {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #d9e4ff;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.total-console-page .total-order-pending-page .total-order-export-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.total-console-page .total-order-abnormal-page .merchant-marketing-table,
.total-console-page .total-order-pending-page .merchant-marketing-table {
    border: none;
    border-radius: 0;
}

.total-console-page .total-order-abnormal-page .merchant-marketing-table-head,
.total-console-page .total-order-pending-page .merchant-marketing-table-head {
    min-height: 44px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.total-console-page .total-order-abnormal-page .total-order-hub-row,
.total-console-page .total-order-pending-page .total-order-hub-row {
    min-height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
}

.total-console-page .total-order-abnormal-page .total-order-hub-row:nth-child(even),
.total-console-page .total-order-pending-page .total-order-hub-row:nth-child(even) {
    background: #fafbfd;
}

.total-console-page .total-order-abnormal-page .total-order-hub-row:hover,
.total-console-page .total-order-pending-page .total-order-hub-row:hover {
    background: #f0f4ff;
}

.total-console-page .total-order-abnormal-page .total-order-cell-risk-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
}

.total-console-page .total-order-abnormal-page .merchant-marketing-actions,
.total-console-page .total-order-pending-page .merchant-marketing-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.total-console-page .total-order-abnormal-page .total-order-row-detail,
.total-console-page .total-order-pending-page .total-order-row-detail,
.total-console-page .total-order-abnormal-page .total-order-row-ticket {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.total-console-page .total-order-abnormal-page .total-order-row-detail,
.total-console-page .total-order-pending-page .total-order-row-detail {
    background: #f0f4ff;
    color: var(--primary);
}

.total-console-page .total-order-abnormal-page .total-order-row-detail:hover,
.total-console-page .total-order-pending-page .total-order-row-detail:hover {
    background: var(--primary);
    color: #fff;
}

.total-console-page .total-order-abnormal-page .total-order-row-ticket {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.total-console-page .total-order-abnormal-page .total-order-row-ticket:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.total-console-page .total-order-abnormal-page .merchant-marketing-footer,
.total-console-page .total-order-pending-page .merchant-marketing-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfd;
}

@media (max-width: 1100px) {
    .total-console-page .total-order-abnormal-page .total-order-abnormal-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .total-console-page .total-order-pending-page .total-order-pending-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .total-console-page .total-order-pending-page .total-order-pending-filter-actions-inline {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .total-console-page .total-order-abnormal-page .total-order-abnormal-stats,
    .total-console-page .total-order-abnormal-page .total-order-abnormal-control,
    .total-console-page .total-order-abnormal-page .total-order-filter-shell,
    .total-console-page .total-order-abnormal-page .total-order-abnormal-table-card,
    .total-console-page .total-order-pending-page .total-order-pending-stats,
    .total-console-page .total-order-pending-page .total-order-pending-control,
    .total-console-page .total-order-pending-page .total-order-pending-tip,
    .total-console-page .total-order-pending-page .total-order-filter-shell,
    .total-console-page .total-order-pending-page .total-order-pending-table-card {
        margin-left: 16px;
        margin-right: 16px;
    }

    .total-console-page .total-order-abnormal-page .total-order-abnormal-filter-grid,
    .total-console-page .total-order-pending-page .total-order-pending-filter-grid {
        grid-template-columns: 1fr;
    }
}

.total-order-stats,
.total-order-entry {
    margin-bottom: 16px;
}

.total-order-detail-stats {
    margin-bottom: 12px;
}

.total-order-detail-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.total-order-detail-kv div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-order-detail-kv span {
    font-size: 0.8rem;
    color: #64748b;
}

.total-order-detail-kv strong {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.45;
}

.total-order-detail-kv-rich {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.total-order-detail-grid {
    margin-bottom: 16px;
}

.merchant-side-item-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 4px;
}

.cols-total-order-query {
    grid-template-columns: 1.05fr 0.75fr 0.9fr 1.1fr 0.65fr 0.95fr 0.72fr 0.72fr 0.68fr 0.72fr;
}

.total-order-query-filter-actions {
    flex-wrap: wrap;
}

.total-order-query-advanced-toggle {
    border: 1px solid #c7d2fe;
    background: #f5f8ff;
    color: #4256d0;
    font-weight: 600;
}

.total-order-query-advanced-toggle.is-open {
    background: #eef2ff;
    border-color: #5070ff;
}

.total-order-query-advanced {
    margin-top: -4px;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.total-order-query-advanced-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.total-order-query-advanced-head strong {
    font-size: 0.92rem;
    color: #334155;
}

.total-order-query-advanced-head span {
    font-size: 0.82rem;
    color: #64748b;
}

.total-order-query-advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
}

.total-order-query-amount-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-order-query-amount-range input {
    flex: 1;
    min-width: 0;
}

.total-order-query-amount-range em {
    color: #94a3b8;
    font-style: normal;
}

@media (max-width: 1100px) {
    .total-order-query-advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .total-order-query-advanced-grid {
        grid-template-columns: 1fr;
    }
}

/* —— 发票中心 —— */

.total-invoice-stats,
.total-invoice-entry {
    margin-bottom: 16px;
}

.total-invoice-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.total-invoice-settings-grid .panel-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.total-invoice-detail-layout {
    margin-bottom: 16px;
}

.cols-total-invoice-apply {
    grid-template-columns: 1.1fr 0.75fr 1fr 0.7fr 0.72fr 0.85fr 0.68fr 0.9fr 0.85fr;
}

.cols-total-invoice-merchant {
    grid-template-columns: 1.05fr 0.9fr 0.85fr 0.65fr 0.7fr 0.72fr 0.68fr 0.9fr 0.85fr;
}

.cols-total-invoice-records,
.cols-total-invoice-records-mini {
    grid-template-columns: 1.1fr 0.75fr 0.85fr 0.75fr 0.65fr 0.72fr 0.75fr 0.68fr 0.9fr 0.72fr;
}

.cols-total-invoice-records-mini {
    grid-template-columns: 0.95fr 1.1fr 0.85fr 0.65fr 0.55fr;
}

.cols-total-invoice-redflush {
    grid-template-columns: 1fr 1.05fr 0.65fr 1.2fr 0.75fr 0.68fr 0.9fr 0.8fr;
}

    @media (max-width: 1200px) {
    .total-invoice-settings-grid {
        grid-template-columns: 1fr;
    }

    .cols-total-invoice-apply,
    .cols-total-invoice-merchant,
    .cols-total-invoice-records,
    .cols-total-invoice-records-mini,
    .cols-total-invoice-redflush {
        grid-template-columns: 1fr;
    }
}

/* —— 售后中心 —— */

.total-service-stats,
.total-service-entry {
    margin-bottom: 16px;
}

.cols-total-service-tickets {
    grid-template-columns: 0.72fr 1.05fr 0.75fr 0.72fr 0.8fr 0.9fr 0.75fr 0.65fr 0.68fr 0.85fr 0.75fr;
}

.cols-total-service-refund {
    grid-template-columns: 0.72fr 1fr 1fr 0.75fr 0.9fr 0.65fr 0.72fr 1.1fr 0.68fr 0.9fr 0.75fr;
}

.cols-total-service-chat {
    grid-template-columns: 1fr 0.85fr 0.72fr 1.2fr 0.55fr 0.68fr 0.55fr;
}

.cols-total-service-queue-mini {
    grid-template-columns: 0.72fr 0.55fr 1fr 1.4fr 0.65fr 0.55fr;
}

.total-service-priority-stats {
    margin-bottom: 16px;
}

.metric-card.is-priority-p0-card {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.metric-card.is-priority-p0-card strong {
    color: #dc2626;
}

.metric-card.is-priority-p1-card {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.metric-card.is-priority-p1-card strong {
    color: #ea580c;
}

.metric-card.is-priority-p2-card strong {
    color: #334155;
}

.metric-card.is-priority-p3-card {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.metric-card.is-priority-p3-card strong {
    color: #64748b;
}

.total-service-priority-legend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.total-service-priority-legend-head h3 {
    margin: 0;
    font-size: 0.92rem;
    color: #334155;
}

.total-service-priority-preview-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.total-service-priority-page-preview {
    margin: 0;
    border: none;
    background: transparent;
    padding: 0;
}

.total-service-priority-preview-sla {
    display: inline-block;
    margin: 0 8px 0 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-style: normal;
    color: #475569;
    background: #e2e8f0;
}

.total-service-priority-form-card {
    margin-bottom: 0;
}

.total-service-priority-page-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.total-service-priority-edit-dialog {
    max-width: 720px;
}

.total-service-priority-edit-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.total-service-priority-edit-block {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.total-service-priority-edit-block h4 {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: #334155;
}

.total-service-priority-edit-block.is-p0 {
    border-color: #fecaca;
    background: #fff5f5;
}

.total-service-priority-edit-block.is-p1 {
    border-color: #fed7aa;
    background: #fff7ed;
}

.total-service-priority-edit-block.is-p3 {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.total-service-priority-edit-block .merchant-marketing-field {
    margin-bottom: 8px;
}

.total-service-priority-edit-block textarea {
    min-height: 72px;
}

@media (max-width: 720px) {
    .total-service-priority-edit-body {
        grid-template-columns: 1fr;
    }
}

.total-service-priority-legend {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.total-service-priority-legend h3 {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: #334155;
}

.total-service-priority-legend ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.total-service-priority-legend li {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #475569;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.total-service-priority-legend li.is-p0 {
    border-color: #fecaca;
    background: #fef2f2;
}

.total-service-priority-legend li.is-p1 {
    border-color: #fed7aa;
    background: #fff7ed;
}

.total-service-priority-legend li.is-p3 {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
}

.total-service-priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.total-service-priority-badge.is-p0 {
    color: #fff;
    background: #dc2626;
    box-shadow: 0 0 0 1px #fecaca;
}

.total-service-priority-badge.is-p1 {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
}

.total-service-priority-badge.is-p2 {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.total-service-priority-badge.is-p3 {
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.merchant-marketing-row.is-priority-p0 {
    background: linear-gradient(90deg, #fef2f2 0%, #fff 55%);
    border-left: 3px solid #dc2626;
}

.merchant-marketing-row.is-priority-p1 {
    background: linear-gradient(90deg, #fff7ed 0%, #fff 55%);
    border-left: 3px solid #f97316;
}

.merchant-marketing-row.is-priority-p2 {
    background: #fff;
}

.merchant-marketing-row.is-priority-p3 {
    background: #f8fafc;
    color: #64748b;
    border-left: 3px solid #cbd5e1;
}

.merchant-section-tag.is-p0-alert {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    animation: total-service-p0-pulse 1.6s ease-in-out infinite;
}

@keyframes total-service-p0-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.total-service-p3-fold {
    margin-top: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.total-service-p3-fold .merchant-marketing-toolbar {
    padding: 10px 12px;
}

.total-service-p3-toggle {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.86rem;
    cursor: pointer;
    padding: 4px 0;
}

.total-service-p3-toggle:hover {
    color: #334155;
}

.total-service-p3-fold-body {
    border-top: 1px solid #e2e8f0;
}

.total-service-p0-alert-dialog {
    max-width: 520px;
}

.total-service-p0-alert-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #475569;
}

.total-service-p0-alert-channels span {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.total-service-p0-alert-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.total-service-p0-alert-item {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff5f5;
}

.total-service-p0-alert-item-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.total-service-p0-alert-item-head strong {
    color: #b91c1c;
}

.total-service-p0-alert-item p {
    margin: 0;
    font-size: 0.86rem;
    color: #334155;
}

.total-service-p0-alert-item em {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #64748b;
    font-style: normal;
}

.total-service-p0-alert-escalation {
    margin: 0;
    font-size: 0.82rem;
    color: #7f1d1d;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px dashed #fca5a5;
}

.total-service-p0-alert-modal .total-audit-reject-head h3 {
    color: #b91c1c;
}

.cols-total-order-pending {
    grid-template-columns: 1.05fr 0.8fr 0.95fr 1.05fr 0.85fr 0.65fr 0.9fr 0.55fr;
}

.cols-total-order-abnormal {
    grid-template-columns: 1.05fr 0.8fr 0.9fr 0.65fr 0.78fr 1.15fr 0.85fr 0.68fr;
}

.total-service-chat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.total-service-chat-panel {
    min-height: 360px;
}

.total-service-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.total-service-chat-bubble {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
}

.total-service-chat-bubble.is-agent {
    background: #e0f2fe;
    align-self: flex-end;
    max-width: 88%;
}

.total-service-chat-bubble.is-user,
.total-service-chat-bubble.is-merchant {
    max-width: 88%;
}

.total-service-chat-bubble-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.total-service-chat-bubble p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.total-service-chat-reply {
    display: flex;
    gap: 8px;
}

.total-service-chat-reply input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.total-refund-analytics-page .total-refund-analytics-filters {
    margin-bottom: 16px;
}

.total-refund-analytics-stats {
    margin-bottom: 16px;
}

.total-refund-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.total-refund-analytics-card {
    margin: 0;
}

.total-refund-analytics-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.total-refund-analytics-bars.is-category .bar {
    background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
}

.total-refund-analytics-bar-row {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr auto auto;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
}

.total-refund-analytics-bar-row .label {
    color: #334155;
    font-weight: 600;
}

.total-refund-analytics-bar-row .bar-track {
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.total-refund-analytics-bar-row .bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
    min-width: 8px;
}

.total-refund-analytics-bar-row .meta {
    color: #64748b;
    white-space: nowrap;
}

.total-refund-analytics-bar-row .pct {
    color: #4f46e5;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.total-refund-analytics-empty {
    margin: 0;
    padding: 12px 4px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.cols-total-refund-reason {
    grid-template-columns: 1.1fr 0.55fr 0.55fr 0.85fr 0.65fr;
}

.cols-total-refund-category {
    grid-template-columns: 0.95fr 0.55fr 0.55fr 0.85fr 0.95fr;
}

.total-refund-reason-table,
.total-refund-category-table {
    margin-top: 4px;
}

.total-refund-time-card {
    margin: 0;
}

.total-refund-time-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 180px;
    padding: 8px 4px 0;
}

.total-refund-time-col {
    display: grid;
    gap: 6px;
    align-items: end;
    text-align: center;
}

.total-refund-time-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 140px;
}

.total-refund-time-bars span {
    display: block;
    width: 10px;
    height: var(--h, 20%);
    min-height: 6px;
    border-radius: 6px 6px 2px 2px;
    transition: height 0.35s ease;
}

.total-refund-time-bars .is-count {
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
}

.total-refund-time-bars .is-amount {
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
}

.total-refund-time-col em {
    font-size: 0.68rem;
    color: #94a3b8;
    font-style: normal;
}

.total-refund-time-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.78rem;
    color: #64748b;
}

.total-refund-time-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.total-refund-time-legend em {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    font-style: normal;
}

.total-refund-time-legend .is-count em {
    background: linear-gradient(180deg, #93c5fd, #3b82f6);
}

.total-refund-time-legend .is-amount em {
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

@media (max-width: 1200px) {
    .total-refund-analytics-grid {
        grid-template-columns: 1fr;
    }

    .total-refund-time-chart {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .total-service-chat-layout {
        grid-template-columns: 1fr;
    }

    .cols-total-service-tickets,
    .cols-total-service-refund,
    .cols-total-service-chat,
    .cols-total-service-queue-mini,
    .cols-total-refund-reason,
    .cols-total-refund-category,
    .cols-total-order-pending,
    .cols-total-order-abnormal,
    .cols-total-order-overview-mini {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .cols-total-order-query,
    .total-order-detail-kv {
        grid-template-columns: 1fr;
    }
}

/* —— 运营数据大屏 —— */

.total-data-screen-embed-label {
    margin: 0 0 8px;
    padding: 0 4px;
}

.total-data-screen-embed-label .merchant-section-label {
    color: #6d85a8;
}
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
}

.total-main-panel .total-data-screen-embed .total-data-screen {
    min-height: calc(100vh - 96px);
    border-radius: 14px;
    overflow: hidden;
}

.total-data-screen-embed:fullscreen {
    padding: 12px;
    background: #050b18;
    box-sizing: border-box;
}

.total-data-screen-embed:fullscreen .total-data-screen {
    min-height: 100%;
    border-radius: 12px;
}

.total-data-screen-page {
    margin: 0;
    min-height: 100vh;
    background: #050b18;
    color: #e8eef9;
    overflow-x: hidden;
}

.total-data-screen {
    min-height: 100vh;
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at 12% 8%, rgba(49, 94, 251, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.12) 0%, transparent 38%),
        linear-gradient(180deg, #071222 0%, #050b18 100%);
    box-sizing: border-box;
}

.total-data-screen-header {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(75, 143, 255, 0.28);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(15, 35, 72, 0.92) 0%, rgba(8, 22, 48, 0.75) 50%, rgba(15, 35, 72, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.total-data-screen-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-data-screen-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(135deg, #4b8fff 0%, #315efb 100%);
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.45);
}

.total-data-screen-brand strong {
    display: block;
    font-size: 0.92rem;
}

.total-data-screen-brand span {
    font-size: 0.72rem;
    color: #8ba3c7;
}

.total-data-screen-title-wrap {
    text-align: center;
}

.total-data-screen-title-wrap h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #e8f2ff 0%, #7eb8ff 50%, #e8f2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.total-data-screen-title-wrap p {
    margin: 4px 0 0;
    font-size: 0.76rem;
    color: #6d85a8;
}

.total-data-screen-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.total-data-screen-clock {
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    color: #a8c4e8;
    padding-right: 8px;
}

.total-data-screen-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #5eead4;
}

.total-data-screen-live em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 10px #2dd4bf;
    animation: total-screen-pulse 1.8s ease-in-out infinite;
}

@keyframes total-screen-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.total-data-screen-btn {
    border: 1px solid rgba(75, 143, 255, 0.45);
    background: rgba(15, 35, 72, 0.65);
    color: #c5d9f5;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
}

.total-data-screen-btn:hover {
    border-color: #5b9cff;
    color: #fff;
    background: rgba(49, 94, 251, 0.35);
}

.total-data-screen-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.total-data-screen-kpi {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(75, 143, 255, 0.22);
    background: linear-gradient(180deg, rgba(12, 28, 58, 0.95) 0%, rgba(8, 18, 38, 0.88) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.total-data-screen-kpi span {
    display: block;
    font-size: 0.72rem;
    color: #7d94b8;
    margin-bottom: 6px;
}

.total-data-screen-kpi strong {
    display: block;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-variant-numeric: tabular-nums;
    color: #f0f6ff;
    line-height: 1.2;
}

.total-data-screen-kpi p {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: #5eead4;
}

.total-data-screen-kpi p.is-down {
    color: #f87171;
}

.total-data-screen-kpi.is-verify strong {
    color: #7dd3fc;
}

.total-data-screen-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 12px;
    min-height: calc(100vh - 220px);
}

.total-data-screen-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.total-data-screen-panel {
    flex: 1;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(75, 143, 255, 0.2);
    background: rgba(8, 20, 42, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.total-data-screen-panel.is-hero {
    flex: 1.35;
}

.total-data-screen-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(75, 143, 255, 0.15);
}

.total-data-screen-panel-head h3 {
    margin: 0;
    font-size: 0.88rem;
    color: #dce8f8;
}

.total-data-screen-panel-head span {
    font-size: 0.72rem;
    color: #6d85a8;
}

.total-data-screen-legend {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: #8ba3c7;
}

.total-data-screen-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-data-screen-legend em {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    font-style: normal;
}

.total-data-screen-legend .is-gmv em {
    background: linear-gradient(180deg, #60a5fa, #315efb);
}

.total-data-screen-legend .is-order em {
    background: linear-gradient(180deg, #2dd4bf, #0d9488);
}

.total-data-screen-bar-list {
    display: grid;
    gap: 10px;
}

.total-data-screen-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    gap: 8px;
    align-items: center;
    font-size: 0.76rem;
}

.total-data-screen-bar-row span:first-child {
    color: #a8c4e8;
}

.total-data-screen-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.total-data-screen-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #315efb, #38bdf8);
    transition: width 0.5s ease;
}

.total-data-screen-bar-row em {
    font-style: normal;
    color: #7dd3fc;
    text-align: right;
}

.total-data-screen-rank-list {
    display: grid;
    gap: 8px;
}

.total-data-screen-rank-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
}

.total-data-screen-rank-item .rank-no {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    background: rgba(49, 94, 251, 0.25);
    color: #93c5fd;
}

.total-data-screen-rank-item.is-top .rank-no {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
}

.total-data-screen-rank-item strong {
    color: #e2ecfa;
}

.total-data-screen-rank-item span {
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
}

.total-data-screen-district-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.total-data-screen-district-item {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(75, 143, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.total-data-screen-district-item strong {
    display: block;
    font-size: 0.78rem;
    color: #dce8f8;
    margin-bottom: 4px;
}

.total-data-screen-district-item span {
    font-size: 0.72rem;
    color: #5eead4;
}

.total-data-screen-dual-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 200px;
    padding: 8px 4px 0;
}

.total-data-screen-dual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.total-data-screen-dual-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 180px;
    width: 100%;
}

.total-data-screen-dual-bars span {
    flex: 1;
    min-height: 8px;
    border-radius: 6px 6px 2px 2px;
    transition: height 0.45s ease;
}

.total-data-screen-dual-bars .is-gmv {
    background: linear-gradient(180deg, #60a5fa 0%, #315efb 100%);
}

.total-data-screen-dual-bars .is-order {
    background: linear-gradient(180deg, #5eead4 0%, #0d9488 100%);
}

.total-data-screen-dual-col label {
    font-size: 0.68rem;
    color: #6d85a8;
}

.total-data-screen-chart-axis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
    font-size: 0.68rem;
    color: #5a7296;
    text-align: center;
}

.total-data-screen-hour-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    min-height: 100px;
    padding-top: 6px;
}

.total-data-screen-hour-chart span {
    display: block;
    min-height: 6px;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(14, 116, 144, 0.85));
    transition: height 0.4s ease;
}

.total-data-screen-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.total-data-screen-mini {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(75, 143, 255, 0.18);
    background: rgba(8, 20, 42, 0.75);
    text-align: center;
}

.total-data-screen-mini span {
    display: block;
    font-size: 0.72rem;
    color: #7d94b8;
    margin-bottom: 4px;
}

.total-data-screen-mini strong {
    font-size: 1.05rem;
    color: #f0f6ff;
}

.total-data-screen-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.total-data-screen-priority-card {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.total-data-screen-priority-card.is-p0 {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(220, 38, 38, 0.12);
}

.total-data-screen-priority-card.is-p1 {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(234, 88, 12, 0.1);
}

.total-data-screen-priority-card.is-p2 {
    border-color: rgba(148, 163, 184, 0.25);
}

.total-data-screen-priority-card.is-p3 {
    border-color: rgba(100, 116, 139, 0.3);
    opacity: 0.85;
}

.total-data-screen-priority-card strong {
    display: block;
    font-size: 1.1rem;
    color: #f8fafc;
    margin-top: 4px;
}

.total-data-screen-priority-card span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.total-data-screen-alert-list,
.total-data-screen-feed {
    display: grid;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.total-data-screen-alert-item,
.total-data-screen-feed-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid #315efb;
    font-size: 0.76rem;
}

.total-data-screen-alert-item.is-high {
    border-left-color: #f87171;
}

.total-data-screen-alert-item strong,
.total-data-screen-feed-item strong {
    display: block;
    color: #e2ecfa;
    margin-bottom: 2px;
}

.total-data-screen-alert-item span,
.total-data-screen-feed-item span {
    color: #6d85a8;
    font-size: 0.7rem;
}

.total-data-screen-feed {
    max-height: 240px;
}

.total-data-screen-feed-item {
    border-left-color: #2dd4bf;
}

@media (max-width: 1400px) {
    .total-data-screen-header {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .total-data-screen-title-wrap {
        text-align: left;
    }

    .total-data-screen-header-actions {
        justify-content: flex-start;
    }

    .total-data-screen-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .total-data-screen-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .total-data-screen-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-data-screen-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 财务大屏主题（金色） */
.total-data-screen.is-finance-theme {
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 90% 8%, rgba(251, 191, 36, 0.1) 0%, transparent 36%),
        linear-gradient(180deg, #0c1424 0%, #060d18 100%);
}

.total-data-screen.is-finance-theme .total-data-screen-header {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(90deg, rgba(30, 24, 12, 0.92) 0%, rgba(12, 18, 32, 0.8) 50%, rgba(30, 24, 12, 0.92) 100%);
}

.total-data-screen.is-finance-theme .total-data-screen-logo {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.total-data-screen.is-finance-theme .total-data-screen-title-wrap h1 {
    background: linear-gradient(90deg, #fef3c7 0%, #fbbf24 50%, #fef3c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.total-data-screen.is-finance-theme .total-data-screen-live {
    color: #fbbf24;
}

.total-data-screen.is-finance-theme .total-data-screen-live em {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

.total-data-screen.is-finance-theme .total-data-screen-btn {
    border-color: rgba(245, 158, 11, 0.45);
}

.total-data-screen.is-finance-theme .total-data-screen-btn:hover {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.22);
}

.total-data-screen.is-finance-theme .total-data-screen-kpi p {
    color: #fbbf24;
}

.total-data-screen.is-finance-theme .total-data-screen-kpi.is-verify strong {
    color: #fde68a;
}

.total-data-screen.is-finance-theme .total-data-screen-bar-fill {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.total-data-screen.is-finance-theme .total-data-screen-dual-bars .is-gmv {
    background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
}

.total-data-screen.is-finance-theme .total-data-screen-dual-bars .is-order {
    background: linear-gradient(180deg, #fb923c 0%, #c2410c 100%);
}

.total-data-screen.is-finance-theme .total-data-screen-hour-chart span {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.95), rgba(180, 83, 9, 0.85));
}

.total-data-screen.is-finance-theme .total-data-screen-rank-item .rank-no {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.total-data-screen.is-finance-theme .total-data-screen-rank-item span {
    color: #fcd34d;
}

.total-data-screen.is-finance-theme .total-data-screen-district-item span {
    color: #fbbf24;
}

.total-data-screen.is-finance-theme .total-data-screen-alert-item {
    border-left-color: #f59e0b;
}

.total-data-screen.is-finance-theme .total-data-screen-feed-item {
    border-left-color: #fbbf24;
}