/* UI v2 is opt-in. Every rule is scoped so the legacy interface remains unchanged. */
:root.ui-v2-active {
    --ui-bg: #0d0e10;
    --ui-surface: rgba(22, 23, 26, 0.78);
    --ui-surface-solid: #17181b;
    --ui-surface-muted: #1d1f23;
    --ui-ink: #f5f5f6;
    --ui-muted: #b8bac3;
    --ui-line: rgba(255, 255, 255, 0.12);
    --ui-line-strong: rgba(255, 255, 255, 0.22);
    --ui-accent: #d65ad1;
    --ui-accent-strong: #af63e8;
    --ui-success: #63d58a;
    --ui-warning: #c8d96a;
    --ui-danger: #ef727d;
    --ui-selection-bg: #3b2340;
    --ui-selection-ink: #ffffff;
    --ui-selection-muted: #d7c5d8;
    --ui-shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.18);
    --ui-shadow-md: 0 28px 76px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.24);
    --ui-radius-sm: 4px;
    --ui-radius: 7px;
    --ui-card-radius: 14px;
    --ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ui-fast: 160ms;
    --ui-normal: 280ms;
    color-scheme: dark;
}

html.ui-v2-active {
    min-width: 0 !important;
    min-height: 100%;
    color: var(--ui-ink);
    background: var(--ui-bg);
    letter-spacing: 0;
}

html.ui-v2-active body {
    position: relative;
    min-width: 0 !important;
    min-height: 100%;
    color: var(--ui-ink);
    background: transparent;
    isolation: isolate;
    letter-spacing: 0;
}

html.ui-v2-active body.ui-v2-enabled,
html.ui-v2-active .layui-layout,
html.ui-v2-active .layui-layout-admin,
html.ui-v2-active .layui-body,
html.ui-v2-active .custom-body {
    background: transparent !important;
}

html.ui-v2-active body.ui-v2-enabled::before,
html.ui-v2-active body.ui-v2-enabled::after {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
}

html.ui-v2-active body.ui-v2-enabled::before {
    background:
        linear-gradient(128deg, rgba(214, 90, 209, 0.1), transparent 28%),
        linear-gradient(306deg, rgba(136, 120, 248, 0.08), transparent 34%),
        #0d0e10;
}

html.ui-v2-active body.ui-v2-enabled::after {
    z-index: -1;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
    background-size: 190px 190px;
    mix-blend-mode: soft-light;
}

html.ui-v2-active body,
html.ui-v2-active input,
html.ui-v2-active select,
html.ui-v2-active textarea,
html.ui-v2-active button {
    font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html.ui-v2-active .page-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: clamp(24px, 1.7vw, 34px) clamp(24px, 2vw, 38px) 52px !important;
    overflow-x: auto;
    scroll-snap-type: y proximity;
    color: var(--ui-ink);
    font-size: 14px;
    line-height: 1.65;
}

html.ui-v2-active .page-container :where(label, p, .help-block, .text-muted, .c-999, .c-666) {
    color: var(--ui-muted) !important;
}

html.ui-v2-active .Title,
html.ui-v2-active h1,
html.ui-v2-active h2,
html.ui-v2-active h3 {
    color: var(--ui-ink);
    font-weight: 700;
    letter-spacing: 0;
}

html.ui-v2-active .Title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.28;
    text-wrap: balance;
}

/* Surfaces and bento layout */
html.ui-v2-active .layui-card,
html.ui-v2-active .bg-1,
html.ui-v2-active .panel,
html.ui-v2-active .well,
html.ui-v2-active .ui-v2-surface {
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: var(--ui-card-radius) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(128%);
    -webkit-backdrop-filter: blur(22px) saturate(128%);
}

/* Legacy Layui and Bootstrap pages share the same dark surface system. */
html.ui-v2-active .page-container :where(.well, .panel, .layui-card),
html.ui-v2-active .custom-body :where(.well, .panel, .layui-card),
html.ui-v2-active :where(.yh-desc, .yh-money-list, .table-box) {
    color: var(--ui-ink) !important;
}

html.ui-v2-active .page-container [class*="col-"][style*="border"],
html.ui-v2-active .custom-body [class*="col-"][style*="border"] {
    border-color: var(--ui-line-strong) !important;
}

html.ui-v2-active :where(
    .layui-form-label,
    .layui-input-block,
    .layui-input-inline,
    .layui-form-mid,
    .layui-form-radio,
    .layui-form-radio *,
    .layui-form-checkbox,
    .layui-form-checkbox *,
    .layui-breadcrumb,
    .layui-breadcrumb a,
    .layui-breadcrumb cite
) {
    color: var(--ui-ink) !important;
}

html.ui-v2-active .layui-form-label {
    font-weight: 550;
}

html.ui-v2-active .layui-form-radio > i,
html.ui-v2-active .layui-form-checkbox > i {
    color: #a9abb4 !important;
}

html.ui-v2-active .layui-form-radioed > i,
html.ui-v2-active .layui-form-checked > i {
    color: var(--ui-accent) !important;
}

html.ui-v2-active :where(.layui-form-radio, .layui-form-checkbox) {
    margin-right: 18px;
}

html.ui-v2-active :where(.layui-form-radio, .layui-form-checkbox):hover *,
html.ui-v2-active :where(.layui-form-radioed, .layui-form-checked) * {
    color: #fff !important;
}

html.ui-v2-active :where(.readonly, .disabled, input[disabled], textarea[disabled]) {
    background: rgba(255, 255, 255, 0.035) !important;
    color: #b8bac3 !important;
}

html.ui-v2-active :where(.select-box, .form-control) {
    border-color: var(--ui-line-strong) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active .dropdown-menu,
html.ui-v2-active .dropDown-menu {
    border-color: var(--ui-line-strong) !important;
    background: #1b1c20 !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active :where(.dropdown-menu, .dropDown-menu) a {
    color: #d9dae0 !important;
}

html.ui-v2-active :where(.dropdown-menu, .dropDown-menu) a:hover {
    background: var(--ui-selection-bg) !important;
    color: #fff !important;
}

/* Standalone finance pages used by legacy menu entries. */
html.ui-v2-active .yh-desc {
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-card-radius) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: var(--ui-shadow-sm);
}

