html, body, #app { width: 100%; height: 100%; margin: 0; }
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
    body { background: #0f1115; color: #e5e7eb; font-family: Arial, "Microsoft YaHei", sans-serif; }
    body[data-theme="dark"] { background: #0f1115; color: #e5e7eb; }
    body[data-theme="light"] { background: #f3f4f6; color: #111827; }
    .el-popper[role="tooltip"],
    .el-tooltip__popper,
    .el-popover.el-popper {
      max-width: min(720px, calc(100vw - 32px)) !important;
      max-height: min(72vh, 560px);
      box-sizing: border-box;
      overflow: auto;
      scrollbar-width: thin;
      scrollbar-color: #475569 transparent;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal !important;
      line-height: 1.45;
    }
    .el-popper[role="tooltip"]::-webkit-scrollbar,
    .el-tooltip__popper::-webkit-scrollbar,
    .el-popover.el-popper::-webkit-scrollbar { width: 8px; height: 8px; }
    .el-popper[role="tooltip"]::-webkit-scrollbar-track,
    .el-tooltip__popper::-webkit-scrollbar-track,
    .el-popover.el-popper::-webkit-scrollbar-track { background: transparent; }
    .el-popper[role="tooltip"]::-webkit-scrollbar-thumb,
    .el-tooltip__popper::-webkit-scrollbar-thumb,
    .el-popover.el-popper::-webkit-scrollbar-thumb { border-radius: 999px; background: #475569; border: 2px solid #11161c; }
    .el-popper[role="tooltip"]::-webkit-scrollbar-thumb:hover,
    .el-tooltip__popper::-webkit-scrollbar-thumb:hover,
    .el-popover.el-popper::-webkit-scrollbar-thumb:hover { background: #64748b; }
    .el-popper[role="tooltip"]::-webkit-scrollbar-corner,
    .el-tooltip__popper::-webkit-scrollbar-corner,
    .el-popover.el-popper::-webkit-scrollbar-corner { background: transparent; }
    .login-page { min-height: 100%; display: grid; place-items: center; background: #111827; }
    .login-card { width: 390px; }
    .login-card h1 { margin: 0 0 10px; font-size: 22px; }
    .login-tip { margin: 0 0 18px; color: #8d99a8; font-size: 13px; line-height: 1.55; }
    .captcha-row { width: 100%; display: grid; grid-template-columns: 1fr 126px; gap: 8px; }
    .captcha-box { height: 32px; border: 1px solid #2d3642; border-radius: 6px; background: #172233; color: #dbeafe; cursor: pointer; font-family: Consolas, "Microsoft YaHei", sans-serif; font-size: 14px; }
    .captcha-box:hover { border-color: #3b82f6; background: #1b2b45; }
    .captcha-box:disabled { cursor: wait; opacity: .72; }
    body[data-theme="light"] .login-page { background: #eef2f7; }
    body[data-theme="light"] .login-tip { color: #64748b; }
    body[data-theme="light"] .captcha-box { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    body[data-theme="light"] .captcha-box:hover { background: #dbeafe; border-color: #60a5fa; }
    body[data-theme="light"] .el-popper[role="tooltip"],
    body[data-theme="light"] .el-tooltip__popper,
    body[data-theme="light"] .el-popover.el-popper { scrollbar-color: #cbd5e1 transparent; }
    body[data-theme="light"] .el-popper[role="tooltip"]::-webkit-scrollbar-thumb,
    body[data-theme="light"] .el-tooltip__popper::-webkit-scrollbar-thumb,
    body[data-theme="light"] .el-popover.el-popper::-webkit-scrollbar-thumb { background: #cbd5e1; border-color: #ffffff; }
    body[data-theme="light"] .el-popper[role="tooltip"]::-webkit-scrollbar-thumb:hover,
    body[data-theme="light"] .el-tooltip__popper::-webkit-scrollbar-thumb:hover,
    body[data-theme="light"] .el-popover.el-popper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .full-button { width: 100%; }
    .app-shell { width: 100%; height: 100vh; min-height: 100vh; display: flex; overflow: hidden; background: #0f1115; }
    body[data-theme="light"] .app-shell { background: #f3f4f6; }
    .side-nav { width: 72px; height: 100vh; flex: 0 0 72px; position: sticky; top: 0; z-index: 12; overflow: visible; box-sizing: border-box; background: #0b0d10; border-right: 1px solid #252a32; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; transition: width .16s ease, flex-basis .16s ease, background .16s ease, border-color .16s ease; }
    body[data-theme="light"] .side-nav { background: #ffffff; border-right-color: #dbe1ea; }
    .brand { height: 44px; color: #60a5fa; font-weight: 700; }
    .nav-item { width: 56px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #cbd5e1; background: transparent; font-size: 14px; cursor: pointer; }
    body[data-theme="light"] .nav-item { color: #334155; }
    .nav-item.active { color: #fff; background: #1d4ed8; }
    body[data-theme="light"] .nav-item.active { color: #1d4ed8; background: #e8f1ff; font-weight: 700; }
    body[data-theme="dark"] .nav-item.active { color: #ffffff; background: #0f3f8a; }
    .side-collapse-btn { position: absolute; top: 14px; right: -11px; z-index: 20; width: 22px; height: 34px; display: grid; place-items: center; border: 1px solid #2f3a49; border-left-color: #252a32; border-radius: 0 10px 10px 0; background: #101822; color: #93c5fd; cursor: pointer; box-shadow: 5px 0 14px rgba(0, 0, 0, .22); transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, top .16s ease, right .16s ease, width .16s ease, height .16s ease, box-shadow .16s ease; }
    .side-collapse-btn:hover { border-color: rgba(96, 165, 250, .62); background: #13243a; color: #dbeafe; }
    .side-collapse-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
    .side-nav.collapsed { width: 0; flex-basis: 0; padding: 0; gap: 0; border-right: 0; background: transparent; }
    .side-nav.collapsed .brand,
    .side-nav.collapsed .nav-item { display: none; }
    .side-nav.collapsed::after { content: none; }
    .side-nav.collapsed .side-collapse-btn { top: 14px; right: -22px; width: 22px; height: 34px; border-left-color: transparent; border-radius: 0 10px 10px 0; transform: none; background: rgba(15, 27, 42, .9); box-shadow: 5px 0 14px rgba(0, 0, 0, .2); }
    .side-nav.collapsed .side-collapse-btn svg { width: 16px; height: 16px; transform: rotate(180deg); }
    body[data-theme="light"] .side-collapse-btn { border-color: #d6e0ec; border-left-color: #dbe1ea; background: #ffffff; color: #2563eb; box-shadow: 5px 0 14px rgba(15, 23, 42, .12); }
    body[data-theme="light"] .side-collapse-btn:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .side-nav.collapsed { border-right: 0; background: transparent; }
    body[data-theme="light"] .side-nav.collapsed::after { content: none; }
    body[data-theme="light"] .side-nav.collapsed .side-collapse-btn { background: #ffffff; }
    .main { flex: 1; min-width: 0; height: 100vh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
    .topbar { height: 56px; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 10px; padding: 0 14px 0 20px; background: #111418; border-bottom: 1px solid #252a32; flex: 0 0 56px; }
    body[data-theme="light"] .topbar { background: #ffffff; border-bottom-color: #dbe1ea; }
    .topbar h1 { font-size: 18px; margin: 0; white-space: nowrap; }
    .topbar-balance-area { min-width: 0; height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 6px; align-items: center; }
    .topbar-balance-area.is-readonly { grid-template-columns: minmax(0, 1fr); }
    .topbar-balance-strip { min-width: 0; height: 52px; display: flex; align-items: center; gap: 3px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 1px; cursor: grab; overscroll-behavior-x: contain; user-select: none; touch-action: pan-y; }
    .topbar-balance-strip.is-dragging { cursor: grabbing; }
    .topbar-balance-strip::-webkit-scrollbar { display: none; }
    .topbar-balance-actions { width: 74px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 2px; align-self: center; }
    .topbar-balance-action.el-button { width: 74px; height: 16px; min-height: 0; margin-left: 0 !important; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 950; line-height: 14px; }
    .topbar-balance-card { --account-color: #2563eb; position: relative; box-sizing: border-box; flex: 0 0 74px; width: 74px; height: 52px; display: grid; grid-template-rows: 14px 13px 13px; gap: 2px; align-content: center; padding: 3px 4px; border: 1px solid color-mix(in srgb, var(--account-color) 72%, #2a3038); border-radius: 7px; background: color-mix(in srgb, var(--account-color) 10%, #111820); color: #e5e7eb; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
    .topbar-balance-card:hover:not(:disabled) { border-color: var(--account-color); background: color-mix(in srgb, var(--account-color) 18%, #111820); }
    .topbar-balance-card.active,
    .topbar-balance-card.active:hover,
    .topbar-balance-card.active:hover:not(:disabled),
    .topbar-balance-card.active:focus-visible { border-color: #facc15; background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 56%, #123b8a 100%); box-shadow: inset 0 0 0 2px #facc15, inset 0 -4px 0 #facc15, inset 0 1px 0 rgba(255,255,255,.26); }
    .topbar-balance-card.active::after { content: ""; position: absolute; left: 3px; top: 4px; bottom: 7px; width: 3px; border-radius: 3px; background: #facc15; pointer-events: none; }
    .topbar-balance-card.active .topbar-balance-name,
    .topbar-balance-card.active strong,
    .topbar-balance-card.active .topbar-balance-code { color: #ffffff; text-shadow: 0 1px 1px rgba(15,23,42,.45); }
    .topbar-balance-card.active.needs-reconcile { animation: none; }
    .topbar-balance-card.needs-reconcile { animation: reconcile-card-pulse 1.5s ease-in-out infinite; }
    .topbar-balance-card.disabled { cursor: default; opacity: .82; }
    .topbar-balance-strip.is-dragging .topbar-balance-card { cursor: grabbing; }
    .topbar-balance-main { min-width: 0; display: flex; align-items: center; gap: 4px; }
    .topbar-balance-card .payment-account-type-icon { width: 14px; height: 14px; flex: 0 0 14px; font-size: 8px; overflow: hidden; }
    .topbar-balance-card .payment-account-type-icon-text { display: inline-block; line-height: 1; transform-origin: center; }
    .topbar-balance-card .payment-account-type-icon.is-wechat .payment-account-type-icon-text { transform: scale(.78); }
    .topbar-balance-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd5e1; font-size: 10px; font-weight: 800; line-height: 1; }
    .topbar-balance-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #f8fafc; font-size: 11px; line-height: 13px; white-space: nowrap; letter-spacing: 0; }
    .topbar-balance-code { display: block; min-width: 0; width: 125%; height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d99a8; font-size: 12px; line-height: 16px; letter-spacing: 0; transform: scale(.8); transform-origin: left top; }
    .topbar-reconcile-mark { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #111827; background: #fbbf24; font-size: 9px; font-weight: 1000; box-shadow: 0 0 0 1px rgba(15, 23, 42, .24); }
    .topbar-reconcile-mark.is-ok { background: #34d399; }
    .topbar-reconcile-mark.is-changed { background: #60a5fa; }
    .topbar-reconcile-mark.is-missing,
    .topbar-reconcile-mark.is-review { background: #f87171; color: #fff; }
    .topbar-reconcile-action.needs-reminder { animation: reconcile-button-pulse 1.15s ease-in-out infinite; }
    .topbar-reconcile-floating { position: fixed; top: 72px; right: 18px; z-index: 120; width: 292px; min-height: 74px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 68px; align-items: center; gap: 10px; padding: 10px 30px 10px 11px; border: 2px solid #fef08a; border-radius: 10px; background: linear-gradient(135deg, #991b1b 0%, #dc2626 48%, #f97316 100%); color: #ffffff; cursor: pointer; box-shadow: 0 10px 30px rgba(127, 29, 29, .42), 0 0 0 4px rgba(251, 191, 36, .2); animation: reconcile-floating-alert 1.05s ease-in-out infinite; }
    .topbar-reconcile-floating:hover { filter: brightness(1.08); transform: translateY(-1px); }
    .topbar-reconcile-floating-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(255,255,255,.16); color: #ffffff; font-size: 16px; font-weight: 1000; line-height: 18px; cursor: pointer; }
    .topbar-reconcile-floating-close:hover { background: #ffffff; color: #b91c1c; }
    .topbar-reconcile-floating-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fef3c7; color: #991b1b; font-size: 24px; font-weight: 1000; box-shadow: inset 0 -2px 0 rgba(127, 29, 29, .16); }
    .topbar-reconcile-floating-copy { min-width: 0; display: grid; gap: 3px; text-align: left; }
    .topbar-reconcile-floating-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; font-size: 17px; line-height: 1.1; font-weight: 1000; letter-spacing: 0; }
    .topbar-reconcile-floating-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffedd5; font-size: 12px; font-weight: 850; }
    .topbar-reconcile-floating-action { min-width: 0; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #ffffff; color: #b91c1c; font-size: 12px; font-weight: 1000; box-shadow: 0 3px 10px rgba(15, 23, 42, .18); }
    .reconcile-hourly-notification.el-notification { border: 2px solid #f59e0b; border-radius: 10px; background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 54%, #ea580c 100%); box-shadow: 0 12px 32px rgba(127, 29, 29, .36), 0 0 0 4px rgba(251, 191, 36, .18); cursor: pointer; }
    .reconcile-hourly-notification .el-notification__title { color: #ffffff; font-size: 17px; font-weight: 1000; letter-spacing: 0; }
    .reconcile-hourly-notification .el-notification__content { color: #ffedd5; font-size: 13px; font-weight: 850; }
    .reconcile-hourly-notification .el-notification__icon { color: #fef3c7; }
    .reconcile-hourly-notification .el-notification__closeBtn { color: #ffffff; }
    .topbar-balance-drawer { flex: 0 0 238px; min-height: 238px; display: grid; grid-template-columns: 275px minmax(0, 1fr) 28px; gap: 10px; align-items: stretch; padding: 10px 12px; border-bottom: 1px solid #252a32; background: #0f151d; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
    .topbar-balance-drawer.has-reconcile-alert { flex-basis: 316px; min-height: 316px; }
    .topbar-balance-drawer-summary { min-width: 0; display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .topbar-balance-drawer-info { min-width: 0; display: grid; gap: 7px; flex: 1 1 auto; }
    .topbar-balance-drawer-summary strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc; font-size: 15px; }
    .topbar-balance-drawer-summary small { color: #9aa6b5; line-height: 1.45; }
    .topbar-balance-drawer-controls { display: grid; gap: 7px; padding-top: 2px; }
    .topbar-balance-limit-tag { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0 8px; border: 1px solid rgba(96, 165, 250, .36); border-radius: 999px; background: rgba(37, 99, 235, .14); color: #bfdbfe; font-size: 12px; font-weight: 900; }
    .topbar-balance-limit-tag em { color: #f87171; font-style: normal; font-size: 14px; font-weight: 1000; }
    .topbar-balance-limit-tag.is-unlimited { border-color: rgba(20, 184, 166, .32); background: rgba(20, 184, 166, .11); color: #99f6e4; }
    .topbar-balance-date-filter { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 5px; color: #94a3b8; font-size: 12px; font-weight: 850; }
    .topbar-balance-date-stepper { min-width: 0; display: grid; grid-template-columns: 26px minmax(118px, 1fr) 26px; align-items: center; gap: 4px; }
    .topbar-balance-day-btn { height: 26px; border: 1px solid #334155; border-radius: 6px; background: #0f1722; color: #cbd5e1; font-size: 18px; font-weight: 950; line-height: 20px; cursor: pointer; }
    .topbar-balance-day-btn:hover { border-color: #60a5fa; color: #ffffff; }
    .topbar-balance-day-btn.disabled { opacity: .48; border-color: #263241; color: #64748b; cursor: pointer; }
    .topbar-balance-date-filter .el-date-editor.el-input { width: 100%; min-width: 118px; }
    .topbar-balance-date-filter .el-input__wrapper { padding: 0 8px; background: #0f1722; box-shadow: 0 0 0 1px #334155 inset; }
    .topbar-balance-date-filter .el-input__inner { min-width: 0; font-size: 12px; }
    .topbar-balance-direction-filter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .topbar-balance-direction-filter button { height: 26px; border: 1px solid #334155; border-radius: 6px; background: #0f1722; color: #cbd5e1; font-size: 12px; font-weight: 900; cursor: pointer; }
    .topbar-balance-direction-filter button.active { border-color: #3b82f6; background: rgba(37, 99, 235, .22); color: #bfdbfe; box-shadow: inset 0 -2px 0 #3b82f6; }
    .topbar-balance-count { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(20, 184, 166, .35); border-radius: 999px; background: rgba(20, 184, 166, .11); color: #67e8f9; font-size: 12px; font-weight: 950; }
    .topbar-reconcile-mini { min-height: 90px; display: grid; align-content: center; gap: 5px; padding: 9px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 8px; background: rgba(15, 23, 34, .78); }
    .topbar-reconcile-mini span { color: #cbd5e1; font-weight: 900; }
    .topbar-reconcile-mini strong { color: #f8fafc; font-size: 18px; }
    .topbar-reconcile-mini small { color: #94a3b8; }
    .topbar-reconcile-mini.is-due,
    .topbar-reconcile-mini.is-missing,
    .topbar-reconcile-mini.is-review { border-color: rgba(251, 191, 36, .42); background: rgba(120, 53, 15, .24); }
    .topbar-balance-drawer-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: 30px minmax(0, 1fr); gap: 8px; }
    .topbar-balance-drawer-main.has-reconcile-alert { grid-template-rows: 44px 30px minmax(0, 1fr); }
    .topbar-reconcile-alert { min-width: 0; height: 44px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 86px; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid rgba(251, 146, 60, .72); border-radius: 8px; background: linear-gradient(90deg, rgba(127, 29, 29, .96), rgba(194, 65, 12, .92)); color: #fff7ed; box-shadow: 0 0 0 2px rgba(248, 113, 113, .2), 0 8px 20px rgba(127, 29, 29, .28); animation: reconcile-alert-pulse 1.15s ease-in-out infinite; }
    .topbar-reconcile-alert.is-urgent { border-color: #fbbf24; box-shadow: 0 0 0 2px rgba(251, 191, 36, .28), 0 9px 24px rgba(220, 38, 38, .34); }
    .topbar-reconcile-alert-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fef3c7; color: #991b1b; font-size: 18px; font-weight: 1000; }
    .topbar-reconcile-alert-copy { min-width: 0; display: grid; gap: 1px; }
    .topbar-reconcile-alert-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; font-size: 15px; font-weight: 1000; letter-spacing: 0; }
    .topbar-reconcile-alert-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffedd5; font-size: 12px; font-weight: 800; }
    .topbar-reconcile-alert button { height: 28px; border: 1px solid rgba(255,255,255,.56); border-radius: 7px; background: #ffffff; color: #b91c1c; font-size: 12px; font-weight: 1000; cursor: pointer; box-shadow: 0 3px 10px rgba(15,23,42,.18); }
    .topbar-reconcile-alert button:hover { background: #fef3c7; color: #991b1b; }
    .topbar-balance-tabs { display: inline-grid; grid-template-columns: 86px 100px 86px; gap: 6px; align-content: center; }
    .topbar-balance-tabs button { height: 30px; border: 1px solid #334155; border-radius: 6px; background: #111820; color: #cbd5e1; font-size: 12px; font-weight: 950; white-space: nowrap; cursor: pointer; }
    .topbar-balance-tabs button.active { border-color: #3b82f6; background: rgba(37, 99, 235, .24); color: #bfdbfe; box-shadow: inset 0 -2px 0 #3b82f6; }
    .topbar-balance-tabs button.topbar-reconcile-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
    .topbar-balance-tabs button.topbar-reconcile-tab.needs-attention { border-color: #fb923c; background: linear-gradient(180deg, #dc2626 0%, #ea580c 100%); color: #ffffff; box-shadow: 0 0 0 2px rgba(248, 113, 113, .24), inset 0 -2px 0 rgba(255,255,255,.34); }
    .topbar-balance-tabs button.topbar-reconcile-tab.needs-attention.active { border-color: #fbbf24; background: linear-gradient(180deg, #ef4444 0%, #f97316 100%); color: #ffffff; box-shadow: 0 0 0 2px rgba(251, 191, 36, .3), inset 0 -2px 0 rgba(255,255,255,.46); }
    .topbar-balance-tabs button.topbar-reconcile-tab span,
    .topbar-balance-tabs button.topbar-reconcile-tab em { flex: 0 0 auto; white-space: nowrap; }
    .topbar-balance-tabs button.topbar-reconcile-tab em { min-width: 34px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: #fff7ed; color: #b91c1c; font-size: 11px; font-style: normal; font-weight: 1000; }
    .topbar-balance-tabs button.needs-reminder { animation: reconcile-button-pulse 1.2s ease-in-out infinite; }
    .topbar-balance-drawer-table { min-width: 0; min-height: 0; display: flex; }
    .topbar-balance-drawer-table .el-table { flex: 1 1 auto; min-height: 0; }
    .topbar-reconciliation-panel { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(260px, 360px); gap: 10px; align-items: stretch; }
    .topbar-reconciliation-live { grid-column: 1 / -1; min-width: 0; min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(96, 165, 250, .4); border-radius: 8px; background: rgba(37, 99, 235, .12); }
    .topbar-reconciliation-live.is-stale { border-color: rgba(248, 113, 113, .72); background: linear-gradient(90deg, rgba(239, 68, 68, .22), rgba(249, 115, 22, .18)); box-shadow: inset 3px 0 0 #ef4444; }
    .topbar-reconciliation-live div { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .topbar-reconciliation-live span { color: #93c5fd; font-size: 12px; font-weight: 900; }
    .topbar-reconciliation-live strong { color: #f8fafc; font-size: 14px; font-weight: 1000; }
    .topbar-reconciliation-live small { min-width: 0; color: #cbd5e1; font-size: 12px; font-weight: 800; }
    .topbar-reconciliation-live.is-stale span,
    .topbar-reconciliation-live.is-stale strong,
    .topbar-reconciliation-live.is-stale small { color: #ffffff; }
    .topbar-reconciliation-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .topbar-reconciliation-grid > div { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .topbar-reconciliation-grid > div.is-primary { border-color: rgba(59, 130, 246, .58); background: rgba(37, 99, 235, .15); }
    .topbar-reconciliation-grid span,
    .topbar-reconciliation-form label > span { color: #94a3b8; font-size: 12px; font-weight: 850; }
    .topbar-reconciliation-grid strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc; font-size: 17px; letter-spacing: 0; }
    .topbar-reconciliation-form { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .topbar-reconciliation-form label { display: grid; gap: 5px; }
    .topbar-reconciliation-form .el-input-number { width: 100%; }
    .topbar-reconciliation-diff { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #334155; border-radius: 7px; background: #0f1722; color: #e5e7eb; font-size: 13px; font-weight: 950; }
    .topbar-reconciliation-diff.is-zero { color: #34d399; border-color: rgba(52, 211, 153, .38); background: rgba(6, 78, 59, .2); }
    .topbar-balance-close { width: 26px; height: 26px; border: 1px solid #334155; border-radius: 6px; background: #111820; color: #cbd5e1; font-size: 18px; line-height: 20px; cursor: pointer; }
    .topbar-balance-close:hover { border-color: #60a5fa; color: #ffffff; }
    body[data-theme="light"] .topbar-balance-card { color: #0f172a; background: color-mix(in srgb, var(--account-color) 8%, #ffffff); border-color: color-mix(in srgb, var(--account-color) 56%, #dbe1ea); }
    body[data-theme="light"] .topbar-balance-card:hover:not(:disabled) { background: color-mix(in srgb, var(--account-color) 14%, #ffffff); }
    body[data-theme="light"] .topbar-balance-card.active,
    body[data-theme="light"] .topbar-balance-card.active:hover,
    body[data-theme="light"] .topbar-balance-card.active:hover:not(:disabled),
    body[data-theme="light"] .topbar-balance-card.active:focus-visible { border-color: #f59e0b; background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 56%, #123b8a 100%); box-shadow: inset 0 0 0 2px #fbbf24, inset 0 -4px 0 #fbbf24, inset 0 1px 0 rgba(255,255,255,.32); }
    body[data-theme="light"] .topbar-balance-card.active .topbar-balance-name,
    body[data-theme="light"] .topbar-balance-card.active strong,
    body[data-theme="light"] .topbar-balance-card.active .topbar-balance-code { color: #ffffff; text-shadow: 0 1px 1px rgba(15,23,42,.4); }
    body[data-theme="light"] .topbar-balance-name { color: #475569; }
    body[data-theme="light"] .topbar-balance-card strong { color: #0f172a; }
    body[data-theme="light"] .topbar-balance-code { color: #64748b; }
    body[data-theme="light"] .topbar-reconcile-mark { box-shadow: 0 0 0 1px rgba(148, 163, 184, .45); }
    body[data-theme="light"] .topbar-reconcile-floating { border-color: #fef08a; background: linear-gradient(135deg, #dc2626 0%, #ef4444 48%, #f97316 100%); color: #ffffff; }
    body[data-theme="light"] .reconcile-hourly-notification.el-notification { border-color: #f59e0b; background: linear-gradient(135deg, #dc2626 0%, #ef4444 52%, #f97316 100%); }
    body[data-theme="light"] .topbar-balance-drawer { background: #f8fafc; border-bottom-color: #dbe1ea; }
    body[data-theme="light"] .topbar-balance-drawer-summary,
    body[data-theme="light"] .topbar-balance-close { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .topbar-balance-drawer-summary strong { color: #111827; }
    body[data-theme="light"] .topbar-balance-drawer-summary small { color: #64748b; }
    body[data-theme="light"] .topbar-balance-limit-tag { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
    body[data-theme="light"] .topbar-balance-limit-tag em { color: #dc2626; }
    body[data-theme="light"] .topbar-balance-limit-tag.is-unlimited { background: #ecfdf5; border-color: #99f6e4; color: #047857; }
    body[data-theme="light"] .topbar-balance-date-filter { color: #64748b; }
    body[data-theme="light"] .topbar-reconciliation-live { border-color: #bfdbfe; background: #eff6ff; }
    body[data-theme="light"] .topbar-reconciliation-live span { color: #1d4ed8; }
    body[data-theme="light"] .topbar-reconciliation-live strong { color: #0f172a; }
    body[data-theme="light"] .topbar-reconciliation-live small { color: #475569; }
    body[data-theme="light"] .topbar-reconciliation-live.is-stale { border-color: #fb7185; background: linear-gradient(90deg, #fee2e2, #ffedd5); }
    body[data-theme="light"] .topbar-reconciliation-live.is-stale span,
    body[data-theme="light"] .topbar-reconciliation-live.is-stale strong,
    body[data-theme="light"] .topbar-reconciliation-live.is-stale small { color: #991b1b; }
    body[data-theme="light"] .topbar-balance-day-btn { background: #f8fafc; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .topbar-balance-day-btn:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .topbar-balance-day-btn.disabled { border-color: #e5e7eb; color: #94a3b8; }
    body[data-theme="light"] .topbar-balance-date-filter .el-input__wrapper,
    body[data-theme="light"] .topbar-balance-direction-filter button { background: #f8fafc; border-color: #dbe1ea; color: #334155; box-shadow: 0 0 0 1px #dbe1ea inset; }
    body[data-theme="light"] .topbar-balance-direction-filter button.active { border-color: #3b82f6; background: #dbeafe; color: #1d4ed8; box-shadow: inset 0 -2px 0 #3b82f6; }
    body[data-theme="light"] .topbar-balance-count { border-color: rgba(13, 148, 136, .28); background: #ccfbf1; color: #0f766e; }
    body[data-theme="light"] .topbar-reconcile-alert { border-color: #fb923c; background: linear-gradient(90deg, #ef4444, #f97316); color: #ffffff; }
    body[data-theme="light"] .topbar-reconcile-mini,
    body[data-theme="light"] .topbar-reconciliation-grid > div,
    body[data-theme="light"] .topbar-reconciliation-form,
    body[data-theme="light"] .topbar-reconciliation-diff,
    body[data-theme="light"] .topbar-balance-tabs button { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .topbar-balance-tabs button.active { border-color: #3b82f6; background: #dbeafe; color: #1d4ed8; }
    body[data-theme="light"] .topbar-balance-tabs button.topbar-reconcile-tab.needs-attention,
    body[data-theme="light"] .topbar-balance-tabs button.topbar-reconcile-tab.needs-attention.active { border-color: #fb923c; background: linear-gradient(180deg, #ef4444 0%, #f97316 100%); color: #ffffff; }
    body[data-theme="light"] .topbar-reconciliation-grid strong,
    body[data-theme="light"] .topbar-reconcile-mini strong { color: #111827; }
    body[data-theme="light"] .topbar-reconciliation-grid span,
    body[data-theme="light"] .topbar-reconciliation-form label > span,
    body[data-theme="light"] .topbar-reconcile-mini small { color: #64748b; }
    @keyframes reconcile-card-pulse {
      0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 0 rgba(251, 191, 36, .42); }
      50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(251, 191, 36, .18); }
    }
    @keyframes reconcile-button-pulse {
      0%, 100% { filter: brightness(1); transform: translateY(0); }
      50% { filter: brightness(1.18); transform: translateY(-1px); }
    }
    @keyframes reconcile-alert-pulse {
      0%, 100% { transform: translateY(0); filter: brightness(1); }
      50% { transform: translateY(-1px); filter: brightness(1.12); }
    }
    @keyframes reconcile-floating-alert {
      0%, 100% { transform: translateX(0) translateY(0); filter: brightness(1); }
      22% { transform: translateX(-2px) translateY(-1px); }
      44% { transform: translateX(2px) translateY(0); filter: brightness(1.12); }
      66% { transform: translateX(-1px) translateY(1px); }
    }
    .toolbar { min-height: 50px; height: auto; display: flex; align-items: center; gap: 8px; row-gap: 6px; flex-wrap: wrap; padding: 7px 12px; border-bottom: 1px solid #252a32; background: #111418; box-sizing: border-box; flex: 0 0 auto; }
    .toolbar-primary,
    .toolbar-search { display: flex; align-items: center; gap: 8px; row-gap: 8px; flex-wrap: wrap; min-width: 0; }
    .toolbar-search { margin-left: 0; }
    .toolbar .el-button { margin-left: 0; font-weight: 600; }
    .toolbar .todo-toolbar-button.todo-toolbar-due {
      border-color: #f59e0b !important;
      background-color: #f59e0b !important;
      background-image: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
      color: #111827 !important;
      font-weight: 950 !important;
      box-shadow: 0 0 0 2px rgba(245, 158, 11, .2), 0 8px 18px rgba(245, 158, 11, .2) !important;
    }
    .toolbar .todo-toolbar-button.todo-toolbar-due:hover,
    .toolbar .todo-toolbar-button.todo-toolbar-due:focus {
      border-color: #fbbf24 !important;
      background-color: #f59e0b !important;
      background-image: linear-gradient(180deg, #fde047, #f59e0b) !important;
      color: #111827 !important;
      box-shadow: 0 0 0 3px rgba(245, 158, 11, .25), 0 10px 22px rgba(245, 158, 11, .24) !important;
    }
    .batch-menu { min-width: 190px; }
    .batch-menu .dropdown-section-title.is-disabled { height: 24px; line-height: 24px; margin-top: 2px; color: #7f8a99; font-size: 12px; font-weight: 800; cursor: default; opacity: 1; }
    .batch-menu .danger-title.is-disabled { color: #fca5a5; }
    .batch-menu .danger-menu-item { color: #f87171; font-weight: 700; }
    .batch-menu .danger-menu-item:hover { background: rgba(239, 68, 68, .12); color: #fecaca; }
    .row-size-segment { height: 32px; display: inline-flex; align-items: center; padding: 2px; border: 1px solid #2f3a49; border-radius: 7px; background: #0f151d; }
    .row-size-segment button { width: 30px; height: 26px; border: 0; border-radius: 5px; background: transparent; color: #8d99a8; font-size: 12px; font-weight: 800; cursor: pointer; }
    .row-size-segment button.active { background: #2563eb; color: #fff; box-shadow: 0 1px 4px rgba(37, 99, 235, .28); }
    .row-size-segment button:not(.active):hover { color: #dbeafe; background: #172033; }
    body[data-theme="light"] .toolbar { background: #ffffff; border-bottom-color: #dbe1ea; box-shadow: 0 1px 0 rgba(15, 23, 42, .03); }
    body[data-theme="light"] .toolbar .todo-toolbar-button.todo-toolbar-due {
      border-color: #d97706 !important;
      background-color: #f59e0b !important;
      background-image: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
      color: #111827 !important;
      box-shadow: 0 0 0 2px rgba(217, 119, 6, .16), 0 8px 18px rgba(245, 158, 11, .16) !important;
    }
    body[data-theme="light"] .batch-menu .dropdown-section-title.is-disabled { color: #64748b; }
    body[data-theme="light"] .batch-menu .danger-title.is-disabled { color: #dc2626; }
    body[data-theme="light"] .batch-menu .danger-menu-item { color: #dc2626; }
    body[data-theme="light"] .batch-menu .danger-menu-item:hover { background: #fef2f2; color: #991b1b; }
    body[data-theme="light"] .row-size-segment { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .row-size-segment button { color: #64748b; }
    body[data-theme="light"] .row-size-segment button:not(.active):hover { color: #1d4ed8; background: #eff6ff; }
    .preset-bar { min-height: 38px; display: flex; align-items: center; gap: 6px; row-gap: 6px; flex-wrap: wrap; padding: 5px 16px; border-bottom: 1px solid #252a32; background: #101418; box-sizing: border-box; flex: 0 0 auto; }
    .preset-bar .el-button { margin-left: 0; font-weight: 600; }
    .preset-group,
    .preset-combo { min-height: 28px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 3px 2px 8px; border: 1px solid #2a3442; border-radius: 7px; background: #0f151d; }
    .preset-group span,
    .preset-combo-label { margin-right: 3px; color: #7f8a99; font-size: 12px; font-weight: 800; }
    .preset-group button,
    .preset-combo button,
    .preset-clear { height: 24px; border: 0; border-radius: 5px; padding: 0 8px; background: transparent; color: #cbd5e1; font-size: 12px; font-weight: 800; cursor: pointer; }
    .preset-clear { border: 1px solid #2a3442; background: #0f151d; }
    .preset-group button:hover,
    .preset-combo button:hover,
    .preset-clear:hover { background: #172033; color: #ffffff; }
    .preset-group button.active,
    .preset-combo button.active,
    .preset-clear.active { background: #2563eb; color: #ffffff; box-shadow: 0 1px 4px rgba(37, 99, 235, .22); }
    .preset-type-select { width: 76px; }
    .preset-scope-select { width: 98px; }
    .preset-combo .preset-type-select,
    .preset-combo .preset-scope-select { margin-right: 2px; }
    .preset-filter-views { max-width: min(760px, 100%); }
    .preset-filter-views .el-dropdown { display: inline-flex; }
    .preset-filter-view-button { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .preset-more-button { max-width: none; }
    .preset-filter-view-menu .el-dropdown-menu__item { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
    .preset-type-select .el-select__wrapper,
    .preset-scope-select .el-select__wrapper { min-height: 26px; border-radius: 6px; background: #0f151d; box-shadow: 0 0 0 1px #2a3442 inset; font-size: 12px; font-weight: 700; }
    .filter-summary { min-width: 0; color: #8d99a8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 6px; }
    body[data-theme="light"] .preset-bar { background: #f8fafc; border-bottom-color: #dbe1ea; }
    body[data-theme="light"] .preset-group,
    body[data-theme="light"] .preset-combo,
    body[data-theme="light"] .preset-clear { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .preset-group span,
    body[data-theme="light"] .preset-combo-label { color: #64748b; }
    body[data-theme="light"] .preset-group button,
    body[data-theme="light"] .preset-combo button,
    body[data-theme="light"] .preset-clear { color: #334155; }
    body[data-theme="light"] .preset-type-select .el-select__wrapper,
    body[data-theme="light"] .preset-scope-select .el-select__wrapper { background: #ffffff; box-shadow: 0 0 0 1px #dbe4ef inset; }
    body[data-theme="light"] .preset-group button:hover,
    body[data-theme="light"] .preset-combo button:hover,
    body[data-theme="light"] .preset-clear:hover { background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .preset-group button.active,
    body[data-theme="light"] .preset-combo button.active,
    body[data-theme="light"] .preset-clear.active { background: #2563eb; color: #ffffff; }
    body[data-theme="light"] .filter-summary { color: #64748b; }
    .filter-panel-top { padding: 8px 16px 10px; border-bottom: 1px solid #252a32; background: #101418; display: grid; gap: 7px; flex: 0 0 auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02); }
    body[data-theme="light"] .filter-panel-top { background: #ffffff; border-bottom-color: #dbe1ea; }
    .filter-panel-head,
    .advanced-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .filter-panel-head strong,
    .advanced-filter-head strong { color: #e5e7eb; font-size: 14px; }
    .filter-panel-head span { color: #8d99a8; font-size: 12px; margin-left: 8px; }
    body[data-theme="light"] .filter-panel-head strong,
    body[data-theme="light"] .advanced-filter-head strong { color: #111827; }
    body[data-theme="light"] .filter-panel-head span { color: #64748b; }
    .filter-panel-actions,
    .advanced-filter-head { flex-wrap: wrap; }
    .filter-view-inline { display: grid; grid-template-columns: minmax(170px, 240px) minmax(170px, 240px) 84px 84px; gap: 6px; align-items: center; }
    .filter-main-grid { display: grid; grid-template-columns: repeat(6, minmax(124px, 1fr)); gap: 6px; }
    .filter-main-grid label { min-width: 0; display: grid; gap: 3px; color: #9aa6b5; font-size: 12px; }
    .filter-main-grid .el-select,
    .filter-main-grid .el-date-editor { width: 100%; }
    .filter-chip-row { min-height: 32px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .filter-chip-row button { height: 28px; border: 1px solid #2a3442; border-radius: 6px; padding: 0 9px; background: #0f151d; color: #cbd5e1; font-size: 12px; font-weight: 800; cursor: pointer; }
    .filter-chip-row button:hover { background: #172033; color: #ffffff; }
    body[data-theme="light"] .filter-main-grid label { color: #64748b; }
    body[data-theme="light"] .filter-chip-row button { background: #ffffff; border-color: #dbe4ef; color: #334155; }
    body[data-theme="light"] .filter-chip-row button:hover { background: #eff6ff; color: #1d4ed8; }
    .advanced-filter-top { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; padding-top: 0; }
    .advanced-filter-head { justify-content: space-between; align-content: center; flex-wrap: wrap; }
    .advanced-filter-top .advanced-filter-head { justify-content: flex-start; gap: 10px; }
    .advanced-filter-list.top-list { display: grid; grid-template-columns: 1fr; gap: 8px; width: min(720px, 100%); margin-left: 0; }
    .advanced-filter-list.top-list .advanced-filter-row { grid-template-columns: minmax(150px, 210px) 96px minmax(160px, 270px) 42px; gap: 6px; padding: 5px 7px; }
    .advanced-filter-list.top-list .quick-filter-summary-row { grid-template-columns: minmax(0, 1fr) 42px; align-items: center; }
    .quick-filter-summary-text { min-height: 30px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #2a3442; border-radius: 6px; background: #111820; color: #dbeafe; font-size: 12px; font-weight: 850; }
    .advanced-filter-list.top-list .advanced-filter-row .el-input { grid-column: auto; }
    .advanced-filter-list.top-list .advanced-filter-row > .el-select,
    .advanced-filter-list.top-list .advanced-filter-row > .el-input,
    .advanced-filter-list.top-list .advanced-filter-row > .el-autocomplete,
    .advanced-filter-list.top-list .advanced-filter-row > .el-date-editor { width: 100%; }
    .dynamic-date-filter-input { width: 100%; }
    .dynamic-date-mode { padding: 1px 5px; border-radius: 5px; background: #172033; color: #93c5fd; font-size: 11px; font-weight: 850; }
    .dynamic-date-picker-popper { padding: 0 12px 12px !important; }
    .dynamic-date-picker-popper .el-tabs__header { margin: 0 0 10px; }
    .dynamic-date-picker-popper .el-tabs__item { font-weight: 850; }
    .dynamic-date-fixed-pane .el-date-editor { width: 100%; }
    .dynamic-date-panel { display: grid; gap: 8px; }
    .dynamic-date-panel button,
    .dynamic-date-panel label { min-height: 32px; display: grid; align-items: center; gap: 8px; border: 1px solid #2a3442; border-radius: 6px; background: #0f151d; color: #dbeafe; font-size: 12px; font-weight: 800; }
    .dynamic-date-panel button { grid-template-columns: 1fr auto; padding: 0 10px; cursor: pointer; text-align: left; }
    .dynamic-date-panel button.active,
    .dynamic-date-panel button:hover { border-color: #3b82f6; background: #132033; color: #ffffff; }
    .dynamic-date-panel label { grid-template-columns: 70px 88px 20px; padding: 4px 8px; }
    .dynamic-date-panel label .el-input__wrapper { min-height: 24px; }
    .dynamic-date-panel code { color: #93c5fd; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
    .advanced-filter-list.top-list .advanced-filter-row .el-button { min-width: 38px; }
    .game-filter-panel { grid-template-columns: minmax(560px, 840px) minmax(300px, 1fr); gap: 8px 12px; padding: 8px 14px 8px; }
    .game-filter-panel .filter-panel-head { grid-column: 1 / -1; }
    .game-filter-panel .filter-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
    .game-filter-panel .filter-panel-actions .el-button { min-width: 70px; height: 32px; margin-left: 0 !important; padding: 0 14px; border-radius: 7px; font-weight: 850; line-height: 32px; }
    .game-filter-panel .filter-panel-actions .el-button > span { display: inline-flex; align-items: center; justify-content: center; height: 100%; line-height: 1; color: inherit; }
    .game-filter-panel .filter-panel-actions .el-button--default { background: #111820; border-color: #2a3442; color: #cbd5e1; }
    .game-filter-panel .filter-panel-actions .el-button--default:hover { border-color: #3b82f6; color: #dbeafe; background: #132033; }
    .game-filter-panel .filter-panel-actions .el-button--primary { min-width: 76px; background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #ffffff !important; box-shadow: 0 5px 12px rgba(37, 99, 235, .18); }
    .game-filter-panel .filter-panel-actions .el-button--primary > span { color: #ffffff !important; }
    .game-filter-panel .filter-panel-actions .el-button--primary:hover,
    .game-filter-panel .filter-panel-actions .el-button--primary:focus { background: linear-gradient(180deg, #60a5fa, #2563eb); color: #ffffff !important; box-shadow: 0 7px 16px rgba(37, 99, 235, .22); }
    .game-filter-panel .filter-panel-actions .el-button--warning.is-plain { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .52); color: #fbbf24; }
    .game-filter-panel .filter-panel-actions .el-checkbox { height: 32px; display: inline-flex; align-items: center; margin-right: 0; padding: 0 11px 0 10px; border: 1px solid #2a3442; border-radius: 999px; background: #101820; transition: background .16s ease, border-color .16s ease, color .16s ease; }
    .game-filter-panel .filter-panel-actions .el-checkbox:hover { border-color: #3b82f6; background: #132033; }
    .game-filter-panel .filter-panel-actions .el-checkbox.is-checked { border-color: rgba(96, 165, 250, .58); background: rgba(37, 99, 235, .16); }
    .game-filter-panel .filter-panel-actions .el-checkbox__label { color: #cbd5e1; font-size: 12px; font-weight: 850; padding-left: 7px; }
    .game-filter-panel .filter-panel-actions .el-checkbox__input.is-checked + .el-checkbox__label { color: #dbeafe; }
    .game-filter-panel .filter-panel-actions .el-checkbox__inner { width: 14px; height: 14px; border-radius: 4px; background: #0b1118; border-color: #475569; }
    .game-filter-panel .filter-panel-actions .el-checkbox__input.is-checked .el-checkbox__inner { background: #2563eb; border-color: #60a5fa; }
    .game-filter-panel .filter-view-inline { grid-column: 1; grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) 92px 92px; max-width: 736px; }
    .game-filter-panel .advanced-filter-top { display: contents; }
    .game-filter-panel .advanced-filter-head { grid-column: 2; align-self: center; justify-content: flex-start; min-height: 36px; padding: 0; }
    .game-filter-panel .advanced-filter-list.top-list { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 6px; }
    .game-filter-panel .advanced-filter-list.top-list .advanced-filter-row { grid-template-columns: minmax(96px, 1.1fr) 78px minmax(120px, 1fr) 40px; gap: 5px; padding: 5px 7px; }
    .game-filter-panel .advanced-filter-list.top-list .quick-filter-summary-row { grid-template-columns: minmax(0, 1fr) 40px; }
    .game-filter-panel .advanced-filter-list.top-list .advanced-filter-row .el-button { min-width: 34px; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-button--default { background: #ffffff; border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-button--default:hover { background: #f8fafc; border-color: #93c5fd; color: #1d4ed8; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-button--primary { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #ffffff !important; box-shadow: 0 4px 10px rgba(37, 99, 235, .2); }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-button--warning.is-plain { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox { background: #ffffff; border-color: #d7e0ec; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox:hover { background: #f8fafc; border-color: #93c5fd; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox.is-checked { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox__label { color: #334155; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox__input.is-checked + .el-checkbox__label { color: #1d4ed8; }
    body[data-theme="light"] .game-filter-panel .filter-panel-actions .el-checkbox__inner { background: #ffffff; border-color: #cbd5e1; }
    body[data-theme="light"] .quick-filter-summary-text { background: #ffffff; border-color: #dbe4ef; color: #1d4ed8; }
    body[data-theme="light"] .dynamic-date-mode { background: #eff6ff; color: #2563eb; }
    body[data-theme="light"] .dynamic-date-panel button,
    body[data-theme="light"] .dynamic-date-panel label { background: #ffffff; border-color: #dbe4ef; color: #334155; }
    body[data-theme="light"] .dynamic-date-panel button.active,
    body[data-theme="light"] .dynamic-date-panel button:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
    body[data-theme="light"] .dynamic-date-panel code { color: #2563eb; }
    .search-fields { width: 250px; }
    .keyword { width: 290px; }
    .search-scope-chip { height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #334155; border-radius: 999px; background: #0f1720; color: #93c5fd; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: help; }
    .search-scope-chip.is-global { color: #fbbf24; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .38); }
    body[data-theme="light"] .search-scope-chip { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
    body[data-theme="light"] .search-scope-chip.is-global { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
    @media (max-width: 1280px) {
      .filter-main-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
      .advanced-filter-top { grid-template-columns: 1fr; }
      .advanced-filter-list.top-list { grid-template-columns: 1fr; }
      .game-filter-panel { grid-template-columns: 1fr; }
      .game-filter-panel .filter-view-inline,
      .game-filter-panel .advanced-filter-head,
      .game-filter-panel .advanced-filter-list.top-list { grid-column: 1; }
      .game-filter-panel .advanced-filter-list.top-list { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
      .contract-record-filter { grid-template-columns: minmax(220px, 1fr) 150px 140px 220px; }
      .contract-record-filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
    }
    @media (max-width: 1180px) {
      .toolbar-search { margin-left: 0; }
      .search-fields { width: 240px; }
      .keyword { width: 260px; }
    }
    @media (max-width: 820px) {
      .filter-view-inline,
      .filter-main-grid,
      .advanced-filter-list.top-list .advanced-filter-row { grid-template-columns: 1fr; }
      .game-filter-panel { grid-template-columns: 1fr; }
      .game-filter-panel .filter-view-inline,
      .game-filter-panel .advanced-filter-list.top-list,
      .game-filter-panel .advanced-filter-list.top-list .advanced-filter-row { grid-template-columns: 1fr; max-width: none; }
      .game-filter-panel .advanced-filter-head { grid-column: 1; align-items: flex-start; }
      .toolbar { align-items: stretch; }
      .toolbar-primary,
      .toolbar-search { width: 100%; }
      .toolbar .search-fields,
      .search-fields,
      .keyword { width: 100%; }
      .toolbar .el-button { min-width: 74px; }
    }
    .pager { min-height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 6px 16px; border-top: 1px solid #252a32; background: #101418; flex: 0 0 auto; box-sizing: border-box; }
    .game-pager { position: relative; justify-content: center; }
    .game-pager .pager-info { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
    .game-pager .pager-controls { justify-content: center; margin: 0 auto; }
    .pager-info,
    .pager-controls { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .pager-info strong { color: #e5e7eb; font-size: 13px; white-space: nowrap; }
    .pager-info span { padding: 3px 8px; border: 1px solid #2a3038; border-radius: 999px; background: #0f151d; color: #8d99a8; font-size: 12px; white-space: nowrap; }
    .pager-controls .el-pagination { --el-pagination-button-width: 28px; --el-pagination-button-height: 28px; }
    body[data-theme="light"] .pager { background: #ffffff; border-top-color: #dbe1ea; }
    body[data-theme="light"] .pager-info strong { color: #0f172a; }
    body[data-theme="light"] .pager-info span { background: #f8fafc; border-color: #dbe4ef; color: #64748b; }
    .edit-form { padding-right: 18px; }
    .edit-form .el-divider { margin: 22px 0 16px; }
    .edit-form:not(.is-detail) .special-remark-field .el-textarea__inner { min-height: 112px !important; }
    .field-attention { border-radius: 8px; background: rgba(245, 158, 11, .14); box-shadow: 0 0 0 2px rgba(245, 158, 11, .5); transition: background .2s ease, box-shadow .2s ease; }
    body[data-theme="light"] .field-attention { background: #fffbeb; box-shadow: 0 0 0 2px rgba(245, 158, 11, .45); }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); column-gap: 18px; }
    .form-grid .wide-field { grid-column: 1 / -1; }
    .period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 8px; padding-left: 52px; }
    .period-grid .el-form-item { margin-bottom: 0; }
    .period-grid .el-form-item__label { width: 78px !important; flex: 0 0 78px !important; padding-right: 8px; }
    .form-grid .el-date-editor { width: 100%; }
    .period-grid .el-date-editor { width: min(100%, 178px); }
    @media (max-width: 980px) {
      .period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 680px) {
      .period-grid { grid-template-columns: 1fr; padding-left: 0; }
      .period-grid .el-form-item__label { width: 130px !important; flex-basis: 130px !important; }
      .period-grid .el-date-editor { width: 100%; }
    }
    .choice-board { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 4px 0 2px; }
    .choice-board.compact { gap: 8px 10px; }
    .choice-board.disabled { opacity: .72; }
    .choice-board.view-only { gap: 8px; opacity: 1; }
    .choice-board.view-only .choice-chip:not(.is-selected),
    .choice-board.view-only .choice-other:not(.is-selected) { display: none; }
    .choice-board.view-only .choice-chip,
    .choice-board.view-only .choice-other { cursor: default; }
    .choice-chip { min-height: 34px; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--choice-color) 70%, #253041); border-radius: 999px; background: color-mix(in srgb, var(--choice-color) 18%, transparent); color: #e5e7eb; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px 0 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease, outline-color .12s ease; }
    .choice-chip:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--choice-color); background: color-mix(in srgb, var(--choice-color) 26%, transparent); }
    .choice-chip:disabled { cursor: not-allowed; }
    .choice-chip.is-selected { background: linear-gradient(180deg, color-mix(in srgb, var(--choice-color) 88%, #ffffff), var(--choice-color)); border-color: color-mix(in srgb, var(--choice-color) 42%, #ffffff); color: var(--choice-text); font-weight: 900; outline: 2px solid color-mix(in srgb, var(--choice-color) 42%, #ffffff); outline-offset: 1px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--choice-color) 30%, transparent), 0 10px 22px rgba(0, 0, 0, .34); transform: translateY(-1px) scale(1.04); }
    .choice-dot { width: 13px; height: 13px; border: 1px solid color-mix(in srgb, var(--choice-color, #64748b) 72%, #ffffff); border-radius: 50%; background: transparent; flex: 0 0 auto; box-sizing: border-box; }
    .choice-chip.is-selected .choice-dot,
    .choice-other.is-selected .choice-dot { border: 2px solid rgba(255, 255, 255, .96); background: #ffffff; box-shadow: inset 0 0 0 4px var(--choice-color, #3b82f6), 0 0 0 1px rgba(15, 23, 42, .18); }
    .choice-other { min-height: 34px; display: inline-grid; grid-template-columns: 13px auto minmax(140px, 190px); align-items: center; gap: 8px; padding: 0 8px; border: 1px dashed #3a4656; border-radius: 999px; color: #cbd5e1; background: #111820; }
    .choice-other .choice-dot { --choice-color: #64748b; border-color: #64748b; }
    .choice-other.is-selected { border-style: solid; border-color: #3b82f6; background: rgba(59, 130, 246, .12); }
    .choice-other .el-input__wrapper { border-radius: 999px; min-height: 26px; }
    body[data-theme="light"] .choice-chip { color: #1f2937; background: color-mix(in srgb, var(--choice-color) 12%, #ffffff); border-color: color-mix(in srgb, var(--choice-color) 54%, #dbe1ea); }
    body[data-theme="light"] .choice-chip:hover:not(:disabled) { background: color-mix(in srgb, var(--choice-color) 18%, #ffffff); }
    body[data-theme="light"] .choice-chip.is-selected { color: var(--choice-text); background: linear-gradient(180deg, color-mix(in srgb, var(--choice-color) 88%, #ffffff), var(--choice-color)); border-color: color-mix(in srgb, var(--choice-color) 42%, #ffffff); box-shadow: 0 0 0 5px color-mix(in srgb, var(--choice-color) 28%, transparent), 0 8px 18px rgba(15, 23, 42, .22); }
    body[data-theme="light"] .choice-other { color: #334155; background: #ffffff; border-color: #cbd5e1; }
    body[data-theme="light"] .choice-other.is-selected { background: #eff6ff; border-color: #3b82f6; }
    .phone-card-bind-row { width: 100%; display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: center; gap: 8px 10px; }
    .phone-card-bind-input { width: 100%; min-width: 0; }
    .phone-card-usage-choice { width: auto; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 0; }
    .phone-card-usage-choice .choice-chip { min-width: 74px; min-height: 32px; justify-content: center; padding: 0 12px 0 9px; font-size: 13px; }
    .phone-card-usage-choice.is-locked .choice-chip { cursor: not-allowed; filter: saturate(.72); opacity: .72; }
    .phone-card-usage-choice.is-locked .choice-chip.is-selected { opacity: 1; filter: saturate(.95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
    @media (max-width: 720px) {
      .phone-card-bind-row { grid-template-columns: 1fr; }
      .phone-card-usage-choice { flex-wrap: wrap; }
    }
    .period-more-select { width: 128px; }
    .period-more-select .el-select__wrapper { min-height: 34px; border-radius: 999px; }
    .image-upload-panel { width: 100%; display: grid; gap: 12px; }
    .image-upload-panel.compact { gap: 8px; }
    .image-compact-row { min-height: 38px; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
    .upload-action-row.image-drop-actions { width: min(680px, 100%); display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px; align-items: stretch; }
    .image-drop-upload,
    .image-drop-upload .el-upload,
    .image-drop-upload .el-upload-dragger { width: 100%; }
    .image-drop-upload .el-upload-dragger { min-height: 86px; display: grid; align-items: stretch; padding: 0; border: 1px dashed #334155; border-radius: 8px; background: linear-gradient(180deg, rgba(37, 99, 235, .08), rgba(15, 23, 42, .12)); overflow: hidden; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
    .image-drop-upload .el-upload-dragger:hover { border-color: #60a5fa; background: linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(15, 23, 42, .12)); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
    .image-drop-card { min-height: 86px; display: grid; align-content: center; gap: 5px; padding: 12px 14px; text-align: left; }
    .image-drop-card strong { color: #f8fafc; font-size: 15px; line-height: 1.2; }
    .image-drop-card span { color: #cbd5e1; font-size: 12px; line-height: 1.35; }
    .image-drop-card small { color: #8d99a8; font-size: 12px; line-height: 1.3; }
    .image-drop-card-normal { border-left: 4px solid #3b82f6; }
    .image-drop-card-ocr { border-left: 4px solid #22c55e; }
    .image-drop-card-ocr.loading { opacity: .72; }
    .image-drop-upload.is-disabled .el-upload-dragger { cursor: wait; opacity: .78; }
    .image-upload-tip { grid-column: 1 / -1; margin-top: 0; }
    .image-preview-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .image-preview-item { width: 112px; min-height: 112px; padding: 8px; border: 1px solid #2a3038; border-radius: 8px; color: #cbd5e1; text-decoration: none; background: #111820; display: flex; flex-direction: column; gap: 6px; }
    .image-preview-item a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
    .image-preview-button { width: 100%; border: 0; padding: 0; color: inherit; background: transparent; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: zoom-in; }
    .image-preview-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #0b0d10; }
    .image-preview-item span { font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .image-upload-panel.compact .image-preview-list { gap: 8px; }
    .image-upload-panel.compact .image-preview-item { width: 92px; min-height: 76px; padding: 6px; }
    .image-upload-panel.compact .image-preview-item img { width: 78px; height: 44px; }
    .image-upload-panel.compact .image-preview-item span { -webkit-line-clamp: 1; }
    body[data-theme="light"] .image-drop-upload .el-upload-dragger { border-color: #bfdbfe; background: linear-gradient(180deg, #eff6ff, #ffffff); }
    body[data-theme="light"] .image-drop-upload .el-upload-dragger:hover { border-color: #2563eb; background: linear-gradient(180deg, #dbeafe, #ffffff); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
    body[data-theme="light"] .image-drop-card strong { color: #0f172a; }
    body[data-theme="light"] .image-drop-card span { color: #334155; }
    body[data-theme="light"] .image-drop-card small { color: #64748b; }
    @media (max-width: 760px) {
      .upload-action-row.image-drop-actions { grid-template-columns: 1fr; }
    }
    .empty-hint { color: #7f8a99; font-size: 13px; line-height: 32px; }
    .list-image-strip { min-height: 34px; display: flex; align-items: center; gap: 6px; }
    .list-image-thumb, .image-more { width: 34px; height: 34px; border: 1px solid #2a3038; border-radius: 6px; padding: 0; background: #0b0d10; color: #cbd5e1; overflow: hidden; cursor: zoom-in; display: grid; place-items: center; flex: 0 0 auto; }
    .list-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .list-image-thumb span { font-size: 11px; padding: 2px; line-height: 1.1; word-break: break-all; }
    .image-more { cursor: pointer; font-size: 12px; font-weight: 700; background: #111820; }
    .image-preview-dialog:not(.is-fullscreen) { height: 88vh; max-height: 88vh; margin-top: 4vh; display: flex; flex-direction: column; }
    .image-preview-dialog:not(.is-fullscreen) .el-dialog__header { flex: 0 0 auto; }
    .image-preview-dialog:not(.is-fullscreen) .el-dialog__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px 20px 14px; overflow: hidden; }
    .image-preview-stage { flex: 1 1 auto; min-height: 0; height: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; background: #0b0d10; border: 1px solid #252c35; border-radius: 8px; padding: 12px; overflow: hidden; cursor: zoom-in; user-select: none; touch-action: none; }
    .image-preview-stage.is-zoomed { cursor: grab; }
    .image-preview-stage.is-dragging { cursor: grabbing; }
    .image-preview-canvas { position: relative; min-width: 0; min-height: 0; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
    .image-preview-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transform-origin: center center; transition: none; will-change: width, height, transform; user-select: none; pointer-events: none; }
    .image-preview-stage.is-dragging img { transition: none; }
    .image-preview-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #cbd5e1; }
    .image-preview-toolbar { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 10px 0 8px; }
    .image-preview-thumbs { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
    .image-preview-dialog.is-fullscreen { display: flex; flex-direction: column; margin: 0; }
    .image-preview-dialog.is-fullscreen .el-dialog__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 20px 16px; }
    .image-preview-dialog.is-fullscreen .image-preview-stage { flex: 1; min-height: 0; height: calc(100vh - 190px); }
    .image-preview-dialog.is-fullscreen .image-preview-canvas { height: 100%; }
    .image-preview-dialog.is-fullscreen .image-preview-toolbar { margin: 10px 0; }
    .image-preview-dialog.is-fullscreen .image-preview-thumbs { flex: 0 0 auto; }
    .image-dialog-thumb { width: 70px; height: 52px; padding: 2px; border: 1px solid #2a3038; border-radius: 6px; background: #111820; cursor: pointer; flex: 0 0 auto; }
    .image-dialog-thumb.active { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, .25); }
    .image-dialog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; }
    .path-upload-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
    .upload-action-row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .blacklist-hit-list { margin: -4px 0 16px 130px; display: grid; gap: 8px; }
    .blacklist-hit-item { border: 1px solid #8a5b14; background: rgba(234, 179, 8, .1); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; }
    .blacklist-hit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .blacklist-hit-item strong { color: #fbbf24; }
    .blacklist-hit-item span, .blacklist-hit-item small, .blacklist-hit-item p { margin: 0; color: #d6d3d1; }
    .blacklist-hit-actions { display: flex; justify-content: flex-start; margin-top: 2px; }
    .blacklist-match-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .blacklist-hit-detail { display: grid; gap: 16px; }
    .blacklist-hit-detail section { display: grid; gap: 8px; }
    .blacklist-hit-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #7f1d1d; border-radius: 8px; background: rgba(127, 29, 29, .18); }
    .blacklist-hit-summary div { display: grid; gap: 4px; min-width: 0; }
    .blacklist-hit-summary strong { color: #fecaca; font-size: 16px; }
    .blacklist-hit-summary span { color: #fca5a5; font-size: 13px; }
    .blacklist-hit-note { padding: 12px 14px; border: 1px solid #2a3038; border-radius: 8px; background: #10151c; display: grid; gap: 6px; }
    .blacklist-hit-note strong { color: #fbbf24; }
    .blacklist-hit-note p { margin: 0; color: #cbd5e1; white-space: pre-wrap; line-height: 1.6; }
    .blacklist-account-option { display: grid; gap: 2px; line-height: 1.35; padding: 3px 0; min-width: 280px; }
    .blacklist-account-option-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .blacklist-account-option strong { font-size: 13px; color: #e5e7eb; }
    .blacklist-account-option em { font-style: normal; font-size: 12px; color: #60a5fa; }
    .blacklist-account-option span,
    .blacklist-account-option small { font-size: 12px; color: #94a3b8; }
    .el-autocomplete-suggestion li:has(.phone-card-suggestion-option) { padding-top: 2px; padding-bottom: 2px; line-height: normal; }
    .phone-card-suggestion-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; line-height: 1.05; margin: 0 -10px; padding: 4px 8px 4px 10px; width: min(430px, calc(100vw - 48px)); min-width: min(430px, calc(100vw - 48px)); min-height: 36px; border: 1px solid rgba(96, 165, 250, .16); border-radius: 8px; background: linear-gradient(90deg, rgba(37, 99, 235, .12), rgba(15, 23, 42, .05)); box-shadow: inset 3px 0 0 rgba(96, 165, 250, .55); }
    .phone-card-suggestion-option:hover { border-color: rgba(96, 165, 250, .42); background: linear-gradient(90deg, rgba(37, 99, 235, .18), rgba(15, 23, 42, .08)); }
    .phone-card-suggestion-info { display: grid; gap: 2px; min-width: 0; }
    .phone-card-suggestion-title { display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; }
    .phone-card-suggestion-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbeafe; font-size: 14px; font-weight: 950; line-height: 16px; letter-spacing: 0; }
    .phone-card-suggestion-title em { flex: 0 0 auto; min-width: 34px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 999px; background: rgba(251, 191, 36, .12); color: #fbbf24; padding: 0 6px; font-size: 11px; font-style: normal; font-weight: 950; line-height: 15px; text-align: center; }
    .phone-card-suggestion-option small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8da0bb; font-size: 11px; font-weight: 800; line-height: 13px; }
    .phone-card-suggestion-actions { display: grid; grid-template-columns: repeat(2, auto); align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 999px; background: rgba(15, 23, 42, .42); }
    .phone-card-suggestion-action { height: 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #b8c4d6; padding: 0 6px; font-size: 11px; font-weight: 900; line-height: 18px; cursor: pointer; white-space: nowrap; }
    .phone-card-suggestion-action:hover:not(:disabled) { border-color: #60a5fa; color: #dbeafe; background: rgba(37, 99, 235, .18); }
    .phone-card-suggestion-action.is-current { border-color: rgba(96, 165, 250, .75); color: #bfdbfe; background: rgba(37, 99, 235, .22); }
    .phone-card-suggestion-action.is-warn { border-color: rgba(249, 115, 22, .72); background: rgba(249, 115, 22, .14); color: #fdba74; }
    .phone-card-suggestion-action.is-warn:hover:not(:disabled) { background: rgba(249, 115, 22, .24); color: #fed7aa; border-color: #fb923c; }
    .phone-card-suggestion-action:disabled { cursor: not-allowed; opacity: .62; }
    @media (max-width: 720px) {
      .phone-card-suggestion-option { grid-template-columns: minmax(0, 1fr); align-items: start; }
      .phone-card-suggestion-actions { justify-self: start; }
    }
    .blacklist-linked-card { margin: -8px 0 14px 100px; display: grid; gap: 7px; padding: 10px 12px; border: 1px solid #28415f; border-radius: 8px; background: #101923; color: #dbeafe; }
    .blacklist-linked-card div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
    .blacklist-linked-actions { flex-wrap: wrap; }
    .blacklist-linked-actions .el-button { margin-left: 0; }
    .blacklist-linked-card strong,
    .blacklist-linked-card span,
    .blacklist-linked-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .blacklist-linked-card strong { font-size: 13px; }
    .blacklist-linked-card span,
    .blacklist-linked-card small { color: #9fb2c9; font-size: 12px; }
    .blacklist-drawer-toolbar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 12px; padding: 8px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; box-sizing: border-box; }
    .blacklist-drawer-toolbar span { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .blacklist-drawer-toolbar .el-button { margin-left: 0; font-weight: 800; }
    body[data-theme="light"] .blacklist-account-option strong { color: #0f172a; }
    body[data-theme="light"] .blacklist-account-option span,
    body[data-theme="light"] .blacklist-account-option small { color: #64748b; }
    body[data-theme="light"] .phone-card-suggestion-title strong { color: #1d4ed8; }
    body[data-theme="light"] .phone-card-suggestion-title em { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
    body[data-theme="light"] .phone-card-suggestion-option small { color: #64748b; }
    body[data-theme="light"] .phone-card-suggestion-option { border-color: #dbeafe; background: linear-gradient(90deg, #eff6ff, #ffffff); box-shadow: inset 3px 0 0 #60a5fa; }
    body[data-theme="light"] .phone-card-suggestion-option:hover { border-color: #93c5fd; background: linear-gradient(90deg, #dbeafe, #ffffff); }
    body[data-theme="light"] .phone-card-suggestion-actions { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .phone-card-suggestion-action { color: #475569; }
    body[data-theme="light"] .phone-card-suggestion-action:hover:not(:disabled) { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
    body[data-theme="light"] .phone-card-suggestion-action.is-current { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
    body[data-theme="light"] .phone-card-suggestion-action.is-warn { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
    body[data-theme="light"] .phone-card-suggestion-action.is-warn:hover:not(:disabled) { background: #ffedd5; color: #9a3412; }
    body[data-theme="light"] .blacklist-linked-card { background: #eff6ff; border-color: #bfdbfe; color: #0f172a; }
    body[data-theme="light"] .blacklist-linked-card span,
    body[data-theme="light"] .blacklist-linked-card small { color: #475569; }
    body[data-theme="light"] .blacklist-drawer-toolbar { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .blacklist-drawer-toolbar span { color: #64748b; }
    body[data-theme="light"] .image-preview-item { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .list-image-thumb,
    body[data-theme="light"] .image-more,
    body[data-theme="light"] .image-dialog-thumb { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .image-preview-stage { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .image-preview-meta { color: #334155; }
    body[data-theme="light"] .blacklist-hit-item { background: #fffbeb; border-color: #f59e0b; }
    body[data-theme="light"] .blacklist-hit-item strong { color: #92400e; }
    body[data-theme="light"] .blacklist-hit-item span,
    body[data-theme="light"] .blacklist-hit-item small,
    body[data-theme="light"] .blacklist-hit-item p { color: #78350f; }
    body[data-theme="light"] .blacklist-hit-summary { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .blacklist-hit-summary strong { color: #991b1b; }
    body[data-theme="light"] .blacklist-hit-summary span { color: #b91c1c; }
    body[data-theme="light"] .blacklist-hit-note { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .blacklist-hit-note strong { color: #92400e; }
    body[data-theme="light"] .blacklist-hit-note p { color: #475569; }
    .user { display: flex; align-items: center; gap: 10px; }
    .topbar-theme-button.el-button { width: 42px; min-width: 42px; padding: 0; font-weight: 900; }
    .user-account-button { max-width: 220px; border: 0; background: transparent; color: #e5e7eb; font: inherit; font-weight: 800; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
    .user-account-button:hover,
    .user-account-button:focus-visible { color: #60a5fa; outline: none; }
    .user-account-menu-popper .el-dropdown-menu__item { font-weight: 800; }
    body[data-theme="light"] .user-account-button { color: #1f2937; }
    body[data-theme="light"] .user-account-button:hover,
    body[data-theme="light"] .user-account-button:focus-visible { color: #2563eb; }
    .table-actions { max-width: 100%; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; }
    .table-actions .el-button { flex: 0 0 auto; margin-left: 0 !important; min-width: 0; padding: 0; overflow: hidden; }
    .compact-actions { min-height: 26px; gap: 4px; }
    .action-column .cell { padding-left: 4px; padding-right: 4px; }
    .action-pill { height: 24px; min-width: 28px; padding: 0 4px; border: 0; border-radius: 4px; background: transparent; color: #3b82f6; font: inherit; font-size: 12px; font-weight: 700; line-height: 24px; cursor: pointer; }
    .table-actions .action-pill { min-width: 32px; padding: 0 5px; }
    .action-pill:hover:not(:disabled) { background: rgba(59, 130, 246, .1); }
    .action-pill:disabled { color: #94a3b8; cursor: not-allowed; opacity: .65; }
    .danger-menu-item { color: #dc2626; }
    body[data-theme="dark"] .action-pill { color: #60a5fa; }
    body[data-theme="dark"] .action-pill:hover:not(:disabled) { background: rgba(96, 165, 250, .14); }
    body[data-theme="dark"] .action-pill:disabled { color: #64748b; }
    .editable-cell { min-height: 24px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
    .editable-cell.is-quick-editable { position: relative; padding-right: 0; transition: padding-right .1s ease; }
    .editable-cell.is-quick-editable:hover,
    .editable-cell.is-quick-editable:focus-within,
    .editable-cell.is-quick-editable.is-quick-hovered,
    .fast-game-cell:hover .editable-cell.is-quick-editable,
    .fast-game-cell.is-quick-hovered .editable-cell.is-quick-editable,
    .fast-game-cell:focus-within .editable-cell.is-quick-editable,
    .el-table__cell:hover .editable-cell.is-quick-editable,
    .el-table__cell:focus-within .editable-cell.is-quick-editable { padding-right: 30px; }
    .editable-cell.is-quick-editable:hover::after { content: none; }
    .editable-cell > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .list-tag { display: inline-block; max-width: 100%; height: 20px; padding: 0 8px; border: 1px solid #64748b; border-radius: 999px; box-sizing: border-box; background: #64748b; color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
    .list-tag.tag-danger { background: #ef4444; border-color: #ef4444; color: #fff; }
    .list-tag.tag-warning { background: #f59e0b; border-color: #f59e0b; color: #111827; }
    .list-tag.tag-success { background: #22c55e; border-color: #16a34a; color: #052e16; }
    .list-tag.tag-info { background: #64748b; border-color: #64748b; color: #fff; }
    body[data-theme="dark"] .el-tag.el-tag--success:not([style]) {
      background: rgba(34, 197, 94, .18) !important;
      border-color: rgba(34, 197, 94, .58) !important;
      color: #86efac !important;
    }
    body[data-theme="dark"] .el-tag.el-tag--warning:not([style]) {
      background: rgba(245, 158, 11, .18) !important;
      border-color: rgba(245, 158, 11, .62) !important;
      color: #fbbf24 !important;
    }
    body[data-theme="dark"] .el-tag.el-tag--danger:not([style]) {
      background: rgba(239, 68, 68, .18) !important;
      border-color: rgba(239, 68, 68, .62) !important;
      color: #fca5a5 !important;
    }
    body[data-theme="dark"] .el-tag.el-tag--info:not([style]) {
      background: rgba(100, 116, 139, .24) !important;
      border-color: rgba(148, 163, 184, .42) !important;
      color: #cbd5e1 !important;
    }
    body[data-theme="dark"] .el-tag[style] {
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    }
    body[data-theme="dark"] .el-button.el-button--success:not(.is-link):not(.is-text) {
      --el-button-bg-color: #22c55e;
      --el-button-border-color: #16a34a;
      --el-button-text-color: #052e16;
      --el-button-hover-bg-color: #4ade80;
      --el-button-hover-border-color: #22c55e;
      --el-button-hover-text-color: #052e16;
      --el-button-active-bg-color: #16a34a;
      --el-button-active-border-color: #15803d;
      --el-button-active-text-color: #052e16;
      font-weight: 800;
    }
    body[data-theme="dark"] .el-button.el-button--warning:not(.is-link):not(.is-text) {
      --el-button-bg-color: #f59e0b;
      --el-button-border-color: #d97706;
      --el-button-text-color: #111827;
      --el-button-hover-bg-color: #fbbf24;
      --el-button-hover-border-color: #f59e0b;
      --el-button-hover-text-color: #111827;
      --el-button-active-bg-color: #d97706;
      --el-button-active-border-color: #b45309;
      --el-button-active-text-color: #111827;
      font-weight: 800;
    }
    body[data-theme="dark"] .el-button.el-button--danger:not(.is-link):not(.is-text) {
      --el-button-bg-color: #ef4444;
      --el-button-border-color: #dc2626;
      --el-button-text-color: #ffffff;
      --el-button-hover-bg-color: #f87171;
      --el-button-hover-border-color: #ef4444;
      --el-button-hover-text-color: #ffffff;
      --el-button-active-bg-color: #dc2626;
      --el-button-active-border-color: #b91c1c;
      --el-button-active-text-color: #ffffff;
      font-weight: 800;
    }
    body[data-theme="dark"] .el-button.el-button--success.is-plain:not(.is-link):not(.is-text) {
      --el-button-bg-color: rgba(34, 197, 94, .14);
      --el-button-border-color: rgba(34, 197, 94, .56);
      --el-button-text-color: #86efac;
    }
    body[data-theme="dark"] .el-button.el-button--warning.is-plain:not(.is-link):not(.is-text) {
      --el-button-bg-color: rgba(245, 158, 11, .16);
      --el-button-border-color: rgba(245, 158, 11, .6);
      --el-button-text-color: #fbbf24;
    }
    body[data-theme="dark"] .el-button.el-button--danger.is-plain:not(.is-link):not(.is-text) {
      --el-button-bg-color: rgba(239, 68, 68, .14);
      --el-button-border-color: rgba(239, 68, 68, .58);
      --el-button-text-color: #fca5a5;
    }
    .contract-start-dialog .el-dialog__body { padding-top: 8px; }
    .contract-start-result { display: flex; flex-direction: column; gap: 12px; }
    .contract-reissue-box { display: grid; gap: 14px; }
    .contract-version-desc { margin-bottom: 12px; }
    .contract-start-status { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(34,197,94,.35); border-radius: 8px; background: rgba(34,197,94,.08); }
    .contract-start-status strong { color: #86efac; font-size: 18px; }
    .contract-start-status span { color: #cbd5e1; line-height: 1.5; }
    .contract-start-status.is-warning { border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.12); }
    .contract-start-status.is-warning strong { color: #fbbf24; }
    .contract-start-status.is-success { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.1); }
    .contract-start-status.is-success strong { color: #86efac; }
    .contract-start-status.is-danger { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
    .contract-start-status.is-danger strong { color: #fca5a5; }
    .contract-start-result.is-error .contract-start-status { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
    .contract-start-result.is-error .contract-start-status strong { color: #fca5a5; }
    .contract-failure-hint { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(245, 158, 11, .42); border-radius: 8px; background: rgba(245, 158, 11, .09); }
    .contract-failure-hint strong { color: #fbbf24; font-size: 14px; font-weight: 900; }
    .contract-failure-hint span { color: #cbd5e1; line-height: 1.5; }
    .contract-meta-line,
    .contract-link-row,
    .contract-download-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .contract-meta-line { padding: 8px 10px; border-radius: 7px; background: rgba(148,163,184,.08); color: #94a3b8; }
    .contract-meta-line code,
    .contract-download-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bfdbfe; font-family: Consolas, "Microsoft YaHei", sans-serif; }
    .contract-link-list,
    .contract-download-list { display: flex; flex-direction: column; gap: 8px; }
    .contract-link-row,
    .contract-download-row { padding: 8px 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #111827; }
    .contract-link-role { color: #dbeafe; font-weight: 800; }
    .contract-link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: transparent; color: #60a5fa; text-align: left; cursor: pointer; }
    .contract-link-text:hover { color: #93c5fd; text-decoration: underline; }
    .contract-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
    .contract-signer-block { display: grid; gap: 8px; }
    .contract-download-title small { margin-left: 8px; color: #94a3b8; font-size: 12px; font-weight: 800; }
    .contract-signer-list { display: grid; gap: 8px; }
    .contract-signer-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(110px, .8fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #111827; }
    .contract-signer-main,
    .contract-signer-status { min-width: 0; display: grid; gap: 2px; }
    .contract-signer-main strong { color: #dbeafe; font-size: 13px; font-weight: 900; }
    .contract-signer-main span,
    .contract-signer-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-size: 12px; }
    .contract-signer-status strong { width: max-content; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, .14); color: #fbbf24; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-signer-row.is-signed { border-color: rgba(34, 197, 94, .44); background: rgba(34, 197, 94, .07); }
    .contract-signer-row.is-signed .contract-signer-status strong { background: rgba(34, 197, 94, .18); color: #86efac; }
    .contract-signer-row.is-error { border-color: rgba(239, 68, 68, .48); background: rgba(239, 68, 68, .08); }
    .contract-signer-row.is-error .contract-signer-status strong { background: rgba(239, 68, 68, .18); color: #fca5a5; }
    .contract-header-action { font-weight: 900; box-shadow: 0 6px 14px rgba(37, 99, 235, .18); }
    .contract-precheck { display: grid; gap: 12px; }
    .contract-precheck-head { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(245,158,11,.42); border-radius: 8px; background: rgba(245,158,11,.1); }
    .contract-precheck-head strong { color: #fbbf24; font-size: 18px; }
    .contract-precheck-head span { color: #cbd5e1; line-height: 1.5; }
    .contract-precheck-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .contract-precheck-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid #334155; border-radius: 8px; background: #111827; color: #e5e7eb; cursor: pointer; }
    .contract-precheck-item:hover { border-color: #60a5fa; background: #0f1f36; }
    .contract-precheck-item span { font-weight: 900; }
    .contract-precheck-item small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-family: Consolas, "Microsoft YaHei", sans-serif; }
    .contract-progress-panel { display: grid; gap: 10px; margin: 2px 0 12px; padding: 12px; border: 1px solid #334155; border-radius: 8px; background: #101923; }
    .contract-progress-panel.is-empty { border-color: rgba(148,163,184,.48); }
    .contract-progress-panel.is-signing { border-color: rgba(245,158,11,.62); background: rgba(245,158,11,.08); }
    .contract-progress-panel.is-done { border-color: rgba(34,197,94,.52); background: rgba(34,197,94,.07); }
    .contract-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .contract-progress-head > div { min-width: 0; display: grid; gap: 3px; }
    .contract-progress-head strong { color: #f8fafc; font-size: 16px; font-weight: 900; }
    .contract-progress-head span { color: #94a3b8; line-height: 1.45; }
    .contract-progress-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .contract-progress-card { min-width: 0; min-height: 54px; position: relative; display: grid; align-content: center; gap: 3px; padding: 8px 34px 8px 10px; border: 1px solid rgba(148,163,184,.24); border-radius: 7px; background: rgba(15,23,42,.54); }
    .contract-progress-card > span { color: #94a3b8; font-size: 12px; font-weight: 700; }
    .contract-progress-card strong,
    .contract-progress-card a,
    .contract-progress-card button:not(.el-button) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: 0; background: transparent; color: #e5e7eb; font-size: 13px; font-weight: 900; text-align: left; }
    .contract-progress-card a,
    .contract-progress-card button:not(.el-button) { color: #60a5fa; cursor: pointer; }
    .contract-progress-card a:hover,
    .contract-progress-card button:not(.el-button):hover { color: #93c5fd; text-decoration: underline; }
    .contract-progress-card .contract-copy-mini { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
    .contract-link-field { width: 100%; min-width: 0; min-height: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid #334155; border-radius: 6px; background: #111820; }
    .contract-link-field a,
    .contract-link-field span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #60a5fa; font-weight: 700; }
    .contract-status-field { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #334155; border-radius: 6px; background: #111820; box-sizing: border-box; }
    .contract-status-field.empty::after { content: ""; display: block; width: 1px; height: 18px; }
    .mono-ellipsis { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, "Microsoft YaHei", sans-serif; color: #93c5fd; }
    .mono-ellipsis.muted { color: #7f8a99; font-family: Arial, "Microsoft YaHei", sans-serif; }
    .form-tip { margin-top: 6px; font-size: 12px; line-height: 1.4; color: #64748b; }
    .contract-settings-panel .content-toolbar { align-items: flex-start; }
    .contract-settings-panel .muted-text { max-width: 720px; line-height: 1.5; }
    .contract-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .contract-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 7px; margin: 7px 0; }
    .contract-summary-card { min-height: 50px; display: grid; gap: 2px; align-content: center; padding: 7px 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-summary-card span { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .contract-summary-card strong { color: #dbeafe; font-size: 20px; line-height: 1.1; }
    .contract-summary-card small { color: #64748b; font-size: 12px; }
    .contract-record-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin: 5px 0 6px; }
    .contract-record-stat { min-width: 0; min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 9px; border: 1px solid #2f3a49; border-radius: 7px; background: #0f151d; color: inherit; font: inherit; text-align: left; appearance: none; cursor: pointer; }
    .contract-record-stat:hover { border-color: #3b82f6; background: #132033; }
    .contract-record-stat.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); }
    .contract-record-stat:focus-visible { outline: 2px solid rgba(96, 165, 250, .75); outline-offset: 2px; }
    .contract-record-stats span { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-record-stats strong { color: #dbeafe; font-size: 16px; line-height: 1; white-space: nowrap; }
    .contract-record-action-strip { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -1px 0 6px; padding: 6px 8px; border: 1px solid rgba(245, 158, 11, .36); border-radius: 7px; background: rgba(245, 158, 11, .08); box-sizing: border-box; }
    .contract-record-action-strip.running { border-color: rgba(96, 165, 250, .56); background: rgba(37, 99, 235, .1); }
    .contract-record-action-strip.finished { border-color: rgba(34, 197, 94, .42); background: rgba(34, 197, 94, .08); }
    .contract-record-action-main { min-width: 0; flex: 1 1 auto; display: grid; gap: 5px; }
    .contract-record-action-main > span { min-width: 0; color: #facc15; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-record-action-strip.running .contract-record-action-main > span { color: #bfdbfe; }
    .contract-record-action-strip.finished .contract-record-action-main > span { color: #bbf7d0; }
    .contract-record-action-buttons { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
    .contract-record-action-buttons .el-button { margin-left: 0; flex: 0 0 auto; font-weight: 900; }
    .contract-batch-progress { min-width: 0; display: grid; gap: 4px; }
    .contract-batch-progress-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .contract-batch-progress-head strong { color: #f8fafc; font-size: 12px; line-height: 1.2; white-space: nowrap; }
    .contract-batch-progress-head small,
    .contract-batch-progress-message { min-width: 0; color: #93c5fd; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-batch-progress-bar { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(15, 23, 42, .72); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14); }
    .contract-batch-progress-bar i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #22c55e, #f59e0b); transition: width .18s ease; overflow: hidden; }
    .contract-batch-progress-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); animation: contract-progress-flow 1.1s linear infinite; }
    @keyframes contract-progress-flow {
      from { transform: translateX(-100%); }
      to { transform: translateX(100%); }
    }
    .contract-record-link { max-width: 100%; display: block; border: 0; padding: 0; background: transparent; color: #60a5fa; font-size: 13px; font-weight: 900; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
    .contract-record-link:hover { color: #93c5fd; text-decoration: underline; }
    .contract-record-table small { display: block; margin-top: 2px; color: #7f8a99; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-record-assets { display: grid; gap: 2px; color: #cbd5e1; font-size: 12px; line-height: 1.35; }
    .contract-record-assets span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-auto-sync-cell { display: grid; gap: 3px; align-items: center; min-width: 0; }
    .contract-auto-sync-cell .el-tag { width: fit-content; max-width: 100%; font-weight: 800; }
    .contract-auto-sync-cell small { color: #8d99a8; font-size: 11px; line-height: 1.2; }
    .contract-auto-sync-cell .contract-sync-error { color: #fca5a5; font-weight: 800; white-space: normal; }
    .contract-version-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .contract-version-cell strong { color: #dbeafe; font-size: 12px; }
    .contract-record-filter { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(140px, 170px) minmax(128px, 154px) minmax(330px, 360px) auto; gap: 7px; align-items: center; margin: 7px 0; }
    .contract-record-filter .el-date-editor { width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box !important; }
    .contract-record-filter .el-range-editor.el-input__wrapper { min-width: 0 !important; }
    .contract-record-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
    .contract-record-filter-actions .el-button { margin-left: 0; }
    @media (max-width: 1280px) {
      .contract-record-filter { grid-template-columns: minmax(260px, 1fr) 150px 140px minmax(330px, 360px); }
      .contract-record-filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
    }
    .contract-record-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 8px; color: #8d99a8; font-size: 12px; font-weight: 800; }
    .settings-contract-record-panel { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .settings-contract-record-panel .contract-record-table { flex: 1 1 auto; min-height: 0; }
    .contract-instance-overview { margin-bottom: 12px; padding: 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-instance-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .contract-instance-summary-grid > div { min-width: 0; display: grid; gap: 2px; }
    .contract-instance-summary-grid span { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .contract-instance-summary-grid strong { min-width: 0; color: #dbeafe; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-instance-summary-grid strong.is-strong { color: #93c5fd; font-size: 15px; }
    .contract-instance-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
    .contract-template-name { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .contract-template-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc; }
    .contract-template-status-pill,
    .contract-template-ready-pill { flex: 0 0 auto; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 0 10px; font-size: 12px; font-weight: 900; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 10px rgba(15,23,42,.12); }
    .contract-template-status-pill.enabled { border: 1px solid #16a34a; background: #16a34a; color: #ffffff; }
    .contract-template-status-pill.disabled { border: 1px solid #dc2626; background: #dc2626; color: #ffffff; }
    .contract-template-ready-pill.ready { border: 1px solid #86efac; background: #dcfce7; color: #166534; }
    .contract-template-ready-pill.pending { border: 1px solid #fbbf24; background: #fef3c7; color: #92400e; }
    .contract-template-ready-pill.disabled { border: 1px solid #fecaca; background: #fee2e2; color: #991b1b; }
    body[data-theme="dark"] .el-table .contract-template-row-enabled > td.el-table__cell { background: rgba(22, 163, 74, .1) !important; }
    body[data-theme="dark"] .el-table .contract-template-row-disabled > td.el-table__cell { background: rgba(220, 38, 38, .16) !important; }
    body[data-theme="light"] .el-table .contract-template-row-enabled > td.el-table__cell { background: #f0fdf4 !important; }
    body[data-theme="light"] .el-table .contract-template-row-disabled > td.el-table__cell { background: #fff1f2 !important; }
    .el-table .contract-template-row-enabled > td.el-table__cell:first-child { box-shadow: inset 4px 0 0 #22c55e; }
    .el-table .contract-template-row-disabled > td.el-table__cell:first-child { box-shadow: inset 4px 0 0 #ef4444; }
    .el-table .contract-template-row-disabled .contract-template-name strong { color: #94a3b8; text-decoration: line-through; }
    .contract-checklist { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
    .contract-checklist .el-tag { height: 20px; padding: 0 6px; font-size: 11px; font-weight: 800; }
    .contract-url-cell { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
    .contract-url-cell .el-button { padding: 0; min-width: 0; }
    .contract-cloud-panel { flex: 1 1 auto; min-height: 0; margin: 10px 0 0; padding: 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
    .contract-subsection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
    .contract-subsection-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
    .contract-subsection-head strong { color: #dbeafe; font-size: 15px; line-height: 1.2; }
    .contract-subsection-head span { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .contract-cloud-actions { flex: 0 0 min(520px, 48%); min-width: 320px; display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 8px; }
    .contract-local-head { margin: 10px 0 8px; padding: 0 2px; }
    .cloud-template-footer { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8d99a8; font-size: 12px; }
    .cloud-template-detail { min-height: 360px; display: grid; align-content: start; gap: 10px; }
    .cloud-template-hero { padding: 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
    .cloud-template-hero > div { min-width: 0; display: grid; gap: 4px; }
    .cloud-template-hero span { color: #93a4b8; font-size: 12px; font-weight: 800; }
    .cloud-template-hero strong { color: #f8fafc; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cloud-template-hero code { color: #93c5fd; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
    .cloud-template-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .cloud-template-meta span { min-width: 0; padding: 8px 10px; border: 1px solid #26313f; border-radius: 8px; background: #111820; display: grid; gap: 3px; color: #dbeafe; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cloud-template-meta b { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .cloud-template-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .contract-template-drawer .el-drawer__body { padding-top: 8px; }
    .contract-template-form .el-divider { margin: 18px 0 14px; }
    .contract-template-wizard { display: grid; gap: 12px; }
    .contract-template-step { padding: 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-step-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
    .contract-step-head > span { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 900; box-shadow: 0 8px 18px rgba(37,99,235,.24); }
    .contract-step-head div { min-width: 0; display: grid; gap: 2px; }
    .contract-step-head strong { color: #dbeafe; font-size: 15px; line-height: 1.25; }
    .contract-step-head small { color: #8d99a8; line-height: 1.45; }
    .contract-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .contract-template-grid.contract-callback-grid { grid-template-columns: minmax(0, 1fr); }
    .contract-callback-grid .el-input { width: 100%; }
    .contract-template-grid .el-form-item,
    .contract-template-upload .el-form-item { margin-bottom: 12px; }
    .contract-template-grid .el-select { width: 100%; }
    .contract-template-upload { display: grid; gap: 2px; }
    .contract-setup-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
    .contract-setup-guide > div { min-height: 58px; display: grid; gap: 4px; align-content: center; padding: 10px 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-setup-guide strong { color: #bfdbfe; font-size: 14px; }
    .contract-setup-guide span { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .contract-draft-status { margin: 10px 0 2px; padding: 10px 12px; border: 1px solid rgba(245, 158, 11, .38); border-radius: 8px; background: rgba(245, 158, 11, .09); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .contract-draft-status.ready { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
    .contract-draft-status strong { color: #fbbf24; font-size: 14px; }
    .contract-draft-status.ready strong { color: #86efac; }
    .contract-draft-status .contract-checklist { margin-top: 0; flex: 1 1 280px; }
    .contract-health-card { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-health-title { display: block; margin-bottom: 6px; font-size: 14px; color: #dbeafe; }
    .contract-issue-list { display: grid; gap: 6px; }
    .contract-issue-item { width: 100%; min-width: 0; padding: 7px 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #334155; border-radius: 8px; background: #111827; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
    .contract-issue-item:hover { border-color: #60a5fa; background: #162033; }
    .contract-issue-item > div { min-width: 0; display: grid; gap: 1px; }
    .contract-issue-item strong { min-width: 0; color: #e5e7eb; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-issue-item small { min-width: 0; color: #8d99a8; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-issue-item > span { color: #93c5fd; font-size: 12px; font-weight: 900; white-space: nowrap; }
    .contract-issue-item.is-danger { border-color: rgba(239, 68, 68, .42); background: rgba(239, 68, 68, .08); }
    .contract-issue-item.is-warning { border-color: rgba(245, 158, 11, .42); background: rgba(245, 158, 11, .08); }
    .contract-issue-item.is-info { border-color: rgba(148, 163, 184, .32); background: rgba(148, 163, 184, .07); }
    .contract-issue-empty { padding: 8px 10px; border: 1px solid rgba(34, 197, 94, .42); border-radius: 8px; background: rgba(34, 197, 94, .08); color: #86efac; font-size: 12px; font-weight: 800; }
    .contract-health-card.is-success { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
    .contract-health-card.is-success .contract-health-title { color: #86efac; }
    .contract-health-card.is-warning { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .09); }
    .contract-health-card.is-warning .contract-health-title { color: #fbbf24; }
    .contract-health-card.is-danger { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
    .contract-health-card.is-danger .contract-health-title { color: #fca5a5; }
    .contract-health-card.is-info .contract-health-title { color: #93c5fd; }
    .contract-next-card { margin: 8px 0 4px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(59, 130, 246, .42); border-radius: 8px; background: rgba(59, 130, 246, .1); }
    .contract-next-card > div { min-width: 0; display: grid; gap: 2px; }
    .contract-next-card span { color: #93c5fd; font-size: 12px; font-weight: 900; }
    .contract-next-card strong { color: #dbeafe; font-size: 15px; line-height: 1.25; }
    .contract-next-card small { color: #aeb8c5; font-size: 12px; line-height: 1.45; }
    .contract-next-card.is-success { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
    .contract-next-card.is-success span { color: #86efac; }
    .contract-next-card.is-warning { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .09); }
    .contract-next-card.is-warning span { color: #fbbf24; }
    .contract-next-card.is-danger { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
    .contract-next-card.is-danger span { color: #fca5a5; }
    .contract-next-card.is-info { border-color: rgba(148, 163, 184, .38); background: rgba(148, 163, 184, .08); }
    .contract-next-card.is-info span { color: #cbd5e1; }
    .contract-view-toolbar { margin: 8px 0 4px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-view-toolbar > div { min-width: 0; display: grid; gap: 2px; }
    .contract-view-toolbar strong { color: #dbeafe; font-size: 14px; }
    .contract-view-toolbar span { color: #8d99a8; font-size: 12px; line-height: 1.4; }
    .contract-readiness-panel { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; display: grid; gap: 10px; }
    .contract-readiness-header { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); align-items: center; gap: 12px; }
    .contract-readiness-header > div { min-width: 0; display: grid; gap: 2px; }
    .contract-readiness-header span { color: #8d99a8; font-size: 12px; font-weight: 900; }
    .contract-readiness-header strong { color: #dbeafe; font-size: 24px; line-height: 1; }
    .contract-readiness-header small { color: #94a3b8; font-size: 12px; }
    .contract-readiness-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .contract-readiness-item { min-width: 0; min-height: 64px; padding: 8px 9px; border: 1px solid #334155; border-radius: 8px; background: #111827; text-align: left; display: grid; gap: 2px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
    .contract-readiness-item:hover { transform: translateY(-1px); border-color: #60a5fa; background: #162033; }
    .contract-readiness-item span { color: #e5e7eb; font-size: 12px; font-weight: 900; }
    .contract-readiness-item strong { color: #bfdbfe; font-size: 13px; line-height: 1.2; }
    .contract-readiness-item small { min-width: 0; color: #8d99a8; font-size: 11px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .contract-readiness-item.is-success { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
    .contract-readiness-item.is-success strong { color: #86efac; }
    .contract-readiness-item.is-warning { border-color: rgba(245, 158, 11, .48); background: rgba(245, 158, 11, .09); }
    .contract-readiness-item.is-warning strong { color: #fbbf24; }
    .contract-readiness-item.is-danger { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
    .contract-readiness-item.is-danger strong { color: #fca5a5; }
    .contract-readiness-item.is-info { border-color: rgba(148, 163, 184, .38); background: rgba(148, 163, 184, .08); }
    .contract-readiness-item.is-info strong { color: #cbd5e1; }
    .contract-jump-bar { margin: 8px 0 4px; min-height: 34px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
    .contract-jump-bar span { margin-right: 4px; color: #8d99a8; font-size: 12px; font-weight: 900; }
    .contract-jump-bar .el-button { min-width: 42px; font-weight: 800; }
    .contract-section-anchor { height: 1px; scroll-margin-top: 12px; }
    .contract-advanced-card { margin: 10px 0 4px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(59, 130, 246, .38); border-radius: 8px; background: rgba(59, 130, 246, .08); }
    .contract-advanced-card > div { min-width: 0; display: grid; gap: 2px; }
    .contract-advanced-card span { color: #93c5fd; font-size: 12px; font-weight: 900; }
    .contract-advanced-card strong { color: #dbeafe; font-size: 14px; line-height: 1.25; }
    .contract-advanced-card small { color: #aeb8c5; font-size: 12px; line-height: 1.45; }
    .contract-advanced-card.is-warning { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .09); }
    .contract-advanced-card.is-warning span { color: #fbbf24; }
    .contract-advanced-card.is-success { border-color: rgba(34, 197, 94, .42); background: rgba(34, 197, 94, .08); }
    .contract-advanced-card.is-success span { color: #86efac; }
    .contract-advanced-body { margin-top: 2px; }
    .contract-recommended-panel { margin: 6px 0 12px; padding: 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; display: grid; gap: 9px; }
    .contract-recommended-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .contract-recommended-head > div { min-width: 0; display: grid; gap: 2px; }
    .contract-recommended-head span { color: #93c5fd; font-size: 12px; font-weight: 900; }
    .contract-recommended-head strong { color: #dbeafe; font-size: 14px; line-height: 1.25; }
    .contract-recommended-head small { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .contract-recommended-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .contract-recommended-item { min-width: 0; min-height: 48px; padding: 7px 8px; border: 1px solid rgba(34, 197, 94, .32); border-radius: 8px; background: rgba(34, 197, 94, .06); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
    .contract-recommended-item.warning { border-color: rgba(245, 158, 11, .42); background: rgba(245, 158, 11, .07); }
    .contract-recommended-item.missing { border-color: rgba(239, 68, 68, .42); background: rgba(239, 68, 68, .07); }
    .contract-recommended-item > div { min-width: 0; display: grid; gap: 1px; }
    .contract-recommended-item strong { min-width: 0; color: #e5e7eb; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-recommended-item small { min-width: 0; color: #8d99a8; font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-recommended-item .el-button { padding: 0 2px; font-weight: 900; }
    .contract-sign-helper { margin: 6px 0 12px; padding: 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; display: grid; gap: 9px; }
    .contract-sign-helper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .contract-sign-helper-head > div { min-width: 0; display: grid; gap: 2px; }
    .contract-sign-helper-head span { color: #93c5fd; font-size: 12px; font-weight: 900; }
    .contract-sign-helper-head strong { color: #dbeafe; font-size: 14px; line-height: 1.25; }
    .contract-sign-helper-head small { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .contract-sign-helper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .contract-sign-helper-item { min-width: 0; min-height: 48px; padding: 7px 8px; border: 1px solid rgba(34, 197, 94, .32); border-radius: 8px; background: rgba(34, 197, 94, .06); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
    .contract-sign-helper-item.missing { border-color: rgba(245, 158, 11, .42); background: rgba(245, 158, 11, .07); }
    .contract-sign-helper-item > div { min-width: 0; display: grid; gap: 1px; }
    .contract-sign-helper-item strong { min-width: 0; color: #e5e7eb; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-sign-helper-item small { min-width: 0; color: #8d99a8; font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-sign-helper-item .el-button { padding: 0 2px; font-weight: 900; }
    @media (max-width: 820px) {
      .contract-readiness-header { grid-template-columns: 1fr; }
      .contract-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .contract-readiness-item { min-height: 58px; }
      .contract-jump-bar .el-button { min-width: 38px; padding-left: 6px; padding-right: 6px; }
      .contract-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .contract-signer-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
      .contract-signer-row .contract-row-actions { justify-content: flex-start; }
      .contract-precheck-list { grid-template-columns: 1fr; }
      .contract-recommended-grid,
      .contract-sign-helper-grid,
      .contract-record-stats,
      .contract-instance-summary-grid { grid-template-columns: 1fr; }
      .contract-record-filter { grid-template-columns: 1fr 1fr; }
      .contract-record-filter-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
      .contract-record-action-strip { align-items: flex-start; flex-direction: column; }
      .contract-record-action-main > span,
      .contract-batch-progress-head small,
      .contract-batch-progress-message { white-space: normal; }
      .contract-record-action-buttons { justify-content: flex-start; flex-wrap: wrap; }
      .contract-batch-progress-head { align-items: flex-start; flex-direction: column; gap: 2px; }
      .contract-record-pagination { justify-content: flex-start; flex-wrap: wrap; }
      .contract-template-grid { grid-template-columns: 1fr; }
      .contract-subsection-head,
      .cloud-template-footer { flex-direction: column; align-items: stretch; }
      .contract-cloud-actions { flex-basis: auto; min-width: 0; grid-template-columns: 1fr; }
      .cloud-template-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 560px) {
      .contract-readiness-grid { grid-template-columns: 1fr; }
      .contract-progress-head { flex-direction: column; align-items: stretch; }
      .contract-progress-grid { grid-template-columns: 1fr; }
      .contract-next-card,
      .contract-advanced-card { grid-template-columns: 1fr; align-items: stretch; }
      .contract-view-toolbar { flex-direction: column; align-items: stretch; }
      .contract-issue-item { grid-template-columns: auto minmax(0, 1fr); }
      .contract-issue-item > span { grid-column: 2; }
      .contract-recommended-head { flex-direction: column; align-items: stretch; }
      .contract-sign-helper-head { flex-direction: column; align-items: stretch; }
      .contract-recommended-item,
      .contract-sign-helper-item { grid-template-columns: minmax(0, 1fr) auto; }
      .contract-recommended-item .el-button,
      .contract-sign-helper-item .el-button { grid-column: 1 / -1; justify-self: start; }
    }
    .contract-config-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
    .contract-config-mini-grid > div { min-height: 54px; display: grid; gap: 2px; align-content: center; padding: 8px 10px; border: 1px solid #2f3a49; border-radius: 8px; background: #0f151d; }
    .contract-config-mini-grid strong { color: #dbeafe; font-size: 20px; line-height: 1; }
    .contract-config-mini-grid span { color: #e5e7eb; font-size: 12px; font-weight: 800; }
    .contract-config-mini-grid small { min-width: 0; color: #7f8a99; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-form-hint { display: block; width: 100%; margin-top: 6px; color: #7f8a99; font-size: 12px; line-height: 1.45; }
    .contract-default-callback { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 8px; border: 1px solid #2f3a49; border-radius: 6px; background: rgba(37, 99, 235, .08); color: #93a4b8; font-size: 12px; line-height: 1.4; }
    .contract-default-callback span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-default-callback code { color: #bfdbfe; font-family: Consolas, "Microsoft YaHei", sans-serif; }
    .contract-default-callback .el-button { padding: 0; min-width: 0; }
    .contract-url-edit-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .contract-preview-code { display: block; margin-top: 2px; color: #7f8a99; font-family: Consolas, "Microsoft YaHei", sans-serif; font-size: 12px; }
    .contract-link-field a:hover { color: #93c5fd; text-decoration: underline; }
    .contract-link-field.empty span { color: #64748b; font-weight: 600; }
    .contract-copy-mini { width: 28px; height: 28px; padding: 0 !important; border-radius: 6px; color: #93c5fd !important; }
    .contract-copy-native { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; font-weight: 900; display: inline-grid; place-items: center; }
    .contract-copy-mini:hover { background: rgba(59,130,246,.14) !important; color: #bfdbfe !important; }
    .contract-copy-mini span { font-size: 16px; line-height: 1; font-weight: 900; }
    .contract-copy-mini:disabled { cursor: not-allowed; opacity: .45; }
    .contract-copy-mini:disabled:hover { background: transparent !important; color: #93c5fd !important; }
    .contract-download-block { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
    .contract-download-title { color: #e5e7eb; font-size: 14px; font-weight: 900; }
    body[data-theme="light"] .contract-start-status { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-start-status strong { color: #15803d; }
    body[data-theme="light"] .contract-start-status span { color: #334155; }
    body[data-theme="light"] .contract-start-status.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-start-status.is-warning strong { color: #b45309; }
    body[data-theme="light"] .contract-start-status.is-success { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-start-status.is-success strong { color: #15803d; }
    body[data-theme="light"] .contract-start-status.is-danger { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-start-status.is-danger strong { color: #dc2626; }
    body[data-theme="light"] .contract-start-result.is-error .contract-start-status { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-start-result.is-error .contract-start-status strong { color: #dc2626; }
    body[data-theme="light"] .contract-failure-hint { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-failure-hint strong { color: #b45309; }
    body[data-theme="light"] .contract-failure-hint span { color: #475569; }
    body[data-theme="light"] .contract-meta-line { background: #f8fafc; color: #64748b; }
    body[data-theme="light"] .contract-precheck-head { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-precheck-head strong { color: #b45309; }
    body[data-theme="light"] .contract-precheck-head span { color: #475569; }
    body[data-theme="light"] .contract-precheck-item { background: #ffffff; border-color: #dbe4ef; color: #0f172a; }
    body[data-theme="light"] .contract-precheck-item:hover { border-color: #60a5fa; background: #eff6ff; }
    body[data-theme="light"] .contract-precheck-item small { color: #94a3b8; }
    body[data-theme="light"] .contract-progress-panel { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-progress-panel.is-empty { border-color: #cbd5e1; }
    body[data-theme="light"] .contract-progress-panel.is-signing { background: #fffbeb; border-color: #fcd34d; }
    body[data-theme="light"] .contract-progress-panel.is-done { background: #f0fdf4; border-color: #86efac; }
    body[data-theme="light"] .contract-progress-head strong { color: #0f172a; }
    body[data-theme="light"] .contract-progress-head span { color: #475569; }
    body[data-theme="light"] .contract-progress-card { background: rgba(248,250,252,.86); border-color: #dbe4ef; }
    body[data-theme="light"] .contract-progress-card strong { color: #0f172a; }
    body[data-theme="light"] .contract-progress-card > span { color: #64748b; }
    body[data-theme="light"] .contract-progress-card a,
    body[data-theme="light"] .contract-progress-card button:not(.el-button) { color: #2563eb; }
    body[data-theme="light"] .contract-download-title small { color: #64748b; }
    body[data-theme="light"] .contract-signer-row { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-signer-main strong { color: #1e40af; }
    body[data-theme="light"] .contract-signer-main span,
    body[data-theme="light"] .contract-signer-status span { color: #64748b; }
    body[data-theme="light"] .contract-signer-status strong { background: #fffbeb; color: #b45309; }
    body[data-theme="light"] .contract-signer-row.is-signed { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-signer-row.is-signed .contract-signer-status strong { background: #dcfce7; color: #15803d; }
    body[data-theme="light"] .contract-signer-row.is-error { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-signer-row.is-error .contract-signer-status strong { background: #fee2e2; color: #dc2626; }
    body[data-theme="light"] .contract-link-row,
    body[data-theme="light"] .contract-download-row { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-link-field { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-link-field a,
    body[data-theme="light"] .contract-link-field span { color: #2563eb; }
    body[data-theme="light"] .contract-status-field { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .mono-ellipsis.muted { color: #94a3b8; }
    body[data-theme="light"] .contract-summary-card,
    body[data-theme="light"] .contract-record-stat,
    body[data-theme="light"] .contract-instance-overview,
    body[data-theme="light"] .contract-cloud-panel,
    body[data-theme="light"] .cloud-template-hero,
    body[data-theme="light"] .contract-template-step,
    body[data-theme="light"] .contract-setup-guide > div,
    body[data-theme="light"] .contract-config-mini-grid > div { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-summary-card span,
    body[data-theme="light"] .contract-record-stats span,
    body[data-theme="light"] .contract-instance-summary-grid span,
    body[data-theme="light"] .contract-setup-guide span,
    body[data-theme="light"] .contract-form-hint { color: #64748b; }
    body[data-theme="light"] .contract-default-callback { background: #eff6ff; border-color: #bfdbfe; color: #475569; }
    body[data-theme="light"] .contract-default-callback code { color: #1d4ed8; }
    body[data-theme="light"] .contract-record-stat:hover { background: #eef6ff; border-color: #60a5fa; }
    body[data-theme="light"] .contract-record-stat.active { background: #dbeafe; border-color: #3b82f6; }
    body[data-theme="light"] .contract-record-action-strip { background: #fff7ed; border-color: #fdba74; }
    body[data-theme="light"] .contract-record-action-strip.running { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .contract-record-action-strip.finished { background: #f0fdf4; border-color: #86efac; }
    body[data-theme="light"] .contract-record-action-main > span { color: #9a3412; }
    body[data-theme="light"] .contract-record-action-strip.running .contract-record-action-main > span { color: #1d4ed8; }
    body[data-theme="light"] .contract-record-action-strip.finished .contract-record-action-main > span { color: #166534; }
    body[data-theme="light"] .contract-batch-progress-head strong { color: #0f172a; }
    body[data-theme="light"] .contract-batch-progress-head small,
    body[data-theme="light"] .contract-batch-progress-message { color: #2563eb; }
    body[data-theme="light"] .contract-batch-progress-bar { background: #dbeafe; box-shadow: inset 0 0 0 1px #bfdbfe; }
    body[data-theme="light"] .contract-summary-card strong,
    body[data-theme="light"] .contract-record-stats strong,
    body[data-theme="light"] .contract-instance-summary-grid strong,
    body[data-theme="light"] .contract-step-head strong,
    body[data-theme="light"] .contract-setup-guide strong,
    body[data-theme="light"] .contract-config-mini-grid strong { color: #1d4ed8; }
    body[data-theme="light"] .contract-step-head small { color: #64748b; }
    body[data-theme="light"] .contract-subsection-head strong,
    body[data-theme="light"] .cloud-template-hero strong { color: #0f172a; }
    body[data-theme="light"] .contract-subsection-head span,
    body[data-theme="light"] .cloud-template-hero span { color: #64748b; }
    body[data-theme="light"] .cloud-template-hero code { color: #2563eb; }
    body[data-theme="light"] .cloud-template-meta span { background: #ffffff; border-color: #dbe4ef; color: #0f172a; }
    body[data-theme="light"] .cloud-template-meta b,
    body[data-theme="light"] .cloud-template-footer { color: #64748b; }
    body[data-theme="light"] .contract-instance-summary-grid strong.is-strong { color: #2563eb; }
    body[data-theme="light"] .contract-record-link { color: #2563eb; }
    body[data-theme="light"] .contract-record-link:hover { color: #1d4ed8; }
    body[data-theme="light"] .contract-record-table small { color: #94a3b8; }
    body[data-theme="light"] .contract-auto-sync-cell .contract-sync-error { color: #dc2626; }
    body[data-theme="light"] .contract-record-assets { color: #334155; }
    body[data-theme="light"] .contract-auto-sync-cell small { color: #64748b; }
    body[data-theme="light"] .contract-version-cell strong { color: #1d4ed8; }
    body[data-theme="light"] .contract-config-mini-grid span { color: #0f172a; }
    body[data-theme="light"] .contract-config-mini-grid small,
    body[data-theme="light"] .contract-preview-code { color: #64748b; }
    body[data-theme="light"] .contract-draft-status { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-draft-status.ready { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-draft-status strong { color: #b45309; }
    body[data-theme="light"] .contract-draft-status.ready strong { color: #15803d; }
    body[data-theme="light"] .contract-health-card { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-health-title { color: #1d4ed8; }
    body[data-theme="light"] .contract-issue-item { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-issue-item:hover { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .contract-issue-item strong { color: #0f172a; }
    body[data-theme="light"] .contract-issue-item small { color: #64748b; }
    body[data-theme="light"] .contract-issue-item > span { color: #2563eb; }
    body[data-theme="light"] .contract-issue-item.is-danger { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-issue-item.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-issue-item.is-info { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-issue-empty { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
    body[data-theme="light"] .contract-health-card.is-success { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-health-card.is-success .contract-health-title { color: #15803d; }
    body[data-theme="light"] .contract-health-card.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-health-card.is-warning .contract-health-title { color: #b45309; }
    body[data-theme="light"] .contract-health-card.is-danger { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-health-card.is-danger .contract-health-title { color: #dc2626; }
    body[data-theme="light"] .contract-next-card { background: #eff6ff; border-color: #bfdbfe; }
    body[data-theme="light"] .contract-next-card span { color: #2563eb; }
    body[data-theme="light"] .contract-next-card strong { color: #0f172a; }
    body[data-theme="light"] .contract-next-card small { color: #475569; }
    body[data-theme="light"] .contract-next-card.is-success { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-next-card.is-success span { color: #15803d; }
    body[data-theme="light"] .contract-next-card.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-next-card.is-warning span { color: #b45309; }
    body[data-theme="light"] .contract-next-card.is-danger { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-next-card.is-danger span { color: #dc2626; }
    body[data-theme="light"] .contract-next-card.is-info { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-next-card.is-info span { color: #64748b; }
    body[data-theme="light"] .contract-view-toolbar { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-view-toolbar strong { color: #0f172a; }
    body[data-theme="light"] .contract-view-toolbar span { color: #64748b; }
    body[data-theme="light"] .contract-readiness-panel { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-readiness-header span,
    body[data-theme="light"] .contract-readiness-header small,
    body[data-theme="light"] .contract-jump-bar span { color: #64748b; }
    body[data-theme="light"] .contract-readiness-header strong { color: #1d4ed8; }
    body[data-theme="light"] .contract-readiness-item { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-readiness-item:hover { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .contract-readiness-item span { color: #0f172a; }
    body[data-theme="light"] .contract-readiness-item strong { color: #1d4ed8; }
    body[data-theme="light"] .contract-readiness-item small { color: #64748b; }
    body[data-theme="light"] .contract-readiness-item.is-success { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-readiness-item.is-success strong { color: #15803d; }
    body[data-theme="light"] .contract-readiness-item.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-readiness-item.is-warning strong { color: #b45309; }
    body[data-theme="light"] .contract-readiness-item.is-danger { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-readiness-item.is-danger strong { color: #dc2626; }
    body[data-theme="light"] .contract-readiness-item.is-info { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-readiness-item.is-info strong { color: #64748b; }
    body[data-theme="light"] .contract-advanced-card { background: #eff6ff; border-color: #bfdbfe; }
    body[data-theme="light"] .contract-advanced-card span { color: #2563eb; }
    body[data-theme="light"] .contract-advanced-card strong { color: #0f172a; }
    body[data-theme="light"] .contract-advanced-card small { color: #475569; }
    body[data-theme="light"] .contract-advanced-card.is-warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-advanced-card.is-warning span { color: #b45309; }
    body[data-theme="light"] .contract-advanced-card.is-success { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-advanced-card.is-success span { color: #15803d; }
    body[data-theme="light"] .contract-recommended-panel { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-recommended-head span { color: #2563eb; }
    body[data-theme="light"] .contract-recommended-head strong { color: #0f172a; }
    body[data-theme="light"] .contract-recommended-head small,
    body[data-theme="light"] .contract-recommended-item small { color: #64748b; }
    body[data-theme="light"] .contract-recommended-item { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-recommended-item.warning { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-recommended-item.missing { background: #fef2f2; border-color: #fecaca; }
    body[data-theme="light"] .contract-recommended-item strong { color: #0f172a; }
    body[data-theme="light"] .contract-sign-helper { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .contract-sign-helper-head span { color: #2563eb; }
    body[data-theme="light"] .contract-sign-helper-head strong,
    body[data-theme="light"] .contract-sign-helper-item strong { color: #0f172a; }
    body[data-theme="light"] .contract-sign-helper-head small,
    body[data-theme="light"] .contract-sign-helper-item small { color: #64748b; }
    body[data-theme="light"] .contract-sign-helper-item { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .contract-sign-helper-item.missing { background: #fffbeb; border-color: #fde68a; }
    body[data-theme="light"] .contract-template-name strong { color: #0f172a; }
    body[data-theme="light"] .contract-link-field.empty span { color: #94a3b8; }
    body[data-theme="light"] .contract-copy-mini { color: #2563eb !important; }
    body[data-theme="light"] .contract-copy-mini:hover { background: #eff6ff !important; color: #1d4ed8 !important; }
    body[data-theme="light"] .contract-meta-line code,
    body[data-theme="light"] .contract-download-row code { color: #1d4ed8; }
    body[data-theme="light"] .contract-link-role,
    body[data-theme="light"] .contract-download-title { color: #0f172a; }
    .virtual-game-table { margin: 0 20px; overflow: auto; border: 1px solid #2a3038; border-radius: 4px; background: #101418; color: #e5e7eb; position: relative; }
    .virtual-game-table-inner { position: relative; width: max-content; min-width: 100%; }
    .virtual-game-header,
    .virtual-game-row { display: grid; width: max-content; min-width: 100%; }
    .virtual-game-header { position: sticky; top: 0; z-index: 3; min-height: 34px; background: #151a20; border-bottom: 1px solid #2a3038; font-weight: 800; color: #e5e7eb; }
    .virtual-game-body { position: relative; min-width: 100%; }
    .virtual-game-row { position: absolute; left: 0; top: 0; border-bottom: 1px solid #2a3038; background: #101418; }
    .virtual-game-row.is-striped { background: #121820; }
    .virtual-game-row:hover { background: #1b2430; }
    .virtual-game-cell { min-width: 0; display: flex; align-items: center; padding: 0 8px; border-right: 1px solid #2a3038; box-sizing: border-box; overflow: hidden; white-space: nowrap; }
    .virtual-game-cell.selection-cell { justify-content: center; padding: 0; }
    .virtual-game-cell.action-column { padding: 0 4px; }
    .virtual-game-cell input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: #3b82f6; }
    .virtual-empty { height: 180px; display: grid; place-items: center; color: #94a3b8; }
    .virtual-game-table.game-table--small .virtual-game-header { min-height: 30px; }
    .virtual-game-table.game-table--large .virtual-game-header { min-height: 42px; }
    body[data-theme="light"] .virtual-game-table { background: #fff; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .virtual-game-header { background: #f8fafc; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .virtual-game-row { background: #fff; border-color: #dbe1ea; }
    body[data-theme="light"] .virtual-game-row.is-striped { background: #f9fbff; }
    body[data-theme="light"] .virtual-game-row:hover { background: #eef4ff; }
    body[data-theme="light"] .virtual-game-cell { border-color: #dbe1ea; }
    .batch-summary-card { margin: 2px 0 12px 110px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .batch-summary-card > div { min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #10151c; }
    .batch-summary-card span { color: #8d99a8; font-size: 12px; }
    .batch-summary-card strong { color: #e5e7eb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .batch-summary-card.danger > div { border-color: #8a5b14; background: rgba(234, 179, 8, .08); }
    body[data-theme="light"] .batch-summary-card > div { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .batch-summary-card span { color: #64748b; }
    body[data-theme="light"] .batch-summary-card strong { color: #0f172a; }
    body[data-theme="light"] .batch-summary-card.danger > div { background: #fffbeb; border-color: #f59e0b; }
    .export-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
    .export-summary > div { min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #10151c; }
    .export-summary span { color: #8d99a8; font-size: 12px; }
    .export-summary strong { color: #e5e7eb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .export-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .export-toolbar .el-button { margin-left: 0; }
    .export-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; max-height: 360px; overflow: auto; padding: 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f141b; }
    .export-field-grid .el-checkbox { min-width: 0; margin-right: 0; }
    .export-field-grid .el-checkbox__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body[data-theme="light"] .export-summary > div,
    body[data-theme="light"] .export-field-grid { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .export-summary span { color: #64748b; }
    body[data-theme="light"] .export-summary strong { color: #0f172a; }
    .edit-form.is-detail .el-divider { margin: 14px 0 10px; }
    .edit-form.is-detail .el-checkbox:not(.is-checked) { display: none; }
    .edit-form.is-detail .el-form-item { margin-bottom: 6px; }
    .edit-form.is-detail .el-form-item__label { color: #9aa6b5; font-weight: 700; }
    .edit-form.is-detail .el-input.is-disabled .el-input__wrapper,
    .edit-form.is-detail .el-textarea.is-disabled .el-textarea__inner { background: transparent; box-shadow: none; border: 0; padding-left: 0; padding-right: 0; }
    .edit-form.is-detail .el-input.is-disabled .el-input__inner,
    .edit-form.is-detail .el-textarea.is-disabled .el-textarea__inner { color: #e5e7eb; -webkit-text-fill-color: #e5e7eb; font-weight: 700; }
    .edit-form.is-detail .el-textarea.is-disabled .el-textarea__inner { min-height: 24px; resize: none; font-weight: 600; line-height: 1.45; overflow-y: auto; padding-top: 2px; padding-bottom: 2px; }
    .edit-form.is-detail .el-switch.is-disabled { opacity: .82; }
    .detail-empty-inline { display: inline-flex; align-items: center; min-height: 24px; color: #8d99a8; font-weight: 700; }
    body[data-theme="light"] .edit-form.is-detail .el-form-item__label { color: #64748b; }
    body[data-theme="light"] .edit-form.is-detail .el-input.is-disabled .el-input__inner,
    body[data-theme="light"] .edit-form.is-detail .el-textarea.is-disabled .el-textarea__inner { color: #111827; -webkit-text-fill-color: #111827; }
    body[data-theme="light"] .edit-form.is-detail .el-textarea.is-disabled .el-textarea__inner { color: #334155; -webkit-text-fill-color: #334155; }
    .phone-qr-field { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
    .phone-qr-field:not(.is-detail) { display: block; }
    .phone-qr-button { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(96, 165, 250, .7); border-radius: 6px; background: rgba(37, 99, 235, .12); color: #93c5fd; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
    .phone-qr-button:hover { border-color: #60a5fa; background: rgba(37, 99, 235, .22); color: #dbeafe; }
    .phone-qr-button:active { transform: translateY(1px); }
    .phone-qr-icon { width: 16px; height: 16px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; }
    .phone-qr-icon i { display: block; border-radius: 1px; background: currentColor; }
    .phone-qr-icon i:nth-child(1) { grid-column: 1; grid-row: 1; }
    .phone-qr-icon i:nth-child(2) { grid-column: 3; grid-row: 1; }
    .phone-qr-icon i:nth-child(3) { grid-column: 1; grid-row: 3; }
    .phone-qr-icon i:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 4; clip-path: polygon(0 0, 38% 0, 38% 32%, 68% 32%, 68% 0, 100% 0, 100% 100%, 62% 100%, 62% 68%, 32% 68%, 32% 100%, 0 100%); }
    .phone-dial-qr-dialog .el-dialog__body { padding-top: 8px; }
    .phone-dial-qr-body { display: grid; justify-items: center; gap: 10px; text-align: center; }
    .phone-dial-qr-heading { color: #f8fafc; font-size: 15px; font-weight: 950; }
    .phone-dial-qr-number { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #93c5fd; font-family: Consolas, "Microsoft YaHei", sans-serif; font-size: 18px; font-weight: 1000; letter-spacing: 0; }
    .phone-dial-qr-box { width: 236px; height: 236px; display: grid; place-items: center; padding: 10px; border: 1px solid #2a3038; border-radius: 10px; background: #ffffff; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
    .phone-dial-qr-svg { width: 214px; height: 214px; display: block; }
    body[data-theme="light"] .phone-qr-button { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
    body[data-theme="light"] .phone-qr-button:hover { background: #dbeafe; border-color: #60a5fa; color: #1d4ed8; }
    body[data-theme="light"] .phone-dial-qr-heading { color: #0f172a; }
    body[data-theme="light"] .phone-dial-qr-number { color: #1d4ed8; }
    body[data-theme="light"] .phone-dial-qr-box { border-color: #dbe1ea; box-shadow: 0 10px 26px rgba(15, 23, 42, .12); }
    .quick-btn.el-button,
    .quick-btn.cell-quick-btn { opacity: 1; height: 20px; min-width: 24px; padding: 0 4px; border-radius: 4px; background: rgba(37, 99, 235, .12); color: #60a5fa; border: 0; font-size: 12px; font-weight: 700; line-height: 20px; flex: 0 0 auto; cursor: pointer; box-sizing: border-box; }
    .quick-btn.cell-quick-btn { width: 24px; display: inline-flex; align-items: center; justify-content: center; }
    .editable-cell .cell-quick-btn {
      position: absolute;
      right: 2px;
      top: 50%;
      transform: translateY(-50%) scale(.94);
      z-index: 8;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      box-shadow: 0 0 0 1px rgba(37, 99, 235, .12);
      transition: opacity .1s ease, visibility .1s ease, transform .1s ease, background .12s ease, color .12s ease;
    }
    .editable-cell.is-quick-editable:hover .cell-quick-btn,
    .editable-cell.is-quick-editable:focus-within .cell-quick-btn,
    .editable-cell.is-quick-editable.is-quick-hovered .cell-quick-btn,
    .fast-game-cell:hover .editable-cell.is-quick-editable .cell-quick-btn,
    .fast-game-cell.is-quick-hovered .editable-cell.is-quick-editable .cell-quick-btn,
    .fast-game-cell:focus-within .editable-cell.is-quick-editable .cell-quick-btn,
    .el-table__cell:hover .editable-cell.is-quick-editable .cell-quick-btn,
    .el-table__cell:focus-within .editable-cell.is-quick-editable .cell-quick-btn {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(-50%) scale(1);
      background: #2563eb;
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
    }
    .quick-btn.el-button:hover,
    .quick-btn.cell-quick-btn:hover { background: rgba(37, 99, 235, .22); color: #93c5fd; }
    .list-flag-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid transparent; box-sizing: border-box; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; white-space: nowrap; }
    .list-flag-pill.is-off { background: #6b7280; border-color: #6b7280; }
    .list-flag-pill.is-starred-on { background: #f59e0b; border-color: #f59e0b; color: #111827; }
    .list-flag-pill.is-processed-on { background: #22c55e; border-color: #16a34a; }
    body[data-theme="light"] .list-flag-pill.is-off { background: #9ca3af; border-color: #9ca3af; color: #fff; }
    .game-table.game-table--small .el-table__cell { padding: 2px 0; }
    .game-table.game-table--small .cell { line-height: 22px; }
    .game-table .cell { font-size: 14px; }
    .game-table th.el-table__cell .cell { font-size: 14px; font-weight: 900; }
    .game-table td.el-table__cell { font-weight: 600; }
    .game-table th.el-table__cell .cell { position: relative; }
    .list-field-header { position: relative; min-width: 0; height: 26px; display: flex; align-items: center; overflow: visible; }
    .list-field-header.sortable { cursor: pointer; }
    .list-field-header-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: padding-right .12s ease; }
    .list-field-sort-indicator { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; display: grid; place-items: center; color: #94a3b8; font-size: 13px; font-weight: 1000; text-align: center; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(-50%); text-shadow: 0 0 8px rgba(96, 165, 250, .35); transition: opacity .12s ease, color .12s ease, transform .12s ease, right .12s ease; }
    .game-field-header.is-sortable:not(.is-sorted) .list-field-header:hover .list-field-sort-indicator::before,
    .game-field-header.is-sortable:not(.is-sorted) .list-field-header:focus-within .list-field-sort-indicator::before { content: "↕"; }
    .game-field-header.is-sortable:not(.is-sorted) .list-field-header:hover .list-field-sort-indicator,
    .game-field-header.is-sortable:not(.is-sorted) .list-field-header:focus-within .list-field-sort-indicator { right: 44px; opacity: .82; transform: translateY(-50%) scale(1.05); }
    .game-field-header.is-sorted .list-field-sort-indicator { opacity: 1; color: #60a5fa; font-size: 14px; transform: translateY(-50%) scale(1.08); }
    .game-field-header.is-sorted .list-field-header:hover .list-field-sort-indicator,
    .game-field-header.is-sorted .list-field-header:focus-within .list-field-sort-indicator { right: 44px; }
    .game-field-header.is-sorted .list-field-header-label { padding-right: 38px; }
    .list-field-header:hover .list-field-header-label,
    .list-field-header:focus-within .list-field-header-label { padding-right: 76px; }
    .list-field-header-menu-btn { position: absolute; top: 50%; right: 14px; width: 24px; height: 22px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #93a4b8; font-size: 0; font-weight: 900; line-height: 0; cursor: pointer; opacity: 0; pointer-events: auto; transform: translateY(-50%) translateX(3px); transition: opacity .12s ease, transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease; }
    .list-field-header-menu-btn::before { content: ""; width: 3px; height: 3px; border-radius: 999px; background: currentColor; box-shadow: 6px 0 0 currentColor, 12px 0 0 currentColor; transform: translateX(-6px); }
    .list-field-header:hover .list-field-header-menu-btn,
    .list-field-header:focus-within .list-field-header-menu-btn { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
    .list-field-header-menu-btn:hover,
    .list-field-header-menu-btn:focus-visible { border-color: rgba(96, 165, 250, .58); background: rgba(37, 99, 235, .16); color: #bfdbfe; outline: none; }
    .list-field-resize-handle { position: absolute; top: 0; right: -8px; bottom: 0; z-index: 6; width: 12px; cursor: col-resize; touch-action: none; }
    .list-field-resize-handle::after { content: ""; position: absolute; top: 5px; right: 5px; bottom: 5px; width: 2px; border-radius: 999px; background: #60a5fa; opacity: 0; transition: opacity .12s ease, background .12s ease; }
    .game-field-header:hover .list-field-resize-handle::after,
    .list-field-resize-handle:hover::after { opacity: .9; }
    body.is-column-resizing,
    body.is-column-resizing * { cursor: col-resize !important; user-select: none !important; }
    .game-field-header.is-sortable { cursor: pointer; }
    .game-field-header.is-sorted { box-shadow: inset 3px 0 0 #3b82f6; }
    .list-field-header-menu-popper { min-width: 112px; }
    .list-field-header-menu-popper .el-dropdown-menu { padding: 5px; }
    .list-field-header-menu-popper .el-dropdown-menu__item { height: 28px; border-radius: 6px; font-size: 12px; font-weight: 800; line-height: 28px; }
    .list-field-header-menu-popper .el-dropdown-menu__item.is-active-quick { color: #16a34a; background: rgba(34, 197, 94, .1); }
    .list-field-header-menu-popper .el-dropdown-menu__item.is-disabled,
    .list-field-header-menu-popper .el-dropdown-menu__item[aria-disabled="true"] { color: #526174 !important; background: transparent !important; opacity: .58; cursor: not-allowed; filter: grayscale(.35); }
    .list-field-header-menu-popper .el-dropdown-menu__item.is-disabled:hover,
    .list-field-header-menu-popper .el-dropdown-menu__item[aria-disabled="true"]:hover { color: #526174 !important; background: transparent !important; }
    .list-field-header-menu-popper .el-dropdown-menu__item.is-active-quick.is-disabled,
    .list-field-header-menu-popper .el-dropdown-menu__item.is-active-quick[aria-disabled="true"] { color: #526174 !important; background: transparent !important; }
    body[data-theme="light"] .list-field-sort-indicator { color: #94a3b8; }
    body[data-theme="light"] .game-field-header.is-sorted .list-field-sort-indicator { color: #2563eb; text-shadow: 0 0 8px rgba(37, 99, 235, .2); }
    body[data-theme="light"] .list-field-header-menu-btn { color: #64748b; }
    body[data-theme="light"] .list-field-header-menu-btn:hover,
    body[data-theme="light"] .list-field-header-menu-btn:focus-visible { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .list-field-header-menu-popper .el-dropdown-menu__item.is-disabled,
    body[data-theme="light"] .list-field-header-menu-popper .el-dropdown-menu__item[aria-disabled="true"] { color: #a0aec0 !important; opacity: .72; }
    .game-table .action-column .cell { padding-left: 6px; padding-right: 6px; }
    .game-table .el-table-fixed-column--left.is-last-column { box-shadow: none; }
    .game-table .el-table-fixed-column--right.is-first-column { box-shadow: -6px 0 10px -8px rgba(15, 23, 42, .42); }
    .action-pill.el-button.is-link { font-weight: 900; color: #2563eb; }
    .table-actions .action-pill > span { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
    .action-pill.el-button.is-link:hover { background: #eff6ff; color: #1d4ed8; }
    .game-table.game-table--small .table-actions { gap: 4px; }
    .game-table.game-table--default .el-table__cell { padding: 5px 0; }
    .game-table.game-table--large .el-table__cell { padding: 9px 0; }
    .game-table .el-scrollbar__bar.is-horizontal {
      display: block !important;
      height: 12px;
      opacity: 1 !important;
      z-index: 8;
    }
    .game-table .el-scrollbar__bar.is-horizontal .el-scrollbar__thumb {
      height: 8px;
      opacity: 1;
      background: #8b98aa;
      border-radius: 999px;
    }
    .game-table .el-scrollbar__bar.is-horizontal:hover .el-scrollbar__thumb {
      background: #64748b;
    }
    .fast-game-table-shell { margin: 0 20px 0 0; overflow: auto; border: 1px solid #2a3038; border-radius: 4px; background: #101418; color: #e5e7eb; position: relative; }
    .app-shell.is-sidebar-collapsed .fast-game-table-shell { margin-left: 0; }
    .fast-game-table-grid { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
    .fast-game-table-grid thead th { position: sticky; top: 0; z-index: 5; height: 34px; background: #151a20; color: #e5e7eb; font-weight: 900; }
    .fast-game-table-grid tbody tr { background: #101418; }
    .fast-game-table-grid tbody tr.is-striped { background: #121820; }
    .fast-game-table-grid tbody tr:hover { background: #1b2430; }
    .fast-game-table-grid tbody tr.is-row-focused,
    .fast-game-table-grid tbody tr.is-row-focused:hover { background: #17273d; }
    .fast-game-table-grid tbody tr.is-row-focused > .fast-game-cell {
      box-shadow: inset 0 1px 0 rgba(96, 165, 250, .34), inset 0 -1px 0 rgba(96, 165, 250, .34), inset 0 0 0 9999px rgba(59, 130, 246, .08);
    }
    .fast-game-table-grid tbody tr.is-row-focused > .fast-game-cell:first-child {
      box-shadow: inset 3px 0 0 #60a5fa, inset 0 1px 0 rgba(96, 165, 250, .34), inset 0 -1px 0 rgba(96, 165, 250, .34), inset 0 0 0 9999px rgba(59, 130, 246, .08);
    }
    .fast-game-cell { min-width: 0; box-sizing: border-box; padding: 0 8px; border-right: 1px solid #2a3038; border-bottom: 1px solid #2a3038; overflow: hidden; white-space: nowrap; text-align: left; vertical-align: middle; font-weight: 600; }
    .fast-game-table-grid th.fast-game-cell { font-weight: 900; }
    .fast-game-cell.selection-cell { padding: 0; text-align: center; }
    .fast-game-cell.action-column { padding: 0 4px; }
    .fast-game-cell.sticky-select,
    .fast-game-cell.sticky-action { position: sticky; z-index: 4; }
    .fast-game-table-grid thead .sticky-select,
    .fast-game-table-grid thead .sticky-action { z-index: 7; }
    .fast-game-cell.sticky-select { left: 0; }
    .fast-game-cell.sticky-action { left: 44px; }
    .fast-game-table-grid tbody .sticky-select,
    .fast-game-table-grid tbody .sticky-action { background: inherit; }
    .fast-game-cell input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: #3b82f6; }
    .fast-game-cell .editable-cell { width: 100%; }
    .fast-game-table-shell.game-table--small .fast-game-table-grid thead th { height: 30px; }
    .fast-game-table-shell.game-table--large .fast-game-table-grid thead th { height: 42px; }
    .fast-action-btn { border: 0; background: transparent; padding: 0 4px; color: #60a5fa; font-size: 14px; font-weight: 900; line-height: 22px; cursor: pointer; }
    .fast-action-btn.icon-action-btn { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 24px; padding: 0; border: 1px solid #334155; border-radius: 6px; background: #111a26; line-height: 1; text-decoration: none; transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease; }
    .fast-action-btn.icon-action-btn.has-related-count { position: relative; }
    .fast-action-badge { position: absolute; top: 0; right: -6px; z-index: 2; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; border: 1px solid #0f172a; background: #f97316; color: #fff7ed; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
    .fast-action-btn.icon-action-btn .action-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .fast-action-btn.icon-action-btn .action-icon-dot { fill: currentColor; stroke: none; }
    .el-popper.action-icon-tooltip { min-width: 0; padding: 5px 9px !important; border: 1px solid rgba(96, 165, 250, .36) !important; border-radius: 7px; background: rgba(11, 18, 32, .96) !important; color: #eaf2ff !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 12px; font-weight: 850; line-height: 1.25; letter-spacing: 0; }
    .el-popper.action-icon-tooltip.action-icon-tooltip-warning { border-color: rgba(251, 191, 36, .42) !important; color: #ffedb5 !important; }
    .el-popper.action-icon-tooltip .el-popper__arrow::before { border-color: rgba(96, 165, 250, .36) !important; background: rgba(11, 18, 32, .96) !important; }
    .el-popper.action-icon-tooltip.action-icon-tooltip-warning .el-popper__arrow::before { border-color: rgba(251, 191, 36, .42) !important; }
    .fast-action-btn.warning { color: #fbbf24; }
    .fast-action-btn.success { color: #34d399; }
    .fast-action-btn.icon-action-btn.success { border-color: rgba(52, 211, 153, .42); background: rgba(16, 185, 129, .14); }
    .fast-action-btn:hover:not(:disabled) { color: #93c5fd; text-decoration: underline; }
    .fast-action-btn.icon-action-btn:hover:not(:disabled) { border-color: rgba(96, 165, 250, .42); background: rgba(37, 99, 235, .16); color: #bfdbfe; text-decoration: none; transform: translateY(-1px); }
    .fast-action-btn.warning:hover:not(:disabled) { color: #fcd34d; }
    .fast-action-btn.icon-action-btn.warning:hover:not(:disabled) { border-color: rgba(251, 191, 36, .48); background: rgba(245, 158, 11, .16); color: #fde68a; }
    .fast-action-btn.success:hover:not(:disabled) { color: #6ee7b7; }
    .fast-action-btn.icon-action-btn.success:hover:not(:disabled) { border-color: rgba(52, 211, 153, .55); background: rgba(16, 185, 129, .2); color: #a7f3d0; }
    .fast-action-btn:disabled { color: #64748b; cursor: not-allowed; text-decoration: none; }
    .fast-action-btn.icon-action-btn:disabled { opacity: .52; transform: none; }
    .promotion-fixed-column { background: #111827; color: #dbeafe; font-weight: 900; }
    .promotion-fixed-cell { text-align: center; }
    .promotion-staff-cell { color: #dbeafe; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .promotion-time-cell { color: #cbd5e1; font-size: 12px; font-weight: 700; }
    .fast-list-tag { display: inline-flex; align-items: center; max-width: 100%; height: 22px; padding: 0 10px; border: 1px solid #64748b; border-radius: 999px; background: #334155; color: #ffffff; font-size: 12px; font-weight: 900; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fast-list-tag--success { background: #059669; border-color: #059669; }
    .fast-list-tag--warning { background: #d97706; border-color: #d97706; }
    .fast-list-tag--danger { background: #dc2626; border-color: #dc2626; }
    .fast-list-tag--info { background: #64748b; border-color: #64748b; }
    .fast-game-empty { height: 180px; text-align: center; color: #94a3b8; font-weight: 800; }
    body[data-theme="light"] .fast-game-table-shell { background: #fff; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .fast-game-table-grid thead th { background: #f8fafc; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .fast-game-table-grid tbody tr { background: #fff; }
    body[data-theme="light"] .fast-game-table-grid tbody tr.is-striped { background: #f9fbff; }
    body[data-theme="light"] .fast-game-table-grid tbody tr:hover { background: #eef4ff; }
    body[data-theme="light"] .fast-game-table-grid tbody tr.is-row-focused,
    body[data-theme="light"] .fast-game-table-grid tbody tr.is-row-focused:hover { background: #dbeafe; }
    body[data-theme="light"] .fast-game-table-grid tbody tr.is-row-focused > .fast-game-cell {
      box-shadow: inset 0 1px 0 rgba(37, 99, 235, .34), inset 0 -1px 0 rgba(37, 99, 235, .34), inset 0 0 0 9999px rgba(37, 99, 235, .08);
    }
    body[data-theme="light"] .fast-game-table-grid tbody tr.is-row-focused > .fast-game-cell:first-child {
      box-shadow: inset 3px 0 0 #2563eb, inset 0 1px 0 rgba(37, 99, 235, .34), inset 0 -1px 0 rgba(37, 99, 235, .34), inset 0 0 0 9999px rgba(37, 99, 235, .08);
    }
    body[data-theme="light"] .fast-game-cell { border-color: #dbe1ea; }
    body[data-theme="light"] .fast-action-btn { color: #2563eb; }
    body[data-theme="light"] .fast-action-btn.icon-action-btn { border-color: #d4dde9; background: #f8fafc; }
    body[data-theme="light"] .fast-action-badge { border-color: #fff; background: #ea580c; color: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
    body[data-theme="light"] .el-popper.action-icon-tooltip { border-color: #bfdbfe !important; background: #ffffff !important; color: #1e3a8a !important; box-shadow: 0 8px 20px rgba(15, 23, 42, .16), 0 0 0 1px rgba(219, 234, 254, .78); }
    body[data-theme="light"] .el-popper.action-icon-tooltip.action-icon-tooltip-warning { border-color: #fdba74 !important; color: #9a3412 !important; box-shadow: 0 8px 20px rgba(154, 52, 18, .12), 0 0 0 1px rgba(255, 237, 213, .9); }
    body[data-theme="light"] .el-popper.action-icon-tooltip .el-popper__arrow::before { border-color: #bfdbfe !important; background: #ffffff !important; }
    body[data-theme="light"] .el-popper.action-icon-tooltip.action-icon-tooltip-warning .el-popper__arrow::before { border-color: #fdba74 !important; }
    body[data-theme="light"] .fast-action-btn.warning { color: #d97706; }
    body[data-theme="light"] .fast-action-btn.success { color: #059669; }
    body[data-theme="light"] .fast-action-btn.icon-action-btn.success { border-color: #a7f3d0; background: #ecfdf5; }
    body[data-theme="light"] .fast-action-btn:hover:not(:disabled) { color: #1d4ed8; }
    body[data-theme="light"] .fast-action-btn.icon-action-btn:hover:not(:disabled) { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .fast-action-btn.warning:hover:not(:disabled) { color: #b45309; }
    body[data-theme="light"] .fast-action-btn.icon-action-btn.warning:hover:not(:disabled) { border-color: #fdba74; background: #fff7ed; color: #b45309; }
    body[data-theme="light"] .fast-action-btn.success:hover:not(:disabled) { color: #047857; }
    body[data-theme="light"] .fast-action-btn.icon-action-btn.success:hover:not(:disabled) { border-color: #6ee7b7; background: #d1fae5; color: #047857; }
    body[data-theme="light"] .fast-action-btn:disabled { color: #94a3b8; }
    body[data-theme="light"] .promotion-fixed-column { background: #f8fafc; color: #1e3a8a; }
    body[data-theme="light"] .promotion-staff-cell { color: #1e3a8a; }
    body[data-theme="light"] .promotion-time-cell { color: #475569; }
    body[data-theme="dark"] .game-table .el-scrollbar__bar.is-horizontal .el-scrollbar__thumb {
      background: #64748b;
    }
    body[data-theme="dark"] .game-table .el-scrollbar__bar.is-horizontal:hover .el-scrollbar__thumb {
      background: #94a3b8;
    }
    .quick-edit-dialog .el-dialog__body { padding: 10px 18px 2px; }
    .quick-edit-dialog .el-dialog__footer { padding-top: 12px; }
    .quick-edit-card { display: grid; gap: 12px; }
    .quick-edit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #26313d; border-radius: 8px; background: #0f151c; }
    .quick-edit-title { color: #f8fafc; font-size: 18px; font-weight: 800; line-height: 1.25; }
    .quick-edit-sub { margin-top: 4px; color: #7f8a99; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    .quick-edit-hint { margin: 0; padding: 8px 10px; border-radius: 6px; background: rgba(59, 130, 246, .1); color: #9fb3ca; font-size: 12px; line-height: 1.5; }
    .quick-option-editor { display: grid; gap: 10px; }
    .quick-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
    .quick-choice-card { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--choice-color) 56%, #273241); border-radius: 999px; background: color-mix(in srgb, var(--choice-color) 14%, #111820); color: #dbeafe; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
    .quick-choice-card:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--choice-color) 22%, #111820); }
    .quick-choice-card.active { background: var(--choice-color); color: var(--choice-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-color) 28%, transparent); }
    .quick-choice-dot { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 999px; }
    .quick-choice-card.active .quick-choice-dot { background: currentColor; box-shadow: inset 0 0 0 2px var(--choice-color); }
    .quick-bool-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-bool-editor button { height: 40px; border: 1px solid #334155; border-radius: 8px; background: #111820; color: #cbd5e1; font-size: 15px; font-weight: 800; cursor: pointer; }
    .quick-bool-editor button.active { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
    .quick-image-editor { display: grid; gap: 12px; }
    .quick-image-toolbar { min-height: 40px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .quick-image-toolbar span { color: #9ca3af; font-size: 13px; }
    .quick-image-list { max-height: min(52vh, 420px); overflow: auto; padding-right: 4px; }
    .quick-image-empty { min-height: 120px; display: grid; place-items: center; border: 1px dashed #334155; border-radius: 8px; background: #0f151c; color: #7f8a99; font-size: 13px; }
    .quick-editor-control { width: 100%; }
    .quick-editor-control.el-textarea .el-textarea__inner { line-height: 1.6; font-size: 14px; }
    body[data-theme="light"] .quick-edit-head { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .quick-edit-title { color: #0f172a; }
    body[data-theme="light"] .quick-edit-sub { color: #64748b; }
    body[data-theme="light"] .quick-edit-hint { background: #eff6ff; color: #475569; }
    body[data-theme="light"] .quick-choice-card { background: color-mix(in srgb, var(--choice-color) 12%, #ffffff); color: #1f2937; }
    body[data-theme="light"] .quick-choice-card:hover { background: color-mix(in srgb, var(--choice-color) 18%, #ffffff); }
    body[data-theme="light"] .quick-choice-card.active { color: var(--choice-text); }
    body[data-theme="light"] .quick-bool-editor button { background: #fff; border-color: #dbe4ef; color: #334155; }
    body[data-theme="light"] .quick-bool-editor button.active { background: #2563eb; border-color: #2563eb; color: #fff; }
    body[data-theme="light"] .quick-image-toolbar span { color: #64748b; }
    body[data-theme="light"] .quick-image-empty { background: #f8fafc; border-color: #cbd5e1; color: #64748b; }
    .todo-dialog { --todo-accent: #3b82f6; --todo-danger: #ef4444; }
    .todo-dialog .el-dialog__header { padding: 18px 22px 10px; border-bottom: 1px solid #26313d; }
    .todo-dialog .el-dialog__title { color: #f8fafc; font-size: 18px; font-weight: 950; letter-spacing: 0; }
    .todo-dialog .el-dialog__body { padding: 14px 22px 6px; }
    .todo-dialog .el-dialog__footer { padding: 10px 22px 18px; border-top: 1px solid #26313d; }
    .todo-form-card { display: grid; gap: 12px; }
    .todo-target { position: relative; display: grid; gap: 5px; padding: 13px 14px 13px 18px; border: 1px solid #2a3a50; border-radius: 8px; background: linear-gradient(180deg, #101926, #0f151c); overflow: hidden; }
    .todo-target::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #60a5fa, #2563eb); }
    .todo-target span { color: #93a4b8; font-size: 12px; font-weight: 900; }
    .todo-target strong { min-width: 0; color: #f8fafc; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-target small { color: #60a5fa; font-size: 12px; font-weight: 850; }
    .todo-target-button { width: 100%; appearance: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease; }
    .todo-target-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #60a5fa; background: linear-gradient(180deg, rgba(37, 99, 235, .18), #0f151c); box-shadow: 0 12px 26px rgba(37, 99, 235, .14); }
    .todo-target-button:focus-visible { outline: 2px solid rgba(96, 165, 250, .9); outline-offset: 2px; }
    .todo-target-button:disabled { cursor: not-allowed; opacity: .68; }
    .todo-important-toggle { min-height: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #334155; border-radius: 8px; background: linear-gradient(180deg, #111820, #0f151c); color: #cbd5e1; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease; }
    .todo-important-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #1f2937; color: #94a3b8; font-size: 22px; font-weight: 950; line-height: 1; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16); }
    .todo-important-copy { min-width: 0; display: grid; gap: 4px; }
    .todo-important-copy b { min-width: 0; color: #f8fafc; font-size: 15px; font-weight: 950; line-height: 1.15; }
    .todo-important-copy small { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 850; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-important-toggle strong { justify-self: end; min-width: 58px; display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 3px 9px; border: 1px solid #475569; border-radius: 999px; background: rgba(15, 23, 42, .5); color: #94a3b8; font-size: 12px; font-weight: 950; white-space: nowrap; }
    .todo-important-toggle:hover:not(:disabled) { transform: translateY(-1px); border-color: #f87171; background: linear-gradient(180deg, rgba(127, 29, 29, .18), #111820); }
    .todo-important-toggle.active { border-color: #ef4444; background: linear-gradient(180deg, rgba(127, 29, 29, .44), rgba(69, 10, 10, .22)); box-shadow: inset 4px 0 0 #ef4444, 0 0 0 3px rgba(239, 68, 68, .16), 0 16px 34px rgba(127, 29, 29, .18); }
    .todo-important-toggle.active .todo-important-mark { background: linear-gradient(180deg, #f97316, #ef4444); color: #ffffff; box-shadow: 0 0 0 5px rgba(239, 68, 68, .18), 0 10px 20px rgba(127, 29, 29, .28); }
    .todo-important-toggle.active .todo-important-copy b { color: #ffffff; }
    .todo-important-toggle.active .todo-important-copy small { color: #fecaca; }
    .todo-important-toggle.active strong { border-color: #fca5a5; background: #ef4444; color: #ffffff; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
    .todo-important-toggle:disabled { cursor: not-allowed; opacity: .68; }
    .todo-important-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 22px; padding: 2px 8px; border: 1px solid #ef4444; border-radius: 6px; background: rgba(127, 29, 29, .28); color: #fecaca; font-size: 12px; font-weight: 950; line-height: 1.2; white-space: nowrap; }
    .todo-important-badge.compact { min-height: 18px; padding: 1px 6px; border-radius: 5px; font-size: 11px; }
    .todo-form-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 1px -4px; }
    .todo-form-section-head span { color: #dbeafe; font-size: 13px; font-weight: 950; }
    .todo-form-section-head small { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reason-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
    .todo-reason-grid button { min-height: 38px; padding: 7px 10px; border: 1px solid #334155; border-radius: 8px; background: #111820; color: #cbd5e1; font-size: 13px; font-weight: 900; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease; }
    .todo-reason-grid button:hover:not(:disabled) { transform: translateY(-1px); border-color: #60a5fa; background: #172033; color: #ffffff; }
    .todo-reason-grid button.active { border-color: #f59e0b; background: linear-gradient(180deg, #fbbf24, #f59e0b); color: #111827; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), 0 10px 20px rgba(245, 158, 11, .12); }
    .todo-reason-grid button:disabled { cursor: not-allowed; opacity: .65; }
    .todo-reason-config-preview { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
    .todo-reason-config-preview .empty-hint { align-self: center; }
    .todo-quick-time-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .todo-quick-time-grid button { min-height: 34px; padding: 6px 8px; border: 1px solid #2d3a4a; border-radius: 8px; background: #0f151c; color: #93c5fd; font-size: 12px; font-weight: 900; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease; }
    .todo-quick-time-grid button:hover:not(:disabled) { transform: translateY(-1px); border-color: #60a5fa; background: rgba(37, 99, 235, .22); color: #ffffff; }
    .todo-quick-time-grid button:disabled { cursor: not-allowed; opacity: .62; }
    .my-todo-dialog { width: min(1240px, calc(100vw - 48px)) !important; margin-top: 5vh; }
    .my-todo-dialog .el-dialog__header { padding: 16px 22px 8px; border-bottom: 1px solid #222b36; }
    .my-todo-dialog .el-dialog__title { color: #f8fafc !important; font-size: 18px; font-weight: 950; letter-spacing: 0; }
    .my-todo-dialog .el-dialog__headerbtn .el-dialog__close { color: #cbd5e1 !important; }
    .my-todo-dialog .el-dialog__headerbtn:hover .el-dialog__close { color: #ffffff !important; }
    .my-todo-dialog .el-dialog__body { padding: 14px 22px 20px; }
    .my-todo-workbench { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; min-height: min(640px, calc(100vh - 150px)); }
    .my-todo-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .my-todo-summary button { position: relative; min-width: 0; min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dot num" ". label"; align-content: center; column-gap: 9px; row-gap: 3px; padding: 10px 12px; border: 1px solid #2d3a4a; border-radius: 8px; background: #0f151c; color: #dce4ee; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease; }
    .my-todo-summary button i { grid-area: dot; align-self: center; width: 10px; height: 10px; border-radius: 999px; background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .16); }
    .my-todo-summary button.due i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
    .my-todo-summary button.important i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
    .my-todo-summary button.done i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); }
    .my-todo-summary button.cancelled i { background: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .15); }
    .my-todo-summary button.all i { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .14); }
    .my-todo-summary button:hover { transform: translateY(-1px); border-color: #60a5fa; background: #152033; }
    .my-todo-summary button.active { border-color: #3b82f6; background: rgba(37, 99, 235, .18); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .28), 0 10px 24px rgba(2, 6, 23, .18); }
    .my-todo-summary button.important.active { border-color: #ef4444; background: rgba(127, 29, 29, .2); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .24), 0 10px 24px rgba(2, 6, 23, .18); }
    .my-todo-summary button.due.active { border-color: #f59e0b; background: rgba(245, 158, 11, .16); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .24), 0 10px 24px rgba(2, 6, 23, .18); }
    .my-todo-summary button.done.active { border-color: #22c55e; background: rgba(34, 197, 94, .14); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .24), 0 10px 24px rgba(2, 6, 23, .18); }
    .my-todo-summary button.cancelled.active { border-color: #64748b; background: rgba(100, 116, 139, .16); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .24), 0 10px 24px rgba(2, 6, 23, .18); }
    .my-todo-summary strong { grid-area: num; min-width: 0; color: #f8fafc; font-size: 26px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .my-todo-summary span { grid-area: label; color: #9aa6b5; font-size: 12px; font-weight: 900; }
    .my-todo-toolbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #26313d; border-radius: 8px; background: #101720; }
    .my-todo-toolbar > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .my-todo-toolbar strong { color: #f8fafc; font-size: 15px; }
    .my-todo-toolbar span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .my-todo-batch-actions { align-items: center !important; justify-content: flex-end; }
    .my-todo-search { width: min(260px, 36vw); }
    .my-todo-batch-actions .el-button { margin-left: 0; font-weight: 850; }
    .my-todo-table.el-table { border-radius: 8px; overflow: hidden; background: #0f151c; }
    .my-todo-pager,
    .todo-admin-pager { min-height: 44px; padding: 6px 10px; border: 1px solid #26313d; border-radius: 8px; background: #0f151c; }
    .my-todo-table .el-table__header th { background: #121a24; color: #dbe7f5; font-weight: 900; }
    .my-todo-table .el-table__row td { transition: background .14s ease; }
    .my-todo-table .my-todo-row.is-important td { background: rgba(127, 29, 29, .12) !important; }
    .my-todo-table .my-todo-row.is-important td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
    .my-todo-table .my-todo-row.is-due td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
    .my-todo-table .my-todo-row.is-pending td:first-child { box-shadow: inset 4px 0 0 #60a5fa; }
    .my-todo-table .my-todo-row.is-important.is-due td:first-child,
    .my-todo-table .my-todo-row.is-important.is-pending td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
    .my-todo-table .my-todo-row.is-done { opacity: .78; }
    .my-todo-table .my-todo-row.is-done td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
    .my-todo-table .my-todo-row.is-important.is-done td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
    .my-todo-table .my-todo-row.is-cancelled { opacity: .68; }
    .my-todo-table .my-todo-row.is-cancelled td:first-child { box-shadow: inset 4px 0 0 #64748b; }
    .my-todo-status-stack { display: grid; gap: 5px; align-items: start; }
    .my-todo-status { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 26px; padding: 3px 8px; border: 1px solid #334155; border-radius: 6px; background: #172033; color: #cbd5e1; font-size: 12px; font-weight: 950; }
    .my-todo-status.due { border-color: #92400e; background: rgba(245, 158, 11, .14); color: #fbbf24; }
    .my-todo-status.done { border-color: #166534; background: rgba(34, 197, 94, .12); color: #86efac; }
    .my-todo-status.cancelled { border-color: #475569; background: rgba(100, 116, 139, .12); color: #cbd5e1; }
    .my-todo-time,
    .todo-time-cell { display: grid; gap: 2px; }
    .my-todo-time strong { color: #f8fafc; font-size: 15px; line-height: 1.1; }
    .my-todo-time span,
    .my-todo-created { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .todo-time-cell strong { color: #dbeafe; font-size: 13px; line-height: 1.15; }
    .my-todo-time small,
    .todo-time-cell small { color: #93c5fd; font-size: 11px; font-weight: 900; line-height: 1.2; }
    .my-todo-time small.due,
    .todo-time-cell small.due { color: #fbbf24; }
    .my-todo-reason-stack { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .my-todo-reason { display: inline-flex; max-width: 100%; padding: 4px 8px; border-radius: 6px; background: rgba(59, 130, 246, .14); color: #bfdbfe; font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .my-todo-record { min-width: 0; width: 100%; display: grid; gap: 3px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
    .my-todo-record strong,
    .my-todo-record span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .my-todo-record strong { color: #60a5fa; font-size: 13px; font-weight: 950; }
    .my-todo-record span { color: #cbd5e1; font-size: 12px; font-weight: 800; }
    .my-todo-record:hover strong { color: #93c5fd; }
    .my-todo-note { color: #cbd5e1; font-size: 13px; line-height: 1.45; }
    .my-todo-note.empty { color: #64748b; }
    .my-todo-actions { display: inline-grid; grid-template-columns: repeat(3, max-content); align-items: center; justify-content: start; gap: 2px 6px; max-width: 166px; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .my-todo-actions .el-button { min-height: 20px; height: 20px; margin-left: 0; padding: 0 2px; border-radius: 4px; font-size: 12px; font-weight: 900; line-height: 20px; }
    .todo-reminder-stack { position: fixed; left: 18px; bottom: 18px; z-index: 2200; width: min(390px, calc(100vw - 36px)); display: grid; gap: 10px; pointer-events: none; }
    .todo-reminder-stack.collapsed { width: auto; }
    .todo-reminder-peek { pointer-events: auto; min-width: 74px; min-height: 46px; display: grid; place-items: center; gap: 0; padding: 6px 10px; border: 1px solid #3f2f16; border-left: 4px solid #f59e0b; border-radius: 8px; background: #12181f; color: #f8fafc; box-shadow: 0 16px 36px rgba(0, 0, 0, .34); cursor: pointer; }
    .todo-reminder-stack.important .todo-reminder-peek { border-color: #7f1d1d; border-left-color: #ef4444; background: #1b1218; box-shadow: 0 16px 36px rgba(127, 29, 29, .32), 0 16px 36px rgba(0, 0, 0, .28); }
    .todo-reminder-peek strong { color: #fbbf24; font-size: 18px; line-height: 1; }
    .todo-reminder-stack.important .todo-reminder-peek strong { color: #fca5a5; }
    .todo-reminder-peek span { color: #cbd5e1; font-size: 12px; font-weight: 900; }
    .todo-reminder-stack-head { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #2d3a4a; border-left: 4px solid #f59e0b; border-radius: 8px; background: #111820; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
    .todo-reminder-stack.important .todo-reminder-stack-head { border-color: #ef4444; border-left-color: #ef4444; border-left-width: 7px; background-color: #151922; background-image: linear-gradient(180deg, #2a1118, #151922 78%); box-shadow: 0 0 0 2px rgba(239, 68, 68, .18), 0 18px 42px rgba(127, 29, 29, .32), 0 16px 36px rgba(0, 0, 0, .34); }
    .todo-reminder-stack-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
    .todo-reminder-stack-head strong { color: #f8fafc; font-size: 14px; line-height: 1.2; }
    .todo-reminder-stack-head span { min-width: 0; color: #fbbf24; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reminder-head-actions { display: flex; align-items: center; gap: 6px; }
    .todo-reminder-head-actions button { min-height: 26px; padding: 4px 8px; border: 1px solid #334155; border-radius: 6px; background: #0f151c; color: #cbd5e1; font-size: 12px; font-weight: 850; cursor: pointer; }
    .todo-reminder-head-actions .todo-reminder-collapse-btn { width: 30px; min-width: 30px; height: 28px; min-height: 28px; display: grid; place-items: center; padding: 0; line-height: 1; }
    .todo-reminder-collapse-btn::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
    .todo-reminder-head-actions button:hover:not(:disabled) { border-color: #60a5fa; background: #172033; color: #ffffff; }
    .todo-reminder-head-actions button:disabled { cursor: not-allowed; opacity: .5; }
    .todo-reminder-card { pointer-events: auto; display: grid; gap: 9px; padding: 12px; border: 1px solid #3f2f16; border-left: 4px solid #f59e0b; border-radius: 8px; background: #12181f; color: #e5e7eb; box-shadow: 0 16px 36px rgba(0, 0, 0, .34); }
    .todo-reminder-card.important { border-color: #ef4444; border-left-color: #ef4444; border-left-width: 8px; background-color: #12181f; background-image: linear-gradient(180deg, #2a1118, #12181f 74%); box-shadow: 0 0 0 2px rgba(239, 68, 68, .2), 0 20px 46px rgba(127, 29, 29, .42), 0 16px 36px rgba(0, 0, 0, .38); }
    .todo-reminder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .todo-reminder-head > div { min-width: 0; display: grid; gap: 2px; }
    .todo-reminder-head strong { color: #f8fafc; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reminder-head span { color: #fbbf24; font-size: 12px; font-weight: 800; }
    .todo-reminder-head .todo-reminder-kicker { display: inline-flex; align-items: center; gap: 6px; color: #fbbf24; font-size: 12px; font-weight: 900; }
    .todo-reminder-card.important .todo-reminder-head .todo-reminder-kicker { color: #fecaca; font-weight: 950; }
    .todo-reminder-card.important .todo-reminder-head strong { color: #ffffff; font-size: 16px; }
    .todo-reminder-card.important .todo-important-badge { border-color: #fecaca; background: #ef4444; color: #ffffff; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
    .todo-reminder-note { display: grid; gap: 4px; padding: 8px 9px; border: 1px solid #2d3a4a; border-radius: 6px; background: #0f151c; }
    .todo-reminder-note span,
    .todo-reminder-record span { color: #8d99a8; font-size: 11px; font-weight: 900; }
    .todo-reminder-note p { margin: 0; max-height: 64px; overflow: auto; color: #e5e7eb; font-size: 13px; line-height: 1.5; word-break: break-word; }
    .todo-reminder-record { width: 100%; min-height: 58px; display: grid; gap: 3px; padding: 7px 9px; border: 1px solid #2d3a4a; border-radius: 6px; background: #0f151c; color: #60a5fa; text-align: left; cursor: pointer; }
    .todo-reminder-record strong { min-width: 0; color: #60a5fa; font-size: 13px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reminder-record small { min-width: 0; color: #cbd5e1; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reminder-record:hover { border-color: #60a5fa; background: #172033; color: #93c5fd; }
    .todo-reminder-record:hover strong { color: #93c5fd; }
    .todo-reminder-card.important .todo-reminder-note { border-color: #4a1d25; background: #151922; }
    .todo-reminder-card.important .todo-reminder-record { border-color: #7f1d1d; background: #1d1117; box-shadow: inset 3px 0 0 #ef4444; }
    .todo-reminder-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
    .todo-reminder-actions .el-button { margin-left: 0; }
    .todo-reminder-more { pointer-events: auto; min-height: 34px; padding: 7px 10px; border: 1px dashed #475569; border-radius: 8px; background: #0f151c; color: #93c5fd; font-size: 13px; font-weight: 900; cursor: pointer; text-align: center; }
    .todo-reminder-more:hover { border-color: #60a5fa; background: #172033; color: #ffffff; }
    .todo-reminder-list { pointer-events: auto; max-height: min(46vh, 380px); overflow: auto; display: grid; gap: 7px; padding: 8px; border: 1px solid #2d3a4a; border-radius: 8px; background: #0f151c; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); }
    .todo-reminder-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid #243041; border-radius: 7px; background: #111820; }
    .todo-reminder-list-row.important { border-color: #7f1d1d; background: #1d1117; box-shadow: inset 4px 0 0 #ef4444; }
    .todo-reminder-list-row > button { min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
    .todo-reminder-list-row strong,
    .todo-reminder-list-row span,
    .todo-reminder-list-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-reminder-list-row strong { color: #f8fafc; font-size: 12px; }
    .todo-reminder-list-row strong .todo-important-badge { margin-right: 6px; vertical-align: 1px; }
    .todo-reminder-list-row span { color: #93c5fd; font-size: 12px; font-weight: 850; }
    .todo-reminder-list-row small { color: #fbbf24; font-size: 11px; font-weight: 850; }
    .todo-reminder-list-row > div { display: flex; align-items: center; gap: 4px; }
    .todo-reminder-list-foot { color: #8d99a8; font-size: 12px; text-align: center; }
    .todo-snooze-popover.el-popper { z-index: 2600 !important; padding: 8px; border-color: #334155; background: #111820; box-shadow: 0 16px 34px rgba(0, 0, 0, .34); }
    .todo-snooze-popover.el-popper .el-popper__arrow::before { border-color: #334155; background: #111820; }
    .todo-snooze-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .todo-snooze-grid button { min-height: 30px; padding: 5px 8px; border: 1px solid #2d3a4a; border-radius: 6px; background: #0f151c; color: #93c5fd; font-size: 12px; font-weight: 850; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease; }
    .todo-snooze-grid button:hover:not(:disabled) { transform: translateY(-1px); border-color: #60a5fa; background: rgba(37, 99, 235, .24); color: #ffffff; }
    .todo-snooze-grid button:disabled { cursor: not-allowed; opacity: .62; }
    body[data-theme="light"] .todo-dialog .el-dialog__header,
    body[data-theme="light"] .todo-dialog .el-dialog__footer { border-color: #e2e8f0; }
    body[data-theme="light"] .todo-dialog .el-dialog__title { color: #0f172a; }
    body[data-theme="light"] .todo-target { background: linear-gradient(180deg, #f8fbff, #ffffff); border-color: #dbe4ef; box-shadow: 0 10px 24px rgba(15, 23, 42, .05); }
    body[data-theme="light"] .todo-target span { color: #64748b; }
    body[data-theme="light"] .todo-target strong { color: #0f172a; }
    body[data-theme="light"] .todo-target small { color: #2563eb; }
    body[data-theme="light"] .todo-target-button:hover:not(:disabled) { border-color: #60a5fa; background: linear-gradient(180deg, #eff6ff, #ffffff); box-shadow: 0 14px 28px rgba(37, 99, 235, .12); }
    body[data-theme="light"] .todo-important-toggle { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbe4ef; color: #334155; box-shadow: 0 10px 24px rgba(15, 23, 42, .04); }
    body[data-theme="light"] .todo-important-mark { background: #eef2f7; color: #64748b; }
    body[data-theme="light"] .todo-important-copy b { color: #0f172a; }
    body[data-theme="light"] .todo-important-copy small { color: #64748b; }
    body[data-theme="light"] .todo-important-toggle strong { background: #f8fafc; border-color: #cbd5e1; color: #64748b; }
    body[data-theme="light"] .todo-important-toggle:hover:not(:disabled) { border-color: #ef4444; background: #fff7ed; }
    body[data-theme="light"] .todo-important-toggle.active { border-color: #ef4444; background: linear-gradient(180deg, #fff1f2, #fff7ed); box-shadow: inset 4px 0 0 #ef4444, 0 0 0 3px rgba(239, 68, 68, .12), 0 16px 32px rgba(127, 29, 29, .12); }
    body[data-theme="light"] .todo-important-toggle.active .todo-important-mark { background: linear-gradient(180deg, #fb923c, #ef4444); color: #ffffff; box-shadow: 0 0 0 5px rgba(239, 68, 68, .14); }
    body[data-theme="light"] .todo-important-toggle.active .todo-important-copy b { color: #991b1b; }
    body[data-theme="light"] .todo-important-toggle.active .todo-important-copy small { color: #b91c1c; }
    body[data-theme="light"] .todo-important-toggle.active strong { border-color: #ef4444; background: #ef4444; color: #ffffff; }
    body[data-theme="light"] .todo-important-badge { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
    body[data-theme="light"] .todo-form-section-head span { color: #0f172a; }
    body[data-theme="light"] .todo-form-section-head small { color: #64748b; }
    body[data-theme="light"] .todo-reason-grid button { background: #ffffff; border-color: #dbe4ef; color: #334155; }
    body[data-theme="light"] .todo-reason-grid button:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .todo-reason-grid button.active { border-color: #d97706; background: linear-gradient(180deg, #fbbf24, #f59e0b); color: #111827; box-shadow: 0 0 0 3px rgba(217, 119, 6, .14), 0 10px 20px rgba(245, 158, 11, .14); }
    body[data-theme="light"] .todo-quick-time-grid button { background: #f8fafc; border-color: #dbe4ef; color: #2563eb; }
    body[data-theme="light"] .todo-quick-time-grid button:hover:not(:disabled) { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
    body[data-theme="light"] .my-todo-dialog .el-dialog__header { border-bottom-color: #e2e8f0; }
    body[data-theme="light"] .my-todo-dialog .el-dialog__title { color: #0f172a !important; }
    body[data-theme="light"] .my-todo-dialog .el-dialog__headerbtn .el-dialog__close { color: #475569 !important; }
    body[data-theme="light"] .my-todo-summary button { background: #ffffff; border-color: #dbe4ef; color: #334155; }
    body[data-theme="light"] .my-todo-summary button:hover { border-color: #2563eb; background: #eff6ff; }
    body[data-theme="light"] .my-todo-summary button.active { border-color: #2563eb; background: #eff6ff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18), 0 10px 22px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .my-todo-summary button.important.active { border-color: #ef4444; background: #fff1f2; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .16), 0 10px 22px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .my-todo-summary button.due.active { border-color: #d97706; background: #fffbeb; box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .18), 0 10px 22px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .my-todo-summary button.done.active { border-color: #16a34a; background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .16), 0 10px 22px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .my-todo-summary button.cancelled.active { border-color: #64748b; background: #f8fafc; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .16), 0 10px 22px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .my-todo-summary strong { color: #0f172a; }
    body[data-theme="light"] .my-todo-summary span,
    body[data-theme="light"] .my-todo-toolbar span { color: #64748b; }
    body[data-theme="light"] .my-todo-toolbar { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .my-todo-toolbar strong { color: #0f172a; }
    body[data-theme="light"] .my-todo-table.el-table { background: #ffffff; }
    body[data-theme="light"] .my-todo-pager,
    body[data-theme="light"] .todo-admin-pager { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .my-todo-table .el-table__header th { background: #f8fafc; color: #0f172a; }
    body[data-theme="light"] .my-todo-table .my-todo-row.is-important td { background: #fff7ed !important; }
    body[data-theme="light"] .my-todo-status { background: #f8fafc; border-color: #dbe4ef; color: #475569; }
    body[data-theme="light"] .my-todo-status.due { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
    body[data-theme="light"] .my-todo-status.done { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
    body[data-theme="light"] .my-todo-status.cancelled { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
    body[data-theme="light"] .my-todo-time strong,
    body[data-theme="light"] .todo-time-cell strong { color: #0f172a; }
    body[data-theme="light"] .my-todo-time span,
    body[data-theme="light"] .my-todo-created { color: #64748b; }
    body[data-theme="light"] .my-todo-time small,
    body[data-theme="light"] .todo-time-cell small { color: #2563eb; }
    body[data-theme="light"] .my-todo-time small.due,
    body[data-theme="light"] .todo-time-cell small.due { color: #b45309; }
    body[data-theme="light"] .my-todo-reason { background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .my-todo-record strong { color: #2563eb; }
    body[data-theme="light"] .my-todo-record span,
    body[data-theme="light"] .my-todo-note { color: #475569; }
    body[data-theme="light"] .my-todo-note.empty { color: #94a3b8; }
    body[data-theme="light"] .my-todo-actions { background: transparent; border-color: transparent; }
    body[data-theme="light"] .todo-reminder-card { border-color: #fde68a; border-left-color: #f59e0b; background: #ffffff; color: #0f172a; box-shadow: 0 16px 32px rgba(15, 23, 42, .18); }
    body[data-theme="light"] .todo-reminder-card.important { border-color: #ef4444; border-left-color: #ef4444; border-left-width: 8px; background: linear-gradient(180deg, #fff1f2, #ffffff 76%); box-shadow: 0 0 0 2px rgba(239, 68, 68, .16), 0 18px 36px rgba(127, 29, 29, .2); }
    body[data-theme="light"] .todo-reminder-peek,
    body[data-theme="light"] .todo-reminder-stack-head { border-color: #fde68a; border-left-color: #f59e0b; background: #ffffff; color: #0f172a; box-shadow: 0 16px 32px rgba(15, 23, 42, .18); }
    body[data-theme="light"] .todo-reminder-stack.important .todo-reminder-peek { border-color: #ef4444; border-left-color: #ef4444; background: #fff1f2; box-shadow: 0 16px 32px rgba(127, 29, 29, .16); }
    body[data-theme="light"] .todo-reminder-stack.important .todo-reminder-stack-head { border-color: #ef4444; border-left-color: #ef4444; border-left-width: 7px; background: linear-gradient(180deg, #fff1f2, #ffffff); box-shadow: 0 0 0 2px rgba(239, 68, 68, .12), 0 16px 32px rgba(127, 29, 29, .16); }
    body[data-theme="light"] .todo-reminder-stack-head strong { color: #0f172a; }
    body[data-theme="light"] .todo-reminder-head-actions button,
    body[data-theme="light"] .todo-reminder-more { background: #f8fafc; border-color: #dbe4ef; color: #2563eb; }
    body[data-theme="light"] .todo-reminder-head-actions button:hover:not(:disabled),
    body[data-theme="light"] .todo-reminder-more:hover { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
    body[data-theme="light"] .todo-reminder-head strong { color: #0f172a; }
    body[data-theme="light"] .todo-reminder-note { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .todo-reminder-note span,
    body[data-theme="light"] .todo-reminder-record span { color: #64748b; }
    body[data-theme="light"] .todo-reminder-note p { color: #334155; }
    body[data-theme="light"] .todo-reminder-record { background: #f8fafc; border-color: #dbe4ef; color: #2563eb; }
    body[data-theme="light"] .todo-reminder-record strong { color: #2563eb; }
    body[data-theme="light"] .todo-reminder-record small { color: #475569; }
    body[data-theme="light"] .todo-reminder-record:hover { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
    body[data-theme="light"] .todo-reminder-record:hover strong { color: #1d4ed8; }
    body[data-theme="light"] .todo-reminder-card.important .todo-important-badge { border-color: #ef4444; background: #ef4444; color: #ffffff; box-shadow: 0 0 0 3px rgba(239, 68, 68, .14); }
    body[data-theme="light"] .todo-reminder-card.important .todo-reminder-head .todo-reminder-kicker { color: #b91c1c; }
    body[data-theme="light"] .todo-reminder-card.important .todo-reminder-head strong { color: #7f1d1d; }
    body[data-theme="light"] .todo-reminder-card.important .todo-reminder-record { border-color: #fca5a5; background: #fff1f2; box-shadow: inset 3px 0 0 #ef4444; }
    body[data-theme="light"] .todo-reminder-list { background: #ffffff; border-color: #dbe4ef; box-shadow: 0 16px 32px rgba(15, 23, 42, .18); }
    body[data-theme="light"] .todo-reminder-list-row { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .todo-reminder-list-row.important { background: #fff1f2; border-color: #fca5a5; box-shadow: inset 4px 0 0 #ef4444; }
    body[data-theme="light"] .todo-reminder-list-row strong { color: #0f172a; }
    body[data-theme="light"] .todo-reminder-list-row span { color: #2563eb; }
    body[data-theme="light"] .todo-reminder-list-foot { color: #64748b; }
    body[data-theme="light"] .todo-snooze-popover.el-popper { border-color: #dbe4ef; background: #ffffff; box-shadow: 0 16px 32px rgba(15, 23, 42, .18); }
    body[data-theme="light"] .todo-snooze-popover.el-popper .el-popper__arrow::before { border-color: #dbe4ef; background: #ffffff; }
    body[data-theme="light"] .todo-snooze-grid button { background: #f8fafc; border-color: #dbe4ef; color: #2563eb; }
    body[data-theme="light"] .todo-snooze-grid button:hover:not(:disabled) { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
    @media (max-width: 640px) {
      .my-todo-dialog { width: calc(100vw - 20px) !important; margin-top: 2vh; }
      .my-todo-dialog .el-dialog__header { padding-left: 14px; padding-right: 14px; }
      .my-todo-dialog .el-dialog__body { padding-left: 14px; padding-right: 14px; }
      .my-todo-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .todo-reminder-stack { left: 12px; right: 12px; bottom: 12px; width: auto; }
      .todo-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .todo-quick-time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    .column-drawer.el-drawer { width: min(500px, calc(100vw - 18px)) !important; background: #0b1118; }
    .column-drawer .el-drawer__header { margin-bottom: 0; padding: 10px 14px 8px; border-bottom: 1px solid #202a36; background: linear-gradient(180deg, #111a26 0%, #0b1118 100%); }
    .column-drawer .el-drawer__title { color: #edf5ff; font-size: 16px; font-weight: 900; letter-spacing: 0; }
    .column-drawer .el-drawer__close-btn { width: 26px; height: 26px; border-radius: 7px; color: #94a3b8; }
    .column-drawer .el-drawer__close-btn:hover { background: rgba(96, 165, 250, .12); color: #dbeafe; }
    .column-drawer .el-drawer__body { min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 8px; overflow: hidden; }
    .column-drawer .el-drawer__footer { padding: 8px 10px 10px; border-top: 1px solid #202a36; background: #0b1118; }
    .column-drawer .el-drawer__footer .el-button { min-width: 64px; height: 30px; border-radius: 7px; font-weight: 800; }
    .column-drawer-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; }
    .column-drawer-summary div { position: relative; min-height: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 5px; overflow: hidden; padding: 5px 6px 5px 9px; border: 1px solid #263244; border-radius: 7px; background: #0f1722; box-shadow: none; }
    .column-drawer-summary div::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 0 999px 999px 0; background: #60a5fa; }
    .column-drawer-summary div:nth-child(2)::before { background: #94a3b8; }
    .column-drawer-summary div:nth-child(3)::before { background: #22c55e; }
    .column-drawer-summary div:nth-child(4)::before { background: #f59e0b; }
    .column-drawer-summary div.is-draft { border-color: rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .1); }
    .column-drawer-summary strong { color: #f8fafc; font-size: 17px; line-height: 1; font-weight: 900; }
    .column-drawer-summary span { max-width: 100%; color: #9aa8ba; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .column-drawer-summary div.is-draft span { color: #fbbf24; }
    .column-drawer-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; }
    .column-drawer-actions .el-button { min-width: 0; height: 28px; margin-left: 0; padding-left: 6px; padding-right: 6px; border-radius: 7px; font-size: 12px; font-weight: 850; }
    .column-drawer-actions .el-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .column-drawer-actions .el-button--warning.is-plain { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .46); color: #fbbf24; }
    .column-drawer-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; margin: 0; }
    .column-drawer-search .el-input__wrapper { min-height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px #263244 inset; background: #0f1722; }
    .column-drawer-search .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #3b82f6 inset, 0 0 0 3px rgba(59, 130, 246, .12); }
    .column-drawer-search span { min-width: 56px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid #263244; border-radius: 999px; background: #111a26; color: #9aa8ba; font-size: 11px; font-weight: 850; white-space: nowrap; }
    .column-mode-tabs { position: relative; z-index: 1; flex: 0 0 auto; display: flex; gap: 3px; margin: 0 0 2px; padding: 3px; border: 1px solid #263244; border-radius: 8px; background: #0f1722; }
    .column-mode-tabs button { flex: 1 1 0; min-width: 0; height: 25px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #9aa8ba; font-size: 12px; font-weight: 900; line-height: 1; white-space: nowrap; cursor: pointer; }
    .column-mode-tabs button:hover { background: #172033; color: #dbeafe; }
    .column-mode-tabs button.active { background: #2563eb; color: #ffffff; box-shadow: 0 8px 18px rgba(37, 99, 235, .22); }
    .column-drawer-hint { position: relative; z-index: 2; flex: 0 0 auto; min-height: 23px; display: flex; align-items: center; margin: 0; padding: 5px 8px 5px 9px; box-sizing: border-box; border: 1px solid rgba(59, 130, 246, .22); border-left: 3px solid #3b82f6; border-radius: 7px; background: rgba(59, 130, 246, .08); color: #a9bad0; font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .column-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow: auto; padding: 1px 4px 1px 0; scrollbar-width: thin; }
    .column-list::-webkit-scrollbar { width: 8px; }
    .column-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #334155; }
    .column-list::-webkit-scrollbar-track { background: transparent; }
    .column-config-row { min-height: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid #263244; border-radius: 6px; background: #0f1722; transition: border-color .15s ease, background .15s ease; }
    .column-config-row:hover { border-color: #3b82f6; background: #111c2d; }
    .column-config-main { min-width: 0; display: flex; align-items: center; }
    .column-visible-check.el-checkbox { height: 21px; max-width: 100%; margin-right: 0; }
    .column-visible-check .el-checkbox__inner { width: 12px; height: 12px; border-radius: 3px; }
    .column-visible-check .el-checkbox__label { min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; padding-left: 5px; }
    .column-config-name { min-width: 0; color: #dbeafe; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .column-config-sub { max-width: 112px; padding: 1px 5px; border: 1px solid #263244; border-radius: 999px; background: #111827; color: #7f8ea3; font-size: 10px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .column-config-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; flex-shrink: 0; }
    .column-config-actions .el-button { height: 20px; padding: 0 4px; border: 1px solid transparent; border-radius: 5px; color: #a9bad0; font-size: 12px; font-weight: 850; }
    .column-config-actions .el-button:hover:not(.is-disabled) { border-color: #334155; background: #172033; color: #60a5fa; }
    .column-position-input { width: 38px; height: 22px; padding: 0 3px; border: 1px solid #334155; border-radius: 6px; background: #0b1220; color: #dbeafe; font-size: 12px; font-weight: 850; text-align: center; outline: none; }
    .column-position-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, .18); }
    .column-position-input:disabled { opacity: .55; cursor: not-allowed; }
    .column-position-input::-webkit-inner-spin-button,
    .column-position-input::-webkit-outer-spin-button { margin: 0; }
    .column-quick-check.el-checkbox { height: 20px; margin-right: 0; padding: 0 5px; border: 1px solid #334155; border-radius: 999px; background: #111827; }
    .column-quick-check.is-checked { border-color: rgba(37, 99, 235, .65); background: rgba(37, 99, 235, .14); }
    .column-quick-check .el-checkbox__inner { width: 11px; height: 11px; border-radius: 3px; }
    .column-quick-check .el-checkbox__label { padding-left: 4px; color: #a9bad0; font-size: 12px; font-weight: 850; }
    .column-quick-check.is-checked .el-checkbox__label { color: #dbeafe; }
    .column-readonly-mark { min-width: 40px; padding: 1px 5px; border-radius: 999px; background: #151f2c; color: #8290a2; font-size: 11px; font-weight: 800; text-align: center; }
    .column-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 0; border: 1px dashed #334155; border-radius: 10px; color: #8d99a8; font-size: 13px; text-align: center; }
    .column-empty .el-button { height: 26px; margin-left: 0; padding: 0 8px; border-radius: 7px; }
    .column-drawer-warning { margin: 0; padding: 8px 10px; border-radius: 9px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .34); color: #fbbf24; font-size: 12px; line-height: 1.45; }
    body[data-theme="light"] .column-drawer.el-drawer { background: #f6f9fd; }
    body[data-theme="light"] .column-drawer .el-drawer__header { border-bottom-color: #dbe4ef; background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%); }
    body[data-theme="light"] .column-drawer .el-drawer__title { color: #0f172a; }
    body[data-theme="light"] .column-drawer .el-drawer__close-btn { color: #64748b; }
    body[data-theme="light"] .column-drawer .el-drawer__close-btn:hover { background: #eff6ff; color: #2563eb; }
    body[data-theme="light"] .column-drawer .el-drawer__footer { border-top-color: #dbe4ef; background: #ffffff; }
    body[data-theme="light"] .column-drawer-summary div { background: #ffffff; border-color: #dbe4ef; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
    body[data-theme="light"] .column-drawer-summary strong { color: #0f172a; }
    body[data-theme="light"] .column-drawer-summary span { color: #64748b; }
    body[data-theme="light"] .column-drawer-search .el-input__wrapper { background: #ffffff; box-shadow: 0 0 0 1px #dbe4ef inset; }
    body[data-theme="light"] .column-drawer-search .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #3b82f6 inset, 0 0 0 3px rgba(59, 130, 246, .12); }
    body[data-theme="light"] .column-drawer-search span { background: #ffffff; border-color: #dbe4ef; color: #64748b; }
    body[data-theme="light"] .column-mode-tabs { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .column-mode-tabs button { color: #64748b; }
    body[data-theme="light"] .column-mode-tabs button:hover { background: #eff6ff; color: #1d4ed8; }
    body[data-theme="light"] .column-mode-tabs button.active { background: #2563eb; color: #ffffff; }
    body[data-theme="light"] .column-drawer-hint { background: #eff6ff; border-color: #bfdbfe; border-left-color: #3b82f6; color: #475569; }
    body[data-theme="light"] .column-drawer-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
    body[data-theme="light"] .column-list::-webkit-scrollbar-thumb { background: #cbd5e1; }
    body[data-theme="light"] .column-config-row { background: #ffffff; border-color: #dbe4ef; box-shadow: 0 8px 18px rgba(15, 23, 42, .04); }
    body[data-theme="light"] .column-config-row:hover { background: #f8fbff; border-color: #93c5fd; }
    body[data-theme="light"] .column-config-name { color: #1d4ed8; }
    body[data-theme="light"] .column-config-sub { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; }
    body[data-theme="light"] .column-config-actions .el-button { color: #64748b; }
    body[data-theme="light"] .column-config-actions .el-button:hover:not(.is-disabled) { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
    body[data-theme="light"] .column-position-input { background: #ffffff; border-color: #cbd5e1; color: #0f172a; }
    body[data-theme="light"] .column-position-input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .14); }
    body[data-theme="light"] .column-quick-check.el-checkbox { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .column-quick-check.is-checked { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .column-quick-check .el-checkbox__label { color: #64748b; }
    body[data-theme="light"] .column-quick-check.is-checked .el-checkbox__label { color: #1d4ed8; }
    body[data-theme="light"] .column-readonly-mark { background: #f1f5f9; color: #8290a2; }
    body[data-theme="light"] .column-empty { border-color: #cbd5e1; color: #64748b; }
    @media (max-width: 560px) {
      .column-drawer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .column-config-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
      .column-config-actions { justify-content: flex-start; flex-wrap: wrap; }
    }
    .advanced-filter-list { display: grid; gap: 10px; margin-left: 0; }
    .advanced-filter-row { display: grid; grid-template-columns: 1fr 108px; gap: 8px; padding: 10px; border: 1px solid #252c35; border-radius: 8px; background: #111820; }
    .advanced-filter-row .el-input { grid-column: 1 / -1; }
    .advanced-filter-row .el-button { justify-self: start; padding-left: 0; }
    .advanced-add { margin-top: 10px; margin-left: 90px; }
    .filter-view-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; margin: 0 0 14px 90px; border: 1px solid #252c35; border-radius: 8px; background: #111820; }
    .filter-view-box .el-button { width: 100%; }
    body[data-theme="light"] .advanced-filter-row { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .filter-view-box { background: #f8fafc; border-color: #dbe1ea; }
    .money-cell { font-weight: 700; }
    .check-cell .cell { display: flex; align-items: center; }
    .content-area { flex: 1; min-height: 0; padding: 22px 24px; overflow: auto; }
    .content-toolbar { min-height: 48px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
    .audit-shortcuts { min-height: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -8px 0 12px; color: #8d99a8; font-size: 12px; }
    .audit-shortcuts .el-button { margin-left: 0; padding: 5px 9px; }
    body[data-theme="light"] .audit-shortcuts { color: #64748b; }
    .audit-page { min-width: 0; height: 100%; box-sizing: border-box; overflow: hidden; }
    .audit-layout { min-width: 0; height: 100%; min-height: 0; display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 14px; align-items: stretch; }
    .audit-category-panel { min-width: 0; min-height: 0; overflow: auto; border: 1px solid #2a3038; border-radius: 8px; background: #111820; padding: 14px; }
    .audit-category-item { width: 100%; display: grid; gap: 4px; padding: 10px 11px; margin-top: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #cbd5e1; text-align: left; cursor: pointer; }
    .audit-category-item strong { font-size: 14px; line-height: 1.2; }
    .audit-category-item span { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .audit-category-item:hover { background: #172233; border-color: #334155; }
    .audit-category-item.active { background: #0f3f8a; border-color: #2563eb; color: #ffffff; }
    .audit-category-item.active span { color: #dbeafe; }
    .audit-workspace { min-width: 0; min-height: 0; align-self: stretch; display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
    .audit-toolbar { justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
    .audit-filter-row { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
    .audit-filter-row .keyword { width: min(360px, 100%); }
    .audit-fill-table { flex: 1 1 auto; min-height: 0; }
    .audit-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .audit-row-actions .el-button { margin-left: 0; }
    .audit-detail-drawer.audit-detail-drawer-narrow { width: min(620px, 76vw) !important; }
    .audit-detail-drawer.audit-detail-drawer-wide { width: min(860px, 92vw) !important; }
    .audit-detail-drawer .el-drawer__body { padding-top: 10px; }
    .audit-detail-drawer-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
    .audit-detail-drawer-header strong { min-width: 0; color: #f8fafc; font-size: 16px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .audit-detail-drawer-header .el-button-group { flex: 0 0 auto; }
    .audit-object-cell { min-width: 0; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
    .audit-object-cell > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .audit-record-link { display: inline-flex; align-items: center; border: 0; border-radius: 4px; padding: 1px 4px; background: #2563eb; color: #ffffff; font: inherit; font-weight: 800; line-height: 1.35; text-decoration: none; cursor: pointer; }
    .audit-record-link:hover { background: #1d4ed8; text-decoration: underline; }
    .audit-object-link { color: #3b82f6; font-weight: 800; text-decoration: none; }
    .audit-object-link:hover { color: #60a5fa; text-decoration: underline; }
    body[data-theme="light"] .audit-object-link { color: #2563eb; }
    body[data-theme="light"] .audit-object-link:hover { color: #1d4ed8; }
    .audit-record-id { color: #93a4b8; font-weight: 700; }
    .blacklist-drawer-header { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 34px; box-sizing: border-box; }
    .blacklist-drawer-header strong { min-width: 0; color: #f8fafc; font-size: 16px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .blacklist-drawer-header .el-dropdown { flex: 0 0 auto; }
    .audit-detail-head { display: grid; gap: 6px; margin-bottom: 12px; padding: 12px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .audit-detail-head div { min-width: 0; display: flex; align-items: center; gap: 8px; }
    .audit-detail-head strong { min-width: 0; color: #f8fafc; font-size: 15px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .audit-detail-head span { color: #8d99a8; font-size: 12px; line-height: 1.5; }
    .audit-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
    .audit-detail-item { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .audit-detail-item span,
    .audit-related-card span,
    .audit-detail-value-card span { color: #8d99a8; font-size: 12px; line-height: 1.35; }
    .audit-detail-item strong { min-width: 0; color: #dce4ee; font-size: 13px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .audit-related-card { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #1d4ed8; border-radius: 8px; background: rgba(37, 99, 235, 0.12); }
    .audit-related-card div { min-width: 0; display: grid; gap: 4px; }
    .audit-related-card strong { min-width: 0; color: #dbeafe; font-size: 13px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .audit-related-card .el-button { flex: 0 0 auto; }
    .audit-detail-values { display: grid; gap: 10px; }
    .audit-detail-value-card { min-width: 0; display: grid; gap: 6px; padding: 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .audit-detail-value-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .audit-detail-value-head .el-button { flex: 0 0 auto; padding: 0; height: auto; }
    .audit-detail-value-card pre { max-height: 220px; overflow: auto; margin: 0; color: #dce4ee; font-family: inherit; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
    .audit-detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
    .audit-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .audit-detail-nav { min-width: 0; display: flex; align-items: center; gap: 8px; color: #8d99a8; font-size: 12px; }
    .audit-detail-nav-text { white-space: nowrap; }
    .audit-detail-footer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }
    .audit-snapshot-dialog .el-dialog__body { padding-top: 8px; }
    .audit-snapshot-head { display: grid; gap: 4px; margin-bottom: 12px; }
    .audit-snapshot-head strong { color: #f8fafc; }
    .audit-snapshot-head span { color: #8d99a8; font-size: 12px; line-height: 1.5; }
    .audit-snapshot-filter { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
    .audit-snapshot-filter .el-input { width: min(280px, 100%); }
    .audit-snapshot-filter span { flex: 0 0 auto; min-width: 64px; text-align: right; }
    .audit-snapshot-value { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
    .audit-snapshot-raw { max-height: 520px; overflow: auto; margin: 0; padding: 12px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; color: #dce4ee; white-space: pre-wrap; word-break: break-word; }
    .audit-snapshot-footer { display: flex; justify-content: flex-end; gap: 8px; }
    body[data-theme="light"] .audit-category-panel { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .audit-category-item { color: #334155; }
    body[data-theme="light"] .audit-category-item span { color: #64748b; }
    body[data-theme="light"] .audit-category-item:hover { background: #f8fafc; border-color: #cbd5e1; }
    body[data-theme="light"] .audit-category-item.active { background: #e8f1ff; border-color: #93c5fd; color: #1d4ed8; }
    body[data-theme="light"] .audit-category-item.active span { color: #1e40af; }
    body[data-theme="light"] .audit-detail-head,
    body[data-theme="light"] .audit-detail-item,
    body[data-theme="light"] .audit-detail-value-card { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .audit-related-card { background: #eff6ff; border-color: #bfdbfe; }
    body[data-theme="light"] .audit-detail-drawer-header strong { color: #111827; }
    body[data-theme="light"] .blacklist-drawer-header strong { color: #111827; }
    body[data-theme="light"] .audit-detail-head strong,
    body[data-theme="light"] .audit-detail-item strong,
    body[data-theme="light"] .audit-related-card strong,
    body[data-theme="light"] .audit-detail-value-card pre { color: #111827; }
    body[data-theme="light"] .audit-detail-head span,
    body[data-theme="light"] .audit-detail-item span,
    body[data-theme="light"] .audit-related-card span,
    body[data-theme="light"] .audit-detail-value-card span { color: #64748b; }
    body[data-theme="light"] .audit-snapshot-head strong { color: #111827; }
    body[data-theme="light"] .audit-snapshot-head span { color: #64748b; }
    body[data-theme="light"] .audit-snapshot-raw { background: #f8fafc; border-color: #dbe1ea; color: #111827; }
    @media (max-width: 820px) {
      .audit-layout { grid-template-columns: 1fr; }
      .audit-detail-grid { grid-template-columns: 1fr; }
      .audit-related-card { align-items: stretch; flex-direction: column; }
      .audit-related-card .el-button { width: 100%; }
    }
    .mini-toolbar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #aeb8c5; margin: 6px 0 10px; }
    body[data-theme="light"] .mini-toolbar { color: #64748b; }
    .color-rule-dialog .el-dialog__body { padding-top: 10px; }
    .color-rule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
    .color-rule-head div { min-width: 0; display: grid; gap: 4px; }
    .color-rule-head strong { color: #e5e7eb; font-size: 15px; }
    .color-rule-head span { color: #8d99a8; font-size: 13px; line-height: 1.45; }
    .color-rule-head-actions { flex: 0 0 auto; display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
    .color-rule-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
    .color-rule-summary span { padding: 4px 10px; border: 1px solid #2a3038; border-radius: 999px; background: #111820; color: #aeb8c5; font-size: 12px; }
    .color-rule-summary .warn, .color-rule-preview .warn { color: #f59e0b; }
    .color-rule-preview { min-width: 0; display: grid; gap: 4px; }
    .color-rule-chip { width: max-content; max-width: 100%; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .color-rule-preview small { color: #22c55e; font-size: 12px; }
    .color-rule-preview .color-rule-assignment { color: #93c5fd; }
    .color-rule-preview em { color: #8d99a8; font-style: normal; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .color-rule-source { min-width: 0; display: grid; gap: 5px; }
    .color-rule-source small { color: #94a3b8; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .color-rule-targets { min-width: 0; display: grid; gap: 6px; }
    .color-rule-targets .el-checkbox { height: 24px; }
    .color-rule-targets .el-select { width: 100%; }
    body[data-theme="light"] .color-rule-head strong { color: #0f172a; }
    body[data-theme="light"] .color-rule-head span,
    body[data-theme="light"] .color-rule-preview em,
    body[data-theme="light"] .color-rule-source small { color: #64748b; }
    body[data-theme="light"] .color-rule-preview .color-rule-assignment { color: #2563eb; }
    body[data-theme="light"] .color-rule-summary span { background: #f8fafc; border-color: #dbe1ea; color: #475569; }
    .upload-drag-title { font-weight: 700; margin: 6px 0; color: #dce4ee; }
    .import-summary { min-height: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; color: #aeb8c5; }
    .import-summary-card { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
    .import-summary-card > div { min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #10151c; }
    .import-summary-card span { color: #8d99a8; font-size: 12px; }
    .import-summary-card strong { color: #e5e7eb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .import-result-panel { display: grid; gap: 10px; }
    .related-dialog:not(.is-fullscreen) { width: 96vw; max-width: 96vw; height: 96vh; max-height: 96vh; margin-top: 2vh; display: flex; flex-direction: column; }
    .related-dialog:not(.is-fullscreen) .el-dialog__header { flex: 0 0 auto; padding: 14px 18px 8px; margin-right: 0; }
    .related-dialog:not(.is-fullscreen) .el-dialog__body { flex: 1 1 auto; min-height: 0; padding: 8px 18px 14px; overflow: hidden; }
    .related-grid { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
    .related-grid .analysis-panel { min-width: 0; padding: 14px; }
    .related-panel-compact { flex: 0 0 auto; }
    .related-panel-main { flex: 1 1 auto; min-height: 260px; display: flex; flex-direction: column; }
    .related-panel-main > .el-table { flex: 1 1 auto; min-height: 0; }
    .related-grid .section-title { margin-bottom: 8px; font-size: 14px; }
    .related-empty-compact { min-height: 34px; display: flex; align-items: center; justify-content: center; border: 1px dashed #2a3038; border-radius: 6px; color: #7f8a99; font-size: 13px; }
    .related-pagination { display: flex; justify-content: flex-end; padding-top: 10px; }
    .related-grid .el-table .related-same-customer-row-pigeon > td.el-table__cell { background: #7f1d1d !important; color: #fff7ed; font-weight: 700; }
    .related-grid .el-table .related-same-customer-row-pigeon:hover > td.el-table__cell { background: #991b1b !important; }
    body[data-theme="light"] .related-empty-compact { border-color: #dbe4f0; color: #64748b; background: #f8fafc; }
    body[data-theme="light"] .related-grid .el-table .related-same-customer-row-pigeon > td.el-table__cell { background: #fee2e2 !important; color: #7f1d1d; }
    body[data-theme="light"] .related-grid .el-table .related-same-customer-row-pigeon:hover > td.el-table__cell { background: #fecaca !important; }
    .balance-page { gap: 12px; scroll-padding-top: 12px; }
    .balance-workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: stretch; }
    .balance-control-panel,
    .balance-manual-panel,
    .balance-account-panel { padding: 12px 16px; }
    .balance-section-head { min-height: 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .balance-section-head .section-title { margin-bottom: 2px; }
    .balance-permission-notice { margin-top: 5px; display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid rgba(245, 158, 11, .36); border-radius: 999px; background: rgba(245, 158, 11, .12); color: #fbbf24; font-size: 12px; font-weight: 900; }
    .balance-permission-notice-compact { margin: 8px 0 0; }
    .balance-control-compact { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
    .balance-control-title { min-width: 142px; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; overflow: hidden; }
    .balance-control-title .section-title { margin-bottom: 0; white-space: nowrap; }
    .balance-control-title .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .balance-control-row { min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
    .balance-control-row .el-segmented { max-width: 100%; }
    .balance-control-row .el-segmented__group { flex-wrap: nowrap; row-gap: 0; }
    .balance-control-row .el-segmented__item { padding: 0 9px; }
    .balance-control-label { width: auto; flex: 0 0 auto; color: #93a4b8; font-weight: 800; white-space: nowrap; }
    .balance-control-range-row .el-date-editor.el-input__wrapper,
    .balance-control-range-row .el-date-editor.el-input { width: 280px; }
    .balance-account-select { width: 220px; max-width: 100%; }
    .balance-manual-panel { display: flex; flex-direction: column; justify-content: flex-start; }
    .balance-manual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .balance-manual-actions .el-button { width: 100%; margin-left: 0; font-weight: 900; }
    .balance-action-income.el-button:not(.is-link):not(.is-text) {
      --el-button-bg-color: #dc2626;
      --el-button-border-color: #b91c1c;
      --el-button-text-color: #ffffff;
      --el-button-hover-bg-color: #ef4444;
      --el-button-hover-border-color: #dc2626;
      --el-button-hover-text-color: #ffffff;
      --el-button-active-bg-color: #b91c1c;
      --el-button-active-border-color: #991b1b;
      --el-button-active-text-color: #ffffff;
      --el-button-disabled-bg-color: rgba(220, 38, 38, .48);
      --el-button-disabled-border-color: rgba(185, 28, 28, .42);
      --el-button-disabled-text-color: rgba(255, 255, 255, .72);
      font-weight: 900;
    }
    .topbar-balance-actions .balance-action-income.el-button:not(.is-link):not(.is-text),
    .balance-manual-actions .balance-action-income.el-button:not(.is-link):not(.is-text),
    .balance-expense-dialog .balance-action-income.el-button:not(.is-link):not(.is-text) {
      background-color: #dc2626 !important;
      border-color: #b91c1c !important;
      color: #ffffff !important;
    }
    .balance-action-outcome.el-button:not(.is-link):not(.is-text) {
      --el-button-bg-color: #16a34a;
      --el-button-border-color: #15803d;
      --el-button-text-color: #ffffff;
      --el-button-hover-bg-color: #22c55e;
      --el-button-hover-border-color: #16a34a;
      --el-button-hover-text-color: #052e16;
      --el-button-active-bg-color: #15803d;
      --el-button-active-border-color: #166534;
      --el-button-active-text-color: #ffffff;
      --el-button-disabled-bg-color: rgba(22, 163, 74, .48);
      --el-button-disabled-border-color: rgba(21, 128, 61, .42);
      --el-button-disabled-text-color: rgba(255, 255, 255, .72);
      font-weight: 900;
    }
    .topbar-balance-actions .balance-action-outcome.el-button:not(.is-link):not(.is-text),
    .balance-manual-actions .balance-action-outcome.el-button:not(.is-link):not(.is-text),
    .balance-expense-dialog .balance-action-outcome.el-button:not(.is-link):not(.is-text) {
      background-color: #16a34a !important;
      border-color: #15803d !important;
      color: #ffffff !important;
    }
    body[data-theme="dark"] .topbar-balance-actions .balance-action-income.el-button:not(.is-link):not(.is-text),
    body[data-theme="dark"] .balance-manual-actions .balance-action-income.el-button:not(.is-link):not(.is-text),
    body[data-theme="dark"] .balance-expense-dialog .balance-action-income.el-button:not(.is-link):not(.is-text) {
      --el-button-bg-color: #ef4444;
      --el-button-border-color: #dc2626;
      --el-button-text-color: #ffffff;
      --el-button-hover-bg-color: #f87171;
      --el-button-hover-border-color: #ef4444;
      --el-button-hover-text-color: #ffffff;
      background-color: #ef4444 !important;
      border-color: #dc2626 !important;
      color: #ffffff !important;
      box-shadow: 0 8px 18px rgba(239, 68, 68, .22);
    }
    body[data-theme="dark"] .topbar-balance-actions .balance-action-outcome.el-button:not(.is-link):not(.is-text),
    body[data-theme="dark"] .balance-manual-actions .balance-action-outcome.el-button:not(.is-link):not(.is-text),
    body[data-theme="dark"] .balance-expense-dialog .balance-action-outcome.el-button:not(.is-link):not(.is-text) {
      --el-button-bg-color: #22c55e;
      --el-button-border-color: #16a34a;
      --el-button-text-color: #052e16;
      --el-button-hover-bg-color: #4ade80;
      --el-button-hover-border-color: #22c55e;
      --el-button-hover-text-color: #052e16;
      background-color: #22c55e !important;
      border-color: #16a34a !important;
      color: #052e16 !important;
      box-shadow: 0 8px 18px rgba(34, 197, 94, .2);
    }
    .balance-manual-locked { padding: 12px; border: 1px dashed #334155; border-radius: 8px; color: #93a4b8; background: rgba(148, 163, 184, .08); }
    .toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .balance-summary-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
    .balance-summary-card { min-height: 64px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 14px 10px; border: 1px solid #263241; background: linear-gradient(180deg, #131b27, #101722); box-shadow: 0 6px 14px rgba(2, 6, 23, .10); }
    .balance-summary-card::before { content: ""; position: absolute; left: 14px; top: 9px; width: 28px; height: 3px; border-radius: 999px; background: #64748b; }
    .balance-summary-card span { margin-top: 6px; color: #94a3b8; font-size: 12px; font-weight: 800; }
    .balance-summary-card strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: 0; }
    .balance-summary-card.primary { background: linear-gradient(180deg, rgba(37, 99, 235, .14), #101722); }
    .balance-summary-card.income { background: linear-gradient(180deg, rgba(220, 38, 38, .12), #101722); }
    .balance-summary-card.outcome { background: linear-gradient(180deg, rgba(22, 163, 74, .12), #101722); }
    .balance-summary-card.muted-card { background: linear-gradient(180deg, rgba(148, 163, 184, .10), #101722); }
    .balance-summary-card.primary::before { background: #2563eb; }
    .balance-summary-card.income::before { background: #dc2626; }
    .balance-summary-card.outcome::before { background: #16a34a; }
    .balance-summary-card.muted-card::before { background: #94a3b8; }
    .balance-summary-card.primary strong { color: #60a5fa; }
    .balance-summary-card.income strong { color: #f87171; }
    .balance-summary-card.outcome strong { color: #22c55e; }
    .balance-summary-card.muted-card strong { color: #cbd5e1; }
    .balance-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
    .balance-account-card { min-width: 0; min-height: 96px; display: grid; gap: 6px; padding: 12px; text-align: left; color: #e5e7eb; background: #111820; border: 1px solid #2a3038; border-radius: 8px; cursor: pointer; }
    .balance-account-card.is-active { outline: 3px solid #2563eb; outline-offset: -3px; box-shadow: 0 0 0 1px rgba(37, 99, 235, .35), 0 10px 24px rgba(37, 99, 235, .2); }
    .balance-account-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #93a4b8; }
    .balance-account-card strong { font-size: 22px; line-height: 1.2; }
    .balance-account-card small { color: #8d99a8; }
    .balance-account-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
    .balance-flow-income { color: #f87171; }
    .balance-flow-outcome { color: #22c55e; }
    .balance-flow-separator { color: #64748b; }
    .balance-diff-analysis-panel { display: grid; gap: 10px; border-color: rgba(251, 146, 60, .38); background: linear-gradient(180deg, rgba(251, 146, 60, .08), rgba(17, 24, 32, .98)); }
    .balance-diff-match-list { display: grid; gap: 8px; }
    .balance-diff-match-card { min-width: 0; display: grid; gap: 8px; padding: 10px; border: 1px solid #334155; border-radius: 8px; background: #0f1722; }
    .balance-diff-match-card.is-high { border-color: rgba(248, 113, 113, .65); box-shadow: inset 3px 0 0 #ef4444; }
    .balance-diff-match-card.is-medium { border-color: rgba(251, 146, 60, .62); box-shadow: inset 3px 0 0 #f97316; }
    .balance-diff-match-card.is-low { border-color: rgba(148, 163, 184, .55); box-shadow: inset 3px 0 0 #94a3b8; }
    .balance-diff-match-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .balance-diff-match-head div { min-width: 0; display: grid; gap: 3px; }
    .balance-diff-match-head strong { color: #f8fafc; font-size: 15px; }
    .balance-diff-match-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #93a4b8; font-size: 12px; }
    .balance-diff-match-head em { flex: 0 0 auto; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border-radius: 999px; background: #fff7ed; color: #b91c1c; font-size: 12px; font-style: normal; font-weight: 950; }
    .balance-diff-flow { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) 22px minmax(0, 1.1fr) minmax(120px, .6fr); gap: 8px; align-items: stretch; }
    .balance-diff-flow > div:not(.balance-diff-arrow) { min-width: 0; display: grid; gap: 4px; padding: 8px 10px; border: 1px solid #263241; border-radius: 7px; background: #111820; }
    .balance-diff-flow span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .balance-diff-flow strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e5e7eb; font-size: 13px; }
    .balance-diff-flow .is-short strong { color: #22c55e; }
    .balance-diff-flow .is-over strong { color: #f87171; }
    .balance-diff-total strong { color: #fbbf24; }
    .balance-diff-arrow { display: flex; align-items: center; justify-content: center; color: #fbbf24; font-size: 20px; font-weight: 1000; }
    .balance-diff-ledgers { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .balance-diff-ledgers > span { color: #93a4b8; font-size: 12px; font-weight: 900; }
    .balance-diff-ledgers button { max-width: 360px; min-height: 26px; padding: 0 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(96, 165, 250, .42); border-radius: 999px; background: rgba(37, 99, 235, .16); color: #bfdbfe; font-size: 12px; font-weight: 850; cursor: pointer; }
    .balance-diff-ledgers button:hover { border-color: #60a5fa; color: #ffffff; }
    .balance-diff-empty { padding: 10px; border: 1px dashed #334155; border-radius: 8px; background: rgba(15, 23, 34, .66); color: #93a4b8; font-size: 13px; }
    .balance-unmatched-alert { cursor: pointer; }
    .balance-unmatched-alert .el-alert__title { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .balance-unmatched-detail-btn { padding: 0; font-weight: 800; }
    .balance-ledger-panel {
      height: calc(100vh - 80px);
      min-height: 620px;
      padding-top: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .balance-ledger-stickybar {
      position: sticky;
      top: 0;
      z-index: 8;
      margin: 0 -18px 8px;
      padding: 7px 18px;
      border-bottom: 1px solid #2a3038;
      border-radius: 8px 8px 0 0;
      background: rgba(17, 24, 32, .96);
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 18px rgba(2, 6, 23, .16);
    }
    .balance-ledger-toolbar { min-height: 34px; margin-bottom: 0; align-items: center; justify-content: flex-start; flex-wrap: nowrap; }
    .balance-ledger-title { min-width: 180px; height: 30px; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
    .balance-ledger-title .section-title { flex: 0 0 auto; margin: 0; line-height: 30px; }
    .balance-ledger-title .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 30px; }
    .balance-ledger-toolbar-actions { min-width: 0; min-height: 30px; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; }
    .balance-ledger-mode-tabs { width: 136px; height: 30px; flex: 0 0 136px; display: inline-grid; grid-template-columns: 50px 78px; gap: 3px; padding: 2px; border: 1px solid #334155; border-radius: 8px; background: #0f1722; box-sizing: border-box; }
    .balance-ledger-mode-tabs button { min-width: 0; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 12px; font-weight: 950; cursor: pointer; }
    .balance-ledger-mode-tabs button.active { background: #2563eb; color: #ffffff; box-shadow: inset 0 -2px 0 rgba(15, 23, 42, .26); }
    .balance-reconciliation-history { flex: 1 1 auto; min-height: 420px; display: flex; flex-direction: column; }
    .balance-ledger-table { flex: 1 1 auto; min-height: 420px; }
    .balance-reconciliation-keyword-input { width: 180px; max-width: 100%; }
    .balance-ledger-quick-filters { min-width: 0; min-height: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
    .balance-ledger-filter-row { min-width: 0; min-height: 28px; display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
    .balance-ledger-filter-row > span { width: auto; flex: 0 0 auto; color: #93a4b8; font-size: 12px; font-weight: 900; }
    .balance-ledger-filter-row button {
      min-height: 26px;
      padding: 0 9px;
      border: 1px solid #334155;
      border-radius: 999px;
      background: #0f1722;
      color: #cbd5e1;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }
    .balance-ledger-filter-row button.active {
      border-color: #3b82f6;
      background: rgba(37, 99, 235, .2);
      color: #bfdbfe;
      box-shadow: inset 0 -2px 0 #3b82f6;
    }
    .balance-ledger-amount-input { width: 190px; max-width: 100%; }
    .compact-toolbar { margin-bottom: 8px; }
    .payment-account-settings-panel { margin: 12px 0; }
    .payment-account-compact { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
    .payment-account-compact-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .payment-account-type-icon { width: 22px; height: 22px; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 900; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 6px rgba(0,0,0,.24); }
    .payment-account-type-icon.is-alipay { background: linear-gradient(180deg, #3b82f6, #1677ff); }
    .payment-account-type-icon.is-wechat { background: linear-gradient(180deg, #22c55e, #16a34a); }
    .payment-account-type-icon.is-bank { background: linear-gradient(180deg, #6366f1, #4338ca); }
    .payment-account-type-icon.is-cash { background: linear-gradient(180deg, #f97316, #ea580c); }
    .payment-account-type-icon.is-generic { background: linear-gradient(180deg, #64748b, #475569); }
    .payment-account-type-option { display: inline-flex; align-items: center; gap: 8px; }
    .payment-account-type-select { width: 108px; }
    .payment-account-select-prefix { width: 20px; height: 20px; flex-basis: 20px; font-size: 11px; }
    .balance-account-card .payment-account-type-icon { color: #fff; overflow: visible; white-space: normal; font-size: 12px; }
    .payment-account-option-line { min-width: 220px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .payment-account-option-line .payment-account-compact { flex: 1 1 auto; }
    .payment-account-option-line small { color: #8d99a8; }
    .ledger-balance-after { color: #2563eb; font-weight: 800; }
    .money-positive { color: #f87171; font-weight: 800; }
    .money-negative { color: #22c55e; font-weight: 800; }
    @media (max-width: 1180px) {
      .balance-workbench-grid { grid-template-columns: 1fr; }
      .balance-summary-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
      .balance-control-compact { flex-wrap: wrap; }
      .balance-control-title { flex-basis: 100%; }
      .balance-ledger-toolbar,
      .balance-ledger-toolbar-actions,
      .balance-ledger-quick-filters { flex-wrap: wrap; justify-content: flex-start; }
      .balance-ledger-title { flex-basis: calc(100% - 148px); }
      .balance-ledger-toolbar-actions { width: 100%; margin-left: 144px; }
    }
    @media (max-width: 720px) {
      .balance-summary-grid { grid-template-columns: 1fr; }
      .balance-control-row { width: 100%; align-items: flex-start; flex-wrap: wrap; }
      .balance-control-label { width: 100%; }
      .balance-account-select { width: 100%; }
      .balance-control-row .el-segmented__group { flex-wrap: wrap; }
      .balance-control-range-row .el-date-editor.el-input__wrapper,
      .balance-control-range-row .el-date-editor.el-input { width: 100%; }
      .balance-manual-actions { grid-template-columns: 1fr; }
      .balance-diff-flow { grid-template-columns: 1fr; }
      .balance-diff-arrow { min-height: 18px; transform: rotate(90deg); }
      .balance-ledger-filter-row { flex-wrap: wrap; }
      .balance-ledger-filter-row > span { width: 100%; }
      .balance-reconciliation-keyword-input,
      .balance-ledger-amount-input { width: 100%; }
    }
    body[data-theme="light"] .balance-ledger-stickybar { border-bottom-color: #dbe4f0; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .balance-ledger-mode-tabs { border-color: #dbe4f0; background: #f8fafc; }
    body[data-theme="light"] .balance-ledger-mode-tabs button { color: #64748b; }
    body[data-theme="light"] .balance-ledger-mode-tabs button.active { background: #1d4ed8; color: #ffffff; }
    body[data-theme="light"] .balance-ledger-filter-row > span { color: #64748b; }
    body[data-theme="light"] .balance-ledger-filter-row button { border-color: #dbe4f0; background: #f8fafc; color: #334155; }
    body[data-theme="light"] .balance-ledger-filter-row button.active { border-color: #2563eb; background: #dbeafe; color: #1d4ed8; }
    body[data-theme="light"] .balance-account-card { color: #0f172a; background: #ffffff; border-color: #dbe4f0; }
    body[data-theme="light"] .balance-account-card.is-active { background: linear-gradient(180deg, #eff6ff, #ffffff); outline-color: #1d4ed8; box-shadow: 0 0 0 1px rgba(29, 78, 216, .42), 0 10px 24px rgba(37, 99, 235, .16); }
    body[data-theme="light"] .balance-account-card span,
    body[data-theme="light"] .balance-account-card small { color: #64748b; }
    body[data-theme="light"] .balance-account-card .payment-account-compact-name { color: #334155; font-weight: 850; }
    body[data-theme="light"] .balance-account-card.is-active .payment-account-compact-name { color: #0f172a; font-weight: 950; }
    body[data-theme="light"] .balance-account-card .payment-account-type-icon { color: #ffffff; text-shadow: 0 1px 1px rgba(15, 23, 42, .24); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 0 0 1px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .16); }
    body[data-theme="light"] .balance-account-card.is-active .payment-account-type-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 0 2px rgba(29, 78, 216, .22), 0 2px 8px rgba(37, 99, 235, .22); }
    body[data-theme="light"] .balance-diff-analysis-panel { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed, #ffffff); }
    body[data-theme="light"] .balance-diff-match-card,
    body[data-theme="light"] .balance-diff-flow > div:not(.balance-diff-arrow) { background: #ffffff; border-color: #dbe4f0; }
    body[data-theme="light"] .balance-diff-match-head strong { color: #111827; }
    body[data-theme="light"] .balance-diff-match-head span,
    body[data-theme="light"] .balance-diff-flow span,
    body[data-theme="light"] .balance-diff-ledgers > span,
    body[data-theme="light"] .balance-diff-empty { color: #64748b; }
    body[data-theme="light"] .balance-diff-flow strong { color: #0f172a; }
    body[data-theme="light"] .balance-diff-flow .is-short strong { color: #15803d; }
    body[data-theme="light"] .balance-diff-flow .is-over strong { color: #b91c1c; }
    body[data-theme="light"] .balance-diff-total strong { color: #b45309; }
    body[data-theme="light"] .balance-diff-empty { border-color: #dbe4f0; background: #f8fafc; }
    body[data-theme="light"] .balance-control-label { color: #64748b; }
    body[data-theme="light"] .balance-permission-notice { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
    body[data-theme="light"] .balance-manual-locked { color: #64748b; background: #f8fafc; border-color: #dbe4f0; }
    body[data-theme="light"] .balance-summary-card { border-color: #dbe4f0; background: #ffffff; box-shadow: 0 8px 18px rgba(15, 23, 42, .05); }
    body[data-theme="light"] .balance-summary-card.primary { background: linear-gradient(180deg, #eff6ff, #ffffff); }
    body[data-theme="light"] .balance-summary-card.income { background: linear-gradient(180deg, #fef2f2, #ffffff); }
    body[data-theme="light"] .balance-summary-card.outcome { background: linear-gradient(180deg, #f0fdf4, #ffffff); }
    body[data-theme="light"] .balance-summary-card.muted-card { background: linear-gradient(180deg, #f8fafc, #ffffff); }
    body[data-theme="light"] .balance-summary-card span { color: #64748b; }
    body[data-theme="light"] .balance-summary-card.primary strong { color: #1d4ed8; }
    body[data-theme="light"] .balance-summary-card.income strong,
    body[data-theme="light"] .balance-flow-income,
    body[data-theme="light"] .money-positive { color: #b91c1c; }
    body[data-theme="light"] .balance-summary-card.outcome strong,
    body[data-theme="light"] .balance-flow-outcome,
    body[data-theme="light"] .money-negative { color: #15803d; }
    body[data-theme="light"] .balance-summary-card.muted-card strong { color: #475569; }
    body[data-theme="light"] .upload-drag-title { color: #111827; }
    body[data-theme="light"] .import-summary { color: #64748b; }
    body[data-theme="light"] .import-summary-card > div { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .import-summary-card span { color: #64748b; }
    body[data-theme="light"] .import-summary-card strong { color: #0f172a; }
    .section-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #dce4ee; }
    body[data-theme="light"] .section-title { color: #1f2937; }
    .form-group-block { margin-bottom: 26px; }
    .form-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
    .form-card { min-height: 150px; position: relative; overflow: hidden; padding: 16px 18px 14px; border: 1px solid #273244; border-radius: 8px; background: linear-gradient(180deg, #151d2a, #101722); color: #e5e7eb; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; box-shadow: 0 8px 20px rgba(2, 6, 23, .16); }
    .form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #2563eb; }
    .form-card:hover { border-color: #3b82f6; background: linear-gradient(180deg, #18243a, #111c2d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .18); }
    .form-card.is-disabled { border-color: rgba(148, 163, 184, .34); background: linear-gradient(180deg, #151923, #10141b); color: #94a3b8; }
    .form-card.is-disabled::before { background: #94a3b8; }
    .form-card.is-disabled:hover { border-color: rgba(239, 68, 68, .55); box-shadow: 0 12px 28px rgba(239, 68, 68, .12); }
    .form-card-main { border: 0; padding: 0; margin: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
    .form-card-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .form-card-body { min-width: 0; display: grid; align-content: start; gap: 8px; }
    .form-card-actions { min-height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .18); }
    .form-card-actions .el-button { margin-left: 0; font-weight: 900; }
    .form-icon { width: 34px; height: 34px; position: relative; display: grid; place-items: center; border-radius: 8px; background: #dbeafe; color: #1d4ed8; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .24); }
    .form-icon::before { content: ""; width: 14px; height: 17px; border: 2px solid currentColor; border-radius: 3px; box-sizing: border-box; }
    .form-icon::after { content: ""; position: absolute; width: 7px; height: 2px; left: 14px; top: 16px; border-radius: 999px; background: currentColor; box-shadow: 0 5px 0 currentColor; opacity: .9; }
    .form-status-pill { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 900; line-height: 1; }
    .form-status-pill.is-on { border: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .16); color: #86efac; }
    .form-status-pill.is-off { border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .14); color: #fca5a5; }
    .form-name { min-width: 0; color: #f8fafc; font-size: 17px; font-weight: 900; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .form-meta { width: max-content; max-width: 100%; min-height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(148, 163, 184, .24); border-radius: 6px; background: rgba(15, 23, 42, .34); color: #aeb8c5; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
    .form-group-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 12px; }
    .drawer-footer-split { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .drawer-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
    .drawer-footer-actions .el-button { margin-left: 0; }
    body[data-theme="light"] .form-card { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbe4ef; color: #111827; box-shadow: 0 8px 18px rgba(15, 23, 42, .06); }
    body[data-theme="light"] .form-card:hover { background: linear-gradient(180deg, #ffffff, #eff6ff); border-color: #3b82f6; box-shadow: 0 12px 26px rgba(37, 99, 235, .14); }
    body[data-theme="light"] .form-card.is-disabled { background: linear-gradient(180deg, #ffffff, #f1f5f9); border-color: #cbd5e1; color: #64748b; }
    body[data-theme="light"] .form-card-actions { border-top-color: #e2e8f0; }
    body[data-theme="light"] .form-name { color: #0f172a; }
    body[data-theme="light"] .form-card.is-disabled .form-name { color: #64748b; text-decoration: line-through; }
    body[data-theme="light"] .form-meta { background: #f1f5f9; border-color: #dbe4ef; color: #475569; }
    body[data-theme="light"] .form-status-pill.is-on { background: #dcfce7; border-color: #86efac; color: #166534; }
    body[data-theme="light"] .form-status-pill.is-off { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
    .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px; margin-bottom: 18px; }
    .stat-row { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; }
    .stat-card { min-width: 0; min-height: 96px; padding: 16px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; display: flex; flex-direction: column; justify-content: space-between; }
    .stat-card span { color: #8d99a8; font-size: 13px; }
    .stat-card strong { color: #eef2f7; font-size: 28px; }
    body[data-theme="light"] .stat-card { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .stat-card span { color: #64748b; }
    body[data-theme="light"] .stat-card strong { color: #111827; }
    .backup-panel .stat-row .stat-card { min-height: 64px; padding: 12px 14px; }
    .backup-panel .stat-row .stat-card strong { font-size: 20px; }
    .settings-overview-grid .stat-row { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .report-hero { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
    .report-hero p, .muted-text { margin: 0; color: #8d99a8; font-size: 13px; }
    .report-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .report-card { min-height: 150px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: #e5e7eb; text-align: left; padding: 18px; display: grid; align-content: space-between; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
    .report-card:hover { border-color: #3b82f6; background: #142033; transform: translateY(-1px); }
    .report-card span { color: #dce4ee; font-weight: 700; }
    .report-card strong { font-size: 28px; color: #f8fafc; }
    .report-card small { color: #8d99a8; line-height: 1.5; }
    .report-card em { justify-self: start; font-style: normal; color: #bfdbfe; font-size: 12px; font-weight: 700; border: 1px solid rgba(96, 165, 250, .45); border-radius: 999px; padding: 4px 10px; background: rgba(37, 99, 235, .12); }
    .report-head-actions { display: flex; align-items: center; gap: 8px; }
    .report-detail { min-width: 0; display: grid; gap: 16px; }
    .analysis-range-bar { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .analysis-range-actions { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 8px; }
    .range-radio-group.el-radio-group { flex: 0 0 auto; display: grid; grid-template-columns: repeat(8, 58px); gap: 6px; }
    .range-radio-group .el-radio-button { margin: 0; }
    .range-radio-group .el-radio-button__inner { width: 58px; padding: 7px 0; border-left: 1px solid var(--el-border-color); border-radius: 4px !important; }
    .analysis-range-popover.el-popper { padding: 12px; }
    .analysis-range-picker { display: grid; gap: 10px; }
    .analysis-range-picker-head { display: grid; grid-template-columns: 32px 1fr 32px 128px; align-items: center; gap: 6px; }
    .analysis-range-picker-head strong { text-align: center; font-size: 16px; }
    .analysis-range-picker-option { min-height: 24px; display: flex; align-items: center; justify-content: flex-end; }
    .analysis-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .analysis-month-button { height: 36px; border: 1px solid #2a3038; border-radius: 6px; background: #111820; color: #dce4ee; font-weight: 700; cursor: pointer; }
    .analysis-month-button:hover { border-color: #3b82f6; color: #bfdbfe; }
    .analysis-month-button.active { border-color: #3b82f6; background: #2563eb; color: #fff; }
    .analysis-range-picker-foot { display: flex; flex-wrap: wrap; gap: 8px; }
    .analysis-range-picker-foot .el-button { margin-left: 0; }
    .analysis-custom-range-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding-top: 2px; }
    .analysis-custom-range-row .el-date-editor.el-input__wrapper { width: 100%; }
    .analysis-custom-range-row .el-button { width: 72px; margin-left: 0; }
    .promotion-report-range-bar .analysis-range-actions { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
    .promotion-report-head-main { min-width: 300px; display: grid; gap: 8px; }
    .promotion-report-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
    .promotion-exclude-filter { flex: 0 0 auto; }
    .promotion-exclude-filter .el-checkbox-button__inner { padding: 6px 12px; font-size: 12px; font-weight: 800; border-radius: 4px !important; }
    .promotion-staff-filter-panel { flex: 1 1 420px; min-width: min(100%, 360px); max-width: 720px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .promotion-staff-chip { min-height: 30px; max-width: 148px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #334155; border-radius: 6px; background: #0f172a; color: #dbeafe; padding: 0 9px; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .promotion-staff-chip em { flex: 0 0 auto; color: #93c5fd; font-style: normal; font-weight: 900; }
    .promotion-staff-chip:hover { border-color: #3b82f6; color: #ffffff; }
    .promotion-staff-chip.active { border-color: #2563eb; background: #2563eb; color: #ffffff; }
    .promotion-staff-chip.active em { color: #dbeafe; }
    .advanced-stat-grid { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; margin-bottom: 0; }
    .advanced-stat-grid .stat-card { min-height: 66px; padding: 10px 12px; }
    .advanced-stat-grid .stat-card strong { font-size: 19px; line-height: 1.15; }
    .promotion-tier-card { gap: 5px; }
    .promotion-tier-card small { color: #93c5fd; font-size: 12px; font-weight: 800; line-height: 1.1; }
    .promotion-detail-panel { min-height: 0; display: grid; gap: 8px; }
    .promotion-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .promotion-order-pagination { display: flex; justify-content: flex-end; padding-top: 2px; }
    .advanced-analysis-grid { align-items: start; }
    .report-kpi-grid { grid-template-columns: repeat(4, minmax(210px, 1fr)); }
    .advanced-report .analysis-panel { padding: 12px 14px; }
    .advanced-report .analysis-panel .section-title { margin-bottom: 8px; }
    .advanced-report .el-table .el-table__cell { padding: 4px 0; }
    .advanced-report .el-table .cell { line-height: 20px; }
    .advanced-report .el-tabs__header { margin-bottom: 8px; }
    .pigeon-report-detail { gap: 10px; }
    .pigeon-report-note { padding: 10px 12px; }
    .pigeon-stat-grid { grid-template-columns: repeat(10, minmax(128px, 1fr)); gap: 10px; margin-bottom: 0; overflow-x: auto; padding-bottom: 2px; }
    .pigeon-stat-grid .stat-card { min-height: 74px; padding: 10px 12px; border-radius: 4px; }
    .pigeon-stat-grid .stat-card strong { font-size: 24px; line-height: 1.08; letter-spacing: 0; }
    .pigeon-report-panel { padding: 10px 12px; }
    .pigeon-report-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .pigeon-report-count { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #2a3038; border-radius: 999px; background: rgba(37, 99, 235, .08); color: #9fb2ca; }
    .pigeon-report-count strong { color: #bfdbfe; font-size: 20px; line-height: 1; }
    .pigeon-report-count span { font-size: 12px; font-weight: 700; }
    .pigeon-page-size-select { width: 96px; }
    .pigeon-page-size-select .el-select__wrapper { min-height: 26px; border-radius: 999px; }
    .pigeon-report-panel .el-table .el-table__cell { padding: 3px 0; }
    .pigeon-report-panel .el-table .cell { line-height: 19px; }
    .pigeon-report-panel .el-table__body tr { cursor: pointer; }
    .pigeon-report-panel .el-table__body tr.pigeon-report-row-selected > td.el-table__cell,
    .pigeon-report-panel .el-table__body tr.pigeon-report-row-selected:hover > td.el-table__cell { background: #183653 !important; }
    .pigeon-report-image-strip { min-width: 0; overflow: hidden; }
    .pigeon-report-image-strip .list-image-thumb,
    .pigeon-report-image-strip .image-more { width: 32px; height: 32px; }
    .pigeon-profit-muted { color: #94a3b8 !important; }
    .pigeon-row-copy-btn { width: 30px; height: 26px; border: 1px solid #2563eb; border-radius: 6px; background: rgba(37, 99, 235, .15); color: #93c5fd; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; }
    .pigeon-row-copy-btn:hover { border-color: #60a5fa; background: rgba(37, 99, 235, .28); color: #dbeafe; }
    .pigeon-report-pagination { display: flex; justify-content: flex-end; padding-top: 8px; }
    body[data-theme="light"] .pigeon-report-count { background: #eff6ff; border-color: #bfdbfe; color: #475569; }
    body[data-theme="light"] .pigeon-report-count strong { color: #2563eb; }
    body[data-theme="light"] .pigeon-report-panel .el-table__body tr.pigeon-report-row-selected > td.el-table__cell,
    body[data-theme="light"] .pigeon-report-panel .el-table__body tr.pigeon-report-row-selected:hover > td.el-table__cell { background: #dbeafe !important; }
    body[data-theme="light"] .pigeon-profit-muted { color: #64748b !important; }
    body[data-theme="light"] .pigeon-row-copy-btn { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
    .flow-command-panel { position: relative; overflow: visible; padding: 14px 16px 12px; background: linear-gradient(135deg, rgba(13, 19, 27, .98), rgba(17, 24, 39, .98)); }
    .flow-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
    .flow-head .section-title { margin-bottom: 4px; }
    .flow-legend { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
    .flow-legend-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #b8c4d4; font-size: 12px; font-weight: 900; cursor: pointer; transition: opacity .14s ease, background .14s ease, border-color .14s ease, color .14s ease; }
    .flow-legend-btn:hover { border-color: rgba(96, 165, 250, .32); background: rgba(59, 130, 246, .12); color: #f8fafc; }
    .flow-legend-btn.is-muted { opacity: .38; }
    .flow-legend-btn i { width: 18px; height: 4px; border-radius: 999px; display: inline-block; }
    .legend-sales { background: #38bdf8; }
    .legend-down { background: #22c55e; }
    .legend-repay { background: #f59e0b; }
    .legend-count { background: #a78bfa; }
    .legend-profit { background: #fb7185; }
    .flow-dashboard { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
    .flow-main-chart { position: relative; min-width: 0; width: 100%; height: clamp(230px, 18vw, 318px); border: 1px solid rgba(96, 165, 250, .2); border-radius: 8px; background: linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(8, 13, 19, .78)); overflow: visible; cursor: crosshair; }
    .flow-svg { width: 100%; height: 100%; display: block; }
    .flow-grid line { stroke: rgba(148, 163, 184, .16); stroke-width: 1; }
    .flow-zero-line { stroke: rgba(248, 250, 252, .34); stroke-width: 1; stroke-dasharray: 4 5; }
    .flow-sales-bar { fill: url(#flowSalesBar); opacity: .55; }
    .flow-sales-area { fill: url(#flowSalesFill); }
    .flow-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
    .flow-line-sales { stroke: #38bdf8; }
    .flow-line-down { stroke: #22c55e; stroke-width: 2.2; }
    .flow-line-repay { stroke: #f59e0b; stroke-width: 2.2; }
    .flow-line-count { stroke: #a78bfa; stroke-width: 2.2; stroke-dasharray: 5 4; }
    .flow-line-profit { stroke: #fb7185; stroke-width: 2.2; }
    .flow-point circle { fill: #e0f2fe; stroke: #0284c7; stroke-width: 1.5; }
    .flow-count-point circle { fill: #f5f3ff; stroke: #8b5cf6; }
    .flow-bar-label { fill: #f8fafc; paint-order: stroke; stroke: rgba(6, 12, 20, .88); stroke-width: 3px; stroke-linejoin: round; font-size: 11px; font-weight: 950; pointer-events: none; }
    .flow-bar-label-count { fill: #ddd6fe; }
    .flow-bar-label-sales { fill: #dff7ff; }
    .flow-hover-line { stroke: rgba(226, 232, 240, .62); stroke-width: 1.4; stroke-dasharray: 4 4; pointer-events: none; }
    .flow-active-points circle { fill: #ffffff; stroke-width: 2; pointer-events: none; filter: drop-shadow(0 0 8px rgba(56, 189, 248, .55)); }
    .flow-active-points .active-sales { stroke: #38bdf8; }
    .flow-active-points .active-down { stroke: #22c55e; }
    .flow-active-points .active-repay { stroke: #f59e0b; }
    .flow-active-points .active-count { stroke: #8b5cf6; }
    .flow-active-points .active-profit { stroke: #fb7185; }
    .flow-hit-rect { fill: transparent; pointer-events: all; }
    .flow-axis-label { fill: #8d99a8; font-size: 10px; font-weight: 800; }
    .flow-guide { position: absolute; top: 32px; bottom: 46px; width: 1px; background: rgba(226, 232, 240, .28); pointer-events: none; z-index: 2; }
    .flow-tooltip { position: absolute; z-index: 20; width: 216px; max-width: min(216px, calc(100% - 20px)); display: grid; gap: 5px; padding: 10px 12px; border: 1px solid rgba(125, 211, 252, .42); border-radius: 8px; background: rgba(6, 12, 20, .94); box-shadow: 0 18px 34px rgba(0, 0, 0, .34), 0 0 0 1px rgba(15, 23, 42, .4); color: #e5e7eb; pointer-events: none; backdrop-filter: blur(8px); }
    .flow-tooltip strong { color: #f8fafc; font-size: 15px; line-height: 1.2; }
    .flow-tooltip div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.25; }
    .flow-tooltip span { color: #93a4b8; font-weight: 800; }
    .flow-tooltip b { min-width: 0; color: #eaf4ff; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .flow-side { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .flow-side-card { min-width: 0; min-height: 58px; display: grid; align-content: center; gap: 2px; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; background: rgba(15, 23, 42, .54); }
    .flow-side-card span, .flow-side-card small { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .flow-side-card strong { min-width: 0; color: #f8fafc; font-size: 20px; line-height: 1.12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .flow-side-card strong.is-up { color: #4ade80; }
    .flow-side-card strong.is-down { color: #fb7185; }
    .flow-heat-strip { min-width: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .14); }
    .flow-heat-label { color: #8d99a8; font-size: 12px; font-weight: 900; }
    .flow-heat-bars { min-width: 0; min-height: 40px; display: flex; align-items: end; gap: 3px; overflow: hidden; }
    .flow-heat-bars span { flex: 1 1 0; min-width: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #67e8f9, #2563eb); box-shadow: 0 0 12px rgba(56, 189, 248, .22); }
    .flow-empty { min-height: 120px; display: grid; place-items: center; color: #8d99a8; font-weight: 900; border: 1px dashed rgba(148, 163, 184, .26); border-radius: 8px; }
    .kpi-line { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #252c35; }
    .kpi-line:last-child { border-bottom: 0; }
    .kpi-line span { color: #8d99a8; }
    .kpi-line strong { color: #f8fafc; font-size: 17px; }
    .danger-text { color: #fb7185 !important; }
    .success-text { color: #22c55e !important; }
    .primary-text { color: #60a5fa !important; }
    .big-number { font-size: 34px; font-weight: 800; color: #f8fafc; }
    .trend-row { min-height: 38px; display: grid; grid-template-columns: 64px 1fr 140px 160px; align-items: center; gap: 12px; border-bottom: 1px solid #252c35; }
    .trend-row:last-child { border-bottom: 0; }
    .trend-row small { color: #8d99a8; }
    .report-bar { height: 10px; border-radius: 999px; background: #263141; overflow: hidden; }
    .report-bar i { display: block; height: 100%; border-radius: 999px; background: #3b82f6; }
    body[data-theme="light"] .report-hero p,
    body[data-theme="light"] .muted-text,
    body[data-theme="light"] .report-card small,
    body[data-theme="light"] .trend-row small { color: #64748b; }
    body[data-theme="light"] .report-card { background: #ffffff; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .report-card:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .report-card span,
    body[data-theme="light"] .report-card strong,
    body[data-theme="light"] .report-card em,
    body[data-theme="light"] .big-number { color: #111827; }
    body[data-theme="light"] .analysis-range-bar { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .promotion-staff-chip { background: #f8fafc; border-color: #dbe1ea; color: #1e3a8a; }
    body[data-theme="light"] .promotion-staff-chip em { color: #2563eb; }
    body[data-theme="light"] .promotion-staff-chip:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .promotion-staff-chip.active { background: #2563eb; border-color: #2563eb; color: #ffffff; }
    body[data-theme="light"] .promotion-staff-chip.active em { color: #dbeafe; }
    body[data-theme="light"] .analysis-month-button { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .analysis-month-button:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .analysis-month-button.active { background: #2563eb; border-color: #2563eb; color: #ffffff; }
    body[data-theme="light"] .kpi-line { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .kpi-line span { color: #64748b; }
    body[data-theme="light"] .kpi-line strong { color: #111827; }
    body[data-theme="light"] .trend-row { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .report-bar { background: #e5e7eb; }
    body[data-theme="light"] .flow-command-panel { background: linear-gradient(135deg, #ffffff, #f8fbff); }
    body[data-theme="light"] .flow-legend-btn,
    body[data-theme="light"] .flow-side-card span,
    body[data-theme="light"] .flow-side-card small,
    body[data-theme="light"] .flow-heat-label,
    body[data-theme="light"] .flow-empty,
    body[data-theme="light"] .flow-axis-label { color: #64748b; fill: #64748b; }
    body[data-theme="light"] .flow-main-chart { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbeafe; }
    body[data-theme="light"] .flow-legend-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #0f172a; }
    body[data-theme="light"] .flow-grid line { stroke: rgba(100, 116, 139, .2); }
    body[data-theme="light"] .flow-zero-line { stroke: rgba(15, 23, 42, .28); }
    body[data-theme="light"] .flow-hover-line { stroke: rgba(15, 23, 42, .36); }
    body[data-theme="light"] .flow-guide { background: rgba(15, 23, 42, .18); }
    body[data-theme="light"] .flow-tooltip { background: rgba(255, 255, 255, .96); border-color: #bae6fd; color: #0f172a; box-shadow: 0 16px 36px rgba(15, 23, 42, .16), 0 0 0 1px rgba(226, 232, 240, .85); }
    body[data-theme="light"] .flow-tooltip strong,
    body[data-theme="light"] .flow-tooltip b { color: #0f172a; }
    body[data-theme="light"] .flow-tooltip span { color: #64748b; }
    body[data-theme="light"] .flow-side-card { background: #ffffff; border-color: #dbe4ef; }
    body[data-theme="light"] .flow-side-card strong { color: #0f172a; }
    body[data-theme="light"] .flow-heat-strip { border-top-color: #e2e8f0; }
    @media (max-width: 1180px) {
      .flow-dashboard { grid-template-columns: 1fr; }
      .flow-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    @media (max-width: 820px) {
      .flow-head { align-items: stretch; flex-direction: column; }
      .flow-legend { justify-content: flex-start; }
      .flow-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .flow-heat-strip { grid-template-columns: 1fr; align-items: start; }
    }
    .analysis-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; }
    .capital-compact-page { display: grid; align-content: start; gap: 10px; padding: 12px 14px; }
    .capital-compact-page .analysis-panel { padding: 10px 12px; border-radius: 6px; }
    .capital-toolbar { min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; }
    .capital-title-block { min-width: 0; display: grid; gap: 2px; }
    .capital-title-block .section-title { margin-bottom: 0; line-height: 1.2; }
    .capital-title-block .muted-text { line-height: 1.35; }
    .capital-toolbar-actions { min-width: 0; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .capital-toolbar-actions .el-button { margin-left: 0; }
    .capital-toolbar-actions .el-date-editor.el-input__wrapper { width: 320px; }
    .capital-day-snapshot-picker { min-width: 0; display: flex; align-items: center; gap: 6px; }
    .capital-toolbar-actions .capital-day-picker.el-date-editor.el-input__wrapper { width: 144px; }
    .capital-day-snapshot-select { width: 236px; max-width: 100%; }
    .capital-compact-page .balance-unmatched-alert { margin: -2px 0 0; }
    .capital-summary-grid { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; margin-bottom: 0; }
    .capital-summary-grid .stat-card { min-height: 54px; padding: 8px 10px; border-radius: 6px; }
    .capital-summary-grid .stat-card span,
    .capital-summary-grid .stat-card small { min-width: 0; font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .capital-summary-grid .stat-card strong { min-width: 0; font-size: 16px; line-height: 1.12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .capital-summary-grid .capital-primary-card strong { font-size: 19px; }
    .capital-click-card { cursor: pointer; transition: border-color .14s ease, background .14s ease, transform .14s ease; }
    .capital-click-card:hover { border-color: rgba(96, 165, 250, .55); background: #101a26; transform: translateY(-1px); }
    .capital-work-grid { min-width: 0; display: grid; grid-template-columns: minmax(520px, .95fr) minmax(0, 1.05fr); gap: 10px; align-items: stretch; }
    .capital-panel-head { min-height: 28px; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .capital-panel-head .section-title,
    .capital-trend-panel .section-title,
    .capital-table-panel .section-title { margin-bottom: 1px; line-height: 1.2; }
    .capital-snapshot-actions { flex: 0 0 auto; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .capital-snapshot-select { width: 246px; max-width: 100%; }
    .capital-selected-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
    .capital-selected-grid .stat-card { min-height: 48px; padding: 7px 9px; border-radius: 6px; }
    .capital-selected-grid .stat-card span { font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .capital-selected-grid .stat-card strong { font-size: 15px; line-height: 1.14; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .capital-compare-panel .el-table .el-table__cell,
    .capital-table-panel .el-table .el-table__cell { padding: 3px 0; }
    .capital-compare-panel .el-table .cell,
    .capital-table-panel .el-table .cell { line-height: 18px; }
    .capital-click-row { cursor: pointer; }
    .capital-click-row:hover > td.el-table__cell { background: rgba(37, 99, 235, .18) !important; }
    .capital-compare-empty { min-height: 34px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(148, 163, 184, .28); border-radius: 6px; color: #8d99a8; font-size: 12px; font-weight: 850; }
    .capital-trend-panel { min-width: 0; display: flex; flex-direction: column; }
    .capital-trend-panel .balance-section-head { min-height: 28px; margin-bottom: 6px; }
    .capital-trend-panel .flow-legend { gap: 6px; }
    .capital-trend-panel .flow-legend-btn { min-height: 20px; padding: 0 4px; font-size: 11px; }
    .capital-trend-panel .legend-down { background: #f59e0b; }
    .capital-trend-panel .flow-line-down { stroke: #f59e0b; }
    .capital-trend-panel .active-profit { fill: #fb7185; stroke: #fecdd3; stroke-width: 1.5; }
    .capital-trend-panel .active-sales { fill: #38bdf8; stroke: #bae6fd; stroke-width: 1.5; }
    .capital-trend-panel .active-down { fill: #f59e0b; stroke: #fde68a; stroke-width: 1.5; }
    .capital-chart-box { flex: 1 1 auto; min-height: 188px; height: 210px; border: 1px solid rgba(96, 165, 250, .18); border-radius: 6px; background: linear-gradient(180deg, rgba(15, 23, 42, .58), rgba(8, 13, 19, .68)); overflow: hidden; }
    .capital-trend-empty { min-height: 148px; }
    .capital-bottom-grid { gap: 10px; }
    .capital-table-panel .balance-section-head { min-height: 28px; margin-bottom: 6px; }
    .capital-detail-panel { min-width: 0; display: grid; gap: 8px; }
    .capital-detail-panel .balance-section-head { min-height: 30px; margin-bottom: 0; }
    .capital-detail-panel .el-table .el-table__cell { padding: 4px 0; }
    .capital-detail-panel .el-table .cell { line-height: 18px; }
    .capital-detail-footer { min-height: 32px; display: flex; justify-content: flex-end; align-items: center; }
    .balance-ledger-footer {
      position: static;
      min-height: 48px;
      box-sizing: border-box;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex: 0 0 48px;
      padding: 7px 12px;
      border-top: 1px solid #2a3038;
      background: #111820;
    }
    body[data-theme="light"] .balance-ledger-footer { border-color: #dbe1ea; background: #ffffff; }
    body[data-theme="light"] .capital-compare-empty { border-color: #cbd5e1; color: #64748b; background: #f8fafc; }
    body[data-theme="light"] .capital-chart-box { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbeafe; }
    body[data-theme="light"] .capital-click-card:hover { border-color: #93c5fd; background: #eff6ff; }
    body[data-theme="light"] .capital-click-row:hover > td.el-table__cell { background: #eff6ff !important; }
    @media (max-width: 1380px) {
      .capital-work-grid { grid-template-columns: 1fr; }
      .capital-toolbar { align-items: flex-start; flex-direction: column; }
      .capital-toolbar-actions { justify-content: flex-start; }
    }
    @media (max-width: 820px) {
      .capital-compact-page { padding: 10px; }
      .capital-toolbar-actions,
      .capital-snapshot-actions { align-items: stretch; flex-direction: column; width: 100%; }
      .capital-toolbar-actions .el-segmented,
      .capital-toolbar-actions .el-date-editor.el-input__wrapper,
      .capital-toolbar-actions .el-button,
      .capital-day-snapshot-picker,
      .capital-day-snapshot-select,
      .capital-snapshot-select { width: 100%; }
      .capital-day-snapshot-picker { flex-direction: column; }
      .capital-toolbar-actions .capital-day-picker.el-date-editor.el-input__wrapper { width: 100%; }
      .capital-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .capital-selected-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .capital-bottom-grid { grid-template-columns: 1fr; }
    }
    .settings-page { display: grid; gap: 10px; }
    .content-area.settings-page {
      position: fixed;
      left: 72px;
      right: 0;
      top: 56px;
      bottom: 0;
      z-index: 6;
      width: auto;
      height: auto;
      min-height: 0;
      padding: 12px;
      overflow: hidden;
      background: #0f1115;
      box-sizing: border-box;
    }
    .settings-page [id^="settings-"] { scroll-margin-top: 12px; }
    .settings-hero { min-height: 92px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border: 1px solid #2a3038; border-radius: 8px; background: linear-gradient(135deg, rgba(15, 21, 29, .98), rgba(17, 24, 32, .98)), linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(245, 158, 11, .08), rgba(34, 197, 94, .1)); }
    .settings-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #60a5fa, #f59e0b, #22c55e); opacity: .85; }
    .settings-hero > div:first-child { min-width: 0; display: grid; gap: 5px; }
    .settings-kicker { color: #60a5fa; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
    .settings-hero h2 { margin: 0; color: #f8fafc; font-size: 23px; line-height: 1.15; }
    .settings-hero p { margin: 0; color: #8d99a8; font-size: 13px; line-height: 1.5; }
    .settings-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
    .settings-hero-actions .el-button { font-weight: 900; }
    .settings-health-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .settings-health-strip > div { min-width: 0; min-height: 62px; display: grid; align-content: center; gap: 2px; padding: 9px 11px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .settings-health-strip > div,
    .settings-jump-nav a,
    .settings-mini-metrics span,
    .contract-summary-card,
    .contract-record-stat { box-sizing: border-box; }
    .settings-health-strip > div,
    .settings-jump-nav a,
    .settings-card-panel,
    .settings-contract-panel { transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
    .settings-health-strip > div:hover,
    .settings-jump-nav a:hover { border-color: #3b82f6; background: #142033; }
    .settings-health-strip span,
    .settings-mini-metrics small { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .settings-health-strip strong { min-width: 0; color: #f8fafc; font-size: 20px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-health-strip small { min-width: 0; color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-jump-nav { position: sticky; top: 0; z-index: 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 0; background: rgba(10, 15, 20, .82); backdrop-filter: blur(8px); }
    .settings-jump-nav a { min-width: 0; min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: inherit; text-decoration: none; }
    .settings-jump-nav span { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-jump-nav strong { min-width: 0; color: #f8fafc; font-size: 13px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 10px; }
    .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
    .settings-workspace { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 0; }
    .analysis-panel, .placeholder-panel { min-width: 0; border: 1px solid #2a3038; border-radius: 8px; background: #111820; padding: 18px; }
    .analysis-panel .el-table { width: 100%; }
    .user-page-toolbar { justify-content: space-between; align-items: flex-start; }
    .user-page-toolbar .section-title { margin-bottom: 4px; }
    .user-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .user-page-actions .el-button { margin-left: 0; }
    .user-admin-layout { min-width: 0; display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 12px; align-items: start; }
    .user-admin-nav { min-width: 0; display: grid; gap: 8px; position: sticky; top: 12px; }
    .user-admin-nav-item { min-width: 0; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: #dce4ee; text-align: left; cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease; }
    .user-admin-nav-item div { min-width: 0; display: grid; gap: 3px; }
    .user-admin-nav-item strong { color: #f8fafc; font-size: 14px; line-height: 1.25; }
    .user-admin-nav-item span { min-width: 0; color: #8d99a8; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-admin-nav-item b { min-width: 30px; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #1f2937; color: #cbd5e1; font-size: 13px; }
    .user-admin-nav-item:hover { border-color: #3b82f6; background: #142033; }
    .user-admin-nav-item.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .2); }
    .user-admin-nav-item.active b { background: #2563eb; color: #ffffff; }
    .user-summary-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .user-summary-mini span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; color: #8d99a8; font-size: 11px; }
    .user-summary-mini strong { color: #f8fafc; font-size: 13px; }
    .user-admin-workspace,
    .user-section-panel { min-width: 0; }
    .todo-admin-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; }
    .todo-admin-filters { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
    .todo-admin-search { width: min(300px, 36vw); }
    .todo-admin-summary { height: 34px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
    .todo-admin-summary button { min-width: 0; height: 34px; display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 0 10px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; color: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: inset 3px 0 0 #60a5fa; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, color .14s ease; }
    .todo-admin-summary button:hover { border-color: #60a5fa; background: #142033; }
    .todo-admin-summary button.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); box-shadow: inset 3px 0 0 #3b82f6, inset 0 0 0 1px rgba(96, 165, 250, .2); }
    .todo-admin-summary button.important { box-shadow: inset 3px 0 0 #ef4444; }
    .todo-admin-summary button.important.active { border-color: #ef4444; background: rgba(127, 29, 29, .18); box-shadow: inset 3px 0 0 #ef4444, inset 0 0 0 1px rgba(248, 113, 113, .2); }
    .todo-admin-summary button.due { box-shadow: inset 3px 0 0 #f59e0b; }
    .todo-admin-summary button.due.active { border-color: #f59e0b; background: rgba(245, 158, 11, .15); box-shadow: inset 3px 0 0 #f59e0b, inset 0 0 0 1px rgba(251, 191, 36, .2); }
    .todo-admin-summary button.done { box-shadow: inset 3px 0 0 #22c55e; }
    .todo-admin-summary button.done.active { border-color: #22c55e; background: rgba(34, 197, 94, .13); box-shadow: inset 3px 0 0 #22c55e, inset 0 0 0 1px rgba(74, 222, 128, .2); }
    .todo-admin-summary button.cancelled { box-shadow: inset 3px 0 0 #64748b; }
    .todo-admin-summary button.cancelled.active { border-color: #64748b; background: rgba(100, 116, 139, .16); box-shadow: inset 3px 0 0 #64748b, inset 0 0 0 1px rgba(148, 163, 184, .2); }
    .todo-admin-summary button.all { box-shadow: inset 3px 0 0 #a78bfa; }
    .todo-admin-summary button.all.active { border-color: #8b5cf6; background: rgba(139, 92, 246, .15); box-shadow: inset 3px 0 0 #8b5cf6, inset 0 0 0 1px rgba(167, 139, 250, .2); }
    .todo-admin-summary strong { min-width: 0; color: #f8fafc; font-size: 18px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-admin-summary small { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .todo-admin-panel .el-table .el-table__cell { padding: 5px 0; }
    .todo-admin-status { display: grid; gap: 5px; align-items: start; justify-items: start; }
    .user-section-panel { border: 1px solid #2a3038; border-radius: 8px; background: #111820; padding: 10px; }
    .user-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 10px; margin-bottom: 12px; }
    .user-stat-card { min-width: 0; min-height: 74px; padding: 11px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: #e5e7eb; text-align: left; cursor: pointer; display: grid; gap: 6px; transition: border-color .14s ease, background .14s ease, transform .14s ease; }
    .user-stat-card span { color: #8d99a8; font-size: 12px; font-weight: 700; }
    .user-stat-card strong { color: #f8fafc; font-size: 24px; line-height: 1; }
    .user-stat-card:hover { border-color: #3b82f6; background: #142033; transform: translateY(-1px); }
    .user-stat-card.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .22); }
    .user-stat-card.success strong { color: #86efac; }
    .user-stat-card.danger strong { color: #fda4af; }
    .user-filter-bar { min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
    .user-filter-keyword { width: min(300px, 100%); }
    .user-filter-group { width: 180px; }
    .user-filter-result { color: #8d99a8; font-size: 12px; white-space: nowrap; }
    .user-management-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 14px; }
    .user-list-panel,
    .user-group-panel { min-width: 0; display: grid; gap: 10px; }
    .user-panel-head { min-height: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .user-panel-head .section-title { margin-bottom: 2px; }
    .user-panel-head span { color: #8d99a8; font-size: 12px; }
    .user-card-list,
    .user-group-list { display: grid; gap: 7px; }
    .user-card { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .user-card.admin { border-color: rgba(34, 197, 94, .38); }
    .user-card.inactive { background: #11151a; border-color: #3b2630; }
    .user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #1d4ed8; color: #ffffff; font-size: 14px; font-weight: 900; }
    .user-avatar.inactive { background: #4b5563; }
    .user-card-main { min-width: 0; display: grid; grid-template-columns: minmax(230px, .95fr) minmax(160px, .56fr) minmax(150px, .68fr); align-items: center; gap: 8px; }
    .user-card-title,
    .user-card-meta,
    .user-group-tags,
    .user-card-actions,
    .user-group-actions { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .user-card-title,
    .user-card-meta,
    .user-group-tags { flex-wrap: nowrap; overflow: hidden; }
    .user-card-title strong { min-width: 0; max-width: 260px; color: #f8fafc; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-card-meta { color: #8d99a8; font-size: 12px; }
    .user-card-meta span,
    .user-group-tags .el-tag,
    .user-card-title .el-tag { flex: 0 0 auto; }
    .user-group-tags .empty-hint { color: #8d99a8; font-size: 12px; }
    .user-card-actions { justify-content: flex-end; }
    .user-card-actions .el-button { margin-left: 0; }
    .user-group-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
    .user-group-card { min-width: 0; display: grid; grid-template-rows: auto auto auto; gap: 9px; padding: 11px; border: 1px solid #2a3038; border-radius: 8px; background: linear-gradient(180deg, #111820, #0f151d); box-shadow: 0 8px 20px rgba(2, 6, 23, .16); transition: border-color .14s ease, background .14s ease, transform .14s ease; }
    .user-group-card:hover { border-color: #3b82f6; transform: translateY(-1px); }
    .user-group-card.protected { border-color: rgba(34, 197, 94, .42); background: linear-gradient(180deg, rgba(22, 101, 52, .2), #0f151d); }
    .user-group-card.empty { border-style: dashed; }
    .user-group-main { min-width: 0; border: 0; padding: 0; background: transparent; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; text-align: left; cursor: pointer; }
    .user-group-main:disabled { cursor: default; }
    .user-group-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #60a5fa, #2563eb); color: #ffffff; font-size: 18px; font-weight: 950; box-shadow: 0 8px 16px rgba(37, 99, 235, .24); }
    .user-group-avatar.protected { background: linear-gradient(180deg, #34d399, #16a34a); box-shadow: 0 8px 16px rgba(22, 163, 74, .22); }
    .user-group-avatar.empty { background: #334155; box-shadow: none; }
    .user-group-text { min-width: 0; display: grid; gap: 3px; }
    .user-group-text strong { min-width: 0; color: #f8fafc; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-group-text small { min-width: 0; color: #8d99a8; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-list-head { margin-bottom: 10px; }
    .user-group-metrics { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; padding: 5px 7px; border: 1px solid #263241; border-radius: 7px; background: rgba(15, 23, 42, .52); }
    .user-group-member-button { min-width: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8d99a8; text-align: left; cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease; }
    .user-group-member-button:hover { border-color: rgba(59, 130, 246, .48); background: rgba(37, 99, 235, .16); color: #bfdbfe; }
    .user-group-member-button .member-count { min-width: 0; display: inline-flex; align-items: baseline; gap: 5px; }
    .user-group-member-button .member-action { flex: 0 0 auto; color: #60a5fa; font-size: 12px; font-weight: 900; }
    .user-group-metrics b { color: #dbeafe; font-size: 18px; line-height: 1; }
    .user-group-metrics small { font-size: 12px; }
    .user-group-status { flex: 0 0 auto; min-width: 52px; display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid #334155; background: #1f2937; color: #cbd5e1; font-size: 12px; font-weight: 900; white-space: nowrap; }
    .user-group-status.protected { border-color: rgba(34, 197, 94, .5); background: rgba(22, 163, 74, .18); color: #86efac; }
    .user-group-status.active { border-color: rgba(59, 130, 246, .52); background: rgba(37, 99, 235, .2); color: #bfdbfe; }
    .user-group-status.empty { border-color: #475569; background: rgba(51, 65, 85, .35); color: #94a3b8; }
    .user-group-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .user-group-actions .el-button { margin-left: 0; width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; font-weight: 800; }
    body[data-theme="light"] .user-admin-nav-item,
    body[data-theme="light"] .user-summary-mini,
    body[data-theme="light"] .user-section-panel,
    body[data-theme="light"] .user-stat-card,
    body[data-theme="light"] .user-card,
    body[data-theme="light"] .user-group-card { background: #ffffff; border-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .user-summary-mini { background: #f8fafc; }
    body[data-theme="light"] .user-admin-nav-item:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .user-admin-nav-item.active { background: #eff6ff; border-color: #3b82f6; }
    body[data-theme="light"] .user-admin-nav-item b { background: #eef2f7; color: #334155; }
    body[data-theme="light"] .user-admin-nav-item.active b { background: #2563eb; color: #ffffff; }
    body[data-theme="light"] .todo-admin-summary button { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .todo-admin-summary button:hover { background: #eff6ff; border-color: #3b82f6; }
    body[data-theme="light"] .todo-admin-summary button.active { border-color: #2563eb; background: #eff6ff; box-shadow: inset 3px 0 0 #2563eb, inset 0 0 0 1px rgba(37, 99, 235, .14); }
    body[data-theme="light"] .todo-admin-summary button.important.active { border-color: #ef4444; background: #fff1f2; box-shadow: inset 3px 0 0 #ef4444, inset 0 0 0 1px rgba(239, 68, 68, .14); }
    body[data-theme="light"] .todo-admin-summary button.due.active { border-color: #d97706; background: #fffbeb; box-shadow: inset 3px 0 0 #d97706, inset 0 0 0 1px rgba(217, 119, 6, .14); }
    body[data-theme="light"] .todo-admin-summary button.done.active { border-color: #16a34a; background: #f0fdf4; box-shadow: inset 3px 0 0 #16a34a, inset 0 0 0 1px rgba(22, 163, 74, .14); }
    body[data-theme="light"] .todo-admin-summary button.cancelled.active { border-color: #64748b; background: #f8fafc; box-shadow: inset 3px 0 0 #64748b, inset 0 0 0 1px rgba(100, 116, 139, .16); }
    body[data-theme="light"] .todo-admin-summary button.all.active { border-color: #7c3aed; background: #f5f3ff; box-shadow: inset 3px 0 0 #7c3aed, inset 0 0 0 1px rgba(124, 58, 237, .14); }
    body[data-theme="light"] .todo-admin-summary strong { color: #0f172a; }
    body[data-theme="light"] .todo-admin-summary small { color: #64748b; }
    body[data-theme="light"] .user-stat-card:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .user-stat-card.active,
    body[data-theme="light"] .user-group-card.active { background: #eff6ff; border-color: #3b82f6; }
    body[data-theme="light"] .user-group-card { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbe1ea; box-shadow: 0 8px 18px rgba(15, 23, 42, .06); }
    body[data-theme="light"] .user-group-card:hover { border-color: #3b82f6; }
    body[data-theme="light"] .user-group-card.protected { background: linear-gradient(180deg, #f0fdf4, #ffffff); border-color: #bbf7d0; }
    body[data-theme="light"] .user-group-card.empty { background: #ffffff; }
    body[data-theme="light"] .user-group-metrics { background: #f8fafc; border-color: #e2e8f0; }
    body[data-theme="light"] .user-group-member-button { color: #64748b; }
    body[data-theme="light"] .user-group-member-button:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
    body[data-theme="light"] .user-group-metrics b { color: #1d4ed8; }
    body[data-theme="light"] .user-group-status { border-color: #cbd5e1; background: #eef2f7; color: #475569; }
    body[data-theme="light"] .user-group-status.protected { border-color: #86efac; background: #dcfce7; color: #15803d; }
    body[data-theme="light"] .user-group-status.active { border-color: #93c5fd; background: #dbeafe; color: #1d4ed8; }
    body[data-theme="light"] .user-group-status.empty { border-color: #cbd5e1; background: #f1f5f9; color: #64748b; }
    body[data-theme="light"] .user-admin-nav-item span,
    body[data-theme="light"] .user-summary-mini span,
    body[data-theme="light"] .user-stat-card span,
    body[data-theme="light"] .user-filter-result,
    body[data-theme="light"] .user-panel-head span,
    body[data-theme="light"] .user-card-meta,
    body[data-theme="light"] .user-group-text small,
    body[data-theme="light"] .user-group-tags .empty-hint { color: #64748b; }
    body[data-theme="light"] .user-admin-nav-item strong,
    body[data-theme="light"] .user-summary-mini strong,
    body[data-theme="light"] .user-stat-card strong,
    body[data-theme="light"] .user-card-title strong,
    body[data-theme="light"] .user-group-text strong { color: #111827; }
    body[data-theme="light"] .user-card.inactive { background: #f8fafc; border-color: #fecaca; }
    body[data-theme="light"] .user-card.admin,
    body[data-theme="light"] .user-group-card.protected { border-color: #bbf7d0; }
    .backup-panel { margin-bottom: 16px; }
    .settings-card-panel { margin-bottom: 0; padding: 12px; }
    .settings-overview-grid .backup-panel { margin-bottom: 0; }
    .backup-panel .content-toolbar { justify-content: space-between; margin-bottom: 12px; }
    .backup-panel .el-table { background: transparent; }
    .settings-mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 9px; }
    .settings-mini-metrics span { min-width: 0; min-height: 48px; display: grid; align-content: center; gap: 2px; padding: 6px 9px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .settings-mini-metrics strong { min-width: 0; color: #e5e7eb; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-page .analysis-panel { box-shadow: 0 12px 26px rgba(2, 6, 23, .18); }
    .settings-page .analysis-panel:hover { border-color: #334155; box-shadow: 0 14px 30px rgba(2, 6, 23, .22); }
    .settings-card-panel,
    .settings-contract-panel { position: relative; overflow: hidden; }
    .settings-card-panel::before,
    .settings-contract-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #3b82f6; }
    .settings-card-panel-domain::before { background: #06b6d4; }
    .settings-database-panel::before { background: #a78bfa; }
    .settings-card-panel-ocr::before { background: #22c55e; }
    .settings-card-panel-ocr .stat-row { gap: 7px; align-items: start; }
    .settings-card-panel-ocr .stat-row .stat-card { min-height: 34px; padding: 6px 10px; box-sizing: border-box; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .settings-card-panel-ocr .stat-card span,
    .settings-card-panel-ocr .stat-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-card-panel-ocr .stat-card span { font-size: 12px; font-weight: 800; }
    .settings-card-panel-ocr .stat-card strong { font-size: 18px; line-height: 1; }
    .settings-toolbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
    .settings-domain-grid { display: grid; grid-template-columns: minmax(320px, 2fr) repeat(3, minmax(160px, 1fr)); gap: 10px; align-items: stretch; }
    .settings-domain-field { min-width: 0; display: grid; gap: 6px; align-content: start; padding: 11px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-sizing: border-box; }
    .settings-domain-field span { color: #8d99a8; font-size: 12px; font-weight: 900; }
    .settings-domain-field strong { min-width: 0; color: #e5e7eb; font-size: 14px; line-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-domain-note { margin-top: 12px; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(6, 182, 212, .34); border-radius: 8px; background: rgba(8, 145, 178, .1); color: #bae6fd; }
    .settings-domain-note strong { color: #e0f2fe; font-size: 13px; }
    .settings-domain-note span { color: #8d99a8; font-size: 12px; line-height: 1.55; }
    .settings-domain-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #252c35; }
    body[data-theme="light"] .settings-domain-field { border-color: #dbe4ef; background: #ffffff; }
    body[data-theme="light"] .settings-domain-field span { color: #64748b; }
    body[data-theme="light"] .settings-domain-field strong { color: #0f172a; }
    body[data-theme="light"] .settings-domain-note { border-color: #a5f3fc; background: #ecfeff; color: #155e75; }
    body[data-theme="light"] .settings-domain-note strong { color: #0e7490; }
    body[data-theme="light"] .settings-domain-note span { color: #475569; }
    .settings-database-shell .settings-database-panel {
      height: 100%;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 8px;
    }
    .settings-database-panel > .content-toolbar { min-height: 32px; margin-bottom: 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .settings-database-panel > .content-toolbar .muted-text { display: none; }
    .settings-database-panel > .content-toolbar .settings-title-line { margin-bottom: 0; }
    .settings-database-panel > .content-toolbar .settings-toolbar-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
    .database-schema-metrics { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
    .database-schema-metrics > div { min-width: 0; min-height: 46px; display: grid; align-content: center; gap: 2px; padding: 7px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-sizing: border-box; box-shadow: inset 3px 0 0 #a78bfa; }
    .database-schema-metrics span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .database-schema-metrics strong { min-width: 0; color: #f8fafc; font-size: 16px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .settings-database-panel > .database-schema-metrics:not(.database-schema-toolbar-metrics) { display: none; }
    .database-schema-toolbar-metrics { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .database-schema-toolbar-metrics > div { min-width: 76px; min-height: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 4px 8px; box-shadow: inset 2px 0 0 #a78bfa; }
    .database-schema-toolbar-metrics > div:last-child { min-width: 156px; }
    .database-schema-toolbar-metrics span { font-size: 11px; line-height: 1; }
    .database-schema-toolbar-metrics strong { font-size: 13px; line-height: 1; }
    .database-schema-alert { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(239, 68, 68, .42); border-radius: 8px; background: rgba(127, 29, 29, .18); color: #fecaca; font-size: 12px; font-weight: 850; }
    .database-schema-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 10px; }
    .database-schema-list,
    .database-schema-detail,
    .database-schema-empty,
    .database-schema-block { min-width: 0; min-height: 0; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-sizing: border-box; }
    .database-schema-list { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 7px; padding: 8px; }
    .database-schema-search { min-width: 0; }
    .database-schema-table-list { min-height: 0; overflow: auto; display: grid; align-content: start; gap: 6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
    .database-schema-table-list::-webkit-scrollbar { width: 8px; height: 8px; }
    .database-schema-table-list::-webkit-scrollbar-track { background: transparent; }
    .database-schema-table-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #334155; border: 2px solid #0f151d; }
    .database-schema-table-list::-webkit-scrollbar-thumb:hover { background: #475569; }
    .database-schema-table-list::-webkit-scrollbar-corner { background: transparent; }
    .database-schema-table-list button { min-width: 0; display: grid; gap: 2px; padding: 8px 9px; border: 1px solid #293241; border-radius: 8px; background: #111820; color: inherit; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
    .database-schema-table-list button:hover { border-color: #60a5fa; background: #142033; }
    .database-schema-table-list button.active { border-color: #a78bfa; background: rgba(124, 58, 237, .18); box-shadow: inset 3px 0 0 #a78bfa; }
    .database-schema-table-list strong { min-width: 0; color: #f8fafc; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-table-list span,
    .database-schema-table-list small { min-width: 0; color: #8d99a8; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-detail { display: grid; grid-template-rows: auto minmax(260px, 1.08fr) minmax(220px, .92fr); gap: 8px; padding: 8px; overflow: hidden; }
    .database-schema-detail-head { min-width: 0; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 9px; border: 1px solid #293241; border-radius: 8px; background: #111820; }
    .database-schema-detail-head > div { min-width: 0; display: grid; gap: 2px; }
    .database-schema-detail-head strong { color: #f8fafc; font-size: 16px; line-height: 1.15; }
    .database-schema-detail-head span,
    .database-schema-detail-head small { min-width: 0; color: #8d99a8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-block { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; padding: 8px; overflow: hidden; }
    .database-schema-block-head { min-width: 0; min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .database-schema-block-head strong { color: #f8fafc; font-size: 14px; font-weight: 950; }
    .database-schema-block-head span { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-column-table strong { color: #dbeafe; }
    .database-schema-index-names { display: block; margin-top: 2px; color: #8d99a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-lower { min-height: 0; display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 8px; }
    .database-schema-preview-head { align-items: flex-start; }
    .database-schema-preview-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
    .database-schema-preview-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .database-schema-preview-column-head { min-width: 0; display: grid; gap: 1px; line-height: 1.15; }
    .database-schema-preview-column-head strong,
    .database-schema-preview-column-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .database-schema-preview-column-head strong { color: #f8fafc; font-size: 12px; font-weight: 950; }
    .database-schema-preview-column-head span { color: #8d99a8; font-size: 11px; font-weight: 750; }
    .database-schema-empty { display: grid; place-content: center; gap: 4px; color: #8d99a8; text-align: center; }
    .database-schema-empty strong { color: #f8fafc; font-size: 16px; }
    @media (max-width: 1180px) {
      .database-schema-layout { grid-template-columns: 230px minmax(0, 1fr); }
      .database-schema-lower { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(180px, .7fr) minmax(230px, 1fr); }
    }
    body[data-theme="light"] .database-schema-metrics > div,
    body[data-theme="light"] .database-schema-list,
    body[data-theme="light"] .database-schema-detail,
    body[data-theme="light"] .database-schema-empty,
    body[data-theme="light"] .database-schema-block { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .database-schema-metrics span,
    body[data-theme="light"] .database-schema-table-list span,
    body[data-theme="light"] .database-schema-table-list small,
    body[data-theme="light"] .database-schema-detail-head span,
    body[data-theme="light"] .database-schema-detail-head small,
    body[data-theme="light"] .database-schema-block-head span,
    body[data-theme="light"] .database-schema-index-names,
    body[data-theme="light"] .database-schema-preview-column-head span,
    body[data-theme="light"] .database-schema-empty { color: #64748b; }
    body[data-theme="light"] .database-schema-metrics strong,
    body[data-theme="light"] .database-schema-table-list strong,
    body[data-theme="light"] .database-schema-detail-head strong,
    body[data-theme="light"] .database-schema-block-head strong,
    body[data-theme="light"] .database-schema-preview-column-head strong,
    body[data-theme="light"] .database-schema-empty strong { color: #111827; }
    body[data-theme="light"] .database-schema-table-list button,
    body[data-theme="light"] .database-schema-detail-head { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .database-schema-table-list button:hover { background: #eff6ff; border-color: #93c5fd; }
    body[data-theme="light"] .database-schema-table-list button.active { background: #f5f3ff; border-color: #8b5cf6; box-shadow: inset 3px 0 0 #8b5cf6; }
    body[data-theme="light"] .database-schema-table-list { scrollbar-color: #cbd5e1 transparent; }
    body[data-theme="light"] .database-schema-table-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-color: #ffffff; }
    body[data-theme="light"] .database-schema-table-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    body[data-theme="light"] .database-schema-column-table strong { color: #1d4ed8; }
    body[data-theme="light"] .database-schema-alert { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
    .settings-contract-record-panel::before { background: #f59e0b; }
    .settings-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
    .settings-title-line > span:first-child { color: #f8fafc; font-size: 16px; font-weight: 950; }
    .settings-section-chip { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid rgba(96, 165, 250, .36); border-radius: 999px; background: rgba(59, 130, 246, .13); color: #93c5fd; font-size: 12px; font-weight: 900; line-height: 1; }
    .settings-section-chip.enabled { border-color: rgba(34, 197, 94, .42); background: rgba(34, 197, 94, .13); color: #86efac; }
    .ocr-result-panel { margin-top: 8px; padding-top: 8px; border-top: 1px solid #252c35; }
    .ocr-result-head { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
    .ocr-result-head > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
    .ocr-result-head strong { color: #f8fafc; font-size: 15px; font-weight: 950; }
    .ocr-result-head span { color: #8d99a8; font-size: 12px; font-weight: 800; }
    .ocr-result-table .el-table__cell { padding: 3px 0; }
    .ocr-result-table .cell { line-height: 20px; padding-left: 7px; padding-right: 7px; }
    .ocr-result-table .el-tag { height: 22px; padding: 0 7px; line-height: 20px; }
    .ocr-result-meta { min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
    .ocr-result-meta strong,
    .ocr-result-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ocr-result-meta strong { color: #dbeafe; font-weight: 900; }
    .ocr-result-meta span { color: #8d99a8; font-size: 12px; }
    .ocr-image-button { width: 40px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #2f3a49; border-radius: 6px; background: #0b1118; overflow: hidden; cursor: pointer; vertical-align: middle; }
    .ocr-image-button:hover { border-color: #60a5fa; }
    .ocr-image-button img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .ocr-image-empty { color: #64748b; font-size: 12px; }
    .ocr-result-pager { min-height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 7px; color: #8d99a8; font-size: 12px; font-weight: 800; }
    .ocr-result-pager .el-pagination { margin: 0; }
    .mono { font-family: Consolas, "Microsoft YaHei", sans-serif; color: #bfdbfe; font-variant-numeric: tabular-nums; }
    .settings-health-strip > div:nth-child(1) { box-shadow: inset 3px 0 0 #60a5fa; }
    .settings-health-strip > div:nth-child(2) { box-shadow: inset 3px 0 0 #f59e0b; }
    .settings-health-strip > div:nth-child(3) { box-shadow: inset 3px 0 0 #22c55e; }
    .settings-health-strip > div:nth-child(4) { box-shadow: inset 3px 0 0 #a78bfa; }
    .settings-health-strip strong,
    .settings-mini-metrics strong,
    .contract-summary-card strong,
    .contract-record-stats strong { font-variant-numeric: tabular-nums; }
    .settings-mini-metrics span:nth-child(1) { box-shadow: inset 3px 0 0 #60a5fa; }
    .settings-mini-metrics span:nth-child(2) { box-shadow: inset 3px 0 0 #22c55e; }
    .settings-mini-metrics span:nth-child(3) { box-shadow: inset 3px 0 0 #f59e0b; }
    .settings-page .contract-record-filter { padding: 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
    .settings-page .contract-summary-card:nth-child(1) { box-shadow: inset 3px 0 0 #22c55e; }
    .settings-page .contract-summary-card:nth-child(2) { box-shadow: inset 3px 0 0 #60a5fa; }
    .settings-page .contract-summary-card:nth-child(3) { box-shadow: inset 3px 0 0 #f59e0b; }
    .settings-page .contract-record-stat:nth-child(1) { box-shadow: inset 3px 0 0 #60a5fa; }
    .settings-page .contract-record-stat:nth-child(2) { box-shadow: inset 3px 0 0 #f59e0b; }
    .settings-page .contract-record-stat:nth-child(3) { box-shadow: inset 3px 0 0 #22c55e; }
    .settings-page .contract-record-stat:nth-child(4) { box-shadow: inset 3px 0 0 #a78bfa; }
    .settings-page .contract-record-stat:nth-child(5) { box-shadow: inset 3px 0 0 #ef4444; }
    .settings-page .contract-record-stat:nth-child(6) { box-shadow: inset 3px 0 0 #06b6d4; }
    .settings-page .contract-record-stat:nth-child(7) { box-shadow: inset 3px 0 0 #f97316; }
    .settings-page .el-table { border-radius: 8px; overflow: hidden; }
    .settings-page .el-table th.el-table__cell { font-weight: 900; }
    .settings-page .el-table .el-table__row:hover > td.el-table__cell { background: rgba(59, 130, 246, .08) !important; }
    .settings-page .el-table .cell { padding-left: 7px; padding-right: 7px; }
    .settings-page .el-table .el-button.is-link { min-height: 22px; margin-left: 0; padding: 0 4px; border-radius: 5px; font-size: 12px; font-weight: 900; }
    .settings-page .el-table .el-button.is-link:hover { background: rgba(59, 130, 246, .12); }
    .settings-page .el-table .el-button--danger.is-link:hover { background: rgba(239, 68, 68, .12); }
    .settings-page .el-table .el-button + .el-button { margin-left: 2px; }
    .contract-record-table .contract-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; width: 100%; }
    .contract-record-table .contract-row-actions .el-button.is-link { width: 100%; min-width: 0; justify-content: center; padding-left: 2px; padding-right: 2px; }
    .contract-record-table .contract-row-actions .el-button + .el-button { margin-left: 0; }
    .settings-page .content-toolbar { min-height: 30px; margin-bottom: 8px; gap: 10px; align-items: flex-start; }
    .settings-page .content-toolbar .section-title { margin-bottom: 0; }
    .settings-page .content-toolbar > div:first-child { min-width: 0; }
    .settings-page .content-toolbar .el-button { margin-left: 0; font-weight: 900; }
    .settings-page .muted-text { line-height: 1.42; }
    .settings-layout { min-width: 0; height: 100%; min-height: 0; display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 12px; align-items: stretch; }
    .settings-sidebar { min-width: 0; position: sticky; top: 10px; display: grid; gap: 8px; max-height: 100%; overflow: auto; padding-right: 2px; }
    .settings-side-card,
    .settings-side-nav button { min-width: 0; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .settings-side-card { padding: 10px; }
    .settings-side-head { display: grid; gap: 6px; background: linear-gradient(145deg, rgba(17,24,32,.98), rgba(15,21,29,.98)); box-shadow: inset 3px 0 0 #60a5fa; }
    .settings-side-head h2 { margin: 0; color: #f8fafc; font-size: 20px; line-height: 1.15; }
    .settings-side-head p { margin: 0; color: #8d99a8; font-size: 12px; line-height: 1.45; }
    .settings-side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
    .settings-side-actions .el-button { margin-left: 0; font-weight: 900; }
    .settings-side-nav { display: grid; gap: 7px; }
    .settings-side-nav button { position: relative; display: grid; gap: 2px; padding: 9px 10px 9px 12px; color: inherit; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease; }
    .settings-side-nav button::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 999px; background: transparent; transition: background .14s ease; }
    .settings-side-nav button:hover { border-color: #3b82f6; background: #142033; transform: translateX(1px); }
    .settings-side-nav button.active { border-color: #60a5fa; background: rgba(37, 99, 235, .18); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .18); }
    .settings-side-nav button.active::before { background: #60a5fa; }
    .settings-side-nav span { min-width: 0; color: #f8fafc; font-size: 13px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-side-nav strong { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-side-status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .settings-side-status > div { min-width: 0; min-height: 48px; display: grid; align-content: center; gap: 2px; padding: 7px 8px; border: 1px solid #2a3038; border-radius: 7px; background: #0f151d; box-sizing: border-box; }
    .settings-side-status span { color: #8d99a8; font-size: 11px; font-weight: 800; }
    .settings-side-status strong { color: #f8fafc; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
    .settings-body { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
    .settings-body.is-single-subsection { grid-template-rows: minmax(0, 1fr); gap: 0; }
    .settings-contract-panel { padding: 12px; }
    .settings-sub-nav { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
    .settings-sub-nav button { min-width: 0; min-height: 50px; display: grid; align-content: center; gap: 3px; padding: 8px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: #cbd5e1; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
    .settings-sub-nav button:hover { border-color: #3b82f6; background: #142033; }
    .settings-sub-nav button.active { border-color: #60a5fa; background: rgba(37, 99, 235, .18); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .18); }
    .settings-sub-nav span { min-width: 0; color: #f8fafc; font-size: 14px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-sub-nav strong { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .settings-sub-nav button.active strong { color: #bfdbfe; }
    .settings-section-shell { min-width: 0; min-height: 0; overflow: auto; display: grid; gap: 10px; }
    .settings-bottom-shell { height: 100%; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
    .settings-record-shell { height: 100%; overflow: hidden; }
    .settings-section-shell > .analysis-panel { height: auto; min-height: 0; align-self: start; box-sizing: border-box; }
    .settings-bottom-shell > .analysis-panel { height: 100%; align-self: stretch; }
    .settings-record-shell > .settings-contract-record-panel { height: 100%; align-self: stretch; }
    .settings-section-shell > .settings-card-panel,
    .settings-section-shell > .settings-contract-panel { display: flex; flex-direction: column; }
    .settings-section-shell > .analysis-panel > .content-toolbar,
    .settings-section-shell > .analysis-panel > .settings-mini-metrics,
    .settings-section-shell > .analysis-panel > .contract-summary-grid,
    .settings-section-shell > .analysis-panel > .contract-record-filter,
    .settings-section-shell > .analysis-panel > .contract-record-stats,
    .settings-section-shell > .analysis-panel > .contract-record-action-strip,
    .settings-section-shell > .analysis-panel > .contract-record-pagination { flex: 0 0 auto; }
    .settings-fill-table { flex: 0 1 auto; min-height: 0; }
    .settings-site-shell .settings-card-panel-domain,
    .settings-ocr-shell .settings-card-panel-ocr,
    .settings-template-shell .settings-contract-panel,
    .settings-download-shell .contract-service-panel {
      height: 100%;
      min-height: 0;
      overflow: hidden;
    }
    .settings-ocr-shell .settings-card-panel-ocr > .content-toolbar,
    .settings-ocr-shell .settings-card-panel-ocr > .stat-row {
      flex: 0 0 auto;
    }
    .settings-ocr-shell .ocr-result-panel {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .settings-ocr-shell .ocr-result-head,
    .settings-ocr-shell .ocr-result-pager {
      flex: 0 0 auto;
    }
    .settings-ocr-shell .ocr-result-table,
    .settings-template-shell .cloud-template-table,
    .settings-template-shell .contract-local-panel .settings-fill-table,
    .settings-download-shell .download-log-table {
      flex: 1 1 auto;
      min-height: 0;
    }
    .settings-ocr-shell .ocr-result-pager,
    .settings-template-shell .cloud-template-footer {
      margin-top: 8px;
      padding-top: 7px;
      border-top: 1px solid #273244;
    }
    .contract-local-panel { min-width: 0; min-height: 0; flex: 1 1 auto; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
    .contract-service-panel {
      padding: 12px;
      max-height: calc(100vh - 104px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
    }
    .settings-download-shell .contract-service-panel {
      max-height: none;
      overflow: hidden;
      overscroll-behavior: auto;
      scrollbar-gutter: auto;
    }
    .settings-download-shell .contract-service-panel > .content-toolbar {
      flex: 0 0 auto;
    }
    .settings-download-shell .contract-download-status-page,
    .settings-download-shell .contract-download-config-page {
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 4px;
      scrollbar-gutter: stable;
      overscroll-behavior: contain;
    }
    .contract-service-subpage { min-width: 0; min-height: 0; flex: 1 1 auto; display: grid; gap: 10px; align-content: start; }
    .contract-download-status-page {
      grid-template-rows: auto auto;
      align-content: start;
    }
    .contract-download-logs-page {
      grid-template-rows: minmax(0, 1fr);
      align-content: stretch;
      overflow: hidden;
    }
    .contract-download-queue-page {
      grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
      align-content: stretch;
      overflow: hidden;
    }
    .contract-service-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .contract-service-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .contract-service-card { min-width: 0; min-height: 74px; display: grid; align-content: center; gap: 4px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-shadow: inset 3px 0 0 #60a5fa; text-align: left; }
    button.contract-service-card { width: 100%; appearance: none; font: inherit; color: inherit; cursor: default; }
    .contract-service-action-card.clickable { cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
    .contract-service-action-card.clickable:hover { transform: translateY(-1px); border-color: #60a5fa; background: #121d2a; }
    .contract-service-action-card:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
    .contract-service-card.success { box-shadow: inset 3px 0 0 #22c55e; }
    .contract-service-card.warning { box-shadow: inset 3px 0 0 #f59e0b; }
    .contract-service-card.danger { box-shadow: inset 3px 0 0 #ef4444; }
    .contract-service-card.info { box-shadow: inset 3px 0 0 #94a3b8; }
    .contract-service-card span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .contract-service-card strong { min-width: 0; color: #f8fafc; font-size: 22px; font-weight: 950; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .contract-service-card small { min-width: 0; color: #8d99a8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-service-detail-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .contract-service-list { min-width: 0; display: grid; gap: 0; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; overflow: hidden; }
    .contract-service-list h4 { margin: 0; padding: 10px 12px; border-bottom: 1px solid #2a3038; color: #f8fafc; font-size: 14px; font-weight: 950; }
    .contract-service-list div { min-width: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid #202a36; }
    .contract-service-list div:last-child { border-bottom: 0; }
    .contract-service-list span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .contract-service-list strong { min-width: 0; color: #e5e7eb; font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .contract-service-wide-list div { grid-template-columns: 118px minmax(0, 1fr); }
    .contract-service-table-wrap { min-width: 0; display: grid; gap: 8px; }
    .settings-download-shell .contract-download-queue-page .contract-service-table-wrap {
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .settings-download-shell .contract-download-queue-page .contract-subsection-head {
      flex: 0 0 auto;
    }
    .settings-download-shell .contract-download-queue-table {
      flex: 1 1 auto;
      min-height: 0;
    }
    .contract-config-form { min-width: 0; display: grid; gap: 12px; padding: 12px; border: 1px solid #273244; border-radius: 8px; background: #0f151d; }
    .contract-config-form-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid #273244; }
    .contract-config-form-head > div { min-width: 0; display: grid; gap: 3px; }
    .contract-config-form-head strong { color: #f8fafc; font-size: 15px; font-weight: 950; }
    .contract-config-form-head span,
    .contract-config-actions span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .contract-config-head-actions { flex: 0 0 auto; display: flex !important; grid-template-columns: none !important; align-items: center; justify-content: flex-end; gap: 10px; }
    .contract-config-switchline { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #273244; border-radius: 8px; background: rgba(15, 23, 42, .34); }
    .contract-config-switchline span { color: #8d99a8; font-size: 12px; font-weight: 850; white-space: nowrap; }
    .contract-config-switchline strong { color: #22c55e; font-size: 13px; font-weight: 950; white-space: nowrap; }
    .contract-config-switchline strong.danger { color: #ef4444; }
    .contract-config-form.is-readonly .el-input.is-disabled .el-input__wrapper,
    .contract-config-form.is-readonly .el-input-number.is-disabled .el-input__wrapper { background: rgba(148, 163, 184, .08); box-shadow: 0 0 0 1px #273244 inset; }
    .contract-config-grid,
    .contract-config-secret-grid { min-width: 0; display: grid; gap: 10px; }
    .contract-config-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contract-config-secret-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contract-config-form .el-form-item { margin-bottom: 0; min-width: 0; }
    .contract-config-form .el-input-number { width: 100%; }
    .contract-config-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid #273244; }
    .contract-config-actions span { margin-right: auto; }
    .contract-polling-rules { min-width: 0; display: grid; gap: 8px; padding: 10px; border: 1px solid #273244; border-radius: 8px; background: #101820; }
    .contract-polling-rules-head { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid #273244; }
    .contract-polling-rules-head strong { color: #f8fafc; font-size: 15px; font-weight: 950; white-space: nowrap; }
    .contract-polling-rules-head span { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; text-align: right; }
    .contract-polling-rule-grid { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
    .contract-polling-rule-grid > div { min-width: 0; display: grid; gap: 3px; align-content: center; min-height: 72px; padding: 8px 9px; border: 1px solid #2f3a49; border-radius: 7px; background: #0f151d; }
    .contract-polling-rule-grid span,
    .contract-polling-flow strong { color: #8fb6ff; font-size: 12px; font-weight: 900; }
    .contract-polling-rule-grid strong { color: #f8fafc; font-size: 17px; font-weight: 950; line-height: 1.05; }
    .contract-polling-rule-grid small,
    .contract-polling-flow span { min-width: 0; color: #8d99a8; font-size: 12px; line-height: 1.38; }
    .contract-polling-rule-grid small,
    .contract-polling-flow span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .contract-polling-flow { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .contract-polling-flow > div { min-width: 0; display: grid; gap: 4px; align-content: start; min-height: 84px; padding: 9px 10px; border-left: 3px solid #3b82f6; background: rgba(59, 130, 246, .08); border-radius: 6px; }
    .contract-download-log-panel { margin-top: 2px; padding: 10px 10px 0; border: 1px solid #273244; border-radius: 8px; background: linear-gradient(180deg, #111820, #0f151d); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
    .settings-download-shell .contract-download-log-panel {
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .settings-download-shell .contract-download-log-panel > .contract-subsection-head,
    .settings-download-shell .download-log-summary,
    .settings-download-shell .download-log-pager {
      flex: 0 0 auto;
    }
    .download-log-summary { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .download-log-summary > div { min-width: 0; min-height: 58px; display: grid; align-content: center; gap: 3px; padding: 8px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; box-shadow: inset 3px 0 0 #60a5fa; }
    .download-log-summary > div.success { box-shadow: inset 3px 0 0 #22c55e; }
    .download-log-summary > div.warning { box-shadow: inset 3px 0 0 #f59e0b; }
    .download-log-summary > div.info { box-shadow: inset 3px 0 0 #94a3b8; }
    .download-log-summary span { color: #8d99a8; font-size: 12px; font-weight: 850; }
    .download-log-summary strong { min-width: 0; color: #f8fafc; font-size: 18px; font-weight: 950; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .download-log-table .el-table__cell { vertical-align: middle; }
    .download-log-pager {
      position: sticky;
      bottom: 0;
      z-index: 6;
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      margin: 0 -10px;
      padding: 7px 10px;
      border-top: 1px solid #273244;
      border-radius: 0 0 8px 8px;
      background: rgba(15, 21, 29, .96);
      box-shadow: 0 -8px 18px rgba(2, 6, 23, .16);
      backdrop-filter: blur(8px);
    }
    .download-log-pager > span { margin-right: auto; color: #8d99a8; font-size: 12px; font-weight: 900; }
    .download-log-pager .el-pagination { margin: 0; }
    .settings-download-shell .download-log-pager {
      position: relative;
      bottom: auto;
      margin-top: 8px;
    }
    .download-time-cell,
    .download-record-cell,
    .download-file-cell { min-width: 0; display: grid; gap: 3px; }
    .download-time-cell strong,
    .download-record-cell strong,
    .download-file-cell strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .download-time-cell strong { color: #e5e7eb; font-size: 12px; font-weight: 950; }
    .download-time-cell span,
    .download-record-cell span,
    .download-file-cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d99a8; font-size: 12px; }
    .download-record-cell strong { color: #dbeafe; font-size: 13px; font-weight: 950; }
    .download-file-cell strong { font-size: 12px; }
    .download-kind-tag.el-tag { min-width: 76px; justify-content: center; font-weight: 900; }
    .settings-section-chip.success { border-color: rgba(34, 197, 94, .42); background: rgba(34, 197, 94, .13); color: #86efac; }
    .settings-section-chip.warning { border-color: rgba(245, 158, 11, .46); background: rgba(245, 158, 11, .14); color: #fcd34d; }
    .settings-section-chip.danger { border-color: rgba(239, 68, 68, .46); background: rgba(239, 68, 68, .14); color: #fca5a5; }
    .settings-section-chip.info { border-color: rgba(148, 163, 184, .42); background: rgba(148, 163, 184, .12); color: #cbd5e1; }
    .permission-panel { display: none; }
    .user-workspace-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
    .user-workspace-tabs button { min-width: 0; min-height: 54px; display: grid; gap: 3px; align-content: center; padding: 8px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; color: #cbd5e1; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease; }
    .user-workspace-tabs button:hover { border-color: #3b82f6; background: #142033; transform: translateY(-1px); }
    .user-workspace-tabs button.active { border-color: #60a5fa; background: rgba(37, 99, 235, .18); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .2); }
    .user-workspace-tabs span { color: #f8fafc; font-size: 14px; font-weight: 950; }
    .user-workspace-tabs strong { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-workspace-tabs button.active strong { color: #bfdbfe; }
    .user-management-grid { grid-template-columns: minmax(0, 1fr); }
    .permission-workbench-panel { min-height: 640px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; margin-top: 10px; }
    .user-section-panel .permission-workbench-panel { margin-top: 0; min-height: calc(100vh - 164px); }
    .user-section-panel .permission-editor { min-height: calc(100vh - 164px); }
    .permission-sidebar { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
    .permission-flow-steps { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .permission-flow-step { min-width: 0; min-height: 42px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num title" "num desc"; column-gap: 8px; align-content: center; padding: 7px 9px; border: 1px solid #263241; border-radius: 8px; background: #111820; color: #cbd5e1; }
    .permission-flow-step b { grid-area: num; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #172033; color: #bfdbfe; font-size: 12px; line-height: 1; }
    .permission-flow-step span { grid-area: title; min-width: 0; color: #f8fafc; font-size: 12px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-flow-step small { grid-area: desc; min-width: 0; color: #8d99a8; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-flow-step.done { border-color: rgba(34, 197, 94, .42); background: rgba(22, 101, 52, .16); }
    .permission-flow-step.done b { background: #15803d; color: #ffffff; }
    .permission-flow-step.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); box-shadow: inset 3px 0 0 #3b82f6; }
    .permission-side-card,
    .permission-editor { min-width: 0; border: 1px solid #2a3038; border-radius: 8px; background: #111820; padding: 10px; }
    .permission-side-card.locked { opacity: .72; }
    .permission-side-card.locked .permission-form-groups,
    .permission-side-card.locked .permission-scope-sections { pointer-events: none; }
    .permission-editor { display: flex; flex-direction: column; min-height: 640px; }
    .permission-side-title { color: #f8fafc; font-weight: 800; margin-bottom: 10px; }
    .permission-step-card { display: grid; gap: 9px; }
    .permission-step-card .permission-side-title { margin-bottom: 0; }
    .permission-step-card .permission-note { margin: 0; }
    .permission-step-card .permission-target-tabs { margin-bottom: 0; }
    .permission-target-tabs { width: 100%; margin-bottom: 10px; }
    .permission-target-tabs .el-radio-button { flex: 1; }
    .permission-target-tabs .el-radio-button__inner { width: 100%; }
    .permission-note { margin: 10px 0 0; color: #8d99a8; font-size: 12px; line-height: 1.5; }
    .permission-form-browser { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
    .permission-scope-kind-select { width: 100%; }
    .permission-scope-sections { min-height: 0; overflow: auto; display: grid; gap: 10px; padding-top: 10px; }
    .permission-scope-section { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid #252c35; }
    .permission-scope-section:last-child { border-bottom: 0; padding-bottom: 0; }
    .permission-report-section { display: grid; gap: 8px; padding: 8px; border: 1px solid #263241; border-radius: 8px; background: #0f151d; }
    .permission-report-section .permission-form-group-title { color: #bfdbfe; margin-bottom: 7px; }
    .permission-report-item { min-height: 64px; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 4px; padding: 9px 10px; border-color: rgba(96, 165, 250, .3); background: rgba(37, 99, 235, .08); }
    .permission-report-item span,
    .permission-report-item small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
    .permission-report-item span { line-height: 1.3; }
    .permission-report-item small { display: block; line-height: 1.45; }
    .permission-report-item:hover { border-color: #60a5fa; background: rgba(37, 99, 235, .15); }
    .permission-report-item.active { border-color: #60a5fa; background: rgba(37, 99, 235, .22); box-shadow: inset 3px 0 0 #60a5fa; }
    .permission-empty-mini { padding: 8px; border: 1px dashed #334155; border-radius: 7px; color: #8d99a8; font-size: 12px; text-align: center; }
    .permission-form-groups { min-height: 0; overflow: visible; padding-top: 0; }
    .permission-form-group { padding: 8px 0 12px; border-bottom: 1px solid #252c35; }
    .permission-form-group:last-child { border-bottom: 0; }
    .permission-form-group-title { color: #8d99a8; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
    .permission-form-item { width: 100%; min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #dce4ee; text-align: left; padding: 5px 8px; cursor: pointer; }
    .permission-form-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
    .permission-form-item small { color: #8d99a8; font-size: 12px; }
    .permission-form-item.permission-report-item { min-height: 64px; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 4px; padding: 9px 10px; }
    .permission-form-item.permission-report-item span,
    .permission-form-item.permission-report-item small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
    .permission-form-item.permission-report-item span { line-height: 1.3; }
    .permission-form-item.permission-report-item small { display: block; line-height: 1.45; }
    .permission-form-item:hover { border-color: #334155; background: #121922; }
    .permission-form-item.active { border-color: #3b82f6; background: rgba(37, 99, 235, .14); color: #ffffff; }
    .permission-form-item.disabled { opacity: .62; }
    .permission-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #252c35; }
    .permission-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .permission-dirty-badge { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #422006; color: #fcd34d; font-size: 12px; font-weight: 800; }
    .permission-source-row { min-width: 0; display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
    .permission-source-row small { min-width: 0; color: #8d99a8; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-source-chip { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid #334155; border-radius: 999px; background: #111820; color: #cbd5e1; font-size: 12px; font-weight: 950; white-space: nowrap; }
    .permission-source-chip.personal { border-color: #f59e0b; background: rgba(245, 158, 11, .14); color: #fcd34d; }
    .permission-source-chip.group { border-color: #22c55e; background: rgba(34, 197, 94, .13); color: #86efac; }
    .permission-source-chip.protected { border-color: #60a5fa; background: rgba(59, 130, 246, .16); color: #bfdbfe; }
    .permission-source-chip.default { border-color: #64748b; background: rgba(100, 116, 139, .14); color: #cbd5e1; }
    .permission-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .permission-action-panel { margin-top: 8px; padding: 8px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .permission-report-permission-panel { margin-top: 8px; padding: 8px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; }
    .permission-action-panel-head { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
    .permission-action-panel-head div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
    .permission-action-panel-head strong { flex: 0 0 auto; color: #f8fafc; font-size: 14px; }
    .permission-action-panel-head span,
    .permission-action-panel-head small,
    .permission-action-note { color: #8d99a8; font-size: 12px; line-height: 1.5; }
    .permission-action-panel-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-action-panel-head small { flex: 1 1 auto; min-width: 0; max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
    .permission-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 6px; }
    .permission-action-card { min-width: 0; height: 34px; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #334155; border-radius: 7px; background: #111820; color: #cbd5e1; padding: 0 10px; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease; }
    .permission-action-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
    .permission-action-card small { flex: 0 0 auto; color: #8d99a8; font-size: 11px; white-space: nowrap; }
    .permission-action-card:hover { border-color: #3b82f6; color: #ffffff; }
    .permission-action-card.active { border-color: #22c55e; background: rgba(22, 163, 74, .14); color: #ffffff; box-shadow: inset 3px 0 0 #22c55e; }
    .permission-action-card.active small { color: #86efac; }
    .permission-action-card.group.active { border-color: #60a5fa; background: rgba(37, 99, 235, .16); box-shadow: inset 3px 0 0 #60a5fa; }
    .permission-action-card.group.active small { color: #bfdbfe; }
    .permission-action-card.default.active { border-color: #94a3b8; background: rgba(148, 163, 184, .12); box-shadow: inset 3px 0 0 #94a3b8; }
    .permission-action-card.default.active small { color: #cbd5e1; }
    .permission-action-card.locked,
    .permission-action-card:disabled { cursor: not-allowed; opacity: .56; filter: grayscale(.35); }
    .permission-action-card.locked:hover,
    .permission-action-card:disabled:hover { border-color: #334155; color: #cbd5e1; }
    .permission-action-source-note { margin: 0 0 7px; padding: 6px 8px; border: 1px solid rgba(96, 165, 250, .36); border-radius: 7px; background: rgba(37, 99, 235, .11); color: #bfdbfe; font-size: 12px; font-weight: 850; line-height: 1.35; }
    .permission-action-note { margin: 6px 0 0; color: #fbbf24; }
    .permission-report-permission-list { display: grid; gap: 6px; }
    .permission-report-permission-row { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 420px); align-items: center; gap: 12px; padding: 7px 9px; border: 1px solid #273241; border-radius: 8px; background: #111820; }
    .permission-report-copy { min-width: 0; display: grid; gap: 3px; }
    .permission-report-copy strong { color: #f8fafc; font-size: 14px; font-weight: 950; line-height: 1.2; }
    .permission-report-copy span { min-width: 0; color: #9aa6b5; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-report-copy small { color: #60a5fa; font-size: 11px; font-weight: 850; }
    .permission-report-checks { display: flex; align-items: center; justify-content: flex-end; gap: 10px 14px; flex-wrap: wrap; }
    .permission-report-checks .el-checkbox { margin-right: 0; height: 26px; }
    .permission-report-checks .el-checkbox__label { color: #dce4ee; font-weight: 850; }
    .permission-report-checks .el-checkbox.is-disabled .el-checkbox__label { color: #64748b; }
    .permission-balance-days { height: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #2f3b4b; border-radius: 7px; background: #0f1722; color: #dce4ee; font-size: 12px; font-weight: 850; }
    .permission-balance-days.disabled { opacity: .55; }
    .permission-balance-days .el-input-number { width: 86px; }
    .permission-balance-days .el-input-number--small .el-input__wrapper { min-height: 24px; padding-left: 4px; padding-right: 24px; background: #172232; box-shadow: 0 0 0 1px #334155 inset; }
    .permission-balance-days .el-input-number--small .el-input__inner { color: #f8fafc; font-weight: 900; }
    .permission-balance-days .el-input-number__decrease,
    .permission-balance-days .el-input-number__increase { width: 20px; background: #1f2d40; border-color: #334155; color: #cbd5e1; }
    .permission-summary-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 0; }
    .permission-summary-row span { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid #2a3038; border-radius: 999px; color: #cbd5e1; background: #0f151d; font-size: 11px; }
    .permission-tools { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto auto; gap: 6px; margin-bottom: 6px; }
    .permission-field-list { min-height: 0; overflow: auto; padding-right: 4px; }
    .permission-field-section { margin-bottom: 8px; }
    .permission-field-section-title { position: sticky; top: 0; z-index: 1; min-height: 30px; display: flex; align-items: center; gap: 6px; color: #f8fafc; font-size: 14px; font-weight: 800; background: #111820; border-bottom: 1px solid #252c35; }
    .permission-field-section-title small { color: #8d99a8; font-size: 11px; font-weight: 500; }
    .permission-section-toggle { width: 21px; height: 21px; border: 1px solid #334155; border-radius: 5px; background: #0f151d; color: #cbd5e1; cursor: pointer; }
    .permission-section-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
    .permission-section-actions button { min-height: 22px; border: 1px solid #334155; border-radius: 999px; background: #0f151d; color: #cbd5e1; padding: 0 7px; font-size: 11px; cursor: pointer; }
    .permission-section-actions button:disabled { opacity: .45; cursor: not-allowed; }
    .permission-section-actions button:hover,
    .permission-section-toggle:hover { border-color: #3b82f6; color: #ffffff; }
    .permission-section-actions button.primary-action { border-color: #2563eb; background: rgba(37, 99, 235, .14); color: #bfdbfe; font-weight: 800; }
    .permission-section-actions button.primary-action:hover { background: #2563eb; color: #ffffff; }
    .permission-field-row { min-height: 34px; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(120px, .58fr) minmax(418px, 1.45fr) 74px; align-items: center; gap: 6px; padding: 1px 0; border-bottom: 1px solid #252c35; }
    .permission-field-main { min-width: 0; display: grid; gap: 0; }
    .permission-field-main strong { color: #f8fafc; font-size: 13px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .permission-field-main span { color: #8d99a8; font-size: 10px; line-height: 12px; }
    .permission-field-tags { min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
    .permission-field-tags span { min-height: 16px; display: inline-flex; align-items: center; padding: 0 5px; border-radius: 999px; background: #1f2937; color: #cbd5e1; font-size: 10px; white-space: nowrap; }
    .permission-flag-group { min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
    .permission-flag { min-height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #334155; border-radius: 999px; background: #0f151d; color: #cbd5e1; padding: 0 7px; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease; }
    .permission-flag:hover { border-color: #3b82f6; color: #ffffff; }
    .permission-flag.active { background: #1d4ed8; border-color: #2563eb; color: #ffffff; }
    .permission-flag.danger.active { background: #be123c; border-color: #e11d48; color: #ffffff; }
    .permission-flag.locked { cursor: not-allowed; opacity: .92; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
    .permission-flag:disabled { cursor: not-allowed; }
    .permission-mode-pill { min-height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 800; background: #1f2937; color: #cbd5e1; }
    .permission-field-row.mode-0 .permission-mode-pill { background: #3b1d24; color: #fda4af; }
    .permission-field-row.mode-1 .permission-mode-pill { background: #1e293b; color: #bfdbfe; }
    .permission-field-row.mode-2 .permission-mode-pill,
    .permission-field-row.mode-4 .permission-mode-pill { background: #422006; color: #fcd34d; }
    .permission-field-row.mode-3 .permission-mode-pill,
    .permission-field-row.mode-5 .permission-mode-pill { background: #052e25; color: #86efac; }
    .permission-empty { min-height: 240px; display: grid; place-content: center; text-align: center; gap: 8px; color: #8d99a8; }
    .permission-empty strong { color: #f8fafc; font-size: 18px; }
    .permission-locked-panel { min-height: 360px; border: 1px dashed #334155; border-radius: 8px; background: #0f151d; }
    body[data-theme="light"] .permission-flow-steps,
    body[data-theme="light"] .permission-locked-panel { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .permission-flow-step { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .permission-flow-step b { background: #eef2f7; color: #2563eb; }
    body[data-theme="light"] .permission-flow-step span { color: #111827; }
    body[data-theme="light"] .permission-flow-step small,
    body[data-theme="light"] .permission-source-row small { color: #64748b; }
    body[data-theme="light"] .permission-flow-step.done { background: #f0fdf4; border-color: #bbf7d0; }
    body[data-theme="light"] .permission-flow-step.done b { background: #16a34a; color: #ffffff; }
    body[data-theme="light"] .permission-flow-step.active { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 3px 0 0 #3b82f6; }
    body[data-theme="light"] .permission-source-chip { background: #ffffff; border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .permission-source-chip.personal { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
    body[data-theme="light"] .permission-source-chip.group { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
    body[data-theme="light"] .permission-source-chip.protected { background: #eff6ff; border-color: #60a5fa; color: #1d4ed8; }
    body[data-theme="light"] .permission-source-chip.default { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
    body[data-theme="light"] .permission-side-card,
    body[data-theme="light"] .permission-editor { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .user-workspace-tabs button { background: #ffffff; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .user-workspace-tabs button:hover { background: #f8fafc; border-color: #93c5fd; }
    body[data-theme="light"] .user-workspace-tabs button.active { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .14); }
    body[data-theme="light"] .user-workspace-tabs span { color: #111827; }
    body[data-theme="light"] .user-workspace-tabs strong { color: #64748b; }
    body[data-theme="light"] .user-workspace-tabs button.active strong { color: #1d4ed8; }
    body[data-theme="light"] .permission-side-title,
    body[data-theme="light"] .permission-field-section-title,
    body[data-theme="light"] .permission-field-main strong,
    body[data-theme="light"] .permission-empty strong { color: #111827; }
    body[data-theme="light"] .permission-note,
    body[data-theme="light"] .permission-form-group-title,
    body[data-theme="light"] .permission-form-item small,
    body[data-theme="light"] .permission-field-main span { color: #64748b; }
    body[data-theme="light"] .permission-scope-section,
    body[data-theme="light"] .permission-form-group,
    body[data-theme="light"] .permission-editor-head,
    body[data-theme="light"] .permission-field-section-title,
    body[data-theme="light"] .permission-field-row { border-color: #e5e7eb; }
    body[data-theme="light"] .permission-report-section { background: #f8fafc; border-color: #bfdbfe; }
    body[data-theme="light"] .permission-report-section .permission-form-group-title { color: #1d4ed8; }
    body[data-theme="light"] .permission-report-item { background: #eff6ff; border-color: #bfdbfe; }
    body[data-theme="light"] .permission-report-item:hover { background: #dbeafe; border-color: #60a5fa; }
    body[data-theme="light"] .permission-report-item.active { background: #dbeafe; border-color: #3b82f6; box-shadow: inset 3px 0 0 #3b82f6; }
    body[data-theme="light"] .permission-empty-mini { border-color: #cbd5e1; color: #64748b; }
    body[data-theme="light"] .permission-form-item { color: #111827; }
    body[data-theme="light"] .permission-form-item:hover { background: #f8fafc; border-color: #cbd5e1; }
    body[data-theme="light"] .permission-form-item.active { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .permission-dirty-badge { background: #fef3c7; color: #92400e; }
    body[data-theme="light"] .permission-action-panel,
    body[data-theme="light"] .permission-report-permission-panel { background: #f8fafc; border-color: #e5e7eb; }
    body[data-theme="light"] .permission-action-panel-head strong { color: #111827; }
    body[data-theme="light"] .permission-action-panel-head span,
    body[data-theme="light"] .permission-action-panel-head small { color: #64748b; }
    body[data-theme="light"] .permission-action-card { background: #ffffff; border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .permission-action-card:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .permission-action-card.active { background: #ecfdf5; border-color: #22c55e; color: #166534; box-shadow: inset 3px 0 0 #22c55e; }
    body[data-theme="light"] .permission-action-card.active small { color: #15803d; }
    body[data-theme="light"] .permission-action-card.group.active { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; box-shadow: inset 3px 0 0 #3b82f6; }
    body[data-theme="light"] .permission-action-card.group.active small { color: #2563eb; }
    body[data-theme="light"] .permission-action-card.default.active { background: #f8fafc; border-color: #94a3b8; color: #334155; box-shadow: inset 3px 0 0 #94a3b8; }
    body[data-theme="light"] .permission-action-card.default.active small { color: #475569; }
    body[data-theme="light"] .permission-action-source-note { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    body[data-theme="light"] .permission-report-permission-row { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .permission-report-copy strong { color: #111827; }
    body[data-theme="light"] .permission-report-copy span { color: #64748b; }
    body[data-theme="light"] .permission-report-copy small { color: #2563eb; }
    body[data-theme="light"] .permission-report-checks .el-checkbox__label { color: #334155; }
    body[data-theme="light"] .permission-report-checks .el-checkbox.is-disabled .el-checkbox__label { color: #94a3b8; }
    body[data-theme="light"] .permission-balance-days { background: #f8fafc; border-color: #dbe1ea; color: #334155; }
    body[data-theme="light"] .permission-balance-days .el-input-number--small .el-input__wrapper { background: #ffffff; box-shadow: 0 0 0 1px #cbd5e1 inset; }
    body[data-theme="light"] .permission-balance-days .el-input-number--small .el-input__inner { color: #0f172a; }
    body[data-theme="light"] .permission-balance-days .el-input-number__decrease,
    body[data-theme="light"] .permission-balance-days .el-input-number__increase { background: #eef2f7; border-color: #cbd5e1; color: #475569; }
    body[data-theme="light"] .permission-action-card.locked:hover,
    body[data-theme="light"] .permission-action-card:disabled:hover { border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .permission-summary-row span { background: #f8fafc; border-color: #e5e7eb; color: #334155; }
    body[data-theme="light"] .permission-field-section-title { background: #ffffff; }
    body[data-theme="light"] .permission-section-toggle,
    body[data-theme="light"] .permission-section-actions button { background: #ffffff; border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .permission-section-actions button:hover,
    body[data-theme="light"] .permission-section-toggle:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .permission-section-actions button.primary-action { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
    body[data-theme="light"] .permission-section-actions button.primary-action:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }
    body[data-theme="light"] .permission-field-tags span { background: #eef2f7; color: #334155; }
    body[data-theme="light"] .permission-flag { background: #ffffff; border-color: #cbd5e1; color: #334155; }
    body[data-theme="light"] .permission-flag:hover { border-color: #3b82f6; color: #1d4ed8; }
    body[data-theme="light"] .permission-flag.active { background: #2563eb; border-color: #2563eb; color: #ffffff; }
    body[data-theme="light"] .permission-flag.danger.active { background: #e11d48; border-color: #e11d48; color: #ffffff; }
    .audit-panel { padding-bottom: 0; }
    body[data-theme="dark"] .audit-panel .el-radio-group {
      --el-fill-color-blank: #111820;
      --el-border-color: #334155;
      --el-text-color-regular: #cbd5e1;
      --el-radio-button-checked-bg-color: #2563eb;
      --el-radio-button-checked-border-color: #2563eb;
      --el-radio-button-checked-text-color: #ffffff;
    }
    body[data-theme="dark"] .audit-panel .el-radio-button__inner {
      background: #111820 !important;
      border-color: #334155 !important;
      color: #cbd5e1 !important;
      box-shadow: none !important;
    }
    body[data-theme="dark"] .audit-panel .el-radio-button:first-child .el-radio-button__inner {
      border-left-color: #334155 !important;
    }
    body[data-theme="dark"] .audit-panel .el-radio-button:not(.is-active) .el-radio-button__inner,
    body[data-theme="dark"] .audit-panel .el-radio-button__original-radio:not(:checked) + .el-radio-button__inner {
      background: #111820 !important;
      border-color: #334155 !important;
      color: #cbd5e1 !important;
    }
    body[data-theme="dark"] .audit-panel .el-radio-button__inner:hover {
      background: #172033 !important;
      border-color: #3b82f6 !important;
      color: #dbeafe !important;
    }
    body[data-theme="dark"] .audit-panel .el-radio-button.is-active .el-radio-button__inner,
    body[data-theme="dark"] .audit-panel .el-radio-button__original-radio:checked + .el-radio-button__inner {
      background: #2563eb !important;
      border-color: #2563eb !important;
      color: #ffffff !important;
      box-shadow: -1px 0 0 0 #2563eb !important;
    }
    body[data-theme="dark"] .audit-shortcuts .el-button {
      --el-button-bg-color: #111820;
      --el-button-border-color: #334155;
      --el-button-text-color: #dbeafe;
      --el-button-hover-bg-color: #172033;
      --el-button-hover-border-color: #3b82f6;
      --el-button-hover-text-color: #ffffff;
      --el-button-active-bg-color: #0f172a;
      --el-button-active-border-color: #60a5fa;
      --el-button-active-text-color: #ffffff;
      background: #111820 !important;
      border-color: #334155 !important;
      color: #dbeafe !important;
    }
    body[data-theme="dark"] .audit-shortcuts .el-button.el-button--primary {
      --el-button-bg-color: #1d4ed8;
      --el-button-border-color: #2563eb;
      --el-button-text-color: #ffffff;
      --el-button-hover-bg-color: #2563eb;
      --el-button-hover-border-color: #3b82f6;
      background: #1d4ed8 !important;
      border-color: #2563eb !important;
      color: #ffffff !important;
      box-shadow: 0 3px 10px rgba(37, 99, 235, .22);
    }
    body[data-theme="dark"] .audit-panel .el-tag {
      --el-tag-bg-color: #111820;
      --el-tag-border-color: #334155;
      --el-tag-text-color: #cbd5e1;
      min-width: 48px;
      justify-content: center;
      font-weight: 800;
      background: #111820 !important;
      border-color: #334155 !important;
      color: #cbd5e1 !important;
    }
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--primary,
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--primary.el-tag--light {
      --el-tag-bg-color: rgba(59, 130, 246, .16);
      --el-tag-border-color: rgba(96, 165, 250, .42);
      --el-tag-text-color: #93c5fd;
      background: rgba(59, 130, 246, .16) !important;
      border-color: rgba(96, 165, 250, .42) !important;
      color: #93c5fd !important;
    }
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--success,
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--success.el-tag--light {
      --el-tag-bg-color: rgba(34, 197, 94, .13);
      --el-tag-border-color: rgba(74, 222, 128, .36);
      --el-tag-text-color: #86efac;
      background: rgba(34, 197, 94, .13) !important;
      border-color: rgba(74, 222, 128, .36) !important;
      color: #86efac !important;
    }
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--danger,
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--danger.el-tag--light {
      --el-tag-bg-color: rgba(239, 68, 68, .13);
      --el-tag-border-color: rgba(248, 113, 113, .38);
      --el-tag-text-color: #fca5a5;
      background: rgba(239, 68, 68, .13) !important;
      border-color: rgba(248, 113, 113, .38) !important;
      color: #fca5a5 !important;
    }
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--warning,
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--warning.el-tag--light {
      --el-tag-bg-color: rgba(245, 158, 11, .14);
      --el-tag-border-color: rgba(251, 191, 36, .38);
      --el-tag-text-color: #fcd34d;
      background: rgba(245, 158, 11, .14) !important;
      border-color: rgba(251, 191, 36, .38) !important;
      color: #fcd34d !important;
    }
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--info,
    body[data-theme="dark"] .audit-panel .el-tag.el-tag--info.el-tag--light {
      --el-tag-bg-color: rgba(148, 163, 184, .12);
      --el-tag-border-color: rgba(148, 163, 184, .34);
      --el-tag-text-color: #cbd5e1;
      background: rgba(148, 163, 184, .12) !important;
      border-color: rgba(148, 163, 184, .34) !important;
      color: #cbd5e1 !important;
    }
    body[data-theme="dark"] .audit-panel .el-pagination {
      --el-pagination-bg-color: #0f172a;
      --el-pagination-button-bg-color: #0f172a;
      --el-pagination-button-color: #cbd5e1;
      --el-pagination-button-disabled-bg-color: #0b1118;
      --el-pagination-button-disabled-color: #64748b;
      --el-pagination-hover-color: #93c5fd;
      --el-pagination-font-size: 14px;
    }
    body[data-theme="dark"] .audit-panel .el-pagination .btn-prev,
    body[data-theme="dark"] .audit-panel .el-pagination .btn-next,
    body[data-theme="dark"] .audit-panel .el-pagination .el-pager li,
    body[data-theme="dark"] .audit-panel .el-pagination .el-select__wrapper,
    body[data-theme="dark"] .audit-panel .el-pagination .el-input__wrapper {
      background: #0f172a !important;
      border-color: #334155 !important;
      color: #dbeafe !important;
      box-shadow: 0 0 0 1px #334155 inset !important;
    }
    body[data-theme="dark"] .audit-panel .el-pagination .el-pager li.is-active {
      background: #2563eb !important;
      color: #ffffff !important;
      box-shadow: 0 0 0 1px #2563eb inset !important;
    }
    .option-block { padding: 12px 0; border-bottom: 1px solid #252c35; }
    .option-block:last-child { border-bottom: 0; }
    .option-title { color: #dce4ee; font-weight: 700; margin-bottom: 10px; }
    .option-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; margin-bottom: 10px; }
    .option-table { margin-bottom: 10px; }
    .option-table .el-color-picker { vertical-align: middle; }
    .option-add { display: grid; grid-template-columns: 1fr 72px; gap: 8px; }
    .game-config-drawer .el-drawer__header { margin-bottom: 0; padding: 10px 18px 8px; }
    .game-config-drawer .el-drawer__body { min-height: 0; padding: 8px 16px 0; display: flex; flex-direction: column; overflow: hidden; }
    .game-config-drawer .el-drawer__footer { padding: 8px 16px 12px; }
    .game-config-basic { padding: 8px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; margin-bottom: 8px; }
    .game-config-basic-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) 120px auto; align-items: center; gap: 8px; }
    .game-config-basic-form .el-form-item { margin-bottom: 0; }
    .game-config-tabs { flex: 1 1 auto; min-height: 0; margin-top: 0; display: flex; flex-direction: column; }
    .game-config-tabs .el-tabs__header { margin: 0 0 8px; }
    .game-config-tabs .el-tabs__content { flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .game-config-tabs .el-tab-pane { height: 100%; min-height: 0; }
    .field-list-panel { height: calc(100vh - 218px); min-height: 360px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
    .field-list-toolbar { min-height: 36px; flex: 0 0 auto; padding: 0; border-bottom: 0; background: transparent; }
    .field-list-table { flex: 1 1 auto; min-height: 0; }
    .game-business-panel { height: 100%; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; gap: 12px; padding: 2px 2px 8px; }
    .game-business-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .game-business-copy { min-width: 0; display: grid; gap: 4px; }
    .game-business-copy span { color: #8d99a8; font-size: 12px; line-height: 1.6; }
    .game-business-control { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
    .game-business-control strong { color: #86efac; font-size: 13px; }
    .game-business-control strong.danger { color: #fca5a5; }
    .related-field-settings-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .related-field-settings-card { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid #2a3038; border-radius: 8px; background: #111820; overflow: hidden; }
    .related-field-settings-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #26313d; }
    .related-field-settings-head > div { min-width: 0; display: grid; gap: 4px; }
    .related-field-settings-head span { color: #8d99a8; font-size: 12px; line-height: 1.4; }
    .related-field-settings-add { flex: 0 0 auto; min-width: 350px !important; display: grid !important; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 8px !important; }
    .related-field-settings-add .el-select { width: 100%; }
    .related-field-settings-list { min-height: 0; overflow: auto; padding: 8px; display: grid; gap: 6px; align-content: start; }
    .related-field-settings-row { min-width: 0; min-height: 40px; display: grid; grid-template-columns: 34px minmax(82px, 1fr) minmax(96px, 1.1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #273241; border-radius: 7px; background: #0f151d; }
    .related-field-order { width: 22px; height: 22px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 6px; background: #12325b; color: #bfdbfe !important; font-size: 12px !important; font-weight: 950 !important; }
    .related-field-settings-row span { min-width: 0; color: #e5e7eb; font-size: 13px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .related-field-settings-row code { min-width: 0; color: #94a3b8; font-size: 12px; font-family: Consolas, "Microsoft YaHei", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .related-field-settings-row > div { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
    .related-field-settings-row .el-button { margin-left: 0 !important; }
    .game-business-actions { display: flex; justify-content: flex-end; gap: 8px; }
    .form-designer { height: calc(100vh - 166px); min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; }
    .designer-stage { min-height: 0; overflow: auto; padding: 10px; border: 1px solid #252c35; border-radius: 8px; background: #151a1f; }
    .designer-paper { width: min(760px, 100%); min-height: 100%; margin: 0 auto; padding: 18px 22px; border: 1px solid #252c35; border-radius: 8px; background: #0f1115; }
    .designer-title { font-size: 18px; font-weight: 800; color: #f8fafc; padding-bottom: 10px; border-bottom: 1px dashed #343b46; margin-bottom: 10px; }
    .designer-section { padding: 6px 0 8px; border-bottom: 1px dashed #252c35; }
    .designer-section:last-child { border-bottom: 0; }
    .designer-divider { color: #dce4ee; font-weight: 800; margin-bottom: 6px; }
    .designer-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 7px 10px; }
    .designer-field { min-height: 40px; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
    .designer-field:hover { border-color: #334155; background: #121922; }
    .designer-field.selected { border-color: #3b82f6; background: rgba(37, 99, 235, .12); box-shadow: 0 0 0 2px rgba(59, 130, 246, .15); }
    .designer-field.hidden { opacity: .58; border-color: #334155; border-style: dashed; }
    .designer-field.readonly { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); }
    .designer-field.wide { grid-column: 1 / -1; }
    .designer-field.textarea { align-items: start; }
    .designer-field-label { min-width: 0; color: #e5e7eb; font-weight: 800; word-break: break-word; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .designer-required { color: #fb7185; margin-right: 2px; }
    .designer-input-box,
    .designer-upload-box,
    .designer-textarea-box { min-height: 30px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #343b46; background: #11161c; color: #d7dde6; border-radius: 4px; }
    .designer-upload-box { border-style: dashed; color: #cbd5e1; }
    .designer-textarea-box { min-height: 52px; align-items: flex-start; padding-top: 7px; }
    .designer-switch-box { width: 40px; height: 20px; border-radius: 999px; background: #374151; padding: 2px; box-sizing: border-box; }
    .designer-switch-box span { width: 16px; height: 16px; display: block; border-radius: 50%; background: #cbd5e1; }
    .designer-choice-board { gap: 6px 8px; }
    .designer-choice-chip { pointer-events: none; }
    .designer-other-chip { min-height: 30px; grid-template-columns: 13px auto; pointer-events: none; }
    .designer-inspector { min-height: 0; overflow: auto; padding: 10px; border: 1px solid #252c35; border-radius: 8px; background: #111820; }
    .designer-inspector-card { display: grid; gap: 4px; padding: 8px; border: 1px solid #2a3038; border-radius: 8px; background: #0f151d; margin-bottom: 8px; }
    .designer-inspector-name { color: #f8fafc; font-size: 16px; font-weight: 800; }
    .designer-inspector-code { color: #8d99a8; font-size: 12px; }
    .designer-props-form { display: grid; gap: 4px; }
    .designer-switch-list { display: grid; gap: 5px; margin: 0 0 8px; }
    .designer-option-panel { margin-top: 12px; padding-top: 10px; border-top: 1px solid #252c35; }
    .designer-option-list { display: grid; gap: 5px; }
    .designer-option-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px 42px 42px 42px; gap: 6px; align-items: center; }
    .designer-option-row .el-button,
    .designer-option-add .el-button { margin-left: 0; padding-left: 8px; padding-right: 8px; }
    .designer-option-add { display: grid; grid-template-columns: minmax(0, 1fr) 36px 64px; gap: 6px; align-items: center; padding-top: 8px; }
    .option-color-picker-empty .el-color-picker__color { position: relative; overflow: hidden; background: repeating-conic-gradient(#475569 0% 25%, #111827 0% 50%) 50% / 8px 8px; border-color: #64748b; }
    .option-color-picker-empty .el-color-picker__color-inner { background: transparent !important; }
    .option-color-picker-empty .el-color-picker__color::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; border-radius: 999px; background: #ef4444; transform: rotate(-38deg); transform-origin: center; box-shadow: 0 0 0 1px rgba(15, 23, 42, .55); }
    body[data-theme="light"] .designer-stage { background: #eef2f7; border-color: #dbe1ea; }
    body[data-theme="light"] .designer-paper,
    body[data-theme="light"] .designer-inspector { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .designer-title,
    body[data-theme="light"] .designer-divider,
    body[data-theme="light"] .designer-field-label,
    body[data-theme="light"] .designer-inspector-name { color: #111827; }
    body[data-theme="light"] .designer-field:hover { background: #f8fafc; border-color: #cbd5e1; }
    body[data-theme="light"] .designer-field.selected { background: #eff6ff; border-color: #3b82f6; }
    body[data-theme="light"] .designer-field.readonly { background: #fffbeb; border-color: #facc15; }
    body[data-theme="light"] .designer-input-box,
    body[data-theme="light"] .designer-upload-box,
    body[data-theme="light"] .designer-textarea-box,
    body[data-theme="light"] .designer-inspector-card { background: #f8fafc; border-color: #dbe1ea; color: #334155; }
    .game-config-options { display: grid; gap: 18px; }
    .game-config-section { padding: 16px 0 18px; border-bottom: 1px solid #252c35; }
    .game-config-section:last-child { border-bottom: 0; }
    .option-section-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    .option-section-head .option-title { margin-bottom: 0; }
    .option-live-preview { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 14px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #252c35; border-radius: 8px; background: #0f151d; }
    .option-live-label { min-height: 32px; display: flex; align-items: center; color: #dce4ee; font-weight: 700; }
    .option-other-preview { opacity: .84; }
    .option-other-line { height: 22px; border-bottom: 1px solid #4b5563; min-width: 96px; }
    .option-editor-list { display: grid; gap: 9px; }
    .option-editor-row { display: grid; grid-template-columns: 76px minmax(120px, max-content) minmax(180px, 1fr) 44px 86px 150px; align-items: center; gap: 10px; min-height: 44px; }
    .option-reorder { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .option-reorder .el-button { margin-left: 0; padding-left: 8px; padding-right: 8px; }
    .option-editor-preview { min-width: 112px; max-width: 240px; justify-content: flex-start; overflow: hidden; }
    .option-editor-preview span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .option-sort-input { width: 86px; }
    .option-editor-actions { display: flex; align-items: center; gap: 8px; }
    .option-editor-actions .el-button { min-width: 58px; }
    .option-editor-add { display: grid; grid-template-columns: minmax(120px, max-content) minmax(220px, 1fr) 44px 72px; align-items: center; gap: 10px; padding-top: 6px; }
    .payment-method-panel { max-height: calc(100vh - 218px); min-height: 360px; overflow: auto; display: grid; align-content: start; gap: 12px; padding: 2px 2px 8px; }
    .payment-method-head { min-height: 46px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .payment-method-head > div { min-width: 0; display: grid; gap: 3px; }
    .payment-method-head span { color: #8d99a8; font-size: 12px; line-height: 1.45; }
    .payment-method-head .toolbar-actions .el-button--primary { --el-button-text-color: #ffffff; --el-button-hover-text-color: #ffffff; --el-button-active-text-color: #ffffff; min-width: 136px; height: 32px; padding: 0 14px; border-color: #1d4ed8; border-radius: 6px; background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%); color: #ffffff !important; font-size: 12px; font-weight: 900; line-height: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 5px 12px rgba(37, 99, 235, .22); text-shadow: 0 1px 0 rgba(15, 23, 42, .28); }
    .payment-method-head .toolbar-actions .el-button--primary > span { color: #ffffff !important; -webkit-text-fill-color: #ffffff; font-weight: 900; }
    .payment-method-head .toolbar-actions .el-button--primary:hover { border-color: #1e40af; background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px rgba(37, 99, 235, .28); }
    .reconciliation-settings-panel { margin: 0; padding: 12px; }
    .reconciliation-settings-panel .content-toolbar { margin-bottom: 10px; }
    .reconciliation-settings-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .reconciliation-settings-row label { display: inline-grid; grid-template-columns: auto 142px; align-items: center; gap: 8px; color: #94a3b8; font-size: 12px; font-weight: 850; }
    .reconciliation-settings-row .el-date-editor.el-input { width: 142px; }
    .payment-method-preview { margin: 0; }
    .payment-method-panel .option-editor-list { gap: 5px; }
    .payment-method-option-row { grid-template-columns: minmax(112px, max-content) 108px minmax(180px, 1fr) 36px 72px 62px 62px; min-height: 34px; padding: 4px 6px; gap: 6px; border: 1px solid #252c35; border-radius: 7px; background: #0f151d; }
    .payment-method-option-row .option-editor-preview { min-height: 28px; padding: 0 11px 0 8px; font-size: 12px; }
    .payment-method-option-row .el-input__wrapper { min-height: 28px; }
    .payment-method-option-row .el-input__inner { height: 28px; line-height: 28px; font-size: 12px; }
    .payment-method-option-row .el-color-picker { height: 28px; }
    .payment-method-option-row .el-color-picker__trigger { width: 30px; height: 28px; padding: 2px; }
    .payment-method-option-row .option-reorder { gap: 4px; }
    .payment-method-option-row .option-reorder .el-button,
    .payment-method-option-row > .el-button { min-height: 26px; height: 26px; padding: 0 9px; border-radius: 5px; font-size: 12px; }
    .payment-method-add { grid-template-columns: minmax(112px, max-content) 108px minmax(180px, 1fr) 44px 72px; padding: 10px 8px; border: 1px dashed #334155; border-radius: 8px; background: rgba(59, 130, 246, .06); }
    body[data-theme="light"] .payment-method-head,
    body[data-theme="light"] .payment-method-option-row,
    body[data-theme="light"] .game-business-card { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .game-business-copy span { color: #64748b; }
    body[data-theme="light"] .related-field-settings-card { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .related-field-settings-head { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .related-field-settings-head span { color: #64748b; }
    body[data-theme="light"] .related-field-settings-row { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .related-field-order { background: #dbeafe; color: #1d4ed8 !important; }
    body[data-theme="light"] .related-field-settings-row span { color: #0f172a; }
    body[data-theme="light"] .related-field-settings-row code { color: #64748b; }
    body[data-theme="light"] .payment-method-head span { color: #64748b; }
    body[data-theme="light"] .reconciliation-settings-row label { color: #64748b; }
    body[data-theme="light"] .payment-method-add { background: #eff6ff; border-color: #bfdbfe; }
    body[data-theme="light"] .game-config-basic { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .option-live-preview { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .option-live-label { color: #111827; }
    body[data-theme="light"] .option-other-line { border-bottom-color: #cbd5e1; }
    body[data-theme="light"] .game-config-section { border-bottom-color: #e5e7eb; }
    @media (max-width: 960px) {
      .game-config-basic-form,
      .form-designer,
      .permission-workbench-panel,
      .user-admin-layout,
      .permission-action-grid,
      .permission-tools,
      .permission-field-row,
      .audit-layout,
      .user-management-grid,
      .settings-layout,
      .settings-overview-grid,
      .settings-health-strip,
      .settings-jump-nav,
      .settings-domain-grid,
      .contract-service-grid,
      .contract-service-grid.compact,
      .contract-service-detail-grid,
      .contract-config-grid,
      .contract-config-secret-grid,
      .contract-polling-rule-grid,
      .contract-polling-flow,
      .report-kpi-grid,
      .analysis-range-bar,
      .option-live-preview,
      .option-editor-row,
      .option-editor-add,
      .payment-method-option-row,
      .payment-method-add,
      .related-field-settings-grid,
      .related-field-settings-add { grid-template-columns: 1fr; }
      .analysis-range-bar { display: grid; }
      .promotion-report-meta-row,
      .promotion-detail-head { display: grid; justify-items: start; }
      .promotion-staff-filter-panel { justify-content: flex-start; max-width: none; }
      .promotion-order-pagination { justify-content: flex-start; overflow-x: auto; }
      .range-radio-group.el-radio-group { grid-template-columns: repeat(4, 58px); justify-content: start; }
      .permission-editor-head { display: grid; }
      .permission-mode-select { width: 100%; }
      .permission-head-actions { justify-content: flex-start; }
      .settings-hero { display: grid; align-items: stretch; }
      .settings-hero-actions { justify-content: flex-start; }
      .contract-polling-rules-head { align-items: flex-start; flex-direction: column; }
      .contract-polling-rules-head span { text-align: left; }
      .settings-sidebar { position: static; max-height: none; padding-right: 0; }
      .user-page-toolbar { display: grid; }
      .user-page-actions { justify-content: flex-start; }
      .user-admin-nav { position: static; grid-template-columns: 1fr; }
      .user-summary-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .user-stat-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
      .user-card { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
      .user-card-main { grid-template-columns: 1fr; }
      .user-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
      .user-filter-keyword,
      .user-filter-group { width: 100%; }
      .form-designer,
      .field-list-panel { height: auto; min-height: 0; overflow: visible; }
      .designer-preview-grid,
      .designer-field { grid-template-columns: 1fr; }
      .option-editor-preview,
      .option-sort-input { width: 100%; max-width: none; }
      .option-editor-actions { justify-content: flex-start; }
      .related-field-settings-head { align-items: stretch; flex-direction: column; }
      .related-field-settings-add { min-width: 0 !important; }
      .related-field-settings-row { grid-template-columns: 30px minmax(0, 1fr); }
      .related-field-settings-row code,
      .related-field-settings-row > div { grid-column: 2; justify-content: flex-start; }
    }
    body[data-theme="light"] .option-block { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .option-title { color: #111827; }
    .status-row { height: 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #252c35; }
    .status-row:last-child { border-bottom: 0; }
    .status-row span { color: #cbd5e1; }
    .status-row .row-actions { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
    .status-row strong { color: #ffffff; }
    .user-option-row { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .user-option-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .placeholder-panel h2 { margin: 0 0 10px; font-size: 18px; }
    .placeholder-panel p { margin: 0; color: #8d99a8; }
    body[data-theme="light"] .analysis-panel,
    body[data-theme="light"] .placeholder-panel { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .settings-hero,
    body[data-theme="light"] .settings-health-strip > div,
    body[data-theme="light"] .settings-mini-metrics span { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .settings-hero { background: linear-gradient(135deg, #ffffff, #f8fafc), linear-gradient(90deg, rgba(37, 99, 235, .11), rgba(245, 158, 11, .08), rgba(22, 163, 74, .08)); }
    body[data-theme="light"] .settings-jump-nav { background: rgba(248, 250, 252, .86); }
    body[data-theme="light"] .settings-jump-nav a { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .settings-jump-nav a:hover,
    body[data-theme="light"] .settings-health-strip > div:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .settings-jump-nav span { color: #64748b; }
    body[data-theme="light"] .settings-jump-nav strong,
    body[data-theme="light"] .settings-title-line > span:first-child { color: #111827; }
    body[data-theme="light"] .settings-side-card,
    body[data-theme="light"] .settings-side-nav button,
    body[data-theme="light"] .settings-sub-nav button { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .content-area.settings-page { background: #f3f4f6; }
    body[data-theme="light"] .settings-side-head { background: linear-gradient(145deg, #ffffff, #f8fafc); }
    body[data-theme="light"] .settings-side-nav button:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .settings-side-nav button.active { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14); }
    body[data-theme="light"] .settings-side-nav button.active::before { background: #2563eb; }
    body[data-theme="light"] .settings-sub-nav button:hover { background: #f8fbff; border-color: #3b82f6; }
    body[data-theme="light"] .settings-sub-nav button.active { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14); }
    body[data-theme="light"] .settings-side-head h2,
    body[data-theme="light"] .settings-side-nav span,
    body[data-theme="light"] .settings-side-status strong,
    body[data-theme="light"] .settings-sub-nav span { color: #111827; }
    body[data-theme="light"] .settings-side-head p,
    body[data-theme="light"] .settings-side-nav strong,
    body[data-theme="light"] .settings-side-status span,
    body[data-theme="light"] .settings-sub-nav strong { color: #64748b; }
    body[data-theme="light"] .settings-sub-nav button.active strong { color: #1d4ed8; }
    body[data-theme="light"] .settings-side-status > div { background: #f8fafc; border-color: #e5e7eb; color: #334155; }
    body[data-theme="light"] .settings-kicker { color: #2563eb; }
    body[data-theme="light"] .settings-hero h2,
    body[data-theme="light"] .settings-health-strip strong,
    body[data-theme="light"] .settings-mini-metrics strong { color: #111827; }
    body[data-theme="light"] .settings-hero p,
    body[data-theme="light"] .settings-health-strip span,
    body[data-theme="light"] .settings-health-strip small,
    body[data-theme="light"] .settings-mini-metrics small { color: #64748b; }
    body[data-theme="light"] .settings-page .analysis-panel { box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
    body[data-theme="light"] .settings-section-chip { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    body[data-theme="light"] .settings-section-chip.enabled { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
    body[data-theme="light"] .ocr-result-panel,
    body[data-theme="light"] .settings-ocr-shell .ocr-result-pager,
    body[data-theme="light"] .settings-template-shell .cloud-template-footer { border-top-color: #e2e8f0; }
    body[data-theme="light"] .ocr-result-head strong,
    body[data-theme="light"] .ocr-result-meta strong { color: #111827; }
    body[data-theme="light"] .ocr-result-head span,
    body[data-theme="light"] .ocr-result-meta span { color: #64748b; }
    body[data-theme="light"] .mono { color: #2563eb; }
    body[data-theme="light"] .contract-service-card,
    body[data-theme="light"] .contract-service-list { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .contract-service-action-card.clickable:hover { background: #f8fbff; border-color: #93c5fd; }
    body[data-theme="light"] .contract-service-list h4 { border-bottom-color: #dbe1ea; color: #111827; }
    body[data-theme="light"] .contract-service-list div { border-bottom-color: #edf2f7; }
    body[data-theme="light"] .contract-config-form { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .contract-config-form-head,
    body[data-theme="light"] .contract-config-actions { border-color: #e5e7eb; }
    body[data-theme="light"] .contract-config-form-head strong { color: #111827; }
    body[data-theme="light"] .contract-config-form-head span,
    body[data-theme="light"] .contract-config-actions span { color: #64748b; }
    body[data-theme="light"] .contract-config-switchline { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .contract-config-form.is-readonly .el-input.is-disabled .el-input__wrapper,
    body[data-theme="light"] .contract-config-form.is-readonly .el-input-number.is-disabled .el-input__wrapper { background: #f8fafc; box-shadow: 0 0 0 1px #dbe1ea inset; }
    body[data-theme="light"] .contract-polling-rules { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .contract-polling-rules-head { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .contract-polling-rules-head strong,
    body[data-theme="light"] .contract-polling-rule-grid strong { color: #111827; }
    body[data-theme="light"] .contract-polling-rules-head span,
    body[data-theme="light"] .contract-polling-rule-grid small,
    body[data-theme="light"] .contract-polling-flow span { color: #64748b; }
    body[data-theme="light"] .contract-polling-rule-grid > div { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .contract-polling-flow > div { background: #eff6ff; }
    body[data-theme="light"] .contract-download-log-panel { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: #dbe1ea; box-shadow: 0 10px 22px rgba(15, 23, 42, .05); }
    body[data-theme="light"] .download-log-summary > div { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .download-log-pager { background: rgba(255, 255, 255, .98); border-top-color: #dbe1ea; box-shadow: 0 -8px 18px rgba(15, 23, 42, .06); }
    body[data-theme="light"] .download-log-pager > span { color: #64748b; }
    body[data-theme="light"] .download-log-summary strong,
    body[data-theme="light"] .download-time-cell strong { color: #111827; }
    body[data-theme="light"] .download-log-summary span,
    body[data-theme="light"] .download-time-cell span,
    body[data-theme="light"] .download-record-cell span,
    body[data-theme="light"] .download-file-cell span { color: #64748b; }
    body[data-theme="light"] .download-record-cell strong { color: #1d4ed8; }
    body[data-theme="light"] .contract-service-card strong,
    body[data-theme="light"] .contract-service-list strong { color: #111827; }
    body[data-theme="light"] .contract-service-card span,
    body[data-theme="light"] .contract-service-card small,
    body[data-theme="light"] .contract-service-list span { color: #64748b; }
    body[data-theme="light"] .settings-section-chip.success { background: #dcfce7; border-color: #86efac; color: #15803d; }
    body[data-theme="light"] .settings-section-chip.warning { background: #fef3c7; border-color: #fbbf24; color: #b45309; }
    body[data-theme="light"] .settings-section-chip.danger { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
    body[data-theme="light"] .settings-section-chip.info { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
    body[data-theme="light"] .settings-page .contract-record-filter { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .status-row { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .status-row span,
    body[data-theme="light"] .status-row strong { color: #111827; }
    body[data-theme="light"] .placeholder-panel p { color: #64748b; }
    .calc-panel { margin: 8px 0 18px 120px; padding: 10px 12px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; display: grid; grid-template-columns: repeat(5, minmax(82px, 1fr)); gap: 8px; }
    .calc-item { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .calc-label { color: #8d99a8; font-size: 12px; }
    .calc-value { min-width: 0; color: #eef2f7; font-size: 15px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
    .calc-status-normal .calc-value { color: #22c55e; }
    .calc-status-undercharge .calc-value,
    .calc-status-error .calc-value { color: #ef4444; }
    .calc-status-overcharge .calc-value { color: #f59e0b; }
    body[data-theme="light"] .calc-panel { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .calc-label { color: #64748b; }
    body[data-theme="light"] .calc-value { color: #111827; }
    body[data-theme="light"] .calc-status-normal .calc-value { color: #15803d; }
    body[data-theme="light"] .calc-status-undercharge .calc-value,
    body[data-theme="light"] .calc-status-error .calc-value { color: #b91c1c; }
    body[data-theme="light"] .calc-status-overcharge .calc-value { color: #b45309; }
    .payment-ledger-grid { margin: 4px 0 18px 120px; display: grid; grid-template-columns: 1fr; gap: 12px; }
    .payment-ledger-card { min-width: 0; border: 1px solid #2a3038; border-radius: 8px; background: #111820; overflow: hidden; }
    .payment-ledger-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #252c35; }
    .payment-ledger-head > div { min-width: 0; display: grid; gap: 3px; }
    .payment-ledger-head span { color: #8d99a8; font-size: 12px; }
    .payment-ledger-head strong { color: #f8fafc; font-size: 18px; line-height: 1.2; }
    .payment-ledger-head em { color: #93c5fd; font-style: normal; font-size: 12px; }
    .payment-total-amount { display: inline-flex; align-items: baseline; width: fit-content; min-width: 120px; padding: 4px 10px; border-radius: 7px; font-size: 24px !important; font-weight: 950 !important; line-height: 1.05 !important; letter-spacing: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(15, 23, 42, .22); }
    .payment-total-amount.is-down-payment { border: 1px solid rgba(251, 146, 60, .62); background: linear-gradient(180deg, rgba(251, 146, 60, .28), rgba(217, 119, 6, .16)); color: #fdba74 !important; text-shadow: 0 1px 0 rgba(2, 6, 23, .42); }
    .payment-total-amount.is-repayment { border: 1px solid rgba(14, 165, 233, .58); background: linear-gradient(180deg, rgba(14, 165, 233, .24), rgba(37, 99, 235, .15)); color: #7dd3fc !important; text-shadow: 0 1px 0 rgba(2, 6, 23, .42); }
    .payment-row-amount { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 82px; height: 24px; padding: 0 9px; border-radius: 999px; box-sizing: border-box; font-size: 13px; font-weight: 950; line-height: 24px; font-variant-numeric: tabular-nums; }
    .payment-row-amount.is-income { border: 1px solid rgba(34, 197, 94, .48); background: rgba(34, 197, 94, .13); color: #86efac; }
    .payment-row-amount.is-refund { border: 1px solid rgba(251, 146, 60, .52); background: rgba(251, 146, 60, .14); color: #fdba74; }
    .payment-row-amount.is-zero { border: 1px solid rgba(148, 163, 184, .35); background: rgba(148, 163, 184, .1); color: #cbd5e1; }
    .payment-ledger-card .el-table { --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; }
    .payment-ledger-table .el-table__inner-wrapper::before { display: none; }
    .payment-ledger-table .el-table-fixed-column--right { box-shadow: -8px 0 14px rgba(2, 6, 23, .16); }
    .payment-ledger-table .payment-ledger-action-cell .cell { padding: 0 8px; white-space: nowrap; overflow: visible; }
    .payment-ledger-table .payment-ledger-refund-row > .el-table__cell,
    .payment-ledger-table .payment-ledger-refund-row:hover > .el-table__cell {
      background: rgba(251, 146, 60, .14) !important;
    }
    .payment-ledger-table .payment-ledger-refund-row > .el-table__cell:first-child {
      box-shadow: inset 4px 0 0 #fb923c;
    }
    .payment-ledger-actions { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
    .payment-ledger-actions .el-button { min-width: 42px; margin-left: 0 !important; padding: 0 4px; }
    .payment-record-voided-text { color: #94a3b8; text-decoration: line-through; text-decoration-thickness: 2px; }
    .payment-record-refund-text { color: #fdba74; font-weight: 950; }
    .payment-ledger-table .el-tag { margin-left: 5px; vertical-align: middle; }
    .payment-ledger-card .el-button { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
    .payment-ledger-head .el-button--primary {
      --el-button-text-color: #ffffff;
      --el-button-hover-text-color: #ffffff;
      --el-button-active-text-color: #ffffff;
      --el-button-disabled-text-color: #ffffff;
      min-width: 82px;
      height: 30px;
      padding: 0 12px;
      border-radius: 6px;
      border-color: #1d4ed8;
      background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
      color: #ffffff;
      font-size: 12px;
      font-weight: 900;
      line-height: 28px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 5px 12px rgba(37, 99, 235, .22);
      text-shadow: 0 1px 0 rgba(15, 23, 42, .26);
    }
    .payment-ledger-head .el-button--primary > span {
      color: #ffffff !important;
      -webkit-text-fill-color: #ffffff;
      font-weight: 900;
    }
    .payment-ledger-head .el-button--primary:hover {
      border-color: #1e40af;
      background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px rgba(37, 99, 235, .28);
    }
    .payment-ledger-head .el-button--primary:active { box-shadow: inset 0 2px 4px rgba(15, 23, 42, .22), 0 2px 6px rgba(37, 99, 235, .2); }
    .payment-ledger-head .el-button--primary.is-disabled,
    .payment-ledger-head .el-button--primary.is-disabled:hover {
      border-color: #2563eb;
      background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
      color: #ffffff !important;
      opacity: 1;
      cursor: not-allowed;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 4px 10px rgba(37, 99, 235, .18);
      text-shadow: none;
    }
    .payment-ledger-card .el-table .el-button.is-link {
      min-width: 46px;
      height: 24px;
      padding: 0 9px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      line-height: 22px;
      text-decoration: none;
    }
    .payment-ledger-card .el-table .el-button.is-link > span { line-height: 1; }
    .payment-ledger-card .el-table .el-button.is-link.el-button--warning {
      border-color: rgba(251, 146, 60, .44) !important;
      background: rgba(251, 146, 60, .12) !important;
      color: #fb923c !important;
    }
    .payment-ledger-card .el-table .el-button.is-link.el-button--warning:hover {
      border-color: #f59e0b !important;
      background: #f59e0b !important;
      color: #ffffff !important;
      box-shadow: 0 4px 10px rgba(245, 158, 11, .22);
    }
    .payment-ledger-card .el-table .el-button.is-link.el-button--danger {
      border-color: rgba(248, 113, 113, .42) !important;
      background: rgba(248, 113, 113, .11) !important;
      color: #f87171 !important;
    }
    .payment-ledger-card .el-table .el-button.is-link.el-button--danger:hover {
      border-color: #ef4444 !important;
      background: #ef4444 !important;
      color: #ffffff !important;
      box-shadow: 0 4px 10px rgba(239, 68, 68, .2);
    }
    .payment-ledger-card .el-table .el-button.is-link.is-disabled,
    .payment-ledger-card .el-table .el-button.is-link.is-disabled:hover {
      opacity: 1;
      cursor: not-allowed;
      box-shadow: none;
    }
    .payment-dialog {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
    }
    .payment-dialog .el-dialog__header {
      margin: 0;
      padding: 0;
      border-bottom: 1px solid #26313d;
    }
    .payment-dialog .el-dialog__headerbtn {
      top: 16px;
      right: 16px;
    }
    .payment-dialog .el-dialog__body {
      padding: 16px 20px 6px;
      background: linear-gradient(180deg, #111820, #0f151d);
    }
    .payment-dialog .el-dialog__footer {
      padding: 12px 20px 16px;
      border-top: 1px solid #26313d;
      background: #101720;
    }
    .payment-dialog-head {
      min-height: 66px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 15px 52px 14px 20px;
      background:
        linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(15, 23, 42, 0) 58%),
        #111820;
    }
    .payment-dialog-head div {
      min-width: 0;
      display: grid;
      gap: 5px;
    }
    .payment-dialog-head strong {
      color: #f8fafc;
      font-size: 20px;
      font-weight: 950;
      line-height: 1.15;
    }
    .payment-dialog-head span {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 750;
    }
    .payment-dialog-head em {
      flex: 0 0 auto;
      min-height: 28px;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      border: 1px solid rgba(96, 165, 250, .46);
      border-radius: 999px;
      background: rgba(37, 99, 235, .16);
      color: #bfdbfe;
      font-size: 12px;
      font-style: normal;
      font-weight: 900;
    }
    .payment-form {
      display: grid;
      gap: 12px;
    }
    .payment-form .el-form-item {
      margin-bottom: 0;
    }
    .payment-form .el-form-item__label {
      padding-bottom: 6px;
      color: #cbd5e1;
      font-size: 12px;
      font-weight: 900;
      line-height: 1.2;
    }
    .payment-form-item {
      min-width: 0;
      padding: 11px 12px 12px;
      border: 1px solid #273241;
      border-radius: 8px;
      background: #101821;
    }
    .payment-form-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 10px;
    }
    .payment-form-item.is-wide {
      grid-column: 1 / -1;
    }
    .payment-amount-item {
      border-color: rgba(59, 130, 246, .52);
      background: linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(15, 23, 42, .08));
      box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .12);
    }
    .payment-amount-item .el-input__wrapper {
      min-height: 48px;
      border-radius: 8px;
      background: #0b121b;
      box-shadow: 0 0 0 1px rgba(96, 165, 250, .3) inset;
    }
    .payment-amount-item .el-input__prefix,
    .payment-amount-item .el-input__inner {
      color: #f97316;
      font-size: 24px;
      font-weight: 950;
    }
    .payment-amount-item .el-input__prefix {
      margin-right: 4px;
    }
    .payment-form .el-date-editor,
    .payment-form .el-select,
    .payment-form .el-input-number { width: 100%; }
    .payment-form .el-input__wrapper,
    .payment-form .el-textarea__inner {
      border-radius: 7px;
    }
    .payment-remark-item .el-textarea__inner {
      min-height: 82px !important;
      resize: vertical;
    }
    .payment-dialog-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .payment-dialog-footer span {
      color: #64748b;
      font-size: 12px;
      font-weight: 800;
    }
    .payment-dialog-footer div {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .payment-dialog-footer .el-button {
      min-width: 82px;
      height: 36px;
      margin-left: 0 !important;
      border-radius: 7px;
      font-weight: 900;
    }
    body[data-theme="light"] .payment-ledger-card { background: #f8fafc; border-color: #dbe1ea; }
    body[data-theme="light"] .payment-dialog {
      box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    }
    body[data-theme="light"] .payment-dialog .el-dialog__header,
    body[data-theme="light"] .payment-dialog .el-dialog__footer {
      border-color: #e2e8f0;
    }
    body[data-theme="light"] .payment-dialog .el-dialog__body {
      background: #f8fafc;
    }
    body[data-theme="light"] .payment-dialog .el-dialog__footer {
      background: #ffffff;
    }
    body[data-theme="light"] .payment-dialog-head {
      background:
        linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(255, 255, 255, 0) 58%),
        #ffffff;
    }
    body[data-theme="light"] .payment-dialog-head strong {
      color: #0f172a;
    }
    body[data-theme="light"] .payment-dialog-head span,
    body[data-theme="light"] .payment-dialog-footer span {
      color: #64748b;
    }
    body[data-theme="light"] .payment-dialog-head em {
      border-color: #bfdbfe;
      background: #eff6ff;
      color: #1d4ed8;
    }
    body[data-theme="light"] .payment-form .el-form-item__label {
      color: #334155;
    }
    body[data-theme="light"] .payment-form-item {
      border-color: #dbe4ef;
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    }
    body[data-theme="light"] .payment-amount-item {
      border-color: #93c5fd;
      background: linear-gradient(180deg, #eff6ff, #ffffff);
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .1), 0 8px 20px rgba(37, 99, 235, .08);
    }
    body[data-theme="light"] .payment-amount-item .el-input__wrapper {
      background: #ffffff;
      box-shadow: 0 0 0 1px #bfdbfe inset;
    }
    body[data-theme="light"] .payment-ledger-head { border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .payment-ledger-head span { color: #64748b; }
    body[data-theme="light"] .payment-ledger-head strong { color: #111827; }
    body[data-theme="light"] .payment-ledger-head em { color: #2563eb; }
    body[data-theme="light"] .payment-total-amount { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 16px rgba(15, 23, 42, .08); }
    body[data-theme="light"] .payment-total-amount.is-down-payment { background: linear-gradient(180deg, #ffedd5, #fed7aa); border-color: #fb923c; color: #9a3412 !important; text-shadow: none; }
    body[data-theme="light"] .payment-total-amount.is-repayment { background: linear-gradient(180deg, #e0f2fe, #dbeafe); border-color: #38bdf8; color: #075985 !important; text-shadow: none; }
    body[data-theme="light"] .payment-row-amount.is-income { background: #dcfce7; border-color: #86efac; color: #166534; }
    body[data-theme="light"] .payment-row-amount.is-refund { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
    body[data-theme="light"] .payment-row-amount.is-zero { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
    body[data-theme="light"] .payment-ledger-table .payment-ledger-refund-row > .el-table__cell,
    body[data-theme="light"] .payment-ledger-table .payment-ledger-refund-row:hover > .el-table__cell {
      background: #fff7ed !important;
    }
    body[data-theme="light"] .payment-ledger-table .payment-ledger-refund-row > .el-table__cell:first-child {
      box-shadow: inset 4px 0 0 #fb923c;
    }
    body[data-theme="light"] .payment-record-refund-text { color: #c2410c; }
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--warning {
      border-color: #fed7aa !important;
      background: #fff7ed !important;
      color: #b45309 !important;
    }
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--danger {
      border-color: #fecaca !important;
      background: #fff1f2 !important;
      color: #b91c1c !important;
    }
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--warning:hover,
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--danger:hover { color: #ffffff !important; }
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--warning.is-disabled:hover {
      border-color: #fed7aa !important;
      background: #fff7ed !important;
      color: #b45309 !important;
      box-shadow: none;
    }
    body[data-theme="light"] .payment-ledger-card .el-table .el-button.is-link.el-button--danger.is-disabled:hover {
      border-color: #fecaca !important;
      background: #fff1f2 !important;
      color: #b91c1c !important;
      box-shadow: none;
    }
    @media (max-width: 980px) {
      .payment-ledger-grid { margin-left: 0; grid-template-columns: 1fr; }
    }
    .record-audit-panel { margin: 12px 0 8px; padding: 8px 10px 10px; border: 1px solid #2a3038; border-radius: 8px; background: #111820; }
    .record-audit-panel .mini-toolbar { margin: 0 0 6px; }
    body[data-theme="light"] .record-audit-panel { background: #f8fafc; border-color: #dbe1ea; }
    .game-detail-drawer .el-drawer__header { margin-bottom: 0; padding: 14px 20px 12px; border-bottom: 1px solid #252c35; background: #0f151d; }
    body[data-theme="light"] .game-detail-drawer .el-drawer__header { background: #ffffff; border-bottom-color: #e5e7eb; }
    .game-detail-drawer .el-drawer__body { position: relative; }
    .game-detail-drawer .el-drawer__header { padding: 9px 16px 8px; }
    .game-detail-drawer .el-drawer__body { padding: 8px 16px 10px; }
    .game-detail-drawer .el-drawer__footer { padding: 8px 16px 10px; border-top: 1px solid #252c35; }
    body[data-theme="light"] .game-detail-drawer .el-drawer__footer { border-top-color: #e5e7eb; }
    .game-detail-drawer .record-title-block { gap: 4px; }
    .game-detail-drawer .record-title-line { gap: 6px; }
    .game-detail-drawer .record-status-actions { gap: 5px; }
    .game-detail-drawer .record-status-line { font-size: 12px; line-height: 1.35; }
    .game-detail-drawer .record-header-actions { gap: 5px; }
    .game-detail-drawer .edit-form { padding-right: 10px; }
    .game-detail-drawer .edit-form .el-divider { margin: 12px 0 8px; border-top-color: rgba(148, 163, 184, .46); }
    .game-detail-drawer .edit-form .el-divider__text {
      padding: 2px 10px;
      border: 1px solid rgba(148, 163, 184, .34);
      border-radius: 4px;
      background: #111820;
      color: #dbeafe;
      font-size: 14px;
      font-weight: 850;
      line-height: 1.25;
      box-shadow: 0 0 0 2px rgba(15, 23, 42, .65);
    }
    body[data-theme="light"] .game-detail-drawer .edit-form .el-divider { border-top-color: #cbd5e1; }
    body[data-theme="light"] .game-detail-drawer .edit-form .el-divider__text {
      background: #f8fafc;
      border-color: #dbe4ef;
      color: #1f2937;
      box-shadow: 0 0 0 2px rgba(248, 250, 252, .95);
    }
    .game-detail-drawer .edit-form .el-form-item { margin-bottom: 8px; }
    .game-detail-drawer .edit-form .el-form-item__label,
    .game-detail-drawer .edit-form .el-form-item__content { min-height: 30px; line-height: 30px; }
    .game-detail-drawer .edit-form .el-form-item__label { padding-right: 8px; }
    .game-detail-drawer .edit-form .el-input__wrapper,
    .game-detail-drawer .edit-form .el-select__wrapper,
    .game-detail-drawer .edit-form .el-date-editor.el-input__wrapper { min-height: 30px; }
    .game-detail-drawer .edit-form .el-input__inner { height: 30px; line-height: 30px; }
    .game-detail-drawer .edit-form .el-date-editor.el-input { height: 30px; }
    .game-detail-drawer .form-grid { column-gap: 12px; row-gap: 0; }
    .game-detail-drawer .period-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 12px; row-gap: 0; }
    .game-detail-drawer .period-grid .el-form-item__label { width: 78px !important; flex: 0 0 78px; padding-right: 7px; }
    .game-detail-drawer .period-grid .el-form-item__content { min-width: 145px; }
    .game-detail-drawer .period-grid .el-date-editor.el-input { width: 100%; min-width: 145px; }
    .game-detail-drawer .edit-form:not(.is-detail) .repayment-detail-field .el-form-item__content { min-height: 96px; line-height: 1.5; }
    .game-detail-drawer .edit-form:not(.is-detail) .repayment-detail-field .el-textarea__inner { min-height: 96px !important; line-height: 1.55; resize: vertical; }
    .game-detail-drawer .choice-board { gap: 6px 8px; padding: 0; }
    .game-detail-drawer .choice-board.compact { gap: 5px 7px; }
    .game-detail-drawer .choice-chip { min-height: 28px; gap: 5px; padding: 0 10px 0 8px; font-size: 13px; }
    .game-detail-drawer .choice-chip.is-selected { box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-color) 28%, transparent), 0 7px 16px rgba(0, 0, 0, .28); transform: translateY(-1px); }
    .game-detail-drawer .choice-dot { width: 10px; height: 10px; }
    .game-detail-drawer .choice-chip.is-selected .choice-dot,
    .game-detail-drawer .choice-other.is-selected .choice-dot { box-shadow: inset 0 0 0 3px var(--choice-color, #3b82f6), 0 0 0 1px rgba(15, 23, 42, .18); }
    .game-detail-drawer .choice-other { min-height: 28px; grid-template-columns: 10px auto minmax(112px, 160px); gap: 5px; padding: 0 6px; font-size: 13px; }
    .game-detail-drawer .choice-other .el-input__wrapper { min-height: 24px; }
    .game-detail-drawer .period-more-select { width: 108px; }
    .game-detail-drawer .period-more-select .el-select__wrapper { min-height: 28px; }
    .game-detail-drawer .risk-strip { margin: -2px 0 8px 104px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; }
    .game-detail-drawer .risk-card { min-height: 44px; gap: 2px; padding: 7px 9px; }
    .game-detail-drawer .blacklist-hit-list { margin: -2px 0 8px 104px; gap: 6px; }
    .game-detail-drawer .blacklist-hit-item { padding: 8px 10px; gap: 5px; }
    .game-detail-drawer .image-upload-panel { gap: 6px; }
    .game-detail-drawer .image-compact-row { min-height: 30px; align-items: center; gap: 8px; }
    .game-detail-drawer .image-preview-list { gap: 6px; }
    .game-detail-drawer .calc-panel { margin: 6px 0 10px 104px; padding: 9px 10px; gap: 8px; }
    .game-detail-drawer .payment-ledger-grid { margin: 2px 0 10px 104px; gap: 8px; }
    .game-detail-drawer .payment-ledger-head { min-height: 46px; padding: 7px 10px; }
    .game-detail-drawer .payment-ledger-head strong { font-size: 16px; }
    .game-detail-drawer .payment-ledger-card .el-table .el-table__cell { padding: 4px 0; }
    .game-detail-drawer .record-audit-panel { margin: 8px 0 4px; padding: 7px 8px 8px; }
    @media (max-width: 980px) {
      .game-detail-drawer .risk-strip,
      .game-detail-drawer .blacklist-hit-list,
      .game-detail-drawer .calc-panel,
      .game-detail-drawer .payment-ledger-grid { margin-left: 0; }
    }
    .drawer-jump-tools { position: fixed; right: 18px; bottom: 92px; z-index: 12; display: grid; gap: 8px; pointer-events: none; }
    .drawer-jump-btn { width: 34px; height: 34px; border: 1px solid rgba(96, 165, 250, .45); border-radius: 999px; background: rgba(15, 23, 42, .88); color: #dbeafe; font-size: 18px; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); pointer-events: auto; transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease; }
    .drawer-jump-btn:hover { transform: translateY(-1px); border-color: #60a5fa; background: #2563eb; color: #ffffff; }
    .drawer-jump-btn:active { transform: translateY(0); }
    body[data-theme="light"] .drawer-jump-btn { background: rgba(255, 255, 255, .94); color: #2563eb; border-color: #bfdbfe; box-shadow: 0 10px 24px rgba(15, 23, 42, .16); }
    body[data-theme="light"] .drawer-jump-btn:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }
    .promotion-drawer-form-item { margin-bottom: 10px; }
    .promotion-drawer-form-item .el-form-item__content { min-width: 0; }
    .promotion-drawer-panel { width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 8px; border: 1px solid #263445; border-radius: 6px; background: #0f172a; box-sizing: border-box; }
    .promotion-drawer-info { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; }
    .promotion-drawer-info span { color: #94a3b8; font-weight: 800; }
    .promotion-drawer-info strong { min-width: 54px; color: #dbeafe; font-weight: 900; }
    .promotion-drawer-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
    .promotion-drawer-actions .el-button { margin-left: 0; }
    body[data-theme="light"] .promotion-drawer-panel { background: #f8fafc; border-color: #dbe4ef; }
    body[data-theme="light"] .promotion-drawer-info span { color: #64748b; }
    body[data-theme="light"] .promotion-drawer-info strong { color: #1e3a8a; }
    .record-drawer-header { width: 100%; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 34px; box-sizing: border-box; }
    .record-title-block { min-width: 280px; flex: 1 1 360px; display: grid; gap: 8px; }
    .record-title-line { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #e5e7eb; }
    .record-title-line strong { min-width: 0; color: #f8fafc; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .record-id { color: #cbd5e1; font-family: Consolas, "Microsoft YaHei", sans-serif; font-weight: 700; }
    .record-nav-btn { min-width: 24px; height: 24px; padding: 0; color: #cbd5e1; font-size: 24px; line-height: 1; }
    .record-mode { padding: 2px 7px; border: 1px solid #334155; border-radius: 6px; color: #93c5fd; font-size: 12px; background: #101a28; }
    .record-status-actions { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .record-status-actions .el-button { margin-left: 0; }
    .record-status-actions .record-flag-button { min-width: 70px; height: 26px; font-weight: 700; }
    .record-status-actions .record-flag-button.is-off {
      border-color: rgba(148, 163, 184, .42) !important;
      background: rgba(51, 65, 85, .58) !important;
      color: #e2e8f0 !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    }
    .record-status-actions .record-flag-button.is-off:hover:not(.is-disabled) {
      border-color: #94a3b8 !important;
      background: #334155 !important;
      color: #ffffff !important;
    }
    .record-status-actions .record-flag-button.is-starred-on {
      border-color: #f59e0b !important;
      background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
      color: #111827 !important;
      box-shadow: 0 5px 14px rgba(245, 158, 11, .24);
    }
    .record-status-actions .record-flag-button.is-processed-on {
      border-color: #16a34a !important;
      background: linear-gradient(180deg, #4ade80, #22c55e) !important;
      color: #052e16 !important;
      box-shadow: 0 5px 14px rgba(34, 197, 94, .22);
    }
    .record-status-actions .record-flag-button.is-starred-on:hover:not(.is-disabled),
    .record-status-actions .record-flag-button.is-processed-on:hover:not(.is-disabled) {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }
    .record-status-actions .record-flag-button.is-disabled,
    .record-status-actions .record-flag-button.is-loading {
      opacity: .72;
      transform: none;
      box-shadow: none;
    }
    .record-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #9aa6b5; font-size: 13px; }
    .presence-lock-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 8px; background: #b91c1c; border: 1px solid #ef4444; color: #fff; box-shadow: 0 8px 22px rgba(185, 28, 28, .28); }
    .presence-lock-banner strong { font-weight: 900; }
    .presence-lock-banner span { color: #fee2e2; font-weight: 700; }
    .record-header-actions { max-width: min(560px, 58%); display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; flex: 0 1 auto; }
    .record-header-actions .el-button { margin-left: 0; }
    .record-header-actions .contract-header-action.el-button--primary {
      border-color: #2563eb !important;
      background: linear-gradient(180deg, #3b82f6, #2563eb) !important;
      color: #ffffff !important;
      box-shadow: 0 6px 14px rgba(37, 99, 235, .2);
    }
    .record-header-actions .contract-header-action.el-button--warning {
      border-color: #d97706 !important;
      background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
      color: #111827 !important;
      box-shadow: 0 6px 14px rgba(245, 158, 11, .22);
    }
    .record-header-actions .contract-header-action.el-button--success {
      border-color: #16a34a !important;
      background: linear-gradient(180deg, #4ade80, #22c55e) !important;
      color: #052e16 !important;
      box-shadow: 0 6px 14px rgba(34, 197, 94, .22);
    }
    .record-header-actions .contract-header-action:hover:not(.is-disabled) {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }
    .record-header-actions .contract-header-action.is-disabled,
    .record-header-actions .contract-header-action.is-loading {
      opacity: .72;
      transform: none;
      box-shadow: none;
    }
    body[data-theme="light"] .record-title-line,
    body[data-theme="light"] .record-title-line strong { color: #111827; }
    body[data-theme="light"] .record-id { color: #334155; }
    body[data-theme="light"] .record-nav-btn { color: #475569; }
    body[data-theme="light"] .record-mode { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
    body[data-theme="light"] .record-status-actions .record-flag-button.is-off {
      border-color: #cbd5e1 !important;
      background: #f1f5f9 !important;
      color: #475569 !important;
      box-shadow: none;
    }
    body[data-theme="light"] .record-status-actions .record-flag-button.is-off:hover:not(.is-disabled) {
      border-color: #94a3b8 !important;
      background: #e2e8f0 !important;
      color: #0f172a !important;
    }
    body[data-theme="light"] .record-status-line { color: #64748b; }
    body[data-theme="light"] .presence-lock-banner { background: #dc2626; border-color: #b91c1c; color: #fff; box-shadow: 0 8px 22px rgba(220, 38, 38, .24); }
    body[data-theme="light"] .presence-lock-banner span { color: #fff1f2; }
    @media (max-width: 920px) {
      .record-drawer-header { flex-direction: column; padding-right: 28px; }
      .record-title-block { min-width: 0; width: 100%; }
      .record-header-actions { max-width: 100%; justify-content: flex-start; }
      .drawer-jump-tools { right: 12px; bottom: 78px; }
    }
    .drawer-action-bar { position: sticky; top: 0; z-index: 4; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; margin: -4px 0 12px; background: #11161c; border-bottom: 1px solid #252c35; }
    .drawer-record-meta,
    .drawer-action-buttons { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .drawer-record-meta { color: #8d99a8; font-size: 13px; }
    .drawer-action-buttons .el-button { margin-left: 0; }
    .dropdown-danger { color: #ef4444; font-weight: 700; }
    body[data-theme="light"] .drawer-action-bar { background: #ffffff; border-bottom-color: #e5e7eb; }
    body[data-theme="light"] .drawer-record-meta { color: #64748b; }
    .risk-strip { margin: 0 0 14px 130px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
    .risk-card { min-height: 58px; display: grid; align-content: center; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a3038; background: #111820; }
    .risk-card strong { font-size: 14px; color: #f8fafc; }
    .risk-card span { font-size: 12px; line-height: 1.45; color: #cbd5e1; }
    .risk-danger { border-color: #7f1d1d; background: rgba(220, 38, 38, .12); }
    .risk-warning { border-color: #854d0e; background: rgba(234, 179, 8, .12); }
    .risk-success { border-color: #166534; background: rgba(34, 197, 94, .12); }
    body[data-theme="light"] .risk-card { background: #ffffff; border-color: #dbe1ea; }
    body[data-theme="light"] .risk-card strong { color: #111827; }
    body[data-theme="light"] .risk-card span { color: #475569; }
    body[data-theme="light"] .risk-danger { border-color: #fecaca; background: #fef2f2; }
    body[data-theme="light"] .risk-warning { border-color: #fde68a; background: #fffbeb; }
    body[data-theme="light"] .risk-success { border-color: #bbf7d0; background: #f0fdf4; }
    .sign-picker { margin-top: 14px; display: grid; gap: 10px; }
    .sign-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #aeb8c5; font-size: 13px; }
    .sign-picker-toolbar > div:first-child { min-width: 220px; display: grid; gap: 2px; }
    .sign-picker-toolbar small { color: #60a5fa; }
    .sign-page-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
    .sign-page-controls .el-button { margin-left: 0; }
    .sign-page-controls .el-input-number { width: 72px; }
    .sign-page-controls > span { color: #64748b; font-size: 12px; font-weight: 800; }
    .sign-paper { position: relative; width: min(420px, 100%); aspect-ratio: 210 / 297; margin: 0 auto; border: 1px solid #334155; border-radius: 4px; background: #f8fafc; overflow: hidden; cursor: crosshair; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
    .sign-paper.has-template { background: #ffffff; }
    .sign-paper-template { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border: 0; background: #ffffff; pointer-events: none; }
    .sign-paper-placeholder { position: absolute; inset: 0; z-index: 0; background: #f8fafc; color: #64748b; }
    .sign-paper-placeholder span { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 12px; line-height: 1.45; text-align: center; }
    .sign-paper-line { height: 10%; border-bottom: 1px dashed #d8dee8; }
    .sign-box { position: absolute; z-index: 2; min-width: 52px; border: 2px solid #f59e0b; border-radius: 4px; background: rgba(245, 158, 11, .16); color: #92400e; font-size: 12px; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sign-box.active { border-color: #2563eb; background: rgba(37, 99, 235, .18); color: #1d4ed8; }
    body[data-theme="light"] .sign-picker-toolbar { color: #64748b; }
    .el-table { --el-table-header-bg-color: #151a20; --el-table-tr-bg-color: #101418; --el-table-row-hover-bg-color: #1b2430; --el-table-border-color: #2a3038; color: #e5e7eb; }
    .el-table th.el-table__cell { color: #e5e7eb; }
    body[data-theme="light"] .el-table {
      --el-table-bg-color: #ffffff;
      --el-table-tr-bg-color: #ffffff;
      --el-table-header-bg-color: #f8fafc;
      --el-table-row-hover-bg-color: #eef4ff;
      --el-table-current-row-bg-color: #eaf2ff;
      --el-table-expanded-cell-bg-color: #ffffff;
      --el-table-text-color: #111827;
      --el-table-header-text-color: #111827;
      --el-table-border-color: #dbe1ea;
      background: #ffffff;
      color: #111827;
    }
    body[data-theme="light"] .el-table,
    body[data-theme="light"] .el-table__inner-wrapper,
    body[data-theme="light"] .el-table__body-wrapper,
    body[data-theme="light"] .el-table__header-wrapper,
    body[data-theme="light"] .el-table__empty-block,
    body[data-theme="light"] .el-table__append-wrapper,
    body[data-theme="light"] .el-table__fixed,
    body[data-theme="light"] .el-table__fixed-right,
    body[data-theme="light"] .el-table__fixed-header-wrapper,
    body[data-theme="light"] .el-table__fixed-body-wrapper {
      background: #ffffff;
    }
    body[data-theme="light"] .el-table tr,
    body[data-theme="light"] .el-table td.el-table__cell {
      background: #ffffff;
      color: #111827;
    }
    body[data-theme="light"] .el-table th.el-table__cell {
      background: #f8fafc;
      color: #111827;
    }
    body[data-theme="light"] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
      background: #fbfdff;
    }
    body[data-theme="light"] .el-table__body tr.hover-row > td.el-table__cell,
    body[data-theme="light"] .el-table__body tr:hover > td.el-table__cell,
    body[data-theme="light"] .el-table--striped .el-table__body tr.el-table__row--striped.hover-row td.el-table__cell {
      background: #eef4ff;
      color: #0f172a;
    }
    body[data-theme="light"] .el-table__body tr.current-row > td.el-table__cell,
    body[data-theme="light"] .el-table__body tr.is-current-row > td.el-table__cell,
    body[data-theme="light"] .el-table__body tr.el-table__row.current-row > td.el-table__cell {
      background: #eaf2ff;
      color: #0f172a;
    }
    body[data-theme="dark"] .el-table {
      --el-table-bg-color: #101418;
      --el-table-tr-bg-color: #101418;
      --el-table-header-bg-color: #151a20;
      --el-table-row-hover-bg-color: #1c2632;
      --el-table-current-row-bg-color: #172235;
      --el-table-expanded-cell-bg-color: #101418;
      --el-table-text-color: #e5e7eb;
      --el-table-header-text-color: #e5e7eb;
      --el-table-border-color: #2a3038;
      background: #101418;
    }
    body[data-theme="dark"] .el-table,
    body[data-theme="dark"] .el-table__inner-wrapper,
    body[data-theme="dark"] .el-table__body-wrapper,
    body[data-theme="dark"] .el-table__header-wrapper,
    body[data-theme="dark"] .el-table__empty-block,
    body[data-theme="dark"] .el-table__append-wrapper,
    body[data-theme="dark"] .el-table__fixed,
    body[data-theme="dark"] .el-table__fixed-right,
    body[data-theme="dark"] .el-table__fixed-header-wrapper,
    body[data-theme="dark"] .el-table__fixed-body-wrapper {
      background: #101418;
    }
    body[data-theme="dark"] .el-table tr,
    body[data-theme="dark"] .el-table td.el-table__cell {
      background: #101418;
      color: #e5e7eb;
    }
    body[data-theme="dark"] .el-table th.el-table__cell {
      background: #151a20;
      color: #e5e7eb;
    }
    body[data-theme="dark"] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
      background: #121922;
    }
    body[data-theme="dark"] .el-table__body tr.hover-row > td.el-table__cell,
    body[data-theme="dark"] .el-table__body tr:hover > td.el-table__cell,
    body[data-theme="dark"] .el-table--striped .el-table__body tr.el-table__row--striped.hover-row td.el-table__cell {
      background: #1c2632;
      color: #ffffff;
    }
    body[data-theme="dark"] .el-table__body tr.current-row > td.el-table__cell,
    body[data-theme="dark"] .el-table__body tr.is-current-row > td.el-table__cell,
    body[data-theme="dark"] .el-table__body tr.el-table__row.current-row > td.el-table__cell {
      background: #172235;
      color: #ffffff;
    }
    body[data-theme="dark"] .el-table__empty-text {
      color: #8d99a8;
    }
    body[data-theme="dark"] .el-checkbox__inner {
      background: #111820;
      border-color: #4b5563;
    }
    body[data-theme="dark"] .el-checkbox__input.is-checked .el-checkbox__inner {
      background: #2563eb;
      border-color: #2563eb;
    }
    body[data-theme="dark"] .el-input__wrapper,
    body[data-theme="dark"] .el-select__wrapper,
    body[data-theme="dark"] .el-textarea__inner {
      background: #14191f;
      box-shadow: 0 0 0 1px #343b46 inset;
    }
    body[data-theme="dark"] .el-input__inner,
    body[data-theme="dark"] .el-select__placeholder,
    body[data-theme="dark"] .el-select__selected-item,
    body[data-theme="dark"] .el-textarea__inner {
      color: #e5e7eb;
    }
    body[data-theme="dark"] .el-input__inner::placeholder,
    body[data-theme="dark"] .el-textarea__inner::placeholder {
      color: #7f8997;
    }
    body[data-theme="dark"] .el-input.is-disabled .el-input__wrapper,
    body[data-theme="dark"] .el-textarea.is-disabled .el-textarea__inner,
    body[data-theme="dark"] .el-select.is-disabled .el-select__wrapper {
      background: #14191f;
      box-shadow: 0 0 0 1px #343b46 inset;
    }
    body[data-theme="dark"] .el-input.is-disabled .el-input__inner,
    body[data-theme="dark"] .el-textarea.is-disabled .el-textarea__inner,
    body[data-theme="dark"] .el-select.is-disabled .el-select__selected-item {
      color: #8d99a8;
      -webkit-text-fill-color: #8d99a8;
    }
    body[data-theme="dark"] .el-segmented {
      --el-segmented-item-selected-bg-color: #2563eb;
      --el-segmented-item-selected-color: #ffffff;
      --el-segmented-item-hover-bg-color: #1d2530;
      --el-segmented-item-hover-color: #ffffff;
      --el-segmented-item-active-bg-color: #243145;
      padding: 2px;
      background: #111827;
      border: 1px solid #343b46;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .45);
    }
    body[data-theme="dark"] .el-segmented__group {
      background: transparent;
    }
    body[data-theme="dark"] .el-segmented__item {
      color: #cbd5e1;
    }
    body[data-theme="dark"] .el-segmented__item:not(.is-selected):hover {
      color: #ffffff;
    }
    body[data-theme="dark"] .el-segmented__item-selected {
      background: #2563eb;
      box-shadow: 0 4px 10px rgba(37, 99, 235, .28);
    }
    body[data-theme="dark"] .el-segmented__item.is-selected .el-segmented__item-label {
      color: #ffffff;
    }
    body[data-theme="dark"] .el-button:not(.el-button--primary) {
      background: #151a20;
      border-color: #343b46;
      color: #d7dde6;
    }
    body[data-theme="dark"] .el-button:not(.el-button--primary):hover {
      background: #1d2530;
      border-color: #4b5563;
      color: #ffffff;
    }
    body[data-theme="dark"] .el-drawer,
    body[data-theme="dark"] .el-dialog,
    body[data-theme="dark"] .el-card,
    body[data-theme="dark"] .el-dropdown-menu {
      background: #11161c;
      color: #e5e7eb;
      border-color: #2a3038;
    }
    body[data-theme="dark"] .el-drawer__header,
    body[data-theme="dark"] .el-dialog__header,
    body[data-theme="dark"] .el-form-item__label,
    body[data-theme="dark"] .el-checkbox__label,
    body[data-theme="dark"] .el-dropdown-menu__item,
    body[data-theme="dark"] .el-pagination,
    body[data-theme="dark"] .el-pagination button,
    body[data-theme="dark"] .el-pager li {
      color: #d7dde6;
    }
    body[data-theme="dark"] .el-pagination {
      --el-pagination-bg-color: transparent;
      --el-pagination-button-bg-color: #111827;
      --el-pagination-button-color: #cbd5e1;
      --el-pagination-button-disabled-bg-color: #0f151d;
      --el-pagination-button-disabled-color: #526070;
      --el-pagination-hover-color: #60a5fa;
      color: #cbd5e1;
    }
    body[data-theme="dark"] .el-pagination .btn-prev,
    body[data-theme="dark"] .el-pagination .btn-next,
    body[data-theme="dark"] .el-pager,
    body[data-theme="dark"] .el-pager li {
      background: #111827;
      border-color: #273242;
      color: #cbd5e1;
    }
    body[data-theme="dark"] .el-pagination .btn-prev:disabled,
    body[data-theme="dark"] .el-pagination .btn-next:disabled,
    body[data-theme="dark"] .el-pager li.is-disabled {
      background: #0f151d;
      color: #526070;
    }
    body[data-theme="dark"] .el-pager li:hover,
    body[data-theme="dark"] .el-pager li.is-active {
      background: #1d4ed8;
      color: #ffffff;
    }
    body[data-theme="dark"] .el-pagination__sizes .el-select__wrapper,
    body[data-theme="dark"] .el-pagination__jump .el-input__wrapper {
      background: #111827;
      border-color: #273242;
      box-shadow: 0 0 0 1px #273242 inset;
      color: #d7dde6;
    }
    body[data-theme="dark"] .el-pagination__jump .el-input__inner,
    body[data-theme="dark"] .el-pagination__goto,
    body[data-theme="dark"] .el-pagination__classifier,
    body[data-theme="dark"] .el-pagination__total {
      color: #cbd5e1;
    }
    body[data-theme="dark"] .el-popper,
    body[data-theme="dark"] .el-select-dropdown {
      background: #11161c;
      border-color: #2a3038;
    }
    body[data-theme="dark"] .el-select-dropdown__item {
      color: #d7dde6;
    }
    body[data-theme="dark"] .el-select-dropdown__item.is-hovering,
    body[data-theme="dark"] .el-select-dropdown__item:hover,
    body[data-theme="dark"] .el-dropdown-menu__item:hover {
      background: #1d2530;
      color: #ffffff;
    }
    body[data-theme="dark"] .el-date-editor .el-input__wrapper {
      background: #14191f;
    }
    body[data-theme="dark"] .el-tag--info.el-tag--plain {
      background: #151a20;
      border-color: #343b46;
      color: #d7dde6;
    }
    .el-overlay {
      backdrop-filter: blur(3px);
    }
    .el-overlay-message-box {
      box-sizing: border-box;
      padding: 18px;
    }
    .el-message-box {
      width: min(460px, calc(100vw - 32px));
      max-width: calc(100vw - 32px);
      padding: 0;
      border-radius: 8px;
      overflow: hidden;
      letter-spacing: 0;
    }
    .el-message-box__header {
      padding: 18px 20px 10px;
    }
    .el-message-box__title {
      font-size: 16px;
      font-weight: 950;
      line-height: 1.35;
      letter-spacing: 0;
    }
    .el-message-box__headerbtn {
      top: 10px;
      right: 12px;
      width: 34px;
      height: 34px;
      border-radius: 6px;
    }
    .el-message-box__content {
      padding: 10px 20px 4px;
      font-size: 14px;
      line-height: 1.65;
    }
    .el-message-box__container {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      min-height: 0;
    }
    .el-message-box__status {
      position: static !important;
      flex: 0 0 auto;
      margin-top: 2px;
      transform: none !important;
      font-size: 22px !important;
    }
    .el-message-box__status + .el-message-box__message {
      padding-left: 0;
      padding-right: 0;
    }
    .el-message-box__message {
      flex: 1 1 auto;
      min-width: 0;
    }
    .el-message-box__message p {
      margin: 0;
      white-space: pre-line;
    }
    .el-message-box__btns {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 14px 20px 18px;
    }
    .el-message-box__btns .el-button {
      min-width: 88px;
      height: 34px;
      border-radius: 6px;
      font-weight: 850;
    }
    .el-dialog {
      border-radius: 8px;
      overflow: hidden;
      letter-spacing: 0;
    }
    .el-dialog__header {
      margin-right: 0;
      padding: 16px 20px 12px;
      border-bottom: 1px solid transparent;
    }
    .el-dialog__title {
      font-size: 17px;
      font-weight: 950;
      letter-spacing: 0;
    }
    .el-dialog__headerbtn {
      top: 10px;
      right: 10px;
      width: 36px;
      height: 36px;
      border-radius: 6px;
    }
    .el-dialog__body {
      padding: 16px 20px;
    }
    .el-dialog__footer {
      padding: 12px 20px 18px;
      border-top: 1px solid transparent;
    }
    .el-message,
    .el-notification {
      border-radius: 8px;
      letter-spacing: 0;
      box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    }
    .risk-confirm-message {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .risk-confirm-message p,
    .undercharge-alert-message p {
      margin: 0;
    }
    .risk-confirm-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 2px 0;
      padding: 0;
      list-style: none;
    }
    .risk-confirm-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 9px 10px;
      border: 1px solid transparent;
      border-radius: 8px;
    }
    .risk-confirm-item strong {
      flex: 0 0 auto;
      min-width: 74px;
      font-weight: 950;
    }
    .risk-confirm-item span {
      min-width: 0;
    }
    .risk-confirm-question {
      font-weight: 850;
    }
    .undercharge-alert-message {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .undercharge-alert-message strong {
      font-size: 15px;
      font-weight: 950;
    }
    .undercharge-alert-message small {
      font-size: 12px;
      line-height: 1.6;
    }
    body[data-theme="dark"] .el-overlay {
      background-color: rgba(2, 6, 23, .74) !important;
    }
    body[data-theme="dark"] .el-message-box,
    body[data-theme="dark"] .el-dialog {
      background: #101820;
      border: 1px solid #2b3543;
      color: #e5e7eb;
      box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 0 1px rgba(96, 165, 250, .08);
    }
    body[data-theme="dark"] .el-message-box__header,
    body[data-theme="dark"] .el-dialog__header {
      border-bottom-color: #273242;
      background: linear-gradient(180deg, rgba(30, 41, 59, .64), rgba(16, 24, 32, 0));
    }
    body[data-theme="dark"] .el-message-box__title,
    body[data-theme="dark"] .el-dialog__title {
      color: #f8fafc;
    }
    body[data-theme="dark"] .el-message-box__content,
    body[data-theme="dark"] .el-message-box__message,
    body[data-theme="dark"] .el-dialog__body {
      color: #d7dde6;
    }
    body[data-theme="dark"] .el-message-box__btns,
    body[data-theme="dark"] .el-dialog__footer {
      border-top-color: #273242;
      background: #0d131a;
    }
    body[data-theme="dark"] .el-message-box__headerbtn:hover,
    body[data-theme="dark"] .el-dialog__headerbtn:hover {
      background: #1d2530;
    }
    body[data-theme="dark"] .el-message-box__close,
    body[data-theme="dark"] .el-dialog__close {
      color: #cbd5e1;
    }
    body[data-theme="dark"] .el-message-box__headerbtn:hover .el-message-box__close,
    body[data-theme="dark"] .el-dialog__headerbtn:hover .el-dialog__close {
      color: #ffffff;
    }
    body[data-theme="dark"] .el-message-box__status.el-message-box-icon--warning {
      color: #f59e0b;
    }
    body[data-theme="dark"] .el-message-box__status.el-message-box-icon--error {
      color: #ef4444;
    }
    body[data-theme="dark"] .el-message,
    body[data-theme="dark"] .el-notification {
      background: #111827;
      border-color: #334155;
      color: #e5e7eb;
      box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
    }
    body[data-theme="dark"] .el-message__content,
    body[data-theme="dark"] .el-notification__title,
    body[data-theme="dark"] .el-notification__content {
      color: #e5e7eb;
    }
    body[data-theme="dark"] .risk-confirm-item.risk-confirm-danger {
      background: rgba(239, 68, 68, .10);
      border-color: rgba(248, 113, 113, .38);
      color: #fecaca;
    }
    body[data-theme="dark"] .risk-confirm-item.risk-confirm-warning {
      background: rgba(245, 158, 11, .12);
      border-color: rgba(251, 191, 36, .42);
      color: #fde68a;
    }
    body[data-theme="dark"] .risk-confirm-question {
      color: #f8fafc;
    }
    body[data-theme="dark"] .undercharge-alert-message strong {
      color: #fecaca;
    }
    body[data-theme="dark"] .undercharge-alert-message small {
      color: #94a3b8;
    }
    body[data-theme="light"] .el-overlay {
      background-color: rgba(15, 23, 42, .36) !important;
    }
    body[data-theme="light"] .el-message-box,
    body[data-theme="light"] .el-dialog {
      background: #ffffff;
      border: 1px solid #dbe4ef;
      color: #0f172a;
      box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    }
    body[data-theme="light"] .el-message-box__header,
    body[data-theme="light"] .el-dialog__header {
      border-bottom-color: #e2e8f0;
      background: linear-gradient(180deg, #f8fafc, #ffffff);
    }
    body[data-theme="light"] .el-message-box__content,
    body[data-theme="light"] .el-message-box__message,
    body[data-theme="light"] .el-dialog__body {
      color: #334155;
    }
    body[data-theme="light"] .el-message-box__btns,
    body[data-theme="light"] .el-dialog__footer {
      border-top-color: #e2e8f0;
      background: #f8fafc;
    }
    body[data-theme="light"] .el-message-box__headerbtn:hover,
    body[data-theme="light"] .el-dialog__headerbtn:hover {
      background: #eef2f7;
    }
    body[data-theme="light"] .risk-confirm-item.risk-confirm-danger {
      background: #fff1f2;
      border-color: #fecdd3;
      color: #9f1239;
    }
    body[data-theme="light"] .risk-confirm-item.risk-confirm-warning {
      background: #fffbeb;
      border-color: #fde68a;
      color: #92400e;
    }
    body[data-theme="light"] .risk-confirm-question {
      color: #0f172a;
    }
    body[data-theme="light"] .undercharge-alert-message strong {
      color: #b91c1c;
    }
    body[data-theme="light"] .undercharge-alert-message small {
      color: #64748b;
    }
    .settings-side-nav button,
    .settings-sub-nav button,
    .user-workspace-tabs button,
    .user-admin-nav-item,
    .user-stat-card,
    .audit-category-item,
    .permission-form-item,
    .permission-action-card,
    .column-mode-tabs button {
      position: relative;
      overflow: hidden;
    }
    .settings-side-nav button.active,
    .settings-sub-nav button.active,
    .user-workspace-tabs button.active,
    .user-admin-nav-item.active,
    .user-stat-card.active,
    .audit-category-item.active,
    .permission-form-item.active,
    .column-mode-tabs button.active {
      border-color: #60a5fa;
      background: linear-gradient(180deg, rgba(37, 99, 235, .28), rgba(29, 78, 216, .18));
      color: #ffffff;
      box-shadow:
        inset 0 0 0 2px rgba(96, 165, 250, .52),
        0 0 0 2px rgba(59, 130, 246, .16),
        0 10px 24px rgba(37, 99, 235, .22);
    }
    .settings-side-nav button.active::after,
    .settings-sub-nav button.active::after,
    .user-workspace-tabs button.active::after,
    .user-admin-nav-item.active::after,
    .user-stat-card.active::after,
    .audit-category-item.active::after,
    .permission-form-item.active::after,
    .column-mode-tabs button.active::after {
      display: none;
    }
    .column-drawer .column-mode-tabs button.active {
      border-color: transparent;
      background: #2563eb;
      color: #ffffff;
      box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .72), 0 3px 8px rgba(37, 99, 235, .18);
    }
    .settings-side-nav button.active span,
    .settings-sub-nav button.active span,
    .user-workspace-tabs button.active span,
    .audit-category-item.active strong,
    .permission-action-card.active span {
      color: #ffffff;
    }
    .settings-side-nav button.active strong,
    .settings-sub-nav button.active strong,
    .user-workspace-tabs button.active strong,
    .audit-category-item.active span,
    .permission-action-card.active small {
      color: #dbeafe;
    }
    .row-size-segment button.active,
    .preset-clear.active,
    .quick-bool-editor button.active,
    .permission-flag.active {
      box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, .2),
        0 0 0 2px rgba(59, 130, 246, .18),
        0 5px 14px rgba(37, 99, 235, .24);
      font-weight: 950;
    }
    body[data-theme="light"] .row-size-segment {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .03);
    }
    body[data-theme="light"] .row-size-segment button {
      color: #475569;
      font-weight: 850;
    }
    body[data-theme="light"] .row-size-segment button.active {
      background: #2563eb;
      color: #ffffff;
      font-weight: 900;
      text-shadow: none;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 1px 2px rgba(37, 99, 235, .22);
    }
    body[data-theme="light"] .row-size-segment button:not(.active):hover {
      background: #eef4ff;
      color: #1d4ed8;
    }
    .el-tabs__item.is-active {
      color: #bfdbfe;
      font-weight: 950;
      background: rgba(37, 99, 235, .18);
      border-radius: 7px 7px 0 0;
      box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .26);
    }
    .el-tabs__active-bar {
      height: 3px;
      border-radius: 999px;
      background: #60a5fa;
      box-shadow: 0 0 10px rgba(96, 165, 250, .36);
    }
    body[data-theme="dark"] .el-radio-group {
      --el-fill-color-blank: #111820;
      --el-border-color: #334155;
      --el-text-color-regular: #cbd5e1;
      --el-radio-button-checked-bg-color: #1d4ed8;
      --el-radio-button-checked-border-color: #60a5fa;
      --el-radio-button-checked-text-color: #ffffff;
    }
    body[data-theme="dark"] .el-radio-button__inner {
      background: #111820 !important;
      border-color: #334155 !important;
      color: #cbd5e1 !important;
      box-shadow: none !important;
    }
    body[data-theme="dark"] .el-radio-button:first-child .el-radio-button__inner {
      border-left-color: #334155 !important;
    }
    body[data-theme="dark"] .el-radio-button:not(.is-active) .el-radio-button__inner,
    body[data-theme="dark"] .el-radio-button__original-radio:not(:checked) + .el-radio-button__inner {
      background: #111820 !important;
      border-color: #334155 !important;
      color: #cbd5e1 !important;
    }
    body[data-theme="dark"] .el-radio-button__inner:hover {
      background: #172033 !important;
      border-color: #3b82f6 !important;
      color: #dbeafe !important;
    }
    .el-radio-button.is-active .el-radio-button__inner,
    .el-radio-button__original-radio:checked + .el-radio-button__inner {
      background: #1d4ed8 !important;
      border-color: #60a5fa !important;
      color: #ffffff !important;
      font-weight: 950 !important;
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .18),
        0 5px 14px rgba(37, 99, 235, .24) !important;
    }
    body[data-theme="light"] .settings-side-nav button.active,
    body[data-theme="light"] .settings-sub-nav button.active,
    body[data-theme="light"] .user-workspace-tabs button.active,
    body[data-theme="light"] .user-admin-nav-item.active,
    body[data-theme="light"] .user-stat-card.active,
    body[data-theme="light"] .audit-category-item.active,
    body[data-theme="light"] .permission-form-item.active,
    body[data-theme="light"] .column-mode-tabs button.active {
      border-color: #2563eb;
      background: linear-gradient(180deg, #dbeafe, #eff6ff);
      color: #0f172a;
      box-shadow:
        inset 0 0 0 2px rgba(37, 99, 235, .42),
        0 0 0 2px rgba(37, 99, 235, .12),
        0 10px 22px rgba(37, 99, 235, .16);
    }
    body[data-theme="light"] .column-drawer .column-mode-tabs button.active {
      border-color: transparent;
      background: #2563eb;
      color: #ffffff;
      box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .72), 0 3px 8px rgba(37, 99, 235, .14);
    }
    body[data-theme="light"] .settings-side-nav button.active span,
    body[data-theme="light"] .settings-sub-nav button.active span,
    body[data-theme="light"] .user-workspace-tabs button.active span,
    body[data-theme="light"] .audit-category-item.active strong,
    body[data-theme="light"] .permission-action-card.active span {
      color: #0f172a;
    }
    body[data-theme="light"] .settings-side-nav button.active strong,
    body[data-theme="light"] .settings-sub-nav button.active strong,
    body[data-theme="light"] .user-workspace-tabs button.active strong,
    body[data-theme="light"] .audit-category-item.active span,
    body[data-theme="light"] .permission-action-card.active small {
      color: #1d4ed8;
    }
    body[data-theme="light"] .el-tabs__item.is-active {
      color: #1d4ed8;
      background: #dbeafe;
    }
    body[data-theme="light"] .el-radio-button.is-active .el-radio-button__inner,
    body[data-theme="light"] .el-radio-button__original-radio:checked + .el-radio-button__inner {
      background: #2563eb !important;
      border-color: #2563eb !important;
      color: #ffffff !important;
    }
    .phone-card-drawer .el-drawer__header,
    .phone-card-config-drawer .el-drawer__header {
      margin-bottom: 0;
      padding: 12px 18px 10px;
      border-bottom: 1px solid #252c35;
      background: #0f151d;
      color: #f8fafc;
    }
    .phone-card-drawer .el-drawer__body,
    .phone-card-config-drawer .el-drawer__body {
      padding: 12px 18px 16px;
      background: #11161c;
    }
    .phone-card-drawer .el-drawer__footer,
    .phone-card-config-drawer .el-drawer__footer {
      padding: 10px 18px 12px;
      border-top: 1px solid #252c35;
      background: #11161c;
    }
    .phone-card-counter-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
    }
    .phone-card-counter-grid .el-input-number {
      width: 100%;
    }
    .phone-card-detail-shell {
      display: grid;
      gap: 12px;
    }
    .phone-card-profile-card {
      min-height: 92px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px;
      border: 1px solid #273241;
      border-radius: 8px;
      background: #121a24;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    }
    .phone-card-profile-main {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .phone-card-avatar {
      width: 46px;
      height: 46px;
      flex: 0 0 46px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: #1d4ed8;
      color: #ffffff;
      font-size: 20px;
      font-weight: 950;
      box-shadow: 0 10px 22px rgba(29, 78, 216, .28);
    }
    .phone-card-profile-copy {
      min-width: 0;
      display: grid;
      gap: 7px;
    }
    .phone-card-profile-title,
    .phone-card-profile-sub {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .phone-card-profile-title strong {
      color: #f8fafc;
      font-size: 21px;
      font-weight: 950;
      line-height: 1.15;
      letter-spacing: 0;
    }
    .phone-card-profile-sub {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 800;
    }
    .phone-card-profile-sub span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .phone-card-detail-chip {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
      cursor: default;
    }
    .phone-card-more-btn {
      flex: 0 0 auto;
    }
    .phone-card-usage-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .phone-card-usage-card,
    .phone-card-detail-section {
      border: 1px solid #273241;
      border-radius: 8px;
      background: #101821;
    }
    .phone-card-usage-card {
      min-width: 0;
      display: grid;
      gap: 5px;
      padding: 11px 12px;
    }
    .phone-card-usage-card span,
    .phone-card-info-item span,
    .phone-card-section-head span {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 800;
    }
    .phone-card-usage-card strong {
      color: #f8fafc;
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
    }
    .phone-card-usage-card small {
      color: #64748b;
      font-size: 12px;
      font-weight: 800;
    }
    .phone-card-meter {
      height: 5px;
      overflow: hidden;
      border-radius: 999px;
      background: #1e293b;
    }
    .phone-card-meter i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: #38bdf8;
    }
    .phone-card-detail-section {
      padding: 12px;
    }
    .phone-card-section-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .phone-card-section-head strong {
      color: #f8fafc;
      font-size: 14px;
      font-weight: 950;
    }
    .phone-card-info-grid,
    .phone-card-system-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .phone-card-info-item {
      min-width: 0;
      display: grid;
      gap: 5px;
      min-height: 58px;
      padding: 10px 11px;
      border: 1px solid #233044;
      border-radius: 8px;
      background: #0f151d;
    }
    .phone-card-info-item.is-wide {
      grid-column: 1 / -1;
    }
    .phone-card-info-item strong {
      min-width: 0;
      color: #e5e7eb;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.45;
      overflow-wrap: anywhere;
      white-space: pre-wrap;
    }
    .phone-card-audit-panel {
      margin: 14px 0 4px;
      padding: 10px;
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #111820;
    }
    .phone-card-audit-head {
      min-height: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }
    .phone-card-audit-head strong {
      color: #f8fafc;
      font-size: 14px;
      font-weight: 900;
    }
    .phone-card-audit-panel .el-table {
      --el-table-bg-color: #101418;
      --el-table-tr-bg-color: #101418;
      --el-table-header-bg-color: #151a20;
      background: #101418;
    }
    .phone-card-option-section + .phone-card-option-section {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid #252c35;
    }
    .phone-card-range-head {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid #252c35;
    }
    .phone-card-range-list {
      display: grid;
      gap: 8px;
    }
    .phone-card-range-row {
      display: grid;
      grid-template-columns: minmax(120px, 1fr) 112px 22px 112px auto;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #111820;
    }
    .phone-card-range-row strong {
      min-width: 0;
      color: #eef2f7;
      font-size: 13px;
      font-weight: 900;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .phone-card-range-row span {
      color: #8d99a8;
      font-size: 12px;
      text-align: center;
    }
    .phone-card-range-row .el-input-number {
      width: 112px;
    }
    .phone-card-type-chip {
      min-height: 24px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      cursor: default;
    }
    .phone-card-drawer.is-detail-view .el-drawer__body {
      padding: 10px 10px 12px;
      background: #0f1115;
    }
    .phone-card-drawer.is-detail-view .el-drawer__footer {
      padding: 8px 18px;
      background: #0f1115;
    }
    .phone-card-drawer.is-detail-view .phone-card-detail-shell {
      display: block;
      gap: 0;
    }
    .phone-card-detail-table {
      overflow: hidden;
      border: 1px solid #273241;
      border-bottom: 0;
      border-radius: 0;
      background: #11161c;
    }
    .phone-card-detail-row {
      display: grid;
      grid-template-columns: 240px minmax(0, 1fr);
      min-height: 40px;
      border-bottom: 1px solid #273241;
    }
    .phone-card-detail-label {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 8px 12px;
      border-right: 1px solid #273241;
      background: #151b23;
      color: #c9d4e4;
      font-size: 14px;
      font-weight: 900;
      text-align: right;
    }
    .phone-card-detail-value {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      color: #e5e7eb;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.45;
      overflow-wrap: anywhere;
      white-space: pre-wrap;
    }
    .phone-card-detail-value.is-strong {
      color: #dbeafe;
      font-size: 16px;
      font-weight: 950;
      letter-spacing: 0;
    }
    .phone-card-detail-row.is-tall .phone-card-detail-label,
    .phone-card-detail-row.is-tall .phone-card-detail-value {
      align-items: flex-start;
      min-height: 58px;
      padding-top: 11px;
      padding-bottom: 11px;
    }
    .phone-card-detail-group {
      min-height: 34px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      border-bottom: 1px solid #273241;
      background: #101820;
      color: #93c5fd;
      font-size: 13px;
      font-weight: 950;
    }
    .phone-card-detail-counter {
      width: min(420px, 100%);
      display: grid;
      grid-template-columns: 32px auto minmax(120px, 1fr);
      align-items: center;
      gap: 9px;
    }
    .phone-card-detail-counter strong {
      color: #f8fafc;
      font-size: 16px;
      font-weight: 950;
      line-height: 1;
    }
    .phone-card-detail-counter span {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }
    body[data-theme="light"] .phone-card-drawer .el-drawer__header,
    body[data-theme="light"] .phone-card-config-drawer .el-drawer__header {
      background: #ffffff;
      border-bottom-color: #e5e7eb;
      color: #111827;
    }
    body[data-theme="light"] .phone-card-drawer .el-drawer__body,
    body[data-theme="light"] .phone-card-config-drawer .el-drawer__body {
      background: #f4f7fb;
    }
    body[data-theme="light"] .phone-card-drawer .el-drawer__footer,
    body[data-theme="light"] .phone-card-config-drawer .el-drawer__footer {
      background: #ffffff;
    }
    body[data-theme="light"] .phone-card-profile-card {
      background: #ffffff;
      border-color: #dbe4ef;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    }
    body[data-theme="light"] .phone-card-profile-title strong,
    body[data-theme="light"] .phone-card-section-head strong,
    body[data-theme="light"] .phone-card-usage-card strong,
    body[data-theme="light"] .phone-card-info-item strong {
      color: #0f172a;
    }
    body[data-theme="light"] .phone-card-profile-sub,
    body[data-theme="light"] .phone-card-usage-card span,
    body[data-theme="light"] .phone-card-info-item span,
    body[data-theme="light"] .phone-card-section-head span {
      color: #64748b;
    }
    body[data-theme="light"] .phone-card-usage-card,
    body[data-theme="light"] .phone-card-detail-section {
      background: #ffffff;
      border-color: #dbe4ef;
      box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    }
    body[data-theme="light"] .phone-card-info-item {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    body[data-theme="light"] .phone-card-usage-card small {
      color: #94a3b8;
    }
    body[data-theme="light"] .phone-card-meter {
      background: #e2e8f0;
    }
    body[data-theme="light"] .phone-card-drawer .el-drawer__footer,
    body[data-theme="light"] .phone-card-config-drawer .el-drawer__footer {
      border-top-color: #e5e7eb;
    }
    body[data-theme="light"] .phone-card-audit-panel,
    body[data-theme="light"] .phone-card-range-row {
      background: #f8fafc;
      border-color: #dbe1ea;
    }
    body[data-theme="light"] .phone-card-audit-head strong,
    body[data-theme="light"] .phone-card-range-row strong {
      color: #111827;
    }
    body[data-theme="light"] .phone-card-range-head,
    body[data-theme="light"] .phone-card-option-section + .phone-card-option-section {
      border-top-color: #e5e7eb;
    }
    body[data-theme="light"] .phone-card-range-row span {
      color: #64748b;
    }
    body[data-theme="light"] .phone-card-drawer.is-detail-view .el-drawer__body,
    body[data-theme="light"] .phone-card-drawer.is-detail-view .el-drawer__footer {
      background: #ffffff;
    }
    body[data-theme="light"] .phone-card-detail-table {
      background: #ffffff;
      border-color: #dbe1ea;
    }
    body[data-theme="light"] .phone-card-detail-row {
      border-bottom-color: #dbe1ea;
    }
    body[data-theme="light"] .phone-card-detail-label {
      background: #f3f6fa;
      border-right-color: #dbe1ea;
      color: #0f172a;
    }
    body[data-theme="light"] .phone-card-detail-value {
      color: #172033;
    }
    body[data-theme="light"] .phone-card-detail-value.is-strong,
    body[data-theme="light"] .phone-card-detail-counter strong {
      color: #1d4ed8;
    }
    body[data-theme="light"] .phone-card-detail-group {
      background: #f8fafc;
      border-bottom-color: #dbe1ea;
      color: #2563eb;
    }
    body[data-theme="light"] .phone-card-detail-counter span {
      color: #64748b;
    }
    .attendance-top-button {
      min-width: 86px;
      margin-left: 8px !important;
      font-weight: 900;
    }
    .attendance-top-button.el-button.is-plain {
      background: #101820;
      border-color: #2d5f9f;
      color: #bfdbfe;
    }
    .attendance-top-button.el-button.is-plain:hover,
    .attendance-top-button.el-button.is-plain:focus {
      background: #132843;
      border-color: #60a5fa;
      color: #ffffff;
    }
    .attendance-dialog-body {
      display: grid;
      gap: 12px;
      min-height: 220px;
    }
    .attendance-today-card,
    .attendance-risk-line,
    .attendance-setting-hint {
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #0f151d;
      padding: 12px;
    }
    .attendance-today-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .attendance-today-card div,
    .attendance-time-grid div {
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    .attendance-today-card span,
    .attendance-time-grid span,
    .attendance-risk-line span,
    .attendance-setting-hint,
    .attendance-subtext {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 800;
    }
    .attendance-today-card strong {
      color: #f8fafc;
      font-size: 22px;
      line-height: 1.1;
    }
    .attendance-time-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .attendance-shift-picker {
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      align-items: center;
      gap: 8px 12px;
      padding: 12px;
      border: 1px solid rgba(96, 165, 250, 0.24);
      border-radius: 8px;
      background: rgba(59, 130, 246, 0.08);
    }
    .attendance-shift-picker > span {
      color: #bfdbfe;
      font-weight: 900;
    }
    .attendance-shift-picker small {
      grid-column: 2;
      color: #93a4b8;
      font-size: 12px;
      font-weight: 800;
    }
    .attendance-time-grid div {
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #111820;
      padding: 11px 12px;
    }
    .attendance-time-grid strong {
      color: #e5e7eb;
      font-size: 16px;
    }
    .attendance-time-grid small {
      color: #60a5fa;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .attendance-risk-line {
      display: grid;
      grid-template-columns: auto auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
    }
    .attendance-risk-line em {
      color: #cbd5e1;
      font-style: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .attendance-page {
      min-width: 0;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }
    .attendance-admin-layout {
      min-height: 100%;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 12px;
    }
    .attendance-admin-head {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
      gap: 14px;
      align-items: start;
      padding: 14px;
    }
    .attendance-admin-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 8px;
    }
    .attendance-admin-actions .el-date-editor {
      width: 150px;
    }
    .attendance-admin-actions .el-select {
      width: 150px;
    }
    .attendance-admin-actions .el-input {
      width: min(240px, 100%);
    }
    .attendance-calendar-user-select {
      width: 190px;
    }
    .attendance-summary-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(120px, 1fr));
      gap: 10px;
    }
    .attendance-summary-card {
      min-height: 58px;
      display: grid;
      align-content: center;
      gap: 4px;
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #111820;
      padding: 9px 10px;
    }
    .attendance-summary-card span {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 800;
    }
    .attendance-summary-card strong {
      color: #f8fafc;
      font-size: 22px;
      line-height: 1;
    }
    .attendance-summary-card.success strong { color: #22c55e; }
    .attendance-summary-card.primary strong { color: #60a5fa; }
    .attendance-summary-card.danger strong { color: #f87171; }
    .attendance-summary-card.warning strong { color: #fbbf24; }
    .attendance-summary-card.actionable {
      cursor: pointer;
      transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
    }
    .attendance-summary-card.actionable:hover,
    .attendance-summary-card.actionable:focus {
      border-color: rgba(96, 165, 250, 0.8);
      box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
      transform: translateY(-1px);
      outline: none;
    }
    .content-area.attendance-calendar-mode {
      padding: 10px 12px;
      overflow: hidden;
    }
    .attendance-calendar-mode .attendance-admin-layout {
      min-height: 0;
      height: 100%;
      gap: 6px;
    }
    .attendance-calendar-mode .attendance-admin-head {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      padding: 7px 10px;
    }
    .attendance-calendar-mode .attendance-admin-head .section-title {
      margin-bottom: 0;
    }
    .attendance-calendar-mode .attendance-admin-head .muted-text {
      display: none;
    }
    .attendance-calendar-mode .attendance-admin-actions {
      gap: 6px;
    }
    .attendance-calendar-mode .attendance-admin-actions .el-date-editor,
    .attendance-calendar-mode .attendance-admin-actions .el-select {
      width: 126px;
    }
    .attendance-calendar-mode .attendance-admin-actions .el-input {
      width: min(188px, 100%);
    }
    .attendance-calendar-mode .attendance-calendar-user-select {
      width: 170px;
    }
    .attendance-calendar-mode .attendance-admin-actions .el-button {
      height: 28px;
      padding: 0 10px;
    }
    .attendance-calendar-mode .attendance-summary-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 5px;
    }
    .attendance-calendar-mode .attendance-summary-card {
      min-height: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 5px 8px;
    }
    .attendance-calendar-mode .attendance-summary-card span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11px;
    }
    .attendance-calendar-mode .attendance-summary-card strong {
      flex: 0 0 auto;
      font-size: 16px;
    }
    .attendance-workspace {
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 12px;
      overflow: hidden;
    }
    .attendance-calendar-mode .attendance-workspace {
      padding: 6px 8px;
    }
    .attendance-calendar-mode .attendance-tabs > .el-tabs__header {
      margin: 0 0 4px;
    }
    .attendance-calendar-mode .attendance-tabs .el-tabs__nav-wrap::after {
      height: 1px;
    }
    .attendance-calendar-mode .attendance-tabs .el-tabs__item {
      height: 28px;
      line-height: 28px;
      padding: 0 12px;
    }
    .attendance-calendar-mode .attendance-tabs .el-tabs__content {
      overflow: hidden;
    }
    .attendance-tabs,
    .attendance-tabs .el-tabs__content,
    .attendance-tabs .el-tab-pane {
      min-height: 0;
      height: 100%;
    }
    .attendance-tabs .el-tabs__item {
      color: #9fb0c7;
      font-weight: 900;
    }
    .attendance-tabs .el-tabs__item.is-active {
      color: #f8fafc;
    }
    .attendance-tabs .el-tabs__active-bar {
      background: #60a5fa;
    }
    .attendance-tabs .el-tab-pane {
      display: grid;
      grid-template-rows: minmax(0, 1fr) auto;
      gap: 10px;
    }
    .attendance-fill-table {
      min-height: 0;
    }
    .attendance-fill-table .cell {
      display: grid;
      gap: 2px;
      line-height: 1.35;
    }
    .attendance-subtext {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .attendance-pager {
      min-height: 36px;
      margin: 0;
      flex: 0 0 auto;
    }
    .attendance-calendar-panel {
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
      overflow: hidden;
    }
    .attendance-calendar-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
      min-height: 22px;
    }
    .attendance-calendar-toolbar > div:first-child {
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 8px;
    }
    .attendance-calendar-toolbar strong {
      display: block;
      color: #f8fafc;
      font-size: 16px;
      line-height: 1.1;
    }
    .attendance-calendar-toolbar span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #8d99a8;
      font-size: 11px;
      font-weight: 800;
    }
    .attendance-calendar-legend {
      flex: 0 0 auto;
      display: flex;
      gap: 4px;
      flex-wrap: nowrap;
    }
    .attendance-calendar-legend span,
    .attendance-calendar-statline span {
      flex: 0 0 auto;
      border: 1px solid #2a3038;
      border-radius: 999px;
      padding: 1px 5px;
      font-size: 10px;
      font-weight: 900;
      line-height: 1.2;
      white-space: nowrap;
    }
    .attendance-calendar-legend span.actionable,
    .attendance-calendar-statline span.actionable,
    .attendance-calendar-list.actionable,
    .attendance-calendar-list.actionable em {
      cursor: pointer;
    }
    .attendance-calendar-statline span.actionable:hover,
    .attendance-calendar-list.actionable:hover em {
      filter: brightness(1.12);
    }
    .attendance-calendar-legend .checked,
    .attendance-calendar-statline .checked {
      color: #22c55e;
      border-color: rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.08);
    }
    .attendance-calendar-legend .absent,
    .attendance-calendar-statline .absent {
      color: #f87171;
      border-color: rgba(248, 113, 113, 0.35);
      background: rgba(248, 113, 113, 0.08);
    }
    .attendance-calendar-legend .abnormal,
    .attendance-calendar-statline .abnormal {
      color: #fbbf24;
      border-color: rgba(251, 191, 36, 0.35);
      background: rgba(251, 191, 36, 0.1);
    }
    .attendance-calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 4px;
    }
    .attendance-calendar-weekdays span {
      color: #93a4b8;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
      text-align: center;
    }
    .attendance-calendar-grid {
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: repeat(7, minmax(96px, 1fr));
      grid-auto-rows: minmax(0, 1fr);
      gap: 4px;
      overflow: hidden;
      padding-right: 0;
    }
    .attendance-calendar-day {
      min-width: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      align-content: stretch;
      gap: 4px;
      border: 1px solid #2a3038;
      border-radius: 6px;
      background: #0f151d;
      padding: 7px 8px;
      overflow: hidden;
    }
    .attendance-calendar-day.empty {
      border-style: dashed;
      background: rgba(15, 21, 29, 0.35);
    }
    .attendance-calendar-day.today {
      border-color: rgba(96, 165, 250, 0.9);
      box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22);
    }
    .attendance-calendar-day.future {
      opacity: 0.68;
    }
    .attendance-calendar-day.abnormal {
      border-color: rgba(251, 191, 36, 0.55);
    }
    .attendance-calendar-day-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-width: 0;
    }
    .attendance-calendar-day-main {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .attendance-calendar-day-head strong {
      flex: 0 0 auto;
      color: #f8fafc;
      font-size: 14px;
      line-height: 1;
    }
    .attendance-calendar-day-head > span {
      flex: 0 0 auto;
      color: #93a4b8;
      font-size: 10px;
      font-weight: 900;
    }
    .attendance-calendar-statline {
      min-width: 0;
      display: flex;
      flex-wrap: nowrap;
      gap: 2px;
      overflow: hidden;
    }
    .attendance-calendar-people {
      min-width: 0;
      min-height: 0;
      display: grid;
      align-content: center;
      gap: 6px;
      overflow: hidden;
      padding-bottom: 2px;
    }
    .attendance-calendar-list {
      min-width: 0;
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      align-items: center;
      gap: 3px 5px;
    }
    .attendance-calendar-list b {
      color: #93a4b8;
      overflow: visible;
      text-overflow: clip;
      white-space: nowrap;
      font-size: 10px;
      line-height: 1;
    }
    .attendance-calendar-list div {
      display: flex;
      flex-wrap: nowrap;
      gap: 4px;
      min-width: 0;
      overflow: hidden;
    }
    .attendance-calendar-list em,
    .attendance-calendar-list span {
      min-width: 0;
      max-width: 58px;
      flex: 0 1 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      border-radius: 999px;
      padding: 1px 6px;
      color: #bbf7d0;
      background: rgba(34, 197, 94, 0.12);
      font-size: 10px;
      font-style: normal;
      font-weight: 900;
      line-height: 1.35;
    }
    .attendance-calendar-list.absent em,
    .attendance-calendar-list.absent span {
      color: #fecaca;
      background: rgba(248, 113, 113, 0.13);
    }
    .attendance-calendar-list.abnormal em,
    .attendance-calendar-list.abnormal span {
      color: #fde68a;
      background: rgba(251, 191, 36, 0.13);
    }
    .attendance-calendar-list.abnormal em {
      max-width: 136px;
    }
    .attendance-settings-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(160px, 1fr));
      gap: 12px;
      align-content: start;
      padding: 4px 2px 12px;
    }
    .attendance-settings-grid label {
      min-width: 0;
      display: grid;
      gap: 7px;
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #0f151d;
      padding: 12px;
      color: #e5e7eb;
      font-weight: 900;
    }
    .attendance-switch-row {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
    }
    .attendance-settings-grid label span {
      color: #8d99a8;
      font-size: 12px;
    }
    .attendance-user-scope-field {
      grid-column: span 2;
    }
    .attendance-user-scope-field .el-select {
      width: 100%;
    }
    .attendance-user-scope-field .el-select__wrapper {
      align-items: flex-start;
      min-height: 34px;
      padding-top: 3px;
      padding-bottom: 3px;
    }
    .attendance-user-scope-field .el-select__selection {
      align-items: center;
      flex-wrap: wrap;
      row-gap: 4px;
    }
    .attendance-user-scope-field small {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
    }
    .attendance-settings-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding-top: 8px;
      border-top: 1px solid #2a3038;
    }
    .attendance-shift-editor {
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 0;
    }
    .attendance-shift-form {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.4);
    }
    .attendance-shift-form label {
      display: flex;
      flex-direction: column;
      gap: 6px;
      color: #e5e7eb;
      font-weight: 900;
    }
    .attendance-shift-form label span {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 800;
    }
    .attendance-shift-note {
      grid-column: span 2;
    }
    .attendance-shift-actions {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 8px;
    }
    .attendance-shift-table {
      flex: 1;
      min-height: 280px;
    }
    .attendance-adjust-body {
      display: grid;
      gap: 12px;
    }
    .attendance-adjust-body label {
      display: grid;
      gap: 7px;
      color: #e5e7eb;
      font-weight: 900;
    }
    .attendance-adjust-body label span {
      color: #8d99a8;
      font-size: 12px;
    }
    .attendance-adjust-target {
      display: grid;
      gap: 4px;
      border: 1px solid #2a3038;
      border-radius: 8px;
      background: #0f151d;
      padding: 12px;
    }
    .attendance-adjust-target strong {
      color: #f8fafc;
      font-size: 16px;
    }
    .attendance-adjust-target span {
      color: #8d99a8;
      font-size: 12px;
      font-weight: 800;
    }
    .attendance-adjust-dialog .el-input__count {
      background: transparent;
      color: #8d99a8;
      font-weight: 800;
    }
    body[data-theme="light"] .attendance-today-card,
    body[data-theme="light"] .attendance-time-grid div,
    body[data-theme="light"] .attendance-shift-picker,
    body[data-theme="light"] .attendance-risk-line,
    body[data-theme="light"] .attendance-setting-hint,
    body[data-theme="light"] .attendance-summary-card,
    body[data-theme="light"] .attendance-settings-grid label,
    body[data-theme="light"] .attendance-shift-form {
      background: #ffffff;
      border-color: #dbe1ea;
    }
    body[data-theme="light"] .attendance-today-card strong,
    body[data-theme="light"] .attendance-time-grid strong,
    body[data-theme="light"] .attendance-summary-card strong,
    body[data-theme="light"] .attendance-settings-grid label,
    body[data-theme="light"] .attendance-shift-form label {
      color: #111827;
    }
    body[data-theme="light"] .attendance-today-card span,
    body[data-theme="light"] .attendance-time-grid span,
    body[data-theme="light"] .attendance-shift-picker > span,
    body[data-theme="light"] .attendance-risk-line span,
    body[data-theme="light"] .attendance-setting-hint,
    body[data-theme="light"] .attendance-subtext,
    body[data-theme="light"] .attendance-summary-card span,
    body[data-theme="light"] .attendance-settings-grid label span,
    body[data-theme="light"] .attendance-shift-form label span {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-risk-line em {
      color: #334155;
    }
    body[data-theme="light"] .attendance-user-scope-field small {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-adjust-body label {
      color: #111827;
    }
    body[data-theme="light"] .attendance-adjust-body label span,
    body[data-theme="light"] .attendance-adjust-target span {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-adjust-target {
      background: #ffffff;
      border-color: #dbe1ea;
    }
    body[data-theme="light"] .attendance-adjust-target strong {
      color: #111827;
    }
    body[data-theme="light"] .attendance-adjust-dialog .el-input__count {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-top-button.el-button.is-plain {
      background: #eff6ff;
      border-color: #93c5fd;
      color: #1d4ed8;
    }
    body[data-theme="light"] .attendance-top-button.el-button.is-plain:hover,
    body[data-theme="light"] .attendance-top-button.el-button.is-plain:focus {
      background: #dbeafe;
      border-color: #3b82f6;
      color: #1e40af;
    }
    body[data-theme="light"] .attendance-tabs .el-tabs__item {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-tabs .el-tabs__item.is-active {
      color: #1d4ed8;
    }
    body[data-theme="light"] .attendance-calendar-toolbar strong,
    body[data-theme="light"] .attendance-calendar-day-head strong {
      color: #0f172a;
    }
    body[data-theme="light"] .attendance-calendar-toolbar span,
    body[data-theme="light"] .attendance-calendar-weekdays span,
    body[data-theme="light"] .attendance-calendar-day-head > span,
    body[data-theme="light"] .attendance-calendar-list b {
      color: #64748b;
    }
    body[data-theme="light"] .attendance-calendar-day {
      background: #ffffff;
      border-color: #dbe1ea;
    }
    body[data-theme="light"] .attendance-calendar-day.empty {
      background: #f8fafc;
    }
    body[data-theme="light"] .attendance-calendar-day.today {
      border-color: #3b82f6;
      box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
    }
    body[data-theme="light"] .attendance-calendar-day.abnormal {
      border-color: rgba(217, 119, 6, 0.42);
    }
    body[data-theme="light"] .attendance-calendar-list em,
    body[data-theme="light"] .attendance-calendar-list span {
      color: #166534;
      background: #dcfce7;
    }
    body[data-theme="light"] .attendance-calendar-list.absent em,
    body[data-theme="light"] .attendance-calendar-list.absent span {
      color: #991b1b;
      background: #fee2e2;
    }
    body[data-theme="light"] .attendance-calendar-list.abnormal em,
    body[data-theme="light"] .attendance-calendar-list.abnormal span {
      color: #92400e;
      background: #fef3c7;
    }
    @media (max-width: 720px) {
      .attendance-time-grid,
      .attendance-admin-head,
      .attendance-summary-grid,
      .attendance-settings-grid,
      .attendance-shift-form {
        grid-template-columns: 1fr;
      }
      .attendance-shift-note {
        grid-column: auto;
      }
      .attendance-user-scope-field {
        grid-column: auto;
      }
      .attendance-shift-picker {
        grid-template-columns: 1fr;
      }
      .attendance-shift-picker small {
        grid-column: auto;
      }
      .attendance-risk-line {
        grid-template-columns: 1fr;
      }
      .attendance-admin-actions,
      .attendance-admin-actions .el-date-editor,
      .attendance-admin-actions .el-select,
      .attendance-admin-actions .el-input {
        width: 100%;
      }
      .phone-card-profile-card,
      .phone-card-profile-main {
        align-items: flex-start;
      }
      .phone-card-profile-card {
        flex-direction: column;
      }
      .phone-card-usage-grid,
      .phone-card-info-grid,
      .phone-card-system-grid {
        grid-template-columns: 1fr;
      }
      .phone-card-range-row {
        grid-template-columns: 1fr;
        align-items: stretch;
      }
      .phone-card-range-row span {
        text-align: left;
      }
      .phone-card-range-row .el-input-number {
        width: 100%;
      }
      .phone-card-detail-row {
        grid-template-columns: 112px minmax(0, 1fr);
      }
      .phone-card-detail-label,
      .phone-card-detail-value {
        padding-left: 8px;
        padding-right: 8px;
      }
      .phone-card-detail-counter {
        grid-template-columns: 28px auto;
      }
      .phone-card-detail-counter .phone-card-meter {
        grid-column: 1 / -1;
      }
    }
    .public-review-page {
      min-height: 100vh;
      display: grid;
      place-items: start center;
      padding: 16px 12px;
      box-sizing: border-box;
      background: radial-gradient(circle at top, rgba(37, 99, 235, .18), transparent 34%), #0f1115;
    }
    body[data-theme="light"] .public-review-page {
      background: linear-gradient(180deg, #eef5ff, #f8fafc);
    }
    .public-review-card {
      width: min(520px, 100%);
      display: grid;
      gap: 14px;
      padding: 20px;
      border: 1px solid #273344;
      border-radius: 10px;
      background: #111820;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
      box-sizing: border-box;
    }
    body[data-theme="light"] .public-review-card {
      border-color: #dbe4ef;
      background: #ffffff;
      box-shadow: 0 20px 44px rgba(15, 23, 42, .12);
    }
    .public-review-head span {
      color: #60a5fa;
      font-size: 13px;
      font-weight: 900;
    }
    .public-review-head h1 {
      margin: 6px 0 4px;
      font-size: 24px;
      color: #f8fafc;
    }
    body[data-theme="light"] .public-review-head h1 {
      color: #0f172a;
    }
    .public-review-head p,
    .public-review-section label {
      margin: 0;
      color: #94a3b8;
      font-size: 13px;
      line-height: 1.6;
    }
    body[data-theme="light"] .public-review-head p,
    body[data-theme="light"] .public-review-section label {
      color: #64748b;
    }
    .public-review-note {
      padding: 9px 11px;
      border: 1px solid rgba(96, 165, 250, .24);
      border-radius: 8px;
      background: rgba(37, 99, 235, .08);
      color: #bfd7ff;
      font-size: 12px;
      line-height: 1.5;
    }
    body[data-theme="light"] .public-review-note {
      border-color: #bfdbfe;
      background: #eff6ff;
      color: #2563eb;
    }
    .public-review-section,
    .public-review-ratings {
      display: grid;
      gap: 8px;
    }
    .public-review-ratings label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #0e141b;
      color: #dbeafe;
      font-weight: 800;
    }
    .public-review-ratings label > span {
      white-space: nowrap;
    }
    .public-review-ratings .el-rate {
      flex: 0 0 auto;
    }
    body[data-theme="light"] .public-review-ratings label {
      border-color: #dbe4ef;
      background: #f8fafc;
      color: #1e293b;
    }
    .public-review-target {
      padding: 10px 12px;
      border: 1px solid #2f3a49;
      border-radius: 8px;
      color: #dbeafe;
      background: #0f151d;
    }
    body[data-theme="light"] .public-review-target {
      border-color: #dbe4ef;
      color: #1e293b;
      background: #f8fafc;
    }
    .public-review-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .public-review-option-owner {
      float: right;
      margin-left: 14px;
      color: #94a3b8;
      font-size: 12px;
    }
    .public-review-repeat-tip {
      display: block;
      margin: 0 0 7px;
      color: #93c5fd;
      font-size: 12px;
      line-height: 1.45;
    }
    body[data-theme="light"] .public-review-repeat-tip {
      color: #2563eb;
    }
    .public-review-service-match {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }
    .public-review-match-badge {
      min-width: 58px;
      padding: 7px 9px;
      border-radius: 8px;
      border: 1px solid #334155;
      background: #0f172a;
      color: #94a3b8;
      font-size: 12px;
      font-weight: 900;
      text-align: center;
      box-sizing: border-box;
    }
    .public-review-match-badge.is-matched {
      border-color: rgba(34, 197, 94, .45);
      background: rgba(22, 101, 52, .28);
      color: #86efac;
    }
    .public-review-match-badge.is-unmatched {
      border-color: rgba(248, 113, 113, .45);
      background: rgba(127, 29, 29, .24);
      color: #fca5a5;
    }
    .public-review-match-badge.is-checking {
      border-color: rgba(96, 165, 250, .45);
      background: rgba(30, 64, 175, .24);
      color: #93c5fd;
    }
    .public-review-match-hint,
    .public-review-upload small {
      color: #94a3b8;
      font-size: 12px;
    }
    body[data-theme="light"] .public-review-match-badge {
      border-color: #dbe4ef;
      background: #f8fafc;
      color: #64748b;
    }
    body[data-theme="light"] .public-review-match-badge.is-matched {
      border-color: #86efac;
      background: #dcfce7;
      color: #15803d;
    }
    body[data-theme="light"] .public-review-match-badge.is-unmatched {
      border-color: #fecaca;
      background: #fef2f2;
      color: #dc2626;
    }
    .public-review-upload {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .public-review-file-input {
      display: none;
    }
    .public-review-upload-list {
      display: grid;
      gap: 6px;
    }
    .public-review-upload-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 7px 9px;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #0e141b;
      color: #dbeafe;
      font-size: 12px;
    }
    .public-review-upload-item button {
      border: 0;
      background: transparent;
      color: #f87171;
      cursor: pointer;
      font-weight: 800;
    }
    .public-review-submit {
      width: 100%;
      height: 42px;
      font-weight: 900;
    }
    .customer-review-page {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 0;
      overflow: hidden;
    }
    .customer-review-layout {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 8px;
      min-height: 0;
      height: 100%;
    }
    .customer-review-head {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto minmax(620px, auto);
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
    }
    .customer-review-title-block {
      min-width: 0;
    }
    .customer-review-head .muted-text {
      margin: 4px 0 0;
    }
    .customer-review-actions,
    .customer-review-toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .customer-review-actions .el-date-editor {
      width: 250px;
    }
    .customer-review-actions .el-input {
      width: 240px;
    }
    .customer-review-summary-grid {
      display: grid;
      grid-template-columns: repeat(4, 86px);
      gap: 6px;
      justify-content: center;
    }
    .customer-review-summary-card {
      min-height: 42px;
      padding: 6px 8px;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #111820;
      box-sizing: border-box;
      text-align: left;
    }
    button.customer-review-summary-card {
      appearance: none;
      font: inherit;
      cursor: pointer;
    }
    .customer-review-summary-card.is-clickable:hover,
    .customer-review-summary-card.is-clickable:focus-visible {
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, .18);
      outline: none;
    }
    .customer-review-summary-card span {
      display: block;
      color: #94a3b8;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
    }
    .customer-review-summary-card strong {
      display: block;
      margin-top: 5px;
      color: #f8fafc;
      font-size: 18px;
      line-height: 1;
    }
    .customer-review-summary-card.success strong { color: #22c55e; }
    .customer-review-summary-card.danger strong { color: #f87171; }
    .customer-review-summary-card.warning strong { color: #f59e0b; }
    body[data-theme="light"] .customer-review-summary-card {
      border-color: #dbe4ef;
      background: #ffffff;
    }
    body[data-theme="light"] .customer-review-summary-card.is-clickable:hover,
    body[data-theme="light"] .customer-review-summary-card.is-clickable:focus-visible {
      border-color: #60a5fa;
      box-shadow: 0 0 0 2px rgba(96, 165, 250, .2);
    }
    body[data-theme="light"] .customer-review-summary-card strong {
      color: #0f172a;
    }
    body[data-theme="light"] .customer-review-summary-card.success strong { color: #15803d; }
    body[data-theme="light"] .customer-review-summary-card.danger strong { color: #dc2626; }
    body[data-theme="light"] .customer-review-summary-card.warning strong { color: #b45309; }
    .customer-review-workspace {
      min-height: 0;
      overflow: hidden;
      padding: 10px;
    }
    .customer-review-tabs,
    .customer-review-tabs > .el-tabs__content,
    .customer-review-tabs .el-tab-pane {
      height: 100%;
      min-height: 0;
    }
    .customer-review-tabs > .el-tabs__header {
      margin: 0 0 10px;
    }
    .customer-review-tabs .el-tabs__nav-wrap::after {
      height: 1px;
      background: #263445;
    }
    .customer-review-tabs .el-tabs__item {
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 18px;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: #8fa1b8;
      font-weight: 850;
      line-height: 32px;
      text-align: center;
    }
    .customer-review-tabs .el-tabs__item.is-active {
      background: transparent;
      box-shadow: none;
      color: #dbeafe;
      font-weight: 950;
    }
    .customer-review-tabs .el-tabs__active-bar {
      height: 3px;
      border-radius: 999px;
      background: #60a5fa;
      box-shadow: 0 0 8px rgba(96, 165, 250, .34);
    }
    body[data-theme="light"] .customer-review-tabs .el-tabs__nav-wrap::after {
      background: #dbe4ef;
    }
    body[data-theme="light"] .customer-review-tabs .el-tabs__item {
      background: transparent;
      box-shadow: none;
      color: #64748b;
    }
    body[data-theme="light"] .customer-review-tabs .el-tabs__item.is-active {
      background: transparent;
      box-shadow: none;
      color: #1d4ed8;
    }
    .customer-review-tabs .el-tab-pane {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      gap: 8px;
    }
    .customer-review-overview {
      height: 100%;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 8px;
    }
    .customer-review-month-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #cbd5e1;
      font-weight: 800;
    }
    body[data-theme="light"] .customer-review-month-bar {
      color: #334155;
    }
    .customer-review-cell-link {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      border: 0;
      padding: 0;
      background: transparent;
      color: #93c5fd;
      font: inherit;
      font-weight: 800;
      cursor: pointer;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .customer-review-cell-link:hover,
    .customer-review-cell-link:focus-visible {
      color: #bfdbfe;
      text-decoration: underline;
      outline: none;
    }
    body[data-theme="light"] .customer-review-cell-link {
      color: #2563eb;
    }
    body[data-theme="light"] .customer-review-cell-link:hover,
    body[data-theme="light"] .customer-review-cell-link:focus-visible {
      color: #1d4ed8;
    }
    .customer-review-toolbar {
      padding-bottom: 2px;
    }
    .customer-review-toolbar.is-split {
      align-items: stretch;
      justify-content: space-between;
      gap: 10px;
    }
    .customer-review-task-filters,
    .customer-review-test-tools,
    .customer-review-scan-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
    }
    .customer-review-task-filters {
      flex: 1 1 360px;
    }
    .customer-review-test-tools {
      flex: 0 1 320px;
    }
    .customer-review-scan-tools {
      justify-content: flex-end;
      flex: 1 1 460px;
    }
    .customer-review-test-tools .el-input {
      width: 160px;
    }
    .customer-review-toolbar .el-select {
      width: 130px;
    }
    .customer-review-toolbar .el-date-editor {
      width: 230px;
    }
    .customer-review-log-note {
      color: #94a3b8;
      font-size: 12px;
    }
    .customer-review-generated-link {
      display: grid;
      gap: 10px;
    }
    .customer-review-generated-link p {
      margin: 0;
      color: #cbd5e1;
      line-height: 1.55;
    }
    body[data-theme="light"] .customer-review-generated-link p {
      color: #475569;
    }
    .customer-review-table {
      min-height: 0;
    }
    .customer-review-row-excluded td {
      background: rgba(148, 163, 184, .08) !important;
    }
    .customer-review-row-excluded td .cell {
      color: #7f8a99;
      text-decoration-line: line-through;
      text-decoration-thickness: 1px;
      text-decoration-color: rgba(248, 113, 113, .9);
    }
    .customer-review-row-excluded .el-button,
    .customer-review-row-excluded .el-tag {
      text-decoration: none;
    }
    body[data-theme="light"] .customer-review-row-excluded td {
      background: #f8fafc !important;
    }
    body[data-theme="light"] .customer-review-row-excluded td .cell {
      color: #94a3b8;
      text-decoration-color: #ef4444;
    }
    .customer-review-pager {
      min-height: 34px;
    }
    .external-tools-page { min-height: 0; height: 100%; box-sizing: border-box; overflow: hidden; }
    .external-tools-layout { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
    .external-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
    .external-tools-head h2 { margin: 0 0 4px; color: #f8fafc; font-size: 18px; line-height: 1.2; }
    .external-tools-head p { margin: 0; color: #8fa1b5; font-size: 12px; line-height: 1.45; }
    .external-tools-grid { min-height: 0; display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.55fr); gap: 10px; align-items: stretch; }
    .external-tools-card { min-height: 0; padding: 12px; overflow: hidden; }
    .external-tools-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .external-tools-card-head p { margin: 3px 0 0; color: #8fa1b5; font-size: 12px; }
    .external-tools-doc { display: grid; align-content: start; gap: 10px; overflow: auto; }
    .external-tools-endpoint { display: grid; gap: 7px; padding: 10px; border: 1px solid #263241; border-radius: 8px; background: #0d141d; }
    .external-tools-endpoint span, .external-tools-note strong { color: #93a4bb; font-size: 12px; font-weight: 900; }
    .external-tools-endpoint code { display: block; padding: 8px; border: 1px solid #334155; border-radius: 6px; color: #bfdbfe; background: #111827; white-space: normal; word-break: break-all; }
    .external-tools-endpoint pre { margin: 0; padding: 8px; border-radius: 6px; background: #07111c; color: #dbeafe; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
    .external-tools-note { display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(96, 165, 250, .24); border-radius: 8px; background: rgba(37, 99, 235, .08); }
    .external-tools-note p { margin: 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; }
    .external-tools-test { display: grid; gap: 9px; padding: 10px; border: 1px solid #263241; border-radius: 8px; background: #0d141d; }
    .external-tools-test-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .external-tools-test-head div { min-width: 0; display: grid; gap: 3px; }
    .external-tools-test-head strong { color: #f8fafc; font-size: 13px; }
    .external-tools-test-head span { color: #8fa1b5; font-size: 12px; line-height: 1.35; }
    .external-tools-test-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .external-tools-test-form .el-input-number { width: 100%; }
    .external-tools-test-form .el-button { width: 100%; margin-left: 0 !important; }
    .external-tools-test-result { display: grid; gap: 6px; min-height: 0; }
    .external-tools-test-result > div { display: flex; flex-wrap: wrap; gap: 8px; color: #93c5fd; font-size: 12px; font-weight: 900; }
    .external-tools-test-result pre { max-height: 260px; margin: 0; padding: 8px; border: 1px solid #334155; border-radius: 6px; overflow: auto; background: #07111c; color: #dbeafe; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
    .external-tools-users { display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .external-tools-config { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; min-height: 0; }
    .external-tools-user-list { min-height: 0; display: grid; align-content: start; gap: 6px; overflow: auto; padding-right: 2px; }
    .external-tools-user-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 9px; border: 1px solid #263241; border-radius: 8px; background: #0d141d; color: #dbe7f5; text-align: left; cursor: pointer; }
    .external-tools-user-item strong, .external-tools-user-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .external-tools-user-item strong { color: #f8fafc; font-size: 13px; }
    .external-tools-user-item span { color: #8fa1b5; font-size: 12px; }
    .external-tools-user-item b { grid-row: 1 / span 2; grid-column: 2; align-self: center; padding: 3px 7px; border-radius: 999px; background: #1e293b; color: #bfdbfe; font-size: 12px; }
    .external-tools-user-item.active { border-color: #3b82f6; background: rgba(37, 99, 235, .16); box-shadow: inset 3px 0 0 #3b82f6; }
    .external-tools-user-item.disabled { opacity: .58; }
    .external-tools-field-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 10px; }
    .external-tools-selected-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: stretch; }
    .external-tools-selected-summary > div { min-width: 0; display: grid; gap: 4px; padding: 8px; border: 1px solid #263241; border-radius: 8px; background: #0d141d; }
    .external-tools-selected-summary span { color: #8fa1b5; font-size: 12px; }
    .external-tools-selected-summary strong { min-width: 0; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .external-tools-field-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .external-tools-order-panel { min-height: 0; display: grid; gap: 7px; padding: 8px; border: 1px solid rgba(96, 165, 250, .28); border-radius: 8px; background: rgba(37, 99, 235, .08); }
    .external-tools-order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .external-tools-order-head strong { color: #f8fafc; font-size: 13px; }
    .external-tools-order-head span { color: #93a4bb; font-size: 12px; }
    .external-tools-order-list { max-height: 156px; display: grid; gap: 5px; overflow: auto; padding-right: 2px; }
    .external-tools-order-item { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) repeat(4, auto); align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid #263241; border-radius: 7px; background: #0d141d; }
    .external-tools-order-item b { color: #60a5fa; font-size: 12px; text-align: center; }
    .external-tools-order-item span { min-width: 0; display: grid; gap: 1px; }
    .external-tools-order-item strong, .external-tools-order-item small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .external-tools-order-item strong { color: #f8fafc; font-size: 12px; }
    .external-tools-order-item small { color: #8fa1b5; font-size: 11px; }
    .external-tools-order-item button { height: 24px; padding: 0 7px; border: 1px solid #334155; border-radius: 6px; background: #111827; color: #bfdbfe; font-size: 12px; font-weight: 850; cursor: pointer; }
    .external-tools-order-item button:disabled { opacity: .38; cursor: default; }
    .external-tools-order-empty { padding: 7px; border: 1px dashed #334155; border-radius: 7px; color: #8fa1b5; font-size: 12px; text-align: center; }
    .external-tools-field-list { min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-content: start; gap: 7px; overflow: auto; padding: 2px; }
    .external-tools-field-list .el-checkbox.is-bordered { width: 100%; height: auto; min-height: 48px; margin: 0; display: flex; align-items: center; border-color: #263241; background: #0d141d; }
    .external-tools-field-list .el-checkbox__label { min-width: 0; display: grid; gap: 2px; }
    .external-tools-field-list strong, .external-tools-field-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .external-tools-field-list strong { color: #f8fafc; font-size: 13px; }
    .external-tools-field-list span { color: #8fa1b5; font-size: 12px; }
    .external-tools-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #8fa1b5; font-size: 12px; }
    body[data-theme="light"] .external-tools-head h2,
    body[data-theme="light"] .external-tools-card-head .section-title,
    body[data-theme="light"] .external-tools-test-head strong,
    body[data-theme="light"] .external-tools-order-head strong,
    body[data-theme="light"] .external-tools-user-item strong,
    body[data-theme="light"] .external-tools-selected-summary strong,
    body[data-theme="light"] .external-tools-order-item strong,
    body[data-theme="light"] .external-tools-field-list strong { color: #0f172a; }
    body[data-theme="light"] .external-tools-head p,
    body[data-theme="light"] .external-tools-card-head p,
    body[data-theme="light"] .external-tools-test-head span,
    body[data-theme="light"] .external-tools-order-head span,
    body[data-theme="light"] .external-tools-user-item span,
    body[data-theme="light"] .external-tools-selected-summary span,
    body[data-theme="light"] .external-tools-order-item small,
    body[data-theme="light"] .external-tools-field-list span,
    body[data-theme="light"] .external-tools-meta { color: #64748b; }
    body[data-theme="light"] .external-tools-endpoint,
    body[data-theme="light"] .external-tools-test,
    body[data-theme="light"] .external-tools-user-item,
    body[data-theme="light"] .external-tools-selected-summary > div,
    body[data-theme="light"] .external-tools-order-item,
    body[data-theme="light"] .external-tools-field-list .el-checkbox.is-bordered {
      border-color: #dbe4f0;
      background: #ffffff;
      color: #0f172a;
    }
    body[data-theme="light"] .external-tools-endpoint code,
    body[data-theme="light"] .external-tools-endpoint pre,
    body[data-theme="light"] .external-tools-test-result pre {
      border-color: #dbe4f0;
      background: #f8fafc;
      color: #0f172a;
    }
    body[data-theme="light"] .external-tools-note,
    body[data-theme="light"] .external-tools-order-panel {
      border-color: rgba(37, 99, 235, .24);
      background: #eff6ff;
    }
    body[data-theme="light"] .external-tools-note p { color: #334155; }
    body[data-theme="light"] .external-tools-endpoint span,
    body[data-theme="light"] .external-tools-note strong { color: #475569; }
    body[data-theme="light"] .external-tools-user-item b {
      background: #e0edff;
      color: #1d4ed8;
    }
    body[data-theme="light"] .external-tools-user-item.active {
      border-color: #2563eb;
      background: #eff6ff;
      box-shadow: inset 3px 0 0 #2563eb;
    }
    body[data-theme="light"] .external-tools-order-item b,
    body[data-theme="light"] .external-tools-test-result > div { color: #2563eb; }
    body[data-theme="light"] .external-tools-order-item button {
      border-color: #cbd5e1;
      background: #ffffff;
      color: #2563eb;
    }
    body[data-theme="light"] .external-tools-order-empty {
      border-color: #cbd5e1;
      color: #64748b;
      background: #f8fafc;
    }
    .customer-review-detail {
      height: 100%;
      display: grid;
      grid-template-rows: auto auto auto minmax(0, 1fr) auto;
      gap: 12px;
      color: #dbeafe;
    }
    .customer-review-detail-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .customer-review-detail-head span,
    .customer-review-detail-grid span,
    .customer-review-detail-section h4 {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 800;
    }
    .customer-review-detail-head h3 {
      margin: 4px 0 0;
      color: #f8fafc;
      font-size: 18px;
      line-height: 1.35;
    }
    .customer-review-detail-actions,
    .customer-review-detail-score {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .customer-review-detail-actions > span {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 800;
    }
    .customer-review-detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      align-content: start;
      overflow: auto;
      padding-right: 2px;
    }
    .customer-review-detail-grid label {
      min-width: 0;
      display: grid;
      gap: 4px;
      padding: 9px 10px;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #0f151d;
      box-sizing: border-box;
    }
    .customer-review-detail-grid strong {
      min-width: 0;
      color: #e5e7eb;
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }
    .customer-review-detail-section {
      display: grid;
      gap: 8px;
      min-height: 0;
    }
    .customer-review-detail-section h4 {
      margin: 0;
    }
    .customer-review-attachment-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      max-height: 280px;
      overflow: auto;
      padding-right: 2px;
    }
    .customer-review-attachment-grid button {
      min-width: 0;
      display: grid;
      gap: 5px;
      padding: 0;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #0f151d;
      color: #cbd5e1;
      cursor: pointer;
      overflow: hidden;
      text-align: left;
    }
    .customer-review-attachment-grid img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      background: #0b1220;
    }
    .customer-review-attachment-grid span {
      min-width: 0;
      padding: 0 7px 7px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
    }
    .customer-review-detail-empty {
      margin: 0;
      padding: 12px;
      border: 1px dashed #334155;
      border-radius: 8px;
      color: #94a3b8;
      background: #0f151d;
    }
    body[data-theme="light"] .customer-review-detail {
      color: #1e293b;
    }
    body[data-theme="light"] .customer-review-detail-head h3 {
      color: #0f172a;
    }
    body[data-theme="light"] .customer-review-detail-grid label,
    body[data-theme="light"] .customer-review-attachment-grid button,
    body[data-theme="light"] .customer-review-detail-empty {
      border-color: #dbe4ef;
      background: #ffffff;
      color: #334155;
    }
    body[data-theme="light"] .customer-review-detail-grid strong {
      color: #1e293b;
    }
    .customer-review-settings-alert-spacer {
      height: 0;
      min-height: 0;
    }
    .customer-review-settings {
      min-height: 0;
      height: 100%;
      overflow: auto;
      display: grid;
      grid-template-columns: repeat(6, minmax(180px, 1fr));
      gap: 10px;
      align-content: start;
      padding: 2px 4px 8px 0;
    }
    .customer-review-control {
      min-width: 0;
      display: grid;
      gap: 7px;
      align-content: start;
      min-height: 62px;
      padding: 10px 12px;
      border: 1px solid #263445;
      border-radius: 8px;
      background: #111820;
      color: #cbd5e1;
      font-size: 13px;
      font-weight: 800;
      box-sizing: border-box;
    }
    .customer-review-control.is-wide {
      grid-column: span 2;
    }
    .customer-review-control.is-switch {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 52px;
      align-content: center;
    }
    .customer-review-control > span,
    .customer-review-service-map-head h3 {
      min-width: 0;
      line-height: 1.35;
    }
    .customer-review-control .el-select,
    .customer-review-control .el-input {
      width: 100%;
    }
    .customer-review-control.is-number .el-input-number {
      width: 132px;
    }
    .customer-review-control.is-service-map {
      grid-column: span 3;
    }
    .customer-review-service-map {
      min-height: 0;
    }
    .customer-review-service-map-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .customer-review-service-map-head > div {
      display: grid;
      gap: 2px;
      min-width: 0;
    }
    .customer-review-service-map-head h3 {
      margin: 0;
      color: #f8fafc;
      font-size: 13px;
    }
    .customer-review-service-map-head span,
    .customer-review-service-owner,
    .customer-review-service-empty {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 700;
    }
    .customer-review-service-list {
      display: grid;
      gap: 8px;
      max-height: 330px;
      overflow: auto;
      padding-right: 2px;
    }
    .customer-review-service-row {
      display: grid;
      grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(110px, .8fr) auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding-top: 8px;
      border-top: 1px solid #263445;
    }
    .customer-review-service-row .el-button {
      justify-self: end;
    }
    .customer-review-service-owner {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    body[data-theme="light"] .customer-review-control {
      border-color: #dbe4ef;
      background: #ffffff;
      color: #334155;
    }
    body[data-theme="light"] .customer-review-service-map-head h3 {
      color: #0f172a;
    }
    body[data-theme="light"] .customer-review-service-row {
      border-color: #e2e8f0;
    }
    body[data-theme="light"] .customer-review-service-map-head span,
    body[data-theme="light"] .customer-review-service-owner,
    body[data-theme="light"] .customer-review-service-empty {
      color: #64748b;
    }
    .customer-review-link-example {
      min-height: 62px;
    }
    .customer-review-link-example code {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 8px 10px;
      border: 1px solid #263445;
      border-radius: 7px;
      background: #0e141b;
      color: #93c5fd;
      font-family: Consolas, "Courier New", monospace;
      font-size: 12px;
      font-weight: 700;
    }
    body[data-theme="light"] .customer-review-link-example {
      color: #334155;
    }
    body[data-theme="light"] .customer-review-link-example code {
      border-color: #dbe4ef;
      background: #f8fafc;
      color: #1d4ed8;
    }
    .customer-review-tag-editor {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .customer-review-tag-add {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 6px;
      min-width: 0;
    }
    .customer-review-settings-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      min-height: 44px;
      padding-top: 8px;
      border-top: 1px solid #263445;
    }
    body[data-theme="light"] .customer-review-settings-actions {
      border-color: #e2e8f0;
    }
    @media (max-width: 1280px) {
      .customer-review-settings {
        grid-template-columns: repeat(4, minmax(170px, 1fr));
      }
      .customer-review-control.is-service-map {
        grid-column: span 4;
      }
    }
    @media (max-width: 980px) {
      .customer-review-actions {
        align-items: stretch;
        flex-direction: column;
      }
      .customer-review-head {
        grid-template-columns: 1fr;
        align-items: stretch;
      }
      .customer-review-summary-grid,
      .customer-review-settings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .customer-review-control.is-wide {
        grid-column: span 2;
      }
      .customer-review-control.is-service-map {
        grid-column: span 2;
      }
      .customer-review-service-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
      }
      .customer-review-service-owner {
        display: none;
      }
    }
    @media (max-width: 720px) {
      .customer-review-settings {
        grid-template-columns: 1fr;
      }
      .customer-review-control.is-wide {
        grid-column: auto;
      }
      .customer-review-control.is-service-map {
        grid-column: auto;
      }
      .customer-review-control.is-number .el-input-number {
        width: 100%;
      }
      .customer-review-service-row,
      .customer-review-tag-add {
        grid-template-columns: 1fr;
      }
      .customer-review-service-row .el-button {
        justify-self: start;
      }
      .public-review-card {
        gap: 12px;
        padding: 16px;
      }
      .public-review-ratings label {
        align-items: center;
        flex-direction: row;
        padding: 9px 10px;
      }
      .public-review-service-match {
        grid-template-columns: 1fr auto;
      }
    }
.blacklist-contact-list {
  display: grid;
  gap: 10px;
}

.blacklist-contact-card {
  border: 1px solid var(--el-border-color, #2b3441);
  padding: 12px;
  background: var(--el-fill-color-blank, #10151b);
}

.blacklist-contact-head,
.blacklist-order-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blacklist-contact-head {
  justify-content: space-between;
  margin-bottom: 10px;
}