html.ui-v2-active .yh-desc p {
    margin: 3px 0 !important;
    color: #d2d3d9 !important;
}

html.ui-v2-active .yh-money-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-card-radius) !important;
    background: var(--ui-line) !important;
    box-shadow: var(--ui-shadow-sm);
}

html.ui-v2-active .yh-money-list .item {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    min-height: 132px;
    padding: 24px 18px !important;
    border: 0 !important;
    background: rgba(22, 23, 26, 0.96) !important;
}

html.ui-v2-active .yh-money-list .item p {
    color: #d2d3d9 !important;
}

html.ui-v2-active .yh-money-list .item p.money {
    color: #ec8ae7 !important;
    font-size: clamp(28px, 2.4vw, 40px) !important;
    font-variant-numeric: tabular-nums;
}

html.ui-v2-active .searchline {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius) !important;
    background: rgba(22, 23, 26, 0.72) !important;
}

html.ui-v2-active body.custom-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html.ui-v2-active .custom-body > .layui-layout,
html.ui-v2-active .custom-body .layui-layout-admin > div,
html.ui-v2-active .custom-body .layui-layout-admin > div > div {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

html.ui-v2-active .custom-body .searchline .layui-form-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

html.ui-v2-active .custom-body .searchline .layui-inline {
    min-width: 0;
    margin: 0;
}

html.ui-v2-active .layui-card-body {
    box-sizing: border-box;
    height: 100%;
    padding: 22px;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.ui-v2-active .ui-v2-card-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px !important;
    margin: 0 !important;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html.ui-v2-active .ui-v2-card-grid::before,
html.ui-v2-active .ui-v2-card-grid::after {
    display: none !important;
}

html.ui-v2-active .ui-v2-card-grid > [class*="layui-col-"] {
    grid-column: span 3;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child {
    grid-column: span 6;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :not(:first-child) {
    grid-column: span 2;
}

html.ui-v2-active .ui-v2-card-grid .layui-card {
    height: 100%;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .layui-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(9, 10, 12, 0.9) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f8f9f9;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .layui-card::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    background: repeating-linear-gradient(125deg, transparent 0 15px, rgba(214, 90, 209, 0.22) 15px 16px);
    mask-image: linear-gradient(90deg, transparent, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    content: "";
    pointer-events: none;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .layui-card-body {
    position: relative;
    z-index: 1;
}

/* Component variants */
html.ui-v2-active .layui-btn,
html.ui-v2-active .btn {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 36px;
    border: 1px solid transparent !important;
    border-radius: var(--ui-radius-sm) !important;
    background: #f5f5f6 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    color: #111216 !important;
    font-weight: 600;
    letter-spacing: 0;
    transition: transform var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease), background var(--ui-fast) ease;
}

html.ui-v2-active .layui-btn:hover,
html.ui-v2-active .btn:hover {
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

html.ui-v2-active .layui-btn:active,
html.ui-v2-active .btn:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    transform: translateY(1px) scale(0.985);
}

html.ui-v2-active .layui-btn-primary,
html.ui-v2-active .btn-primary,
html.ui-v2-active .btn-success,
html.ui-v2-active .layui-btn-normal {
    background: linear-gradient(135deg, #d65ad1, #8978f8) !important;
    color: #fff !important;
}

html.ui-v2-active .layui-btn-primary:hover,
html.ui-v2-active .btn-primary:hover,
html.ui-v2-active .btn-success:hover,
html.ui-v2-active .layui-btn-normal:hover {
    background: linear-gradient(135deg, #e16edc, #9b8aff) !important;
}

html.ui-v2-active .layui-btn-xs,
html.ui-v2-active .btn.size-S {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 26px;
}

html.ui-v2-active .layui-btn-danger,
html.ui-v2-active .btn-danger {
    background: var(--ui-danger) !important;
}

html.ui-v2-active .layui-btn-disabled,
html.ui-v2-active .layui-btn[disabled],
html.ui-v2-active .btn[disabled] {
    opacity: 0.48;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

html.ui-v2-active .layui-input,
html.ui-v2-active .input-text,
html.ui-v2-active select,
html.ui-v2-active textarea {
    box-sizing: border-box;
    min-height: 38px;
    border: 1px solid var(--ui-line-strong) !important;
    border-radius: var(--ui-radius-sm) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: var(--ui-ink);
    outline: none;
    transition: border-color var(--ui-fast) ease, box-shadow var(--ui-fast) ease, background var(--ui-fast) ease;
}

html.ui-v2-active .layui-input:focus,
html.ui-v2-active .input-text:focus,
html.ui-v2-active select:focus,
html.ui-v2-active textarea:focus {
    border-color: var(--ui-accent) !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: 0 0 0 3px rgba(214, 90, 209, 0.18);
}

html.ui-v2-active :where(.layui-input, .input-text, textarea)::placeholder {
    color: #9fa1aa;
    opacity: 1;
}

html.ui-v2-active select option {
    background: #1b1c20;
    color: var(--ui-ink);
}

html.ui-v2-active input[type="text"],
html.ui-v2-active input[type="search"],
html.ui-v2-active input[type="password"],
html.ui-v2-active input[type="number"],
html.ui-v2-active input[type="date"],
html.ui-v2-active input[type="datetime-local"] {
    box-sizing: border-box;
    border: 1px solid var(--ui-line-strong) !important;
    border-radius: var(--ui-radius-sm) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active a:not(.layui-btn):not(.btn) {
    color: var(--ui-accent-strong);
}

html.ui-v2-active :where(.c-primary, .text-primary, .app-link) {
    color: var(--ui-accent-strong) !important;
}

html.ui-v2-active :where(.layui-elem-quote, .Huialert, .alert) {
    border: 1px solid var(--ui-line-strong) !important;
    border-left: 3px solid var(--ui-accent) !important;
    border-radius: var(--ui-radius) !important;
    background: rgba(214, 90, 209, 0.09) !important;
    color: var(--ui-ink) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.ui-v2-active .layui-form-select dl {
    border-color: var(--ui-line-strong);
    background: #1b1c20;
    color: var(--ui-ink);
    box-shadow: var(--ui-shadow-sm);
}

html.ui-v2-active .layui-form-select dl dd:hover,
html.ui-v2-active .layui-form-select dl dd.layui-this {
    background: var(--ui-selection-bg);
    color: #fff;
}

html.ui-v2-active :where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--ui-accent) !important;
    outline-offset: 2px;
}

html.ui-v2-active .layui-badge,
html.ui-v2-active .label,
html.ui-v2-active .badge {
    padding: 2px 7px;
    border-radius: 3px !important;
    font-weight: 600;
    letter-spacing: 0;
}

html.ui-v2-active .layui-bg-green,
html.ui-v2-active .label-success {
    background: rgba(99, 213, 138, 0.13) !important;
    color: var(--ui-success) !important;
}

html.ui-v2-active .layui-bg-orange,
html.ui-v2-active .label-warning {
    background: rgba(200, 217, 106, 0.13) !important;
    color: var(--ui-warning) !important;
}

html.ui-v2-active .layui-bg-red,
html.ui-v2-active .label-danger {
    background: rgba(239, 114, 125, 0.13) !important;
    color: var(--ui-danger) !important;
}

/* Sticky filters and data tables */
html.ui-v2-active .ui-v2-sticky-filter {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 16px !important;
    padding: 12px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius);
    background: rgba(17, 18, 21, 0.82) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

html.ui-v2-active .layui-table,
html.ui-v2-active .table {
    width: 100%;
    margin: 14px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius);
    background: var(--ui-surface-solid);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    scroll-snap-align: start;
    font-variant-numeric: tabular-nums;
}

html.ui-v2-active .layui-table th,
html.ui-v2-active .table th {
    position: sticky;
    top: 0;
    z-index: 3;
    border-color: var(--ui-line) !important;
    background: #191a1d !important;
    color: #d0d1d7;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

html.ui-v2-active .layui-table td,
html.ui-v2-active .table td {
    border-color: var(--ui-line) !important;
    background: transparent;
    color: var(--ui-ink);
    transition: background var(--ui-fast) ease;
}

html.ui-v2-active .layui-table tbody tr:hover td,
html.ui-v2-active .table tbody tr:hover td {
    background: var(--ui-selection-bg) !important;
    color: var(--ui-selection-ink) !important;
}

html.ui-v2-active .layui-table tbody tr:hover td strong,
html.ui-v2-active .table tbody tr:hover td strong,
html.ui-v2-active .layui-table tbody tr.selected td strong,
html.ui-v2-active .table tbody tr.selected td strong,
html.ui-v2-active .layui-table tbody tr.active td strong,
html.ui-v2-active .table tbody tr.active td strong,
html.ui-v2-active .layui-table tbody tr.layui-table-click td strong,
html.ui-v2-active .table tbody tr.layui-table-click td strong,
html.ui-v2-active .layui-table tbody tr[aria-selected="true"] td strong,
html.ui-v2-active .table tbody tr[aria-selected="true"] td strong {
    color: inherit !important;
}

html.ui-v2-active .layui-table tbody tr:hover td small,
html.ui-v2-active .table tbody tr:hover td small,
html.ui-v2-active .layui-table tbody tr.selected td small,
html.ui-v2-active .table tbody tr.selected td small,
html.ui-v2-active .layui-table tbody tr.active td small,
html.ui-v2-active .table tbody tr.active td small,
html.ui-v2-active .layui-table tbody tr.layui-table-click td small,
html.ui-v2-active .table tbody tr.layui-table-click td small,
html.ui-v2-active .layui-table tbody tr[aria-selected="true"] td small,
html.ui-v2-active .table tbody tr[aria-selected="true"] td small {
    color: var(--ui-selection-muted) !important;
}

html.ui-v2-active .layui-table tbody tr.selected td,
html.ui-v2-active .table tbody tr.selected td,
html.ui-v2-active .layui-table tbody tr.active td,
html.ui-v2-active .table tbody tr.active td,
html.ui-v2-active .layui-table tbody tr.layui-table-click td,
html.ui-v2-active .table tbody tr.layui-table-click td,
html.ui-v2-active .layui-table tbody tr[aria-selected="true"] td,
html.ui-v2-active .table tbody tr[aria-selected="true"] td {
    background: var(--ui-selection-bg) !important;
    color: var(--ui-selection-ink) !important;
}

html.ui-v2-active .layui-table tbody tr:hover td:first-child,
html.ui-v2-active .table tbody tr:hover td:first-child,
html.ui-v2-active .layui-table tbody tr.selected td:first-child,
html.ui-v2-active .table tbody tr.selected td:first-child,
html.ui-v2-active .layui-table tbody tr.active td:first-child,
html.ui-v2-active .table tbody tr.active td:first-child,
html.ui-v2-active .layui-table tbody tr.layui-table-click td:first-child,
html.ui-v2-active .table tbody tr.layui-table-click td:first-child,
html.ui-v2-active .layui-table tbody tr[aria-selected="true"] td:first-child,
html.ui-v2-active .table tbody tr[aria-selected="true"] td:first-child {
    box-shadow: inset 3px 0 0 var(--ui-accent);
}

html.ui-v2-active .ui-v2-empty-row td {
    height: 180px;
    color: var(--ui-muted) !important;
    text-align: center !important;
}

html.ui-v2-active .ui-v2-empty-row td::before {
    display: block;
    margin-bottom: 10px;
    color: #777981;
    font: normal normal normal 28px/1 FontAwesome;
    content: "\f1ea";
}

/* Outer dashboard shell */
html.ui-v2-active .navbar-wrapper,
html.ui-v2-active .navbar-fixed-top {
    height: 64px;
}

html.ui-v2-active .navbar-fixed-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 13, 0.96) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(110%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
}

html.ui-v2-active .navbar-logo {
    height: 64px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 650;
    line-height: 64px;
}

html.ui-v2-active .noema-shell-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: normal;
}

html.ui-v2-active .noema-shell-mark {
    display: grid;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #ed85e6, #8978f8);
    box-shadow: 0 8px 22px rgba(179, 88, 220, 0.28);
    color: #fff;
    font-size: 14px;
    place-items: center;
}

html.ui-v2-active .Hui-aside {
    top: 64px;
    width: 218px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #111215 !important;
    box-shadow: 12px 0 34px rgba(0, 0, 0, 0.24);
}

html.ui-v2-active .Hui-aside .menu_dropdown dt,
html.ui-v2-active .Hui-aside .menu_dropdown li a {
    margin: 2px 8px;
    border: 0 !important;
    border-radius: 6px;
    color: #c9cad1 !important;
    transition: color var(--ui-fast) ease, background var(--ui-fast) ease, transform var(--ui-fast) var(--ui-ease);
}

html.ui-v2-active .Hui-aside .menu_dropdown li.current {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html.ui-v2-active .Hui-aside .menu_dropdown dt:hover,
html.ui-v2-active .Hui-aside .menu_dropdown dt.selected,
html.ui-v2-active .Hui-aside .menu_dropdown li a:hover,
html.ui-v2-active .Hui-aside .menu_dropdown li.current a {
    background: rgba(214, 90, 209, 0.18) !important;
    box-shadow: inset 3px 0 0 var(--ui-accent);
    color: #fff !important;
    transform: translateX(2px);
}

html.ui-v2-active .Hui-aside .menu_dropdown dd ul li.current,
html.ui-v2-active .Hui-aside .menu_dropdown dd ul li.current:hover {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html.ui-v2-active .Hui-aside .menu_dropdown dd ul li.current > a,
html.ui-v2-active .Hui-aside .menu_dropdown dd ul li.current:hover > a {
    background: rgba(214, 90, 209, 0.2) !important;
    color: #fff !important;
}

html.ui-v2-active .Hui-aside .menu_dropdown li.current a :where(i, span),
html.ui-v2-active .Hui-aside .menu_dropdown dt.selected :where(i, span) {
    color: #fff !important;
}

html.ui-v2-active .Hui-article-box {
    top: 64px;
    left: 218px;
}

html.ui-v2-active .Hui-tabNav {
    border-bottom: 1px solid var(--ui-line);
    background: rgba(17, 18, 21, 0.9);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html.ui-v2-active .acrossTab li {
    margin-right: 5px;
    padding: 0 15px;
    border: 0 !important;
    border-radius: 5px 5px 0 0;
    background: rgba(255, 255, 255, 0.055) !important;
    background-image: none !important;
    transition: color var(--ui-fast) ease, background var(--ui-fast) ease;
    color: #c7c8d0;
}

html.ui-v2-active .acrossTab li em,
html.ui-v2-active .acrossTab li::before,
html.ui-v2-active .acrossTab li::after {
    display: none !important;
    background-image: none !important;
}

html.ui-v2-active .acrossTab li.active {
    background: rgba(214, 90, 209, 0.22) !important;
    color: #fff !important;
}

html.ui-v2-active .acrossTab li span {
    color: inherit !important;
}

html.ui-v2-active .layui-tab-title {
    border-bottom-color: var(--ui-line) !important;
}

html.ui-v2-active .layui-tab-title li {
    color: #c7c8d0 !important;
}

html.ui-v2-active .layui-tab-title li a {
    color: inherit !important;
}

html.ui-v2-active .layui-tab-title li.layui-this {
    color: #fff !important;
}

html.ui-v2-active .layui-tab-title .layui-this::after {
    border-color: transparent transparent var(--ui-accent) !important;
}

html.ui-v2-active .tabBar {
    border-bottom: 1px solid var(--ui-line) !important;
}

html.ui-v2-active .tabBar span {
    margin-right: 4px;
    border-radius: 5px 5px 0 0;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #c7c8d0 !important;
}

html.ui-v2-active .tabBar span.current {
    background: rgba(214, 90, 209, 0.16) !important;
    color: #fff !important;
}

html.ui-v2-active .pagination :where(a, span) {
    border-color: var(--ui-line-strong) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #d9dae0 !important;
}

html.ui-v2-active .pagination .active :where(a, span),
html.ui-v2-active .pagination :where(a, span):hover {
    border-color: rgba(214, 90, 209, 0.5) !important;
    background: var(--ui-selection-bg) !important;
    color: #fff !important;
}

/* Layer modal, toast and command palette */
html.ui-v2-active .layui-layer {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow-md) !important;
}

html.ui-v2-active .layui-layer-title {
    border-bottom: 1px solid var(--ui-line) !important;
    background: rgba(24, 25, 29, 0.94) !important;
    backdrop-filter: blur(18px);
}

html.ui-v2-active .layui-layer-msg {
    border: 1px solid var(--ui-line) !important;
    background: rgba(24, 25, 27, 0.92) !important;
    color: #fff !important;
    backdrop-filter: blur(16px);
}

.ui-v2-command-trigger {
    display: inline-grid;
    width: 36px;
    height: 36px;
    margin: 14px 8px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: pointer;
    place-items: center;
    transition: background var(--ui-fast) ease, transform var(--ui-fast) var(--ui-ease);
}

.ui-v2-command-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.ui-v2-command-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    padding: 12vh 16px 16px;
    background: rgba(4, 5, 7, 0.7);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    place-items: start center;
}

.ui-v2-command-backdrop[hidden] {
    display: none;
}

.ui-v2-command {
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ui-radius);
    background: rgba(18, 19, 22, 0.96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.ui-v2-command-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-line);
}

.ui-v2-command-search input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
}

.ui-v2-command-list {
    max-height: min(52vh, 420px);
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    list-style: none;
    scroll-snap-type: y proximity;
}

.ui-v2-command-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--ui-ink);
    cursor: pointer;
    scroll-snap-align: nearest;
}

.ui-v2-command-item:hover,
.ui-v2-command-item[aria-selected="true"] {
    background: rgba(214, 90, 209, 0.13);
    color: var(--ui-accent-strong);
}

.ui-v2-command-empty {
    padding: 32px 16px;
    color: var(--ui-muted);
    text-align: center;
}

/* Scroll reveal is applied only after JS marks the page as motion-ready. */
html.ui-v2-motion-ready .ui-v2-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 380ms var(--ui-ease), transform 380ms var(--ui-ease);
}

html.ui-v2-active .preview-value,
html.ui-v2-active td,
html.ui-v2-active .c-primary.f-30 {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) and (min-width: 768px) {
    html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child {
        grid-column: span 12;
    }

    html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :not(:first-child) {
        grid-column: span 4;
    }
}

html.ui-v2-motion-ready .ui-v2-reveal.ui-v2-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reference-led unified workspace: dark navigation, quiet light content. */
:root.ui-v2-active {
    --ui-bg: #eef0f6;
    --ui-surface: rgba(255, 255, 255, 0.82);
    --ui-surface-solid: #ffffff;
    --ui-surface-muted: #f5f4f8;
    --ui-ink: #211f26;
    --ui-muted: #514d59;
    --ui-line: rgba(53, 46, 64, 0.11);
    --ui-line-strong: rgba(53, 46, 64, 0.2);
    --ui-accent: #b64eb1;
    --ui-accent-strong: #7f3b82;
    --ui-success: #31955d;
    --ui-warning: #805d18;
    --ui-danger: #c64f5b;
    --ui-selection-bg: #f1e6f2;
    --ui-selection-ink: #2c2330;
    --ui-selection-muted: #6f6072;
    --ui-shadow-sm: 0 14px 34px rgba(50, 42, 62, 0.1), 0 2px 8px rgba(50, 42, 62, 0.06);
    --ui-shadow-md: 0 30px 80px rgba(39, 31, 50, 0.2), 0 4px 16px rgba(39, 31, 50, 0.1);
    color-scheme: light;
}

html.ui-v2-active,
html.ui-v2-active body {
    color: var(--ui-ink);
    background: var(--ui-bg);
}

html.ui-v2-active body.ui-v2-enabled::before {
    background:
        linear-gradient(118deg, rgba(245, 222, 235, 0.72), transparent 34%),
        linear-gradient(304deg, rgba(219, 225, 248, 0.72), transparent 42%),
        linear-gradient(180deg, #f5f3f7 0%, #eef1f7 58%, #f3f4f8 100%);
}

html.ui-v2-active body.ui-v2-enabled::after {
    opacity: 0.045;
    mix-blend-mode: multiply;
}

html.ui-v2-active .page-container {
    color: var(--ui-ink);
    font-weight: 500;
}

html.ui-v2-active .page-container :where(label, p, .help-block, .text-muted, .c-999, .c-666) {
    color: var(--ui-muted) !important;
    font-weight: 500;
}

html.ui-v2-active .page-container :where(b, strong) {
    font-weight: 650;
}

html.ui-v2-active :where(.Title, h1, h2, h3, h4) {
    color: var(--ui-ink);
}

html.ui-v2-active :where(.layui-card, .bg-1, .panel, .well, .ui-v2-surface) {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html.ui-v2-active .ui-v2-card-grid .layui-card,
html.ui-v2-active .ui-v2-surface {
    transition: transform var(--ui-normal) var(--ui-ease), box-shadow var(--ui-normal) var(--ui-ease), border-color var(--ui-normal) ease;
}

html.ui-v2-active .ui-v2-card-grid .layui-card:hover,
html.ui-v2-active .ui-v2-surface:hover {
    border-color: rgba(182, 78, 177, 0.2) !important;
    box-shadow: 0 20px 45px rgba(61, 45, 73, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .layui-card {
    border-color: rgba(182, 78, 177, 0.16) !important;
    background: linear-gradient(138deg, rgba(255, 255, 255, 0.94), rgba(248, 239, 249, 0.9)) !important;
    box-shadow: var(--ui-shadow-sm), inset 4px 0 0 rgba(182, 78, 177, 0.68);
    color: var(--ui-ink);
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .layui-card::after {
    opacity: 0.34;
    background: repeating-linear-gradient(125deg, transparent 0 15px, rgba(182, 78, 177, 0.1) 15px 16px);
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child :where(.preview-value, .preview-meta strong) {
    color: var(--ui-ink) !important;
}

html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child .preview-meta {
    color: var(--ui-muted) !important;
}

html.ui-v2-active .layui-btn,
html.ui-v2-active .btn {
    border-color: var(--ui-line-strong) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 7px 18px rgba(54, 45, 65, 0.09);
    color: #302c35 !important;
}

html.ui-v2-active .layui-btn::before,
html.ui-v2-active .btn::before {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background: radial-gradient(circle at var(--ui-pointer-x, 50%) var(--ui-pointer-y, 50%), rgba(255,255,255,.5), transparent 28%);
    opacity: 0;
    content: "";
    pointer-events: none;
    transition: opacity var(--ui-fast) ease;
}

html.ui-v2-active .layui-btn:hover,
html.ui-v2-active .btn:hover {
    border-color: rgba(182, 78, 177, 0.36) !important;
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(59, 46, 70, 0.14);
}

html.ui-v2-active :where(.layui-btn, .btn):hover::before {
    opacity: 1;
}

html.ui-v2-active :where(.layui-btn-primary, .btn-primary, .btn-success, .layui-btn-normal),
html.ui-v2-active .searchline input[type="submit"].layui-btn {
    border-color: transparent !important;
    background: linear-gradient(135deg, #c65bc1, #8b67d4) !important;
    box-shadow: 0 10px 24px rgba(140, 74, 152, 0.2);
    color: #fff !important;
}

html.ui-v2-active :where(.layui-btn-primary, .btn-primary, .btn-success, .layui-btn-normal):hover,
html.ui-v2-active .searchline input[type="submit"].layui-btn:hover {
    background: linear-gradient(135deg, #b84eb3, #7957c3) !important;
}

html.ui-v2-active :where(
    .layui-input,
    .input-text,
    .form-control,
    .select-box,
    input[type="text"],
    input[type="search"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea
) {
    border-color: rgba(70, 61, 80, 0.2) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--ui-ink) !important;
    box-shadow: inset 0 1px 2px rgba(45, 37, 54, 0.04);
}

html.ui-v2-active :where(.layui-input, .input-text, .form-control, select, textarea):focus,
html.ui-v2-active :where(input[type="text"], input[type="search"], input[type="password"], input[type="number"]):focus {
    border-color: rgba(182, 78, 177, 0.7) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(182, 78, 177, 0.12);
}

html.ui-v2-active :where(.layui-input, .input-text, textarea)::placeholder {
    color: #9894a0;
}

html.ui-v2-active select option,
html.ui-v2-active .layui-form-select dl,
html.ui-v2-active .dropdown-menu,
html.ui-v2-active .dropDown-menu {
    border-color: var(--ui-line-strong) !important;
    background: #fff !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active :where(.layui-form-label, .layui-input-block, .layui-input-inline, .layui-form-mid, .layui-form-radio, .layui-form-radio *, .layui-form-checkbox, .layui-form-checkbox *, .layui-breadcrumb, .layui-breadcrumb a, .layui-breadcrumb cite) {
    color: var(--ui-ink) !important;
}

html.ui-v2-active :where(.readonly, .disabled, input[disabled], textarea[disabled]) {
    background: rgba(237, 236, 241, 0.9) !important;
    color: #76727e !important;
}

html.ui-v2-active :where(.layui-elem-quote, .Huialert, .alert) {
    border-color: rgba(182, 78, 177, 0.18) !important;
    border-left-color: var(--ui-accent) !important;
    background: rgba(255, 250, 255, 0.82) !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active .ui-v2-sticky-filter,
html.ui-v2-active .searchline {
    border-color: rgba(255, 255, 255, 0.74) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 12px 30px rgba(50, 42, 62, 0.09), inset 0 1px 0 #fff;
}

html.ui-v2-active .layui-tab-title li {
    color: #5a5462 !important;
    font-weight: 600;
}

html.ui-v2-active .layui-tab-title li a {
    color: inherit !important;
    font-weight: inherit;
}

html.ui-v2-active .layui-tab-title li.layui-this {
    background: rgba(182, 78, 177, 0.08) !important;
    color: #29232d !important;
    font-weight: 700;
}

html.ui-v2-active :where(.layui-table, .table) {
    border-color: rgba(59, 49, 70, 0.1) !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(50, 42, 62, 0.08);
}

html.ui-v2-active .layui-table th,
html.ui-v2-active .table th,
html.ui-v2-active .layui-table thead td,
html.ui-v2-active .table thead td {
    border-color: rgba(59, 49, 70, 0.1) !important;
    background: #f1eef3 !important;
    color: #302b35 !important;
    font-size: 13px;
    font-weight: 700;
}

html.ui-v2-active :where(.layui-table, .table) td {
    border-color: rgba(59, 49, 70, 0.08) !important;
    color: var(--ui-ink);
    font-weight: 500;
}

html.ui-v2-active :where(.layui-table, .table) tbody tr:hover td,
html.ui-v2-active :where(.layui-table, .table) tbody tr.selected td,
html.ui-v2-active :where(.layui-table, .table) tbody tr.active td,
html.ui-v2-active :where(.layui-table, .table) tbody tr.layui-table-click td,
html.ui-v2-active :where(.layui-table, .table) tbody tr[aria-selected="true"] td {
    background: var(--ui-selection-bg) !important;
    color: var(--ui-selection-ink) !important;
}

html.ui-v2-active .yh-desc {
    border-color: rgba(255,255,255,.72) !important;
    background: rgba(255,255,255,.74) !important;
}

html.ui-v2-active .yh-desc p,
html.ui-v2-active .yh-money-list .item p {
    color: var(--ui-muted) !important;
    font-weight: 500;
}

html.ui-v2-active .yh-money-list {
    border-color: rgba(255,255,255,.72) !important;
    background: rgba(68, 56, 78, 0.1) !important;
}

html.ui-v2-active .yh-money-list .item {
    background: rgba(255,255,255,.9) !important;
}

html.ui-v2-active .yh-money-list .item p.money {
    color: #9b4398 !important;
    font-weight: 700;
}

html.ui-v2-active .meirshouyihuiz .onemoneytj .header .title {
    color: #403a47 !important;
    font-weight: 650;
}

html.ui-v2-active .meirshouyihuiz .onemoneytj .header .money {
    color: #713b75 !important;
    font-weight: 700;
}

html.ui-v2-active .meirshouyihuiz .onemoneytj .main p {
    color: #4b4652 !important;
    font-weight: 500;
}

html.ui-v2-active .layui-layer {
    border-color: rgba(59,49,70,.14);
    background: #fff !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active .layui-layer-title {
    border-color: var(--ui-line) !important;
    background: #f8f6f9 !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active .layui-layer-content {
    color: var(--ui-ink) !important;
}

/* Unified states for legacy components inside the light workspace. */
html.ui-v2-active :where(.layui-form-label, .form-label, .control-label),
html.ui-v2-active .page-container :where(.layui-form-label, .form-label, .control-label),
html.ui-v2-active .custom-body :where(.layui-form-label, .form-label, .control-label) {
    color: #3f3946 !important;
    font-weight: 600;
    opacity: 1 !important;
}

html.ui-v2-active :where(.layui-word-aux, .help-block, .text-muted) {
    color: #625d69 !important;
    font-weight: 500;
}

html.ui-v2-active :where(.layui-form-radio, .layui-form-checkbox) {
    border-radius: var(--ui-radius-sm);
    color: var(--ui-ink) !important;
    font-weight: 500;
    transition: background var(--ui-fast) ease, color var(--ui-fast) ease;
}

html.ui-v2-active :where(.layui-form-radio, .layui-form-checkbox):hover {
    background: rgba(182, 78, 177, 0.07);
}

html.ui-v2-active .layui-form-radio:hover *,
html.ui-v2-active .layui-form-checkbox:hover *,
html.ui-v2-active .layui-form-radioed *,
html.ui-v2-active .layui-form-checked * {
    color: var(--ui-ink) !important;
}

html.ui-v2-active .layui-form-radio > i,
html.ui-v2-active .layui-form-checkbox > i,
html.ui-v2-active .layui-form-checkbox[lay-skin="primary"] > i {
    color: #68626f !important;
}

html.ui-v2-active .layui-form-radioed > i,
html.ui-v2-active .layui-form-checked > i {
    border-color: var(--ui-accent) !important;
    background: transparent;
    color: var(--ui-accent) !important;
}

html.ui-v2-active .layui-form-checkbox[lay-skin="primary"].layui-form-checked > i {
    border-color: var(--ui-accent) !important;
    background: var(--ui-accent) !important;
    color: #fff !important;
}

html.ui-v2-active .layui-form-switch {
    border-color: rgba(70, 61, 80, 0.26) !important;
    background: #e8e5eb !important;
    color: #514c58 !important;
}

html.ui-v2-active .layui-form-onswitch {
    border-color: var(--ui-accent) !important;
    background: var(--ui-accent) !important;
}

html.ui-v2-active .layui-form-onswitch :where(em, i) {
    color: #fff !important;
}

html.ui-v2-active :where(.layui-form-select dl dd, .dropdown-menu a, .dropDown-menu a) {
    color: var(--ui-ink) !important;
    font-weight: 500;
}

html.ui-v2-active .layui-form-select dl dd:hover,
html.ui-v2-active .layui-form-select dl dd.layui-this,
html.ui-v2-active :where(.dropdown-menu, .dropDown-menu) a:hover,
html.ui-v2-active :where(.dropdown-menu, .dropDown-menu) .active > a {
    background: var(--ui-selection-bg) !important;
    color: var(--ui-selection-ink) !important;
}

html.ui-v2-active .tabBar span {
    background: rgba(255, 255, 255, 0.74) !important;
    color: #5a5462 !important;
    font-weight: 600;
}

html.ui-v2-active .tabBar span.current {
    background: rgba(182, 78, 177, 0.1) !important;
    color: #29232d !important;
    font-weight: 700;
}

html.ui-v2-active .pagination :where(a, span) {
    border-color: rgba(70, 61, 80, 0.18) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #4f4957 !important;
    font-weight: 600;
}

html.ui-v2-active .pagination .active :where(a, span),
html.ui-v2-active .pagination :where(a, span):hover {
    border-color: rgba(182, 78, 177, 0.36) !important;
    background: var(--ui-selection-bg) !important;
    color: var(--ui-selection-ink) !important;
}

html.ui-v2-active :where(.nav-tabs, .layui-tab-title) > li > a {
    color: #5a5462 !important;
    font-weight: 600;
}

html.ui-v2-active .nav-tabs > li.active > a,
html.ui-v2-active .nav-tabs > li > a:hover {
    border-color: rgba(182, 78, 177, 0.2) !important;
    background: rgba(182, 78, 177, 0.08) !important;
    color: #29232d !important;
}

html.ui-v2-active :where(.input-group-addon, .layui-card-header, .panel-header, .modal-header, .modal-footer) {
    border-color: var(--ui-line) !important;
    background: #f4f1f5 !important;
    color: #38323e !important;
    font-weight: 600;
}

html.ui-v2-active :where(.modal-content, .modal-body) {
    border-color: var(--ui-line) !important;
    background: #fff !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active :where(.modal-title, .panel-title, legend) {
    color: #302b35 !important;
    font-weight: 700;
}

/* Shared legacy guards keep old pages readable without touching business templates. */
html.ui-v2-active :where(.page-container, .custom-body) :where(.layui-input-inline, .layui-inline) {
    vertical-align: top !important;
}

html.ui-v2-active .page-container .layui-layout-admin > .layui-body,
html.ui-v2-active .custom-body .layui-layout-admin > .layui-body {
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
}

html.ui-v2-active :where(.layui-table, .table) tbody tr:hover td a:not(.layui-btn):not(.btn),
html.ui-v2-active :where(.layui-table, .table) tbody tr.selected td a:not(.layui-btn):not(.btn),
html.ui-v2-active :where(.layui-table, .table) tbody tr.active td a:not(.layui-btn):not(.btn),
html.ui-v2-active :where(.layui-table, .table) tbody tr.layui-table-click td a:not(.layui-btn):not(.btn),
html.ui-v2-active :where(.layui-table, .table) tbody tr[aria-selected="true"] td a:not(.layui-btn):not(.btn) {
    color: #713b75 !important;
}

html.ui-v2-active :where(
    [style*="color:#999" i],
    [style*="color: #999" i],
    [style*="color:rgb(153, 153, 153)" i],
    [style*="color: rgb(153, 153, 153)" i]
) {
    color: #5f5966 !important;
}

html.ui-v2-active :where(
    [style*="color:#FF5722" i],
    [style*="color: #FF5722" i],
    [style*="color:rgb(255, 87, 34)" i],
    [style*="color: rgb(255, 87, 34)" i]
) {
    color: #963a1b !important;
}

html.ui-v2-active :where(
    [style*="color:red" i],
    [style*="color: red" i],
    [style*="color:#f00" i],
    [style*="color: #f00" i],
    [style*="color:#ff0000" i],
    [style*="color: #ff0000" i],
    [style*="color:rgb(255, 0, 0)" i],
    [style*="color: rgb(255, 0, 0)" i]
) {
    color: #a52b39 !important;
}

html.ui-v2-active .layui-form-switch:not(.layui-form-onswitch) em {
    color: #5f5966 !important;
}

html.ui-v2-active .layui-form-switch.layui-form-onswitch em {
    color: #fff !important;
}

html.ui-v2-active :where(button, .btn, .layui-btn)[style*="background-color: #009688" i],
html.ui-v2-active :where(button, .btn, .layui-btn)[style*="background-color:#009688" i] {
    border-color: #7f3b82 !important;
    background: #7f3b82 !important;
    color: #fff !important;
}

/* Payment switch pages use legacy inline columns; normalize them into a readable workspace. */
html.ui-v2-active .payment-switch-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
    align-items: start;
    gap: 16px 18px;
    padding: 0 !important;
}

html.ui-v2-active .payment-switch-workspace > .Title,
html.ui-v2-active .payment-switch-workspace > .payment-switch-notice {
    grid-column: 1 / -1;
}

html.ui-v2-active .payment-switch-workspace > .payment-switch-controls,
html.ui-v2-active .payment-switch-workspace > .payment-switch-thresholds {
    width: 100% !important;
    margin: 0 !important;
    vertical-align: top !important;
}

html.ui-v2-active .payment-switch-thresholds-inner {
    float: none !important;
}

html.ui-v2-active .payment-switch-workspace .layui-card {
    min-height: 0;
    margin: 0 0 12px;
    padding: 18px 20px;
}

html.ui-v2-active .payment-switch-workspace .payment-switch-notice .layui-card {
    padding: 0;
}

html.ui-v2-active .payment-switch-workspace .layui-form-item {
    display: flex;
    min-height: 44px;
    margin: 0;
    align-items: flex-start;
    gap: 14px;
}

html.ui-v2-active .payment-switch-workspace .layui-form-item > form {
    display: flex;
    min-width: 0;
    margin: 0;
    flex: 1;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

html.ui-v2-active .payment-switch-workspace .layui-form-label {
    width: 128px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #3f3946 !important;
    font-weight: 650;
    line-height: 20px;
    opacity: 1 !important;
    text-align: left;
}

html.ui-v2-active .payment-switch-workspace .layui-input-inline {
    margin: 0 !important;
    vertical-align: top !important;
}

html.ui-v2-active .payment-switch-workspace .layui-form-item[style*="width: 600px"] {
    width: auto !important;
}

html.ui-v2-active .payment-switch-page .contentbox {
    margin-top: 18px;
}

html.ui-v2-active :where(.layui-btn-danger, .btn-danger) {
    background: var(--ui-danger) !important;
    color: #fff !important;
}

html.ui-v2-active :where(.layui-btn-warm, .btn-warning) {
    border-color: rgba(154, 114, 31, 0.25) !important;
    background: rgba(200, 217, 106, 0.2) !important;
    color: #624912 !important;
}

html.ui-v2-active :where(.btn-secondary, .btn-default, .layui-layer-btn a) {
    border-color: rgba(70, 61, 80, 0.18) !important;
    background: #fff !important;
    color: #3f3946 !important;
    font-weight: 600;
}

html.ui-v2-active :where(.layui-layer-btn .layui-layer-btn0, .modal-footer .btn-primary) {
    border-color: transparent !important;
    background: linear-gradient(135deg, #c65bc1, #8b67d4) !important;
    color: #fff !important;
}

html.ui-v2-active .layui-progress {
    background: #e7e3e9 !important;
}

html.ui-v2-active .layui-progress-bar {
    background: var(--ui-accent) !important;
}

html.ui-v2-active .layui-progress-text {
    color: #302b35 !important;
    font-weight: 600;
}

html.ui-v2-active :where(.layui-elem-field, .layui-upload-list, .layui-table-view) {
    border-color: var(--ui-line-strong) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--ui-ink) !important;
}

html.ui-v2-active :where(.layui-bg-black, .layui-bg-blue, .layui-bg-cyan) {
    color: #fff !important;
}

html.ui-v2-active .Hui-aside .menu_dropdown dd[style*="display: block"],
html.ui-v2-active .Hui-aside .menu_dropdown dd:not([style]) {
    transform-origin: top;
    animation: ui-v2-menu-open 220ms var(--ui-ease) both;
}

@keyframes ui-v2-menu-open {
    from { opacity: 0; transform: translateY(-4px) scaleY(.98); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@media (max-width: 980px) {
    html.ui-v2-active .payment-switch-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    html.ui-v2-active .payment-switch-workspace > .Title,
    html.ui-v2-active .payment-switch-workspace > .payment-switch-notice {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    html.ui-v2-active .page-container {
        width: 100%;
        padding: 14px !important;
    }

    html.ui-v2-active .ui-v2-card-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :first-child,
    html.ui-v2-active .ui-v2-card-grid.ui-v2-bento > :not(:first-child) {
        grid-column: span 12;
    }

    html.ui-v2-active .ui-v2-sticky-filter {
        top: 0;
        overflow-x: auto;
        white-space: normal;
    }

    html.ui-v2-active .layui-table,
    html.ui-v2-active .table {
        min-width: 720px;
    }

    html.ui-v2-active .Hui-aside {
        top: 64px;
        width: min(86vw, 280px);
    }

    html.ui-v2-active .Hui-article-box {
        left: 0;
    }

    html.ui-v2-active .yh-money-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.ui-v2-active .custom-body .searchline .layui-inline,
    html.ui-v2-active .custom-body .searchline .layui-input-inline {
        width: 100%;
        margin: 0 0 8px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    html.ui-v2-active .layui-card,
    html.ui-v2-active .bg-1,
    html.ui-v2-active .panel,
    html.ui-v2-active .well,
    html.ui-v2-active .ui-v2-surface,
    html.ui-v2-active .ui-v2-sticky-filter,
    html.ui-v2-active .navbar-fixed-top,
    html.ui-v2-active .Hui-tabNav,
    .ui-v2-command,
    .ui-v2-command-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html.ui-v2-active .layui-card,
    html.ui-v2-active .bg-1,
    html.ui-v2-active .panel,
    html.ui-v2-active .ui-v2-surface,
    html.ui-v2-active .ui-v2-sticky-filter,
    html.ui-v2-active .Hui-tabNav,
    .ui-v2-command {
        background: var(--ui-surface-solid) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.ui-v2-active *,
    html.ui-v2-active *::before,
    html.ui-v2-active *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    html.ui-v2-motion-ready .ui-v2-reveal {
        opacity: 1;
        transform: none;
    }
}
