:root {
  --blue: #409eff;
  --blue-dark: #2f89e8;
  --yellow: #e6a23c;
  --red: #f56c6c;
  --green: #67c23a;
  --text: #606266;
  --muted: #909399;
  --line: #ebeef5;
  --page: #f3f4f7;
  --sidebar: #304156;
  --sidebar-active: #263445;
  --logo-primary: #0b2e59;
  --logo-accent: #0096b4;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

body { background: var(--page); font-size: 14px; }

button, input, select { font: inherit; }

button { cursor: pointer; }

.hidden { display: none !important; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: #f2f4f8 url('./assets/login-bg.webp') center/cover no-repeat;
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(242, 244, 248, .72);
  z-index: 0;
}
.login-page > * { position: relative; z-index: 1; }

.login-panel {
  width: min(440px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(64, 81, 110, .12);
}

.login-form-wrap { display: flex; align-items: center; padding: 52px 44px; }

.login-form { width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }

.brand-logo-svg { width: 46px; height: 46px; flex: none; }

.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.brand-wordmark { color: var(--logo-primary); font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: .5px; }

.brand-wordmark span { color: var(--logo-accent); }

.brand-slogan { color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: 1.5px; overflow-wrap: break-word; }

:lang(en) .brand-slogan, html[lang="en"] .brand-slogan { letter-spacing: .3px; }

html[lang="en"] .app-boot [data-boot-slogan] { letter-spacing: .3px; }

.app-boot { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 10px; color: #1778bf; background: #f2f4f8; font-size: 22px; }

.app-boot .brand-logo-svg { width: 56px; height: 56px; }

.app-boot .boot-wordmark { color: var(--logo-primary); letter-spacing: .5px; }

.app-boot .boot-wordmark span { color: var(--logo-accent); }

.app-boot [data-boot-slogan] { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 2px; }

.login-title { position: relative; margin: 0 0 30px; padding-bottom: 12px; color: #4c9be5; font-size: 17px; font-weight: 400; }

.login-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 31px; height: 2px; background: var(--blue); }

.field { margin-bottom: 20px; }

.field label { display: block; margin-bottom: 8px; color: #606266; }

.field input, .field select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(64, 158, 255, .12); }

.password-field { position: relative; }

.password-field input { padding-right: 46px; }

.password-toggle { position: absolute; top: 0; right: 0; width: 46px; height: 42px; color: #9da3ad; background: transparent; border: 0; }

.btn { min-height: 38px; padding: 9px 18px; color: #606266; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; transition: .18s ease; }

.btn:hover { border-color: #b3d8ff; color: var(--blue); background: #ecf5ff; }

.btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { color: #fff; background: #66b1ff; border-color: #66b1ff; }
.btn-warning { color: #fff; background: #e6a23c; border-color: #e6a23c; }
.btn-warning:hover { color: #fff; background: #ebb563; border-color: #ebb563; }
.btn-danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn-success { color: #fff; background: var(--green); border-color: var(--green); }
.btn-link { min-height: auto; padding: 3px 6px; color: var(--blue); background: none; border: 0; white-space: nowrap; }
.btn-link:hover { color: #66b1ff; background: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 6px 12px; }
.btn-icon { display: inline-grid; width: 36px; height: 36px; min-height: 36px; padding: 0; place-items: center; background: transparent; border: 0; }

.login-hint { margin-top: 18px; color: #a0a6af; font-size: 12px; text-align: center; }

.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.auth-links.center { justify-content: center; }
.auth-links a { color: var(--blue, #409eff); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.code-field { display: flex; gap: 10px; }
.code-field input { flex: 1; }
.send-code-btn { flex-shrink: 0; white-space: nowrap; min-width: 108px; }
.turnstile-wrap { margin-bottom: 16px; min-height: 0; display: flex; justify-content: center; }

.auth-pickers { position: fixed; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 60; }
.auth-pickers .theme-picker, .auth-pickers .language-picker { margin-right: 0; }
.auth-pickers summary { padding: 0 9px; }
.auth-pickers summary > span:nth-child(2) { display: none; }
.admin-title-badge { display: inline-flex; margin-right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(64, 158, 255, .12); color: var(--blue); font-size: 11px; vertical-align: 3px; }
.admin-portal-label { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 220px;
  overflow: hidden;
  color: #bfcbd9;
  background: var(--sidebar);
  transition: width .22s ease, transform .22s ease;
}

.sidebar-head { height: 52px; display: flex; align-items: center; gap: 9px; padding: 0 18px; color: #fff; background: #2b3a4d; font-size: 17px; font-weight: 600; text-decoration: none; --logo-primary: #e8f2ff; --logo-accent: #35c9e9; }
.sidebar-head:hover { background: #253448; }
.sidebar-logo { width: 22px; height: 22px; flex: none; }
.sidebar-wordmark { font-size: 19px; letter-spacing: .3px; }
.brand-short { display: none; }
.sidebar-scroll { height: calc(100vh - 52px); overflow-y: auto; padding: 8px 0 40px; scrollbar-width: thin; }
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.17); border-radius: 4px; }

.nav-group { border-bottom: 1px solid rgba(255,255,255,.025); }
.nav-group-title { width: 100%; height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 16px; color: #d7e0ea; text-align: left; background: transparent; border: 0; }
.nav-group-title:hover, .nav-group.open > .nav-group-title { color: #fff; background: var(--sidebar-active); }
.nav-icon { width: 21px; text-align: center; font-size: 17px; }
.nav-caret { margin-left: auto; transition: transform .2s; }
.nav-group.open .nav-caret { transform: rotate(90deg); }
.nav-children { display: none; padding: 3px 0 5px; background: #263445; }
.nav-group.open .nav-children { display: block; }
.nav-link { display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 38px; color: #bfcbd9; text-decoration: none; line-height: 1.35; }
.nav-link:hover, .nav-link.active { color: #409eff; background: #1f2d3d; }
.nav-link.disabled { color: #7f8c9c; cursor: not-allowed; opacity: .65; }
.nav-link.disabled:hover { color: #7f8c9c; background: transparent; }
.nav-platform-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; overflow: hidden; color: #fff; background: rgba(255,255,255,.12); border-radius: 7px; font-size: 9px; font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,.18); }
.nav-platform-icon img { width: 100%; height: 100%; padding: 2px; object-fit: contain; background: #fff; }
.sidebar-foot { padding: 16px 20px; color: #7f92a8; font-size: 12px; }

.main { min-height: 100vh; margin-left: 220px; transition: margin-left .22s ease; }

.topbar { position: sticky; z-index: 15; top: 0; height: 52px; display: flex; align-items: center; padding: 0 18px; background: #fff; box-shadow: 0 1px 4px rgba(0, 21, 41, .08); }
.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; border-radius: 8px; background: transparent; color: #3f8fe0; font-size: 22px; cursor: pointer; margin-right: 6px; flex-shrink: 0; }
.mobile-menu-btn:hover { background: rgba(63,143,224,.1); }
.top-spacer { flex: 1; }
.points { margin: 0 12px; padding: 5px 12px; color: #3f8fe0; background: rgba(64, 158, 255, .09); border-radius: 999px; font-weight: 600; }
.avatar-menu { display: flex; align-items: center; margin-left: 14px; }
.avatar-ring-wrapper { border-radius: 50%; padding: 3px; display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(from 0deg, #ff6b6b, #ffa502, #ffd43b, #69db7c, #4dabf7, #9775fa, #f06595, #ff6b6b); }
.avatar-ring-wrapper.large { padding: 4px; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; user-select: none; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.avatar-circle.large { width: 48px; height: 48px; font-size: 22px; flex-shrink: 0; border: 3px solid #fff; }
.avatar-dropdown summary { list-style: none; cursor: pointer; }
.avatar-dropdown summary::-webkit-details-marker { display: none; }
.avatar-dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border: 1px solid #d8dce5; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); overflow: hidden; z-index: 100; }
.avatar-dropdown-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #f0f0f0; }
.avatar-dropdown-username { font-size: 14px; font-weight: 600; color: #333; word-break: break-all; }
.avatar-dropdown-username .admin-badge { font-size: 12px; color: #409eff; font-weight: 400; }
.avatar-dropdown-item { display: flex; align-items: center; justify-content: center; width: 100%; padding: 10px 16px !important; text-align: center !important; text-decoration: none; color: #333; font-size: 14px; border: none !important; background: none !important; cursor: pointer; box-sizing: border-box; margin: 0 !important; font-family: inherit; line-height: 1.4; outline: none; -webkit-appearance: none !important; appearance: none !important; min-height: auto !important; }
.avatar-dropdown-item:hover { background: #f0f5ff; }
.avatar-dropdown-item.logout-btn { color: #f56c6c; }

.tabbar { min-height: 40px; display: flex; align-items: center; gap: 5px; padding: 5px 18px; overflow-x: auto; background: #fff; border-bottom: 1px solid #d8dce5; }
.tab { flex-shrink: 0; padding: 6px 12px; color: #495060; text-decoration: none; white-space: nowrap; border: 1px solid #d8dce5; border-radius: 6px; }
.tab.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.tab-dot { margin-right: 6px; }

.content { padding: 14px 18px 22px; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(42, 75, 112, .05); }
.dashboard-card { padding: 20px 18px; }

.summary-table, .data-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { height: 52px; padding: 8px 12px; border: 1px solid var(--line); text-align: center; font-weight: 400; }
.summary-table th { color: #8b9098; background: #fff; }
.summary-table td { color: #67b4dc; }

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 20px; }
.service-card { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; color: inherit; text-decoration: none; border: 1px solid #eef1f5; border-radius: 8px; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s; }
.service-card.available:hover { transform: translateY(-2px); border-color: #cfe5ff; box-shadow: 0 8px 22px rgba(38, 108, 175, .09); }
.service-card.maintenance { background: #fbfcfe; cursor: not-allowed; }
.service-card.maintenance .service-name { color: #778495; }
.service-card.maintenance .service-price { color: #e6a23c; }
.service-card.maintenance .api-service-icon { filter: grayscale(.45); opacity: .72; }
.service-card.loading-card { cursor: wait; opacity: .72; }
.service-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #49bf67, #1fa54a); border-radius: 50%; font-size: 11px; font-weight: 700; box-shadow: 0 3px 8px rgba(40, 167, 69, .2); }
.service-icon.blue { background: linear-gradient(145deg, #5cb9ff, #338eea); box-shadow: 0 3px 8px rgba(64, 158, 255, .22); }
.service-icon.purple { background: linear-gradient(145deg, #9a81ef, #7559cf); }
.service-name { margin-bottom: 2px; color: #303133; font-size: 13.5px; line-height: 1.3; }
.service-price { color: #62b5de; font-size: 12px; }
.eye { margin-left: 5px; color: #62b5de; }

.table-wrap { overflow-x: auto; padding: 0 20px; }
.data-table { min-width: 920px; border: 1px solid var(--line); }
.data-table th, .data-table td { min-height: 46px; padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: #909399; font-weight: 500; background: #fff; }
.data-table tr:hover td { background: #f5f7fa; }
.data-table .check-col { width: 44px; text-align: center; }
.data-table .id-col { width: 80px; }
.data-table .actions { width: 430px; text-align: left; }

.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 34px 22px 28px; color: #606266; }
.page-size, .page-jump { height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; background: #fff; }
.page-jump { width: 52px; text-align: center; }
.page-btn { width: 32px; height: 32px; color: #fff; background: var(--blue); border: 0; border-radius: 3px; }
.page-arrow { width: 32px; height: 32px; color: #c0c4cc; background: #f4f4f5; border: 0; border-radius: 3px; }

.placeholder-page { min-height: 470px; display: grid; place-items: center; padding: 50px; text-align: center; }
.placeholder-box { max-width: 520px; }
.placeholder-icon { width: 78px; height: 78px; display: grid; margin: 0 auto 22px; place-items: center; color: #fff; background: var(--blue); border-radius: 22px; font-size: 34px; }
.placeholder-box h2 { margin: 0 0 12px; color: #303133; font-size: 21px; }
.placeholder-box p { margin: 0 0 22px; color: #909399; line-height: 1.8; }

.detection-page { min-height: 560px; padding: 26px; }
.detection-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detection-heading h2 { margin: 0 0 6px; color: #303133; font-size: 22px; }
.detection-heading p { margin: 0; color: #909399; }
.detection-logo, .empty-platform-icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; color: #fff; background: var(--platform-color); border-radius: 15px; font-size: 15px; font-weight: 700; box-shadow: 0 5px 13px color-mix(in srgb, var(--platform-color) 35%, transparent); }
.api-badge { margin-left: auto; padding: 6px 11px; color: #909399; background: #f4f4f5; border-radius: 999px; font-size: 12px; }
.api-badge.connected { color: #57a532; background: #f0f9eb; }
.api-badge.waiting { color: #cf8d25; background: #fdf6ec; }
.api-badge.maintenance-badge { color: #c88925; background: #fff5e6; }
.api-notice { margin: 20px 0; padding: 13px 16px; color: #b17b28; background: #fdf6ec; border: 1px solid #faecd8; border-radius: 5px; line-height: 1.6; }
.api-notice.success { color: #4f9b31; background: #f0f9eb; border-color: #e1f3d8; }
.create-task-form { display: grid; grid-template-columns: 1.2fr .7fr 1.3fr auto auto; align-items: end; gap: 12px; padding: 18px; background: #f7f9fc; border-radius: 6px; }
.create-task-form .field { margin: 0; }
.create-task-form .field input { background: #fff; }
.create-task-form .file-field input { padding: 8px; }
.btn:disabled { cursor: not-allowed; opacity: .52; }
.task-list-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.task-list-head h3 { margin: 0; color: #303133; font-size: 17px; }
.task-list-head span { color: #909399; }
.detection-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.detection-table { min-width: 1120px; border: 0; }
.detection-table th, .detection-table td { min-height: 0; padding: 7px 10px; font-size: 13px; }
.detection-table .status-pill { padding: 2px 8px; }
.detection-table .task-action { font-size: 12.5px; }
.task-id { display: block; max-width: 190px; margin-top: 5px; overflow: hidden; color: #a5a9af; font-weight: 400; text-overflow: ellipsis; }
.status-pill { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 12px; }
/* 未完成状态（等待中/检测中/排队中）统一蓝色，已完成保持绿色 */
.status-pill.running, .status-pill.pending { color: #3788dd; background: #eaf4ff; }
.status-pill.closed { color: #909399; background: #f4f4f5; }
.status-pill.finished { color: #2c9b63; background: #ecf9f2; }
.status-pill.error { color: #d75a5a; background: #fef0f0; }
/* 大额任务分片：排队中状态与操作列说明文字 */
.status-pill.queued { color: #3788dd; background: #eaf4ff; }
.queued-note { color: #909399; font-size: 12px; }
html[data-theme="night"] .status-pill.queued,
html[data-theme="night"] .status-pill.running,
html[data-theme="night"] .status-pill.pending { color: #82c2ff; background: #30465f; }
html[data-theme="night"] .queued-note { color: #8ba0b6; }
.danger-link { color: #f56c6c; }
.upload-action { display: inline-block; cursor: pointer; }
.api-empty { min-height: 110px; display: grid; place-items: center; padding: 22px; color: #909399; background: #fbfcfe; border: 1px dashed #dcdfe6; text-align: center; }
.platform-empty { min-height: 190px; align-content: center; gap: 13px; }
.platform-empty strong { color: #303133; font-size: 17px; }
.platform-empty span { color: #909399; }
.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 15px 18px; }
.detail-grid span { color: #909399; }
.detail-grid strong { min-width: 0; overflow-wrap: anywhere; color: #303133; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.42); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: center; padding: 20px 22px; color: #303133; border-bottom: 1px solid #f1f2f4; font-size: 18px; position: relative; }
.modal-close { color: #909399; background: none; border: 0; font-size: 25px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.modal-body { max-height: calc(100vh - 190px); overflow-y: auto; padding: 24px 28px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
/* 全局统一确认弹窗：替代浏览器原生 window.confirm，风格与站内弹窗一致 */
.confirm-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.42); }
.confirm-modal { width: min(420px, 100%); }
.confirm-dialog-body p { margin: 0; color: #606266; line-height: 1.75; }
.form-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.form-row label { text-align: right; }
.required::before { content: "*"; margin-right: 4px; color: var(--red); }
.form-row input, .form-row select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; outline: none; }
.form-row input:focus { border-color: var(--blue); }
.price-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-toolbar input { width: 100px; height: 38px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; }
.notice { margin: 14px 0 20px; padding: 10px 14px; color: #e6a23c; background: #fdf6ec; border-radius: 4px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.price-item { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f1f2f4; }
.price-item small { display: block; margin-top: 3px; color: #a3a7ad; }
.price-item input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #dcdfe6; border-radius: 4px; }

.toast { position: fixed; z-index: 200; top: 22px; left: 50%; padding: 12px 20px; color: #67c23a; background: #f0f9eb; border: 1px solid #e1f3d8; border-radius: 4px; opacity: 0; pointer-events: none; transform: translate(-50%, -16px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* IM 外部接口任务中心 */
.api-service-icon { overflow: hidden; color: #fff; background: #fff; border: 1px solid #edf1f5; border-radius: 9px; box-shadow: 0 4px 10px rgba(44, 91, 140, .1); }
.api-service-icon img { width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.api-service-icon img[src=""], .api-service-icon img:not([src]) { display: none; }
.detection-page { padding: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(42, 75, 112, .06); }
.detector-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; background: linear-gradient(135deg, #f7fbff 0%, #fff 55%, #f7faff 100%); border-bottom: 1px solid #edf2f8; }
.detector-identity { display: flex; align-items: center; gap: 17px; min-width: 0; }
.detection-logo { overflow: hidden; color: #fff; background: linear-gradient(145deg, #62b4ff, #347ee8); border-radius: 17px; box-shadow: 0 10px 24px rgba(52, 126, 232, .22); }
.detection-logo img, .modal-type-icon img { width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.detection-logo img[src=""], .modal-type-icon img[src=""] { visibility: hidden; }
.hero-eyebrow { display: block; margin-bottom: 5px; color: #5c91c9; font-size: 12px; letter-spacing: .08em; }
.detector-identity h2 { margin: 0 0 7px; color: #24364b; font-size: 24px; }
.detector-identity p { margin: 0; color: #8a98a9; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn-soft { color: #4d7199; background: #fff; border-color: #dce8f5; }
.api-badge { white-space: nowrap; }
.api-badge.connected { color: #278c5b; background: #eaf8f1; }
.api-badge.loading-badge { color: #4f88c4; background: #edf5ff; }
.detection-page > .api-notice { margin: 14px 18px 0; border-radius: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; padding: 12px 18px; background: #fff; }
.metric-grid article { min-width: 0; padding: 10px 12px; background: #f8fafc; border: 1px solid #edf1f5; border-radius: 10px; }
.metric-grid span { display: block; color: #7c8999; }
.metric-grid strong { display: block; margin: 6px 0 3px; color: #24364b; font-size: 24px; line-height: 1; }
.metric-grid small { display: block; line-height: 1.45; color: #a1aab6; overflow-wrap: break-word; }
.task-panel { padding: 0 18px 16px; }
.task-list-head { margin: 3px 0 10px; }
.task-list-head h3 { color: #26384d; }
.task-list-head p { margin: 6px 0 0; color: #9aa5b3; font-size: 12px; }
.detection-table-wrap { overflow-x: auto; border: 1px solid #e8edf3; border-radius: 11px; }
.detection-table { min-width: 1060px; table-layout: fixed; font-size: 12px; }
.detection-table th { height: 42px; padding: 8px 6px; color: #7e8b9b; background: #f7f9fc; font-size: 12px; text-align: center; vertical-align: middle; }
.detection-table td { height: 50px; padding: 9px 6px; color: #536273; text-align: center; vertical-align: middle; }
.detection-table td strong { color: #314256; }
.detection-table th:nth-child(1) { width: 32px; }
.detection-table th:nth-child(2) { width: 62px; }
.detection-table th:nth-child(3) { width: 13%; }
.detection-table th:nth-child(4) { width: 70px; }
.detection-table th:nth-child(5) { width: 86px; }
.detection-table th:nth-child(6), .detection-table th:nth-child(7) { width: 7.5%; }
/* 消费积分列：数值不会太长，窄列即可 */
.detection-table th:nth-child(8) { width: 7.5%; }
.detection-table th:nth-child(9), .detection-table th:nth-child(10) { width: 11%; }
/* 操作列给足宽度：下载/刷新/移除等按钮保持一行不换行 */
.detection-table th:nth-child(11) { width: 17%; }
.task-id-column, .task-id-cell { width: 62px; }
.task-id-cell { color: #5f7186; font-variant-numeric: tabular-nums; }
.task-name-column, .task-name-cell { width: 13%; }
.task-name-cell span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detection-table tbody tr { transition: background-color .18s; }
.detection-table tbody tr:hover td { background: #f7fbff; }
.task-actions { min-width: 0; white-space: nowrap !important; line-height: 1.55; }
.task-actions .btn-link { padding: 2px 4px; font-size: 12px; }
.task-error { display: block; max-width: 130px; margin: 5px auto 0; overflow: hidden; color: #d75a5a; text-overflow: ellipsis; }
/* ============ 胶囊水平进度条（表格行用）：32px 高与 status-pill 对齐，不撑高表格行 ============ */
.progress-bar-wrap { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 4px; }
.progress-bar {
  position: relative; flex: 1 1 auto; min-width: 0; height: 8px; background: #e8eef5;
  border-radius: 999px; overflow: hidden;
}
.progress-bar-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  background-size: 200% 100%;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.progress-bar-wrap.complete .progress-bar-fill {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}
.progress-bar-wrap.error .progress-bar-fill    { background: linear-gradient(90deg, #f87171 0%, #ef4444 100%); }
.progress-bar-wrap.running .progress-bar-fill  { background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%); background-size: 200% 100%; animation: progress-shimmer 2s linear infinite; }
.progress-bar-wrap.queued .progress-bar-fill,
.progress-bar-wrap.waiting .progress-bar-fill { background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%); background-size: 200% 100%; animation: progress-shimmer 2.8s linear infinite; }
/* 流光扫光：渐变背景的 200% 宽度从左平移到右，视觉上有"持续推进"的流动感，即使百分比 10 秒没变也不会像卡住 */
@keyframes progress-shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
.progress-bar-label {
  flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #3a6ea5;
  font-variant-numeric: tabular-nums; line-height: 1; min-width: 46px; text-align: right;
}
.progress-bar-label .percent { font-size: 72%; color: #5a8ec5; }

/* ============ 圆环（卡片/详情/独立展示用）：56px 紧凑精致，stroke 3.5 不粗不细 ============ */
.progress-ring-wrap { position: relative; width: 56px; height: 56px; margin: 0 auto; }
.progress-ring { display: block; width: 100%; height: 100%; }
.progress-ring-track { fill: none; stroke: #e8eef5; stroke-width: 3.5; }
.progress-ring-fill { fill: none; stroke: url(#progressGrad); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.progress-ring-wrap.progress-done .progress-ring-fill { stroke: url(#progressDoneGrad); }
.progress-ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #3a6ea5; font-variant-numeric: tabular-nums;
  white-space: nowrap; pointer-events: none; line-height: 1;
}
.progress-ring-label .percent { font-size: 65%; color: #5a8ec5; }
.task-date { padding-left: 4px !important; padding-right: 4px !important; white-space: normal !important; line-height: 1.35; font-variant-numeric: tabular-nums; }
.effective-count { color: #279a68 !important; font-weight: 650; }
.points-spent { white-space: nowrap; font-variant-numeric: tabular-nums; color: #3c5a7a; font-weight: 600; }
/* 分页条整体左对齐：总条数、每页条数、页码、跳页依次从左侧排布，不拉满整行 */
.task-pagination { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; padding: 14px 2px 0; color: #68788b; font-size: 12px; }
.task-pagination-summary, .task-page-controls, .task-page-jump-wrap { display: flex; align-items: center; gap: 8px; }
.task-pagination-summary strong { color: #31445a; }
/* 分页按钮：Element 风格——白底细边框小圆角，当前页蓝字蓝框不填充 */
.task-page-size, .task-page-jump { height: 31px; padding: 0 8px; color: #526579; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; outline: none; }
.task-page-size { min-width: 88px; }
.task-page-jump { width: 50px; text-align: center; }
.task-page-button { min-width: 31px; height: 31px; padding: 0 7px; color: #606266; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; font-weight: 500; }
.task-page-button:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.task-page-button.active { color: #409eff; background: #fff; border-color: #409eff; box-shadow: none; }
.task-page-button:disabled { color: #c0c4cc; background: #fff; border-color: #ebeef5; cursor: not-allowed; box-shadow: none; }
.task-page-arrow { font-size: 20px; font-weight: 400; }
.task-page-ellipsis { min-width: 25px; color: #96a2b0; text-align: center; }
.task-page-go { height: 31px; padding: 0 12px; color: #606266; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; font-weight: 500; }
.task-page-go:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.task-empty { min-height: 260px; display: grid; align-content: center; justify-items: center; gap: 9px; padding: 32px; color: #98a4b2; background: #fbfcfe; border: 1px dashed #dce4ed; border-radius: 11px; text-align: center; }
.task-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 5px; color: #428ce6; background: #eaf4ff; border-radius: 18px; font-size: 13px; font-weight: 700; }
.task-empty strong { color: #405267; font-size: 16px; }
.task-empty span { max-width: 480px; line-height: 1.6; }

/* 上传毛料弹窗 */
.task-modal { width: min(690px, 100%); border-radius: 16px; }
.task-modal .modal-head { padding: 13px 20px; }
.task-modal .modal-head div { display: grid; gap: 5px; }
.task-modal .modal-head strong { color: #26384d; font-size: 20px; }
.task-modal .modal-head span { color: #98a4b2; font-size: 12px; }
.task-modal-body { padding: 13px 20px 4px; }
.instruction-card { display: flex; gap: 11px; margin-bottom: 10px; padding: 10px 12px; color: #9a6b24; background: #fff8ed; border: 1px solid #f8e5c5; border-radius: 11px; }
.instruction-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; background: #efa847; border-radius: 11px; font-size: 11px; font-weight: 700; }
.instruction-card strong { display: block; margin-bottom: 3px; color: #82591e; }
.instruction-card p { margin: 0; line-height: 1.55; }
.file-rule-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.file-rule-chips span { padding: 4px 8px; color: #8a6124; background: rgba(255,255,255,.68); border: 1px solid #f0d8b1; border-radius: 999px; font-size: 11px; line-height: 1; }
.type-lock-card { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 12px; background: #f6f9fd; border: 1px solid #e5edf6; border-radius: 12px; }
.type-lock-card .modal-type-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
.modal-type-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; overflow: hidden; place-items: center; color: #fff; background: linear-gradient(145deg, #62b4ff, #347ee8); border-radius: 13px; font-size: 12px; font-weight: 700; }
.type-lock-card > div { display: grid; gap: 3px; }
.type-lock-card span { color: #91a0b1; font-size: 12px; }
.type-lock-card strong { color: #31445a; }
.type-lock-card small { color: #7592b1; }
.type-lock-card .lock-mark { margin-left: auto; padding: 5px 9px; color: #4087d9; background: #e7f2ff; border-radius: 999px; }
.task-form-field { margin-bottom: 12px; }
.task-form-field > label:first-child { display: block; margin-bottom: 5px; color: #46576b; font-weight: 600; font-size: 13px; }
.task-form-field input:not([type="file"]), .task-form-field select { width: 100%; height: 38px; padding: 0 12px; color: #4c5e72; background: #fff; border: 1px solid #dce3ec; border-radius: 9px; outline: none; font-size: 13.5px; }
.task-form-field input:focus, .task-form-field select:focus { border-color: #5ba7f5; box-shadow: 0 0 0 3px rgba(64, 158, 255, .1); }
.task-form-field small { display: block; margin-top: 4px; color: #a0a9b5; font-size: 12px; }
.country-combobox { position: relative; }
.country-input-shell { position: relative; }
.country-input-shell input { padding-right: 42px !important; }
.country-chevron { position: absolute; top: 50%; right: 15px; color: #9aa8b8; font-size: 19px; pointer-events: none; transform: translateY(-54%); }
.country-options { max-height: 352px; margin-top: 8px; overflow-y: auto; background: #fff; border: 1px solid #dce3ec; border-radius: 10px; box-shadow: 0 12px 28px rgba(42, 75, 112, .13); scrollbar-width: thin; }
.country-options[hidden] { display: none; }
.country-option { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 13px; color: #45576b; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eef2f6; }
.country-option:last-child { border-bottom: 0; }
.country-option:hover, .country-option.active { color: #247fcc; background: #edf6ff; }
.country-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-form-field .country-option small { display: inline; flex: 0 1 52%; margin: 0; overflow: hidden; color: #98a5b4; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.country-empty { height: 88px; display: grid; place-items: center; color: #98a5b4; background: #fafcff; }
.upload-dropzone { min-height: 58px; display: flex !important; align-items: center; gap: 10px; padding: 9px 12px; color: #738397 !important; background: #fafcff; border: 1.5px dashed #b9d6f5; border-radius: 12px; cursor: pointer; transition: .18s; }
.upload-dropzone:hover { background: #f3f9ff; border-color: #409eff; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-cloud { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #3f8fec; background: #eaf4ff; border-radius: 8px; font-size: 16px; }
.upload-copy { min-width: 0; flex: 1; }
.upload-dropzone strong { color: #40566e; }
.upload-dropzone #selected-file-name { display: block; margin-top: 2px; overflow: hidden; color: #9ba7b4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-dropzone #selected-file-name.has-file { color: #2e9b63; font-weight: 600; }
.upload-dropzone #selected-file-name.has-error { color: #e05a5a; font-weight: 600; }
.upload-action { flex: 0 0 auto; padding: 7px 10px; color: #3788dd; background: #eaf4ff; border-radius: 8px; font-size: 12px; }
.task-cost-estimate { margin-top: 8px; padding: 9px 12px; color: #8090a2; background: #f7f9fc; border: 1px solid #e3e9f0; border-radius: 10px; }
.task-cost-estimate.is-ready { color: #536b82; background: #f1f8ff; border-color: #c9e2fb; }
.task-cost-estimate.is-insufficient { color: #b44f4f; background: #fff4f4; border-color: #f1c8c8; }
.task-cost-main, .task-cost-balance { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.task-cost-main strong { color: #2484df; font-size: 17px; }
.task-cost-estimate.is-insufficient .task-cost-main strong { color: #dc5555; }
.task-cost-formula { margin: 3px 0 6px; color: #8292a4; font-size: 12px; }
.task-cost-balance { padding-top: 6px; border-top: 1px solid rgba(113, 151, 190, .18); font-size: 12px; }
.task-cost-estimate small { display: block; margin-top: 5px; color: #98a6b5; }
.task-quote-modal { width: min(560px, calc(100vw - 32px)); }
.vault-page .vault-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vault-stats { display: flex; gap: 14px; margin: 2px 0 12px; }
.vault-stat { flex: 1; max-width: 280px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(113, 151, 190, .22); border-radius: 12px; background: linear-gradient(135deg, rgba(36, 132, 223, .09), rgba(36, 132, 223, .02)); }
.vault-stat-icon { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(36, 132, 223, .12); color: #2484df; font-size: 18px; }
.vault-stat span { display: block; color: #8292a4; font-size: 12px; }
.vault-stat strong { font-size: 20px; line-height: 1.25; color: #2484df; }
.vault-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; text-align: center; }
.vault-empty-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(36, 132, 223, .1); color: #2484df; font-size: 24px; }
.vault-empty strong { font-size: 15px; color: #3d5369; }
.vault-empty p { margin: 0 0 4px; max-width: 360px; color: #98a6b5; font-size: 13px; line-height: 1.6; }
.vault-table { table-layout: fixed; }
.vault-table th:nth-child(1) { width: 36px; }
.vault-table th:nth-child(2) { width: 28%; }
.vault-table th:nth-child(3), .vault-table th:nth-child(4) { width: 14%; }
.vault-table th:nth-child(5) { width: 18%; }
.vault-table th:nth-child(6) { width: 18%; }
.vault-table td { vertical-align: middle; }
/* 全局统一：所有表格操作列均居中布局——表头文字居中、按钮组在单元格内居中，
   “操作”两字始终位于按钮组正上方中间（检测/会员表格本身已居中，号码库在此对齐） */
.vault-row-actions { display: flex; gap: 6px; justify-content: center; }
/* 三个操作按钮固定宽度，保证每行操作列严格对齐 */
.vault-row-actions .btn-sm { min-width: 78px; white-space: nowrap; }
.pager-bar { margin-top: 12px; }
.vault-check-cell { width: 44px; min-width: 44px; text-align: center; }
.vault-check, .vault-check-all { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #2484df; }
.task-check-column { width: 36px; min-width: 36px; text-align: center; }
.task-check-cell { text-align: center; }
.task-select, .task-select-all { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #2484df; }
.task-bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-bulk-bar > span { color: #909399; font-size: 13px; }
.session-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100vh; color: #909399; }
.session-splash strong { font-size: 24px; letter-spacing: .5px; color: #303133; }
.vault-table tbody tr.is-selected > td { background: rgba(36, 132, 223, .08); }
.vault-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border: 1px solid rgba(36, 132, 223, .3); border-radius: 10px; background: rgba(36, 132, 223, .07); color: #3d5369; font-size: 13px; }
.vault-bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vault-table tbody tr.is-selected:hover > td { background: rgba(36, 132, 223, .13); }
.vault-compare-note { margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(46, 184, 114, .08); color: #1d7a4d; font-size: 12px; line-height: 1.6; }
.vault-multi-hint { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(36, 132, 223, .08); color: #1f6cb4; font-size: 12px; line-height: 1.6; }
.vault-upload-modal { width: min(520px, calc(100vw - 32px)); }
/* 上传弹窗内容区收紧，让文件选择框放大贴合弹窗外侧，不留多余空白 */
.vault-upload-modal .modal-body { padding: 12px 12px 14px; }
.vault-upload-form .field { display: block; margin-bottom: 4px; }
.vault-upload-form .field span { display: block; margin-bottom: 5px; color: #5b6b7c; font-size: 13px; }
.vault-upload-form input[type="text"] { width: 100%; }
/* 文件选择框：与任务弹窗“号码毛料”同款横条框——单文件时紧凑，多文件时列表自动撑大 */
.vault-file-picker { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px; color: #738397; background: #fafcff; border: 1.5px dashed #b9d6f5; border-radius: 12px; cursor: pointer; text-align: left; transition: .18s; }
.vault-file-picker:hover { background: #f3f9ff; border-color: #409eff; }
.vault-file-picker-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #3f8fec; background: #eaf4ff; border-radius: 8px; font-size: 16px; }
.vault-file-picker-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vault-file-picker-copy strong { color: #40566e; font-size: 13px; }
.vault-file-picker-text { word-break: break-all; white-space: pre-line; text-align: left; max-height: 200px; overflow-y: auto; color: #9ba7b4; font-size: 12px; line-height: 1.6; }
.vault-file-picker-action { flex: 0 0 auto; padding: 7px 10px; color: #3788dd; background: #eaf4ff; border-radius: 8px; font-size: 12px; }
.vault-file-picker.has-file { border-style: solid; border-color: #2eb872; background: rgba(46, 184, 114, .07); }
.vault-file-picker.has-file .vault-file-picker-text { color: #1d7a4d; font-weight: 600; }
.quote-project { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; background: #f5f9fd; border-radius: 10px; }
.quote-project span, .quote-grid span { color: #8796a7; font-size: 12px; }
.quote-project strong { color: #3d5369; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.quote-grid > div { display: grid; gap: 6px; padding: 14px 15px; background: #fafbfd; border: 1px solid #e6ebf1; border-radius: 10px; }
.quote-grid strong { color: #4a5e73; }
.quote-grid .quote-total { background: #edf7ff; border-color: #c7e3fb; }
.quote-grid .quote-total strong { color: #2385df; font-size: 19px; }
.quote-warning { margin-top: 12px; padding: 11px 13px; color: #9a6d3e; background: #fff8eb; border-radius: 9px; font-size: 12px; line-height: 1.55; }
.task-modal-actions { padding: 10px 20px 14px; background: #fff; }
.task-modal-actions .btn { min-width: 112px; border-radius: 8px; }

@media (max-width: 1100px) {
  .detector-hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

.sidebar-collapsed .sidebar { width: 64px; }
.sidebar-collapsed .main { margin-left: 64px; }
.sidebar-collapsed .sidebar-head .brand-wordmark, .sidebar-collapsed .nav-group-title span:not(.nav-icon), .sidebar-collapsed .nav-caret, .sidebar-collapsed .nav-children, .sidebar-collapsed .sidebar-foot { display: none; }
.sidebar-collapsed .sidebar-head, .sidebar-collapsed .nav-group-title { justify-content: center; padding: 0; }

@media (max-width: 1150px) { .services-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }

@media (max-width: 780px) {
  .login-form-wrap { padding: 36px 28px 42px; }
  .mobile-menu-btn { display: inline-flex; }
  /* 抽屉从顶栏下方滑出，且顶栏（含汉堡按钮）层级高于遮罩与抽屉，
     避免抽屉 logo 挡住菜单按钮、打开后无法收起 */
  .topbar { z-index: 30; }
  .sidebar { transform: translateX(-100%); width: 220px; top: 52px; }
  .sidebar-scroll { height: calc(100vh - 104px); }
  .main, .sidebar-collapsed .main { margin-left: 0; }
  .mobile-menu-open .sidebar { transform: translateX(0); }
  .mobile-menu-open::after { content: ""; position: fixed; z-index: 19; inset: 0; background: rgba(0,0,0,.35); }
  .content { padding: 14px 12px 24px; }
  /* 移动端余额不再隐藏，改紧凑胶囊；过长金额截断，避免把顶栏撞宽 */
  .points { margin: 0 6px; padding: 4px 9px; font-size: 12px; max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .services-grid { grid-template-columns: repeat(2, minmax(135px, 1fr)); gap: 12px; }
  .service-card { align-items: flex-start; }
  .summary-table th, .summary-table td { padding: 8px 4px; font-size: 12px; }
  .pagination { justify-content: center; flex-wrap: wrap; }
  .price-grid { grid-template-columns: 1fr; }
  .create-task-form { grid-template-columns: 1fr; }
  .detection-page { padding: 0; }
  .detector-hero { padding: 14px 14px; }
  .metric-grid { padding: 18px; }
  .task-panel { padding: 0 18px 22px; }
  .task-pagination { align-items: flex-start; flex-wrap: wrap; }
  .task-page-controls { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .task-modal-body { padding: 18px 18px 6px; }
}

@media (max-width: 480px) {
  .login-page { padding: 0; }
  .login-panel { min-height: 100vh; border-radius: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .topbar { gap: 3px; padding: 0 6px; }
  .topbar .btn-primary { padding: 8px 10px; }
  /* 刷新按钮只留图标，避免文字折行把顶栏撞高 */
  .topbar .refresh-btn { width: 34px; padding: 8px 0; font-size: 0; white-space: nowrap; }
  .topbar .refresh-btn::before { content: "↻"; font-size: 16px; }
  .logout-btn { padding: 8px 9px; }
  .avatar-menu span { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 7px; }
  .form-row label { text-align: left; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-grid article { padding: 15px 12px; }
  .metric-grid strong { font-size: 23px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .api-badge { width: 100%; text-align: center; }
  .type-lock-card .lock-mark { display: none; }
}

/* 界面主题 / 语言 / 货币选择器 */
.theme-picker, .language-picker, .currency-picker { position: relative; z-index: 40; margin-right: 8px; }
.theme-picker summary, .language-picker summary, .currency-picker summary { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: #556579; background: #f7f9fc; border: 1px solid #e2e8f0; border-radius: 8px; list-style: none; cursor: pointer; user-select: none; }
.theme-picker summary::-webkit-details-marker, .language-picker summary::-webkit-details-marker, .currency-picker summary::-webkit-details-marker { display: none; }
.theme-picker[open] summary, .language-picker[open] summary, .currency-picker[open] summary { color: #2785df; background: #eef6ff; border-color: #b9d9fa; }
.theme-symbol { color: #409eff; font-size: 17px; }
.language-symbol, .currency-symbol { color: #409eff; font-size: 12px; font-weight: 700; }
.theme-arrow, .language-arrow, .currency-arrow { color: #9ba7b4; font-size: 11px; }
.theme-menu, .language-menu, .currency-menu { position: absolute; top: calc(100% + 9px); right: 0; width: 210px; overflow: hidden; padding: 7px; background: #fff; border: 1px solid #e4eaf1; border-radius: 12px; box-shadow: 0 14px 38px rgba(38, 61, 89, .18); }
.theme-choice, .language-choice, .currency-choice { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 11px; color: #435469; text-align: left; background: transparent; border: 0; border-radius: 8px; }
.theme-choice:hover, .language-choice:hover, .currency-choice:hover { color: #2785df; background: #f2f7fd; }
.theme-choice span, .language-choice span, .currency-choice span { font-weight: 600; }
.theme-choice small, .language-choice small, .currency-choice small { grid-column: 1; color: #99a5b4; }
.theme-choice b, .language-choice b, .currency-choice b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #409eff; }
.theme-choice.active, .language-choice.active, .currency-choice.active { color: #2785df; background: #edf6ff; }
.amount-fiat { color: #8a99aa; font-size: 12px; font-style: normal; font-weight: 400; margin-left: 6px; }

body, .sidebar, .sidebar-head, .nav-group-title, .nav-children, .nav-link, .main, .topbar, .tabbar, .content, .card, .service-card, .modal, .modal-head, .modal-body, .modal-actions, .data-table th, .data-table td, input, select {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}

/* 日间模式：包含左侧菜单在内全部使用白色底 */
html[data-theme="day"] { color-scheme: light; --page: #fff; --text: #526174; --muted: #8d99a8; --line: #e8edf3; --logo-primary: #0b2e59; --logo-accent: #0096b4; }
html[data-theme="day"] body,
html[data-theme="day"] .main,
html[data-theme="day"] .content { background: #fff; }
html[data-theme="day"] .sidebar { color: #536579; background: #fff; border-right: 1px solid #e7edf4; box-shadow: 6px 0 24px rgba(45, 78, 112, .05); }
html[data-theme="day"] .sidebar-head { color: #247fcc; background: #fff; border-bottom: 1px solid #edf1f5; --logo-primary: #0b2e59; --logo-accent: #0096b4; }
html[data-theme="day"] .sidebar-head:hover { background: #f5f9fe; }
html[data-theme="day"] .nav-group { border-bottom-color: #f0f3f7; }
html[data-theme="day"] .nav-group-title { color: #52657a; background: #fff; }
html[data-theme="day"] .nav-group-title:hover,
html[data-theme="day"] .nav-group.open > .nav-group-title { color: #2785df; background: #f3f8fe; }
html[data-theme="day"] .nav-children,
html[data-theme="day"] .nav-group.open .nav-children { background: #fff; }
html[data-theme="day"] .nav-link { color: #68788b; background: #fff; }
html[data-theme="day"] .nav-link:hover,
html[data-theme="day"] .nav-link.active { color: #2785df; background: #eaf4ff; }
html[data-theme="day"] .nav-link.disabled,
html[data-theme="day"] .nav-link.disabled:hover { color: #a2adba; background: #fff; }
html[data-theme="day"] .sidebar-foot { color: #9aa7b6; border-top: 1px solid #f0f3f7; }
html[data-theme="day"] .topbar,
html[data-theme="day"] .tabbar,
html[data-theme="day"] .card { background: #fff; }

/* 夜间模式：以原左侧菜单的深蓝色为基础 */
html[data-theme="night"] {
  color-scheme: dark;
  --page: #1f2d3d;
  --text: #d7e1ec;
  --muted: #91a1b4;
  --line: #3a4a5e;
  --sidebar: #304156;
  --sidebar-active: #263445;
  --logo-primary: #d8e8ff;
  --logo-accent: #2bc5e8;
}
html[data-theme="night"] body,
html[data-theme="night"] .main,
html[data-theme="night"] .content { color: #d7e1ec; background: #1f2d3d; }
html[data-theme="night"] .topbar,
html[data-theme="night"] .tabbar { color: #dce6f1; background: #263548; border-color: #39495d; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
html[data-theme="night"] .mobile-menu-btn { color: #74b9ff; }
html[data-theme="night"] .mobile-menu-btn:hover { background: rgba(116,185,255,.12); }
html[data-theme="night"] .btn-icon,
html[data-theme="night"] .avatar-menu { color: #c2cfdd; }
html[data-theme="night"] .avatar-dropdown-menu { background: #2c3d52; border-color: #43546a; }
html[data-theme="night"] .avatar-dropdown-user { border-bottom-color: #43546a; }
html[data-theme="night"] .avatar-dropdown-username { color: #dce6f1; }
html[data-theme="night"] .avatar-dropdown-item { color: #dce6f1; }
html[data-theme="night"] .avatar-dropdown-item:hover { background: #39495d; }
html[data-theme="night"] .tab { color: #bac7d6; background: #2c3d52; border-color: #43546a; }
html[data-theme="night"] .tab.active { color: #fff; background: #409eff; border-color: #409eff; }
html[data-theme="night"] .card,
html[data-theme="night"] .dashboard-card,
html[data-theme="night"] .service-card,
html[data-theme="night"] .task-panel { color: #d7e1ec; background: #28384b; border-color: #3a4a5e; }
html[data-theme="night"] .service-card.available:hover { border-color: #548dc7; box-shadow: 0 9px 24px rgba(0,0,0,.18); }
html[data-theme="night"] .service-card.maintenance { background: #263649; }
html[data-theme="night"] .service-card.maintenance .service-name { color: #9dacbd; }
html[data-theme="night"] .service-name,
html[data-theme="night"] .placeholder-box h2,
html[data-theme="night"] .task-list-head h3,
html[data-theme="night"] .detection-table td strong { color: #e7eef7; }
html[data-theme="night"] .summary-table th,
html[data-theme="night"] .summary-table td,
html[data-theme="night"] .data-table th,
html[data-theme="night"] .data-table td { color: #bcc9d8; background: #28384b; border-color: #3b4b5f; }
html[data-theme="night"] .data-table th { color: #9faec0; background: #243346; }
html[data-theme="night"] .data-table tr:hover td { background: #2d4056; }
html[data-theme="night"] .detection-page { background: #28384b; }
html[data-theme="night"] .detector-hero { background: linear-gradient(135deg, #2b3d52 0%, #28384b 60%, #24364a 100%); border-color: #3a4a5e; }
html[data-theme="night"] .detector-identity h2 { color: #edf4fb; }
html[data-theme="night"] .detector-identity p,
html[data-theme="night"] .task-list-head p { color: #93a4b7; }
html[data-theme="night"] .metric-grid { background: #28384b; }
html[data-theme="night"] .metric-grid article { background: #243447; border-color: #3a4a5e; }
html[data-theme="night"] .metric-grid span { color: #9dabbc; }
html[data-theme="night"] .metric-grid strong { color: #edf4fb; }
html[data-theme="night"] .task-empty,
html[data-theme="night"] .api-empty { color: #9cabbc; background: #243447; border-color: #465970; }
html[data-theme="night"] .detection-table-wrap { border-color: #3b4b5f; }
html[data-theme="night"] .progress-ring-track { stroke: #2a3d52; }
html[data-theme="night"] .progress-ring-label { color: #c8ddf0; }
html[data-theme="night"] .progress-ring-label .percent { color: #8db2d4; }
html[data-theme="night"] .progress-bar { background: #2a3d52; }
html[data-theme="night"] .progress-bar-label { color: #c8ddf0; }
html[data-theme="night"] .progress-bar-label .percent { color: #8db2d4; }
html[data-theme="night"] .effective-count { color: #69d5a2 !important; }
html[data-theme="night"] .points-spent { color: #a8c8e8; }
html[data-theme="night"] .task-pagination { color: #aebccc; }
html[data-theme="night"] .task-pagination-summary strong { color: #e4edf6; }
html[data-theme="night"] .task-page-size,
html[data-theme="night"] .task-page-jump { color: #dbe5ef; background: #203044; border-color: #465970; }
html[data-theme="night"] .task-page-button { color: #c1cedc; background: #22344a; border-color: #3d5067; }
html[data-theme="night"] .task-page-button:hover { color: #82c2ff; border-color: #3f6d9e; background: #2a3f58; }
html[data-theme="night"] .task-page-button.active { color: #82c2ff; background: #22344a; border-color: #409eff; }
html[data-theme="night"] .task-page-button:disabled { color: #65758a; background: #203044; border-color: #34465c; }
html[data-theme="night"] .task-page-go { color: #c1cedc; background: #22344a; border-color: #3d5067; }
html[data-theme="night"] .task-page-go:hover { color: #82c2ff; border-color: #3f6d9e; background: #2a3f58; }
html[data-theme="night"] .placeholder-page { background: #28384b; }
html[data-theme="night"] .placeholder-box p { color: #9caabc; }
html[data-theme="night"] .modal { color: #d7e1ec; background: #28384b; }
html[data-theme="night"] .modal-head { color: #edf4fb; background: #2b3c50; border-color: #3a4a5e; }
html[data-theme="night"] .modal-close { color: #aab7c7; }
html[data-theme="night"] .modal-body,
html[data-theme="night"] .modal-actions,
html[data-theme="night"] .task-modal-actions { background: #28384b; }
html[data-theme="night"] .confirm-dialog-body p { color: #bcc9d8; }
html[data-theme="night"] .task-modal .modal-head strong,
html[data-theme="night"] .type-lock-card strong,
html[data-theme="night"] .upload-dropzone strong { color: #e7eef7; }
html[data-theme="night"] .task-modal .modal-head span,
html[data-theme="night"] .type-lock-card span,
html[data-theme="night"] .task-form-field small { color: #93a4b7; }
html[data-theme="night"] .type-lock-card { background: #223246; border-color: #3b4b5f; }
html[data-theme="night"] .instruction-card { color: #e3bc7e; background: #403624; border-color: #685538; }
html[data-theme="night"] .instruction-card strong { color: #f0c684; }
html[data-theme="night"] .file-rule-chips span { color: #e8c98f; background: #493d29; border-color: #755f3d; }
html[data-theme="night"] .task-form-field > label:first-child { color: #cbd6e2; }
html[data-theme="night"] input,
html[data-theme="night"] select,
html[data-theme="night"] .field input,
html[data-theme="night"] .field select,
html[data-theme="night"] .task-form-field input:not([type="file"]),
html[data-theme="night"] .task-form-field select { color: #dbe5ef; background: #203044; border-color: #465970; }
html[data-theme="night"] input::placeholder { color: #74869a; }
html[data-theme="night"] .country-chevron { color: #8193a7; }
html[data-theme="night"] .country-options { background: #243447; border-color: #465970; box-shadow: 0 14px 34px rgba(0,0,0,.3); }
html[data-theme="night"] .country-option { color: #d4deea; background: #243447; border-color: #35485e; }
html[data-theme="night"] .country-option:hover,
html[data-theme="night"] .country-option.active { color: #82c2ff; background: #30465f; }
html[data-theme="night"] .task-form-field .country-option small { color: #8fa0b4; }
html[data-theme="night"] .country-empty { color: #91a1b4; background: #223246; }
html[data-theme="night"] .upload-dropzone { color: #aab8c8 !important; background: #223246; border-color: #527092; }
html[data-theme="night"] .upload-dropzone:hover { background: #273a50; border-color: #56a7f5; }
html[data-theme="night"] .upload-action { color: #82c2ff; background: #30465f; }
html[data-theme="night"] .task-cost-estimate { color: #9cadbf; background: #223246; border-color: #3b4f65; }
html[data-theme="night"] .task-cost-estimate.is-ready { color: #bad3ea; background: #263c52; border-color: #426784; }
html[data-theme="night"] .task-cost-estimate.is-insufficient { color: #efa8a8; background: #493135; border-color: #70464b; }
html[data-theme="night"] .task-cost-main strong, html[data-theme="night"] .quote-grid .quote-total strong { color: #79bfff; }
html[data-theme="night"] .task-cost-formula, html[data-theme="night"] .task-cost-estimate small { color: #8fa1b5; }
html[data-theme="night"] .task-cost-balance { border-color: #40566c; }
html[data-theme="night"] .quote-project, html[data-theme="night"] .quote-grid > div { background: #223246; border-color: #3b4f65; }
html[data-theme="night"] .vault-stat { background: linear-gradient(135deg, #223246, #1d2b3d); border-color: #3b4f65; }
html[data-theme="night"] .vault-stat-icon { background: rgba(121, 191, 255, .14); color: #79bfff; }
html[data-theme="night"] .vault-stat strong { color: #79bfff; }
html[data-theme="night"] .vault-empty strong { color: #dce7f2; }
html[data-theme="night"] .vault-empty-icon { background: rgba(121, 191, 255, .12); color: #79bfff; }
html[data-theme="night"] .vault-upload-form .field span { color: #a9bbcf; }
html[data-theme="night"] .vault-file-picker { color: #aab8c8; background: #223246; border-color: #527092; }
html[data-theme="night"] .vault-file-picker:hover { background: #273a50; border-color: #56a7f5; }
html[data-theme="night"] .vault-file-picker-copy strong { color: #e7eef7; }
html[data-theme="night"] .vault-file-picker-icon { color: #82c2ff; background: #30465f; }
html[data-theme="night"] .vault-file-picker-action { color: #82c2ff; background: #30465f; }
html[data-theme="night"] .vault-file-picker.has-file { border-color: #3d8f68; background: rgba(46, 184, 114, .08); }
html[data-theme="night"] .vault-file-picker.has-file .vault-file-picker-text { color: #7fd6a8; }
html[data-theme="night"] .vault-bulk-bar { color: #cfe0f2; background: rgba(121, 191, 255, .09); border-color: rgba(121, 191, 255, .32); }
html[data-theme="night"] .vault-table tbody tr.is-selected > td { background: rgba(121, 191, 255, .14); }
html[data-theme="night"] .vault-table tbody tr.is-selected:hover > td { background: rgba(121, 191, 255, .2); }
html[data-theme="night"] .vault-compare-note { color: #8fd8ae; background: rgba(46, 184, 114, .13); }
html[data-theme="night"] .vault-multi-hint { color: #9ccdf7; background: rgba(121, 191, 255, .12); }
html[data-theme="night"] .quote-project strong, html[data-theme="night"] .quote-grid strong { color: #dce7f2; }
html[data-theme="night"] .quote-grid .quote-total { background: #263c52; border-color: #426784; }
html[data-theme="night"] .quote-warning { color: #e3bd81; background: #403624; }
html[data-theme="night"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-warning):not(.btn-success):not(.btn-link) { color: #c5d1de; background: #2c3e53; border-color: #465970; }
html[data-theme="night"] .api-notice { color: #e2bd80; background: #403624; border-color: #685538; }
html[data-theme="night"] .login-page,
html[data-theme="night"] .app-boot { color: #7ec2ff; background: #1f2d3d url('./assets/login-bg.webp') center/cover no-repeat; }
html[data-theme="night"] .login-page::before { background: rgba(20, 30, 45, .55); }
html[data-theme="night"] .login-panel,
html[data-theme="night"] .login-form-wrap { background: #28384b; }
html[data-theme="night"] .login-title { color: #75b9f5; }
html[data-theme="night"] .session-splash strong { color: #d7e1ec; }
html[data-theme="night"] .theme-picker summary, html[data-theme="night"] .language-picker summary, html[data-theme="night"] .currency-picker summary { color: #c4d0dd; background: #2c3d52; border-color: #45576d; }
html[data-theme="night"] .theme-picker[open] summary, html[data-theme="night"] .language-picker[open] summary, html[data-theme="night"] .currency-picker[open] summary { color: #80c0ff; background: #30465f; border-color: #5582ae; }
html[data-theme="night"] .theme-menu, html[data-theme="night"] .language-menu, html[data-theme="night"] .currency-menu { background: #2b3b4f; border-color: #465970; box-shadow: 0 14px 38px rgba(0,0,0,.35); }
html[data-theme="night"] .theme-choice, html[data-theme="night"] .language-choice, html[data-theme="night"] .currency-choice { color: #cbd6e2; }
html[data-theme="night"] .theme-choice:hover, html[data-theme="night"] .theme-choice.active,
html[data-theme="night"] .language-choice:hover, html[data-theme="night"] .language-choice.active,
html[data-theme="night"] .currency-choice:hover, html[data-theme="night"] .currency-choice.active { color: #81c2ff; background: #344a63; }
html[data-theme="night"] .theme-choice small, html[data-theme="night"] .language-choice small, html[data-theme="night"] .currency-choice small { color: #91a1b4; }
html[data-theme="night"] .amount-fiat { color: #8fa0b3; }

@media (max-width: 620px) {
  .upload-action { display: none; }
  .task-cost-main, .task-cost-balance, .quote-project { align-items: flex-start; flex-direction: column; gap: 5px; }
  .quote-grid { grid-template-columns: 1fr; }
  /* 顶栏选择器只保留图标符号（隐藏文字标签与箭头），避免手机被挤压折行 */
  .theme-picker summary, .language-picker summary, .currency-picker summary { padding: 0 8px; }
  .theme-picker summary span:nth-child(2), .language-picker summary span:nth-child(2), .currency-picker summary span:nth-child(2), .theme-arrow, .language-arrow, .currency-arrow { display: none; }
  .theme-menu, .language-menu, .currency-menu { position: fixed; top: 58px; right: 10px; }
  /* 移动端输入框字号不小于 16px，避免 iOS 聚焦时自动放大页面 */
  input, select, textarea { font-size: 16px; }
}

/* 充值中心 */
.recharge-page, .recharge-records-page { padding: 0; overflow: hidden; }
.recharge-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; background: linear-gradient(135deg, #f8fbff, #edf6ff); border-bottom: 1px solid #e6edf5; }
.recharge-page-head > div:first-child > span, .records-page-head > div > span { color: #409eff; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.recharge-page-head h1, .records-page-head h2 { margin: 3px 0 4px; color: #27394e; }
.recharge-page-head p { margin: 0; color: #7d8b9c; }
.recharge-balance { min-width: 180px; display: grid; justify-items: end; gap: 3px; padding: 12px 15px; background: rgba(255,255,255,.78); border: 1px solid #dceaf8; border-radius: 13px; }
.recharge-balance > span { color: #8493a5; font-size: 12px; }
.recharge-balance > strong { color: #308be7; font-size: 22px; font-variant-numeric: tabular-nums; }
.recharge-system-state { font-size: 11px; }
.recharge-system-state.good { color: #2c9b68; }
.recharge-system-state.test { color: #b77a1d; }
.recharge-system-state.warning { color: #d45d5d; }
.recharge-create-card { width: min(820px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(200px, .8fr) minmax(300px, 1.2fr); gap: 26px; align-items: center; margin: 18px auto 14px; padding: 18px 20px; background: #fff; border: 1px solid #e1e8f0; border-radius: 15px; box-shadow: 0 12px 30px rgba(45, 78, 114, .07); }
.payment-order-card { width: min(760px, calc(100% - 48px)); margin: 30px auto 24px; padding: 26px 28px; background: #fff; border: 1px solid #e1e8f0; border-radius: 15px; box-shadow: 0 12px 30px rgba(45, 78, 114, .07); }
.recharge-eyebrow { color: #308be7; font-size: 12px; font-weight: 700; }
.recharge-create-card h2 { margin: 4px 0; color: #2b3d52; font-size: 17px; }
.recharge-create-card p { color: #8493a5; line-height: 1.55; font-size: 12.5px; }
.recharge-form { display: grid; gap: 8px; }
.recharge-form label { color: #46586d; font-weight: 650; font-size: 13px; }
.recharge-form small { color: #98a5b4; line-height: 1.5; font-size: 12px; }
.recharge-form .btn { margin-top: 3px; }
.recharge-amount-input { position: relative; }
.recharge-amount-input input { width: 100%; height: 42px; padding: 0 72px 0 14px; color: #34485f; background: #fff; border: 1px solid #d8e1eb; border-radius: 9px; outline: none; font-size: 15px; }
.recharge-amount-input input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.1); }
.recharge-amount-input span { position: absolute; top: 50%; right: 14px; color: #77889b; font-weight: 700; transform: translateY(-50%); }
.payment-summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(820px, calc(100% - 40px)); margin: 16px auto 12px; padding: 14px 18px; background: #fff; border: 1px solid #e1e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(45, 78, 114, .07); }
.payment-summary-info { display: grid; gap: 7px; min-width: 0; }
.payment-summary-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.payment-summary-main strong { color: #237fda; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.payment-summary-main small { font-size: 12px; }
.payment-summary-main code { overflow: hidden; color: #5b6d82; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.payment-summary-info > small { color: #8a99aa; font-size: 12px; }
.payment-summary-info > small strong { color: #3e5269; }
.payment-summary-actions { display: flex; flex-shrink: 0; gap: 8px; }
.payment-summary-actions .btn { padding: 8px 12px; white-space: nowrap; font-size: 12.5px; }
.cancel-recharge { color: #cf5c5c; background: #fff; border: 1px solid #f0caca; }
.cancel-recharge:hover { background: #fdf3f3; }
.payment-order-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.payment-order-head > div { display: grid; gap: 4px; }
.payment-order-head span { color: #8998a9; font-size: 12px; }
.payment-order-head strong { color: #34475e; }
.recharge-status { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.recharge-status.pending { color: #b6791e; background: #fff4e3; }
.recharge-status.paid { color: #24885b; background: #e8f8f0; }
.recharge-status.expired { color: #8895a4; background: #eef1f5; }
.recharge-status.review { color: #cc5959; background: #fef0f0; }
.payment-amount { display: grid; grid-template-columns: 1fr auto; gap: 7px 15px; padding: 20px; background: linear-gradient(135deg, #f4f9ff, #eaf4ff); border: 1px solid #d8eafb; border-radius: 12px; }
.payment-amount > span { grid-column: 1 / -1; color: #7990a8; font-size: 12px; }
.payment-amount strong { color: #237fda; font-size: 30px; font-variant-numeric: tabular-nums; }
.payment-amount small { font-size: 14px; }
.copy-value { align-self: center; padding: 7px 10px; color: #2e87df; background: #fff; border: 1px solid #cfe4fa; border-radius: 7px; }
.payment-address { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin-top: 16px; padding: 15px 17px; background: #fafcff; border: 1px solid #e4eaf1; border-radius: 10px; }
.payment-address > span { grid-column: 1 / -1; color: #8998a9; font-size: 12px; }
.payment-address code { align-self: center; overflow: hidden; color: #42566e; text-overflow: ellipsis; white-space: nowrap; }
.payment-address-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: max-content; margin-top: 12px; padding: 14px; background: #fafcff; border: 1px solid #e4eaf1; border-radius: 10px; }
.payment-address-qr canvas { width: 136px; height: 136px; background: #fff; border-radius: 6px; }
.payment-address-qr small { color: #8998a9; font-size: 12px; }
html[data-theme="night"] .payment-address-qr { background: #2a3b4f; border-color: #405267; }
.payment-summary, .payment-rules, .payment-actions { display: flex; align-items: center; gap: 12px; }
.payment-summary { justify-content: space-between; margin-top: 16px; color: #7a8b9e; }
.payment-summary strong { color: #3e5269; }
.payment-rules { flex-wrap: wrap; margin-top: 18px; }
.payment-rules span { padding: 5px 9px; color: #6d8094; background: #f3f6fa; border-radius: 999px; font-size: 11px; }
.payment-actions { justify-content: flex-end; margin-top: 20px; }
.recharge-safety-note { width: min(820px, calc(100% - 40px)); display: grid; gap: 4px; margin: 0 auto 18px; padding: 10px 14px; color: #8a7049; background: #fff9ef; border: 1px solid #f1e2c9; border-radius: 10px; }
.recharge-safety-note span { line-height: 1.55; font-size: 12px; }
.payment-modal { width: min(470px, calc(100vw - 32px)); }
.payment-modal-body { display: grid; gap: 11px; padding: 14px 20px 6px; }
.payment-modal .payment-address { margin-top: 0; padding: 12px 14px; }
.payment-modal .payment-address-qr { justify-self: center; align-items: center; margin-top: 0; padding: 10px; }
.payment-modal .payment-summary { margin-top: 0; }
.payment-modal .payment-rules { margin-top: 0; }
.payment-modal-order { color: #98a5b4; font-size: 11.5px; }
.payment-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px 16px; }
.payment-modal-actions > div { display: flex; gap: 8px; }
.records-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #e7edf4; }
.records-page-head h2 { margin-bottom: 0; }
.recharge-records-table { table-layout: fixed; }
.recharge-records-table th:nth-child(1) { width: 22%; }
.recharge-records-table th:nth-child(2) { width: 14%; }
.recharge-records-table th:nth-child(3) { width: 14%; }
.recharge-records-table th:nth-child(4) { width: 12%; }
.recharge-records-table th:nth-child(5) { width: 18%; }
.recharge-records-table th:nth-child(6) { width: 20%; }
.records-table-wrap { overflow-x: auto; padding: 0 20px 16px; }
.recharge-records-table { min-width: 820px; }
.recharge-records-table th, .recharge-records-table td { text-align: center; }
.txid-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-title { display: flex; align-items: baseline; gap: 12px; padding: 8px 24px 14px; }
.ledger-title h3 { margin: 0; color: #34475d; }
.ledger-title span { color: #98a5b3; font-size: 12px; }
.ledger-plus { color: #2a9665; font-weight: 700; }
.ledger-minus { color: #d35b5b; font-weight: 700; }
.admin-page, .profile-page { padding: 28px; overflow: hidden; }
.admin-page .records-page-head, .profile-page .records-page-head { margin: -28px -28px 0; }
.admin-page .records-page-head p, .profile-page .records-page-head p { margin: 8px 0 0; color: #8a99aa; }
.admin-members-table, .admin-ledger-table { min-width: 980px; }
.admin-members-table { table-layout: fixed; }
.admin-members-table th:nth-child(1) { width: 36px; }
.admin-members-table th:nth-child(2) { width: 60px; }
.admin-members-table th:nth-child(3) { width: 16%; }
.admin-members-table th:nth-child(4) { width: 10%; }
.admin-members-table th:nth-child(5) { width: 14%; }
.admin-members-table th:nth-child(6) { width: 10%; }
.admin-members-table th:nth-child(7) { width: 10%; }
.admin-members-table th:nth-child(8) { width: 14%; }
.admin-members-table th:nth-child(9) { width: 14%; }
.admin-ledger-table { table-layout: fixed; }
.admin-ledger-table th:nth-child(1) { width: 60px; }
.admin-ledger-table th:nth-child(2) { width: 12%; }
.admin-ledger-table th:nth-child(3) { width: 10%; }
.admin-ledger-table th:nth-child(4), .admin-ledger-table th:nth-child(5), .admin-ledger-table th:nth-child(6) { width: 11%; }
.admin-ledger-table th:nth-child(7) { width: 10%; min-width: 0; text-align: center; white-space: nowrap; }
.admin-ledger-table th:nth-child(8) { width: 12%; }
.admin-ledger-table th:nth-child(9) { width: 12%; }
.admin-ledger-table th:nth-child(10) { width: 10%; }
.admin-members-table th, .admin-members-table td, .admin-ledger-table th, .admin-ledger-table td { text-align: center; vertical-align: middle; white-space: nowrap; }
.admin-ledger-table td:nth-child(7) { min-width: 180px; text-align: left; white-space: normal; }
.admin-member-actions { min-width: 250px; }
.muted-action { color: #a0aab6; font-size: 12px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.admin-section-heading span { color: #8a99aa; font-size: 12px; }
.admin-section-heading h3 { margin: 5px 0 0; color: #34475d; font-size: 18px; }
.overview-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.overview-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.overview-status.healthy { color: #2a9665; background: #edf8f3; }
.overview-status.warning { color: #c68627; background: #fff7e9; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-metric-grid.upstream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-metric { min-width: 0; padding: 20px; border: 1px solid #e3eaf2; border-radius: 12px; background: #fbfcfe; }
.admin-metric.primary { background: linear-gradient(135deg, #eff7ff, #f8fbff); border-color: #cfe5fb; }
.admin-metric > span { color: #7c8da0; font-size: 12px; }
.admin-metric strong { display: block; margin: 10px 0 7px; overflow: hidden; color: #34475d; font-size: 25px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.admin-metric small { color: #9aa7b5; line-height: 1.5; }
.admin-address-preview { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 15px 18px; border: 1px solid #e4ebf2; border-radius: 10px; background: #fafcfe; }
.admin-address-preview div { min-width: 0; display: grid; gap: 7px; }
.admin-address-preview span { color: #8796a6; font-size: 12px; }
.admin-address-preview code { overflow: hidden; color: #53677d; text-overflow: ellipsis; white-space: nowrap; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.admin-quick-grid a { min-width: 0; display: grid; gap: 7px; padding: 18px; color: inherit; text-decoration: none; border: 1px solid #e3eaf2; border-radius: 12px; background: #fff; transition: .18s ease; }
.admin-quick-grid a:hover { border-color: #9fcfff; box-shadow: 0 6px 18px rgba(64, 158, 255, .09); transform: translateY(-1px); }
.admin-quick-grid span, .admin-quick-grid small { color: #8a99aa; }
.admin-quick-grid strong { color: #3d5268; }
.admin-quick-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-settings-form { width: min(960px, 100%); margin: 28px auto 0; }
.settings-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(960px, 100%); margin: 28px auto 0; }
.settings-entry-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px; text-align: left; color: inherit; background: #fbfcfe; border: 1px solid #e1e9f1; border-radius: 13px; cursor: pointer; transition: .18s ease; }
.settings-entry-card:hover { border-color: #9fcfff; box-shadow: 0 8px 22px rgba(64, 158, 255, .1); transform: translateY(-1px); }
.settings-entry-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #2588e8; background: #eaf5ff; border-radius: 12px; font-size: 22px; font-weight: 800; }
.settings-entry-copy { min-width: 0; display: grid; gap: 5px; }
.settings-entry-copy small { color: #8c9aab; font-size: 11px; }
.settings-entry-copy strong { color: #34475d; font-size: 15px; }
.settings-entry-copy code { overflow: hidden; color: #728499; font: inherit; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-entry-side { display: grid; justify-items: end; gap: 11px; }
.settings-entry-side b { color: #2588e8; font-size: 12px; }
.compact-detail-grid { width: min(960px, 100%); margin: 16px auto 0; }
.compact-setting-form { margin-top: 16px; }
.address-form-card { padding: 22px; border: 1px solid #e1e9f1; border-radius: 12px; background: #fbfcfe; }
.address-form-card > label { display: block; margin-bottom: 11px; color: #34475d; font-weight: 700; }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.settings-card-head > div { min-width: 0; display: grid; gap: 5px; }
.settings-card-head label { color: #34475d; font-weight: 700; }
.settings-card-head > div > span { color: #8b99a8; font-size: 12px; line-height: 1.5; }
.address-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.address-input-row input { width: 100%; min-height: 44px; padding: 0 14px; color: #34475d; background: #fff; border: 1px solid #dce4ed; border-radius: 9px; outline: none; }
.address-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 158, 255, .11); }
.address-form-card small { display: block; margin-top: 10px; color: #9a6e42; line-height: 1.6; }
.recharge-rule-form { margin-top: 18px; }
.integration-settings-form { margin-top: 18px; }
.trongrid-test-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: 12px; }
.trongrid-test-result.connected { color: #277b59; background: #edf8f3; border: 1px solid #d5eee3; }
.trongrid-test-result.failed { color: #b35555; background: #fff1f1; border: 1px solid #f1d7d7; }
.trongrid-test-result span { text-align: right; line-height: 1.5; }
.server-secret-note { display: grid; gap: 6px; margin-top: 14px; padding: 14px 16px; color: #64778b; background: #f1f5f9; border: 1px solid #e1e8ef; border-radius: 9px; }
.server-secret-note strong { color: #41566c; font-size: 13px; }
.server-secret-note span { font-size: 12px; line-height: 1.6; }
.server-secret-note + .task-action { margin-top: 14px; }
.settings-editor-modal { width: min(660px, calc(100vw - 32px)); }
.settings-editor-modal .task-form-field { margin: 0; }
.settings-editor-modal .task-form-field input { width: 100%; min-height: 46px; padding: 0 14px; color: #34475d; background: #fff; border: 1px solid #dce4ed; border-radius: 9px; outline: none; }
.settings-editor-modal .task-form-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 158, 255, .11); }
.settings-editor-modal .task-form-field small { display: block; margin-top: 9px; color: #8796a6; line-height: 1.6; }
.split-modal-actions { justify-content: space-between; }
.split-modal-actions > div { display: flex; gap: 10px; }
.minimum-input-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 12px; }
.minimum-input-row input { min-width: 0; }
.minimum-input-row > span { color: #687b8f; font-weight: 700; }
.upstream-web-desc { margin: 2px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.upstream-web-card .upstream-web-mode-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.upstream-web-card .upstream-web-mode-row label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: #34475d; font-weight: 700; }
.upstream-web-card .field-row { margin-bottom: 12px; }
.upstream-web-card .field-row label { display: block; margin-bottom: 6px; color: #34475d; font-size: 13px; font-weight: 700; }
.upstream-web-card .field-row input { width: 100%; max-width: 380px; }
.upstream-web-actions { display: flex; gap: 10px; margin-top: 4px; }
.upstream-web-detail code { word-break: break-all; }
.upstream-web-modal-info { margin-top: 14px; border-top: 1px solid var(--border, #e5e7eb); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.upstream-web-detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 12px; }
.upstream-web-detail-row span { color: var(--muted); flex-shrink: 0; }
.upstream-web-detail-row code { font-size: 12px; word-break: break-all; text-align: right; }
.upstream-web-detail-row strong { font-size: 13px; }
html[data-theme="night"] .upstream-web-card .upstream-web-mode-row label, html[data-theme="night"] .upstream-web-card .field-row label { color: #e7eff7; }
.receive-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.receive-mode-panel { border: 1px solid #e1e9f1; border-radius: 14px; background: #fbfcfe; }
.receive-mode-panel summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 16px 18px; border-bottom: 1px solid transparent; }
.receive-mode-panel summary::-webkit-details-marker { display: none; }
.receive-mode-summary-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.receive-mode-summary-row strong { color: #34475d; font-size: 15px; }
.receive-mode-panel summary small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.receive-mode-tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: rgba(0, 150, 180, 0.1); color: var(--logo-accent); font-size: 12px; font-weight: 700; }
.receive-mode-panel.active { border-color: var(--logo-accent); box-shadow: 0 0 0 1px rgba(0, 150, 180, 0.18); }
.receive-mode-panel.active summary { border-bottom-color: #e1e9f1; }
.receive-mode-panel .settings-entry-grid { width: auto; margin: 16px 18px 0; gap: 12px; }
.receive-mode-panel .address-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 18px 16px; }
.receive-mode-panel .compact-setting-form { margin: 16px 18px 0; }
.receive-mode-panel > .upstream-web-actions { margin: 0 18px 16px; }
.member-batch-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #e1e9f1; border-radius: 12px; background: #fbfcfe; }
.batch-select-all-label { display: inline-flex; align-items: center; gap: 7px; color: #34475d; font-weight: 700; cursor: pointer; white-space: nowrap; }
.batch-bar-copy { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.batch-bar-copy strong { color: #34475d; font-size: 14px; }
.batch-bar-copy small { color: var(--muted); line-height: 1.5; }
.batch-multiplier-input { width: 120px; }
.batch-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.member-check-cell { width: 34px; }
.member-multiplier-edit { display: flex; gap: 6px; align-items: center; }
.member-multiplier-input { width: 92px; padding: 6px 8px; }
.member-multiplier-cell small { display: block; margin-top: 4px; }
html[data-theme="night"] .receive-mode-panel, html[data-theme="night"] .member-batch-bar { background: #2a3b4f; border-color: #405267; }
html[data-theme="night"] .receive-mode-summary-row strong, html[data-theme="night"] .batch-bar-copy strong, html[data-theme="night"] .batch-select-all-label { color: #e7eff7; }
html[data-theme="night"] .receive-mode-panel.active summary { border-bottom-color: #405267; }
html[data-theme="night"] .receive-mode-tag { background: rgba(53, 201, 233, 0.16); }
@media (max-width: 1100px) { .receive-mode-grid { grid-template-columns: 1fr; } }
.address-detail-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); margin-top: 16px; border: 1px solid #e4ebf2; border-radius: 12px; overflow: hidden; }
.address-detail-grid > div { min-width: 0; display: grid; gap: 8px; padding: 17px; border-right: 1px solid #e4ebf2; }
.address-detail-grid > div:last-child { border-right: 0; }
.address-detail-grid span { color: #8c9aab; font-size: 12px; }
.address-detail-grid strong, .address-detail-grid code { overflow: hidden; color: #41566c; text-overflow: ellipsis; white-space: nowrap; }
.address-safety { margin: 16px 0; padding: 16px 18px; color: #7c6646; background: #fff9ef; border: 1px solid #f0e0c7; border-radius: 10px; }
.address-safety p { margin: 7px 0 0; line-height: 1.65; font-size: 12px; }
.ledger-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.ledger-summary-grid > div { padding: 15px; border: 1px solid #e4ebf2; border-radius: 10px; background: #fbfcfe; }
.ledger-summary-grid span { display: block; color: #8a99aa; font-size: 12px; }
.ledger-summary-grid strong { display: block; margin-top: 8px; color: #3c5167; font-size: 18px; }
.ledger-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #8392a3; font-size: 12px; }
.ledger-filter select { min-height: 34px; padding: 0 30px 0 10px; color: #52677d; background: #fff; border: 1px solid #dce4ed; border-radius: 8px; }
.detailed-ledger-table { min-width: 1500px; }
.detailed-ledger-table td:nth-child(7) { min-width: auto; text-align: center; white-space: nowrap; }
.detailed-ledger-table td > small { display: block; margin-top: 4px; color: #9ba7b4; font-size: 10px; }
.ledger-note-cell { min-width: 180px; max-width: 280px; text-align: left !important; white-space: normal !important; line-height: 1.5; }
.ledger-kind { display: inline-flex; padding: 5px 8px; color: #4f6d8c; background: #eef5fb; border-radius: 999px; font-size: 11px; }
.ledger-kind.kind-manual_credit, .ledger-kind.kind-recharge { color: #277b59; background: #edf8f3; }
.ledger-kind.kind-manual_debit, .ledger-kind.kind-task_charge { color: #b35555; background: #fff1f1; }
.ledger-kind.kind-member_deleted { color: #777f89; background: #f0f2f5; }
.ledger-kind.kind-address_change { color: #b06a1f; background: #fff4e0; font-weight: 600; }
.danger-modal .recharge-safety-note { width: 100%; margin: 0 0 20px; }
.copy-value:disabled { cursor: not-allowed; opacity: .55; }
.compact-modal { max-width: 620px; }
.compact-modal .form-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 18px; }
.compact-modal .form-row label { font-weight: 700; }
.compact-modal .form-row input, .compact-modal .form-row select, .profile-form input { width: 100%; min-height: 44px; border: 1px solid #dce4ed; border-radius: 9px; padding: 0 13px; color: #34475d; background: #fff; }
.profile-form { width: min(560px, 100%); display: grid; gap: 18px; margin-top: 28px; }
.profile-form label { display: grid; gap: 8px; font-weight: 700; }
.profile-form .btn { justify-self: start; min-width: 150px; }
.gender-export-form { display: grid; gap: 16px; }
.gender-export-form label { display: grid; gap: 8px; font-weight: 700; }
.gender-export-form select, .gender-export-form input { width: 100%; min-height: 44px; border: 1px solid #dce4ed; border-radius: 9px; padding: 0 13px; color: #34475d; background: #fff; }
.gender-export-note { color: #7c8ba0; font-size: 13px; }
.twofa-card { width: min(560px, 100%); margin-top: 32px; padding: 20px 22px; background: #fbfcfe; border: 1px solid #e4ebf2; border-radius: 12px; }
.twofa-head { display: flex; align-items: center; gap: 10px; }
.twofa-head strong { color: #3c5167; font-size: 15px; }
.twofa-card > p { margin: 10px 0 16px; color: #8a99aa; line-height: 1.65; font-size: 12px; }
.totp-setup-box { display: grid; justify-items: center; gap: 12px; margin-bottom: 20px; padding: 18px; background: #fbfcfe; border: 1px solid #e4ebf2; border-radius: 10px; text-align: center; }
.totp-setup-box canvas { background: #fff; border-radius: 8px; }
.totp-setup-box small { display: grid; gap: 6px; color: #8a99aa; font-size: 12px; }
.totp-secret { padding: 6px 10px; color: #34475d; background: #fff; border: 1px dashed #c9d6e4; border-radius: 8px; font-size: 13px; letter-spacing: 1px; word-break: break-all; }
.logout-btn { margin-left: 8px; }
html[data-theme="night"] .compact-modal .form-row input, html[data-theme="night"] .compact-modal .form-row select, html[data-theme="night"] .profile-form input { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .gender-export-form select, html[data-theme="night"] .gender-export-form input { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .gender-export-note { color: #8fa0b3; }
html[data-theme="night"] .recharge-page-head { background: linear-gradient(135deg, #2d4055, #26384c); border-color: #3b4d61; }
html[data-theme="night"] .recharge-page-head h1, html[data-theme="night"] .records-page-head h2, html[data-theme="night"] .recharge-create-card h2, html[data-theme="night"] .payment-order-head strong, html[data-theme="night"] .ledger-title h3 { color: #edf4fb; }
html[data-theme="night"] .recharge-page-head p, html[data-theme="night"] .recharge-create-card p { color: #a9b7c7; }
html[data-theme="night"] .recharge-balance, html[data-theme="night"] .recharge-create-card, html[data-theme="night"] .payment-order-card, html[data-theme="night"] .payment-summary-bar { background: #2a3b4f; border-color: #405267; box-shadow: none; }
html[data-theme="night"] .payment-summary-main code { color: #a9b7c7; }
html[data-theme="night"] .payment-summary-info > small strong { color: #dce6f0; }
html[data-theme="night"] .cancel-recharge { color: #e09090; background: #35282e; border-color: #5d4346; }
html[data-theme="night"] .cancel-recharge:hover { background: #3e2f35; }
html[data-theme="night"] .recharge-amount-input input, html[data-theme="night"] .payment-address { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .payment-address code, html[data-theme="night"] .payment-summary strong { color: #dce6f0; }
html[data-theme="night"] .payment-amount { background: linear-gradient(135deg, #263c53, #29445f); border-color: #3f5a76; }
html[data-theme="night"] .copy-value { color: #72baff; background: #26384b; border-color: #46617c; }
html[data-theme="night"] .payment-rules span { color: #b4c1cf; background: #33465b; }
html[data-theme="night"] .recharge-safety-note { color: #e1c38e; background: #443923; border-color: #6b5937; }
html[data-theme="night"] .records-page-head { border-color: #3c4d60; }
html[data-theme="night"] .admin-section-heading h3, html[data-theme="night"] .admin-metric strong, html[data-theme="night"] .admin-quick-grid strong, html[data-theme="night"] .address-form-card > label, html[data-theme="night"] .settings-card-head label, html[data-theme="night"] .address-detail-grid strong, html[data-theme="night"] .address-detail-grid code, html[data-theme="night"] .ledger-summary-grid strong { color: #e7eff7; }
html[data-theme="night"] .admin-metric, html[data-theme="night"] .admin-metric.primary, html[data-theme="night"] .admin-address-preview, html[data-theme="night"] .admin-quick-grid a, html[data-theme="night"] .address-form-card, html[data-theme="night"] .ledger-summary-grid > div { background: #2a3b4f; border-color: #405267; }
html[data-theme="night"] .settings-entry-card { background: #2a3b4f; border-color: #405267; }
html[data-theme="night"] .settings-entry-card:hover { border-color: #5b8dbd; box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
html[data-theme="night"] .settings-entry-icon { color: #76baff; background: #24384d; }
html[data-theme="night"] .settings-entry-copy strong { color: #e7eff7; }
html[data-theme="night"] .settings-entry-copy code { color: #aebdcc; }
html[data-theme="night"] .admin-address-preview code { color: #c2cfdd; }
html[data-theme="night"] .overview-status.healthy { color: #77d5ad; background: #25493f; }
html[data-theme="night"] .overview-status.warning { color: #e4bd74; background: #4a3c24; }
html[data-theme="night"] .address-input-row input, html[data-theme="night"] .ledger-filter select { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .address-detail-grid { border-color: #405267; }
html[data-theme="night"] .address-detail-grid > div { border-color: #405267; }
html[data-theme="night"] .address-safety { color: #e1c38e; background: #443923; border-color: #6b5937; }
html[data-theme="night"] .trongrid-test-result.connected { color: #91d9bb; background: #294a41; border-color: #3c6457; }
html[data-theme="night"] .trongrid-test-result.failed { color: #efaaaa; background: #513737; border-color: #744a4a; }
html[data-theme="night"] .server-secret-note { color: #aebdcc; background: #243447; border-color: #405267; }
html[data-theme="night"] .server-secret-note strong { color: #e1eaf3; }
html[data-theme="night"] .twofa-card { background: #2a3b4f; border-color: #405267; }
html[data-theme="night"] .twofa-head strong { color: #e7eff7; }
html[data-theme="night"] .twofa-card > p { color: #a9b7c7; }
html[data-theme="night"] .totp-setup-box { background: #243447; border-color: #405267; }
html[data-theme="night"] .totp-secret { color: #dce6f0; background: #2a3b4f; border-color: #46617c; }
html[data-theme="night"] .settings-editor-modal .task-form-field input { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .ledger-kind { color: #b8d2ea; background: #334b62; }
html[data-theme="night"] .ledger-kind.kind-manual_credit, html[data-theme="night"] .ledger-kind.kind-recharge { color: #91d9bb; background: #294a41; }
html[data-theme="night"] .ledger-kind.kind-manual_debit, html[data-theme="night"] .ledger-kind.kind-task_charge { color: #efaaaa; background: #513737; }
html[data-theme="night"] .ledger-kind.kind-address_change { color: #f5c98a; background: #4a3c22; }
@media (max-width: 720px) {
  .recharge-page-head { align-items: stretch; flex-direction: column; padding: 24px 20px; }
  .recharge-balance { justify-items: start; }
  .recharge-create-card { grid-template-columns: 1fr; gap: 18px; width: calc(100% - 28px); padding: 22px 18px; }
  .payment-order-card, .recharge-safety-note, .payment-summary-bar { width: calc(100% - 28px); }
  .payment-summary-bar { flex-direction: column; align-items: stretch; }
  .payment-summary-actions { flex-wrap: wrap; }
  .payment-amount strong { font-size: 23px; }
  .payment-address { grid-template-columns: 1fr; }
  .payment-address > span { grid-column: 1; }
  .payment-summary { align-items: flex-start; flex-direction: column; }
  .records-page-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .records-table-wrap { padding: 0 14px 20px; }
  .admin-page, .profile-page { padding: 18px; }
  .admin-page .records-page-head, .profile-page .records-page-head { margin: -18px -18px 0; }
  .compact-modal .form-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-metric-grid, .admin-metric-grid.upstream-grid, .admin-quick-grid, .ledger-summary-grid, .settings-entry-grid { grid-template-columns: 1fr; }
  .admin-address-preview, .ledger-title { align-items: stretch; flex-direction: column; }
  .address-input-row, .address-detail-grid, .minimum-input-row { grid-template-columns: 1fr; }
  .settings-card-head, .trongrid-test-result { align-items: stretch; flex-direction: column; }
  .trongrid-test-result span { text-align: left; }
  .settings-entry-card { grid-template-columns: auto minmax(0, 1fr); }
  .settings-entry-side { grid-column: 1 / -1; align-items: center; justify-content: space-between; grid-auto-flow: column; }
  .split-modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-modal-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .address-detail-grid > div { border-right: 0; border-bottom: 1px solid #e4ebf2; }
  .address-detail-grid > div:last-child { border-bottom: 0; }
  .ledger-filter { margin-left: 0; }
  .logout-btn { padding-inline: 10px; }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .admin-metric-grid, .ledger-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric-grid.upstream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .address-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address-detail-grid > div:nth-child(2) { border-right: 0; }
  .address-detail-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e4ebf2; }
}

/* ---------- 自动补仓后台 ---------- */
.topup-head-actions { display: flex; align-items: center; gap: 10px; }
.topup-metrics { margin-top: 24px; }
.topup-settings-form { margin-top: 24px; border: 1px solid #e2e9f0; border-radius: 14px; padding: 22px; background: #fbfdff; }
.topup-form-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.topup-form-head h3 { margin: 0 0 6px; color: #27394d; }
.topup-form-head p { margin: 0; color: #7a8a9a; font-size: 13px; }
.switch-setting { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; }
.switch-setting input { width: 18px; height: 18px; accent-color: currentColor; }
.topup-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topup-settings-grid label { display: grid; gap: 7px; min-width: 0; font-weight: 700; color: #405369; }
.topup-settings-grid label > span { font-size: 13px; }
.topup-settings-grid input { width: 100%; min-height: 44px; border: 1px solid #dce4ed; border-radius: 9px; padding: 0 12px; color: #34475d; background: #fff; }
.topup-settings-grid small { min-height: 32px; color: #8392a2; font-size: 12px; font-weight: 400; line-height: 1.45; }
.input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #dce4ed; border-radius: 9px; background: #fff; overflow: hidden; }
.input-suffix input { border: 0; border-radius: 0; }
.input-suffix b { padding: 0 11px; color: #74869a; font-size: 12px; }
.topup-advanced { margin-top: 18px; border: 1px solid #e2e9f0; border-radius: 10px; background: #fff; }
.topup-advanced summary { cursor: pointer; padding: 14px 16px; font-weight: 800; color: #405369; }
.topup-advanced .advanced-grid { padding: 0 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topup-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.topup-transfer-table { table-layout: fixed; }
.topup-transfer-table th:nth-child(1) { width: 18%; }
.topup-transfer-table th:nth-child(2), .topup-transfer-table th:nth-child(3) { width: 14%; }
.topup-transfer-table th:nth-child(4) { width: 22%; }
.topup-transfer-table th:nth-child(5) { width: 10%; }
.topup-transfer-table th:nth-child(6) { width: 12%; }
.topup-transfer-table th:nth-child(7) { width: 10%; }
.topup-transfer-table td small { display: block; margin-top: 4px; color: #8b98a7; }
.admin-topup-page .recharge-safety-note { width: 100%; margin: 18px 0 0; }
.admin-fund-divider { height: 1px; margin: 30px 0; background: linear-gradient(90deg, transparent, #d8e3ef 20%, #d8e3ef 80%, transparent); }
html[data-theme="night"] .admin-fund-divider { background: linear-gradient(90deg, transparent, #3d5066 20%, #3d5066 80%, transparent); }

html[data-theme="night"] .topup-settings-form { background: #27384b; border-color: #405267; }
html[data-theme="night"] .topup-form-head h3, html[data-theme="night"] .topup-settings-grid label, html[data-theme="night"] .topup-advanced summary { color: #e7eff7; }
html[data-theme="night"] .topup-form-head p, html[data-theme="night"] .topup-settings-grid small { color: #a9b7c7; }
html[data-theme="night"] .topup-settings-grid input, html[data-theme="night"] .input-suffix, html[data-theme="night"] .topup-advanced { color: #dce6f0; background: #243447; border-color: #42556a; }
html[data-theme="night"] .input-suffix b { color: #aebdcc; }

@media (max-width: 720px) {
  .topup-head-actions, .topup-form-head, .topup-form-actions { align-items: stretch; flex-direction: column; }
  .topup-settings-grid, .topup-advanced .advanced-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .topup-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================
   管理后台 UI 统一规范（纯 CSS / 零业务逻辑 / 不修改任何 HTML 结构）
   覆盖：概览 / 会员管理 / 任务流水 / 充值流水 / 钱包补仓
   ================================================================ */

/* --- 1. 外层页面卡片：所有后台页面统一圆角/边距/阴影 --- */
.card.admin-page,
section.card.admin-page {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 2px 6px rgba(15, 23, 42, .04);
  padding: 28px 32px 36px;
}

/* --- 2. 页面级头部（records-page-head）：标题/副标题/右侧刷新按钮统一 --- */
.records-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 1px solid #eef2f7;
}
.records-page-head > div:first-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.records-page-head span:first-child {
  font-size: 12px; font-weight: 600; color: #3a6ea5;
  letter-spacing: .04em; text-transform: uppercase;
}
.records-page-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: #1f3a58; line-height: 1.25; }
.records-page-head p  { margin: 0; font-size: 13.5px; color: #68788b; line-height: 1.55; }
.records-page-head .btn,
.admin-overview-page .btn,
.admin-fund-page .btn,
.admin-members-table + .task-pagination .btn,
.admin-ledger-table + .task-pagination .btn {
  padding: 8px 16px; font-size: 13.5px; border-radius: 8px; height: 36px;
}

/* --- 3. 小节标题（admin-section-heading / ledger-title）：层级清晰 --- */
.admin-section-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 40px 0 18px;
}
.admin-section-heading > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.admin-section-heading span { font-size: 11.5px; font-weight: 600; color: #3a6ea5; letter-spacing: .04em; text-transform: uppercase; }
.admin-section-heading h3,
.ledger-title h3 { margin: 0; font-size: 17px; font-weight: 700; color: #1f3a58; }
.ledger-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 36px 0 14px;
}
.ledger-title span { font-size: 13px; color: #68788b; }
.ledger-filter select,
.ledger-filter { font-size: 13px; color: #4a5b6e; }

/* --- 4. 指标卡片（admin-metric-grid / admin-metric / quick-grid）：栅格统一 --- */
.admin-metric-grid,
.ledger-summary-grid,
.admin-quick-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-quick-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 24px; }
.ledger-summary-grid { margin-bottom: 24px; }

.admin-metric,
.ledger-summary-grid > div,
.admin-quick-grid > a {
  display: flex; flex-direction: column; gap: 8px;
  background: #f7fbff; border: 1px solid #e6edf6;
  border-radius: 10px; padding: 18px 20px;
  min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.admin-quick-grid > a { text-decoration: none; color: inherit; position: relative; }
.admin-quick-grid > a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(64,158,255,.08); border-color: #c9dcf4; }
.quick-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; color: #fff; background: #f59e0b; border-radius: 20px; line-height: 1; letter-spacing: .01em; animation: badge-pulse 2s ease-in-out infinite; }
.quick-badge.warn { background: #ef4444; }
@keyframes badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
.admin-metric span,
.ledger-summary-grid span,
.admin-quick-grid span { font-size: 12.5px; font-weight: 600; color: #68788b; letter-spacing: .01em; }
.admin-metric strong,
.ledger-summary-grid strong,
.admin-quick-grid strong { font-size: 26px; font-weight: 750; color: #1f3a58; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.admin-metric small,
.admin-quick-grid small { font-size: 12px; color: #93a4b7; line-height: 1.45; }

/* 主指标卡片（primary）：左侧 3px 蓝条 + 淡蓝渐变背景，视觉突出 */
.admin-metric.primary {
  background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 100%);
  border-color: #cfe0fb;
  box-shadow: inset 3px 0 0 0 #409eff;
}
.admin-metric.primary strong { color: #255fa3; }
.admin-metric.primary span { color: #4a6f9a; }

/* --- 5. 表格：表头吸顶 / 统一padding / 圆角包裹 --- */
.records-table-wrap {
  border: 1px solid #e6edf6; border-radius: 10px; overflow: hidden;
  background: #ffffff; margin-top: 6px;
}
.admin-page .data-table thead th {
  background: #f2f6fc; color: #4a5b6e;
  font-size: 13px; font-weight: 700;
  padding: 14px 16px; border-bottom: 2px solid #dde5ef;
  /* 下拉滚动表头不会丢 */
  position: sticky; top: 0; z-index: 5;
}
.admin-page .data-table tbody td {
  padding: 13px 16px; font-size: 13.5px; color: #3a4b5f;
  border-top: 1px solid #eef2f7;
  vertical-align: middle;
}
.admin-page .data-table tbody tr:hover td { background: #f7fbff; }
.admin-page .data-table .task-actions .btn-link,
.admin-page .data-table .task-action { font-size: 12.5px; padding: 4px 8px; }

/* --- 6. Tab 选中态强化：加浅蓝圆角背景 + 轻微阴影，不再只是文字颜色变化 --- */
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; background: #f2f6fc; border-radius: 10px; margin: 0 0 22px; border: 1px solid #e6edf6;
}
.admin-tabs .tab {
  padding: 9px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 600;
  color: #4a5b6e; text-decoration: none; transition: all .15s ease;
}
.admin-tabs .tab:hover { background: #ffffff; color: #255fa3; }
.admin-tabs .tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
  color: #255fa3;
  box-shadow: 0 1px 2px rgba(64,158,255,.1), 0 0 0 1px #cfdff8 inset;
}
.admin-tabs .tab .tab-dot { color: #409eff; margin-right: 4px; font-weight: 700; }

/* --- 7. 批处理条（会员批量倍率）：卡片化，不与表格混淆 --- */
.member-batch-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  background: #f7fbff; border: 1px solid #e6edf6; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 18px;
}
.member-batch-bar .batch-bar-copy strong { font-size: 14px; color: #1f3a58; }
.member-batch-bar .batch-bar-copy small  { font-size: 12px; color: #68788b; display: block; margin-top: 2px; }
.member-batch-bar .batch-multiplier-input { height: 34px; width: 140px; }
.member-batch-bar .batch-bar-actions { display: flex; gap: 8px; margin-left: auto; }
.member-batch-bar .batch-bar-actions .btn { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* --- 8. 补仓 / 流水 页面的地址面板 / 输入表格统一圆角 --- */
.receive-mode-panel,
.settings-entry-card,
.address-form-card,
.topup-settings-form,
.topup-transfer-table,
.twofa-card {
  border-radius: 10px;
}
.address-form-card { padding: 20px; border: 1px solid #e6edf6; background: #fafdff; }
.twofa-card { padding: 18px 20px; border: 1px solid #e6edf6; background: #fafdff; display: flex; flex-direction: column; gap: 10px; }
.twofa-head { display: flex; align-items: center; justify-content: space-between; }
.topup-form-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #f7fbff; border: 1px solid #e6edf6; border-radius: 10px; }
.topup-settings-grid { gap: 16px; padding: 20px 20px 8px; border: 1px solid #e6edf6; border-top: none; border-radius: 0 0 10px 10px; background: #fff; }
.topup-advanced { margin-top: 14px; }
.topup-transfer-table { margin-top: 6px; }

/* ================= 深色主题（Night）后台统一适配 ================= */
html[data-theme="night"] .card.admin-page,
html[data-theme="night"] section.card.admin-page {
  background: #1e2c3f; border-color: #34495e;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.18);
}
html[data-theme="night"] .records-page-head { border-bottom-color: #2b3e54; }
html[data-theme="night"] .records-page-head span:first-child { color: #82c2ff; }
html[data-theme="night"] .records-page-head h2 { color: #edf4fb; }
html[data-theme="night"] .records-page-head p  { color: #93a4b7; }
html[data-theme="night"] .admin-section-heading span { color: #82c2ff; }
html[data-theme="night"] .admin-section-heading h3,
html[data-theme="night"] .ledger-title h3 { color: #edf4fb; }
html[data-theme="night"] .ledger-title span { color: #93a4b7; }
html[data-theme="night"] .ledger-filter select,
html[data-theme="night"] .ledger-filter { color: #b9c7d7; background: #203044; border-color: #465970; }

html[data-theme="night"] .admin-metric,
html[data-theme="night"] .ledger-summary-grid > div,
html[data-theme="night"] .admin-quick-grid > a {
  background: #243447; border-color: #3a4a5e;
}
html[data-theme="night"] .admin-metric span,
html[data-theme="night"] .ledger-summary-grid span,
html[data-theme="night"] .admin-quick-grid span { color: #93a4b7; }
html[data-theme="night"] .admin-metric strong,
html[data-theme="night"] .ledger-summary-grid strong,
html[data-theme="night"] .admin-quick-grid strong { color: #edf4fb; }
html[data-theme="night"] .admin-metric small,
html[data-theme="night"] .admin-quick-grid small { color: #7e8fa3; }
html[data-theme="night"] .admin-metric.primary {
  background: linear-gradient(135deg, #213248 0%, #243447 100%);
  border-color: #365172;
  box-shadow: inset 3px 0 0 0 #409eff;
}
html[data-theme="night"] .admin-metric.primary strong { color: #b6dcff; }
html[data-theme="night"] .admin-quick-grid > a:hover { border-color: #406d9e; }

html[data-theme="night"] .records-table-wrap { background: #203044; border-color: #3b4b5f; }
html[data-theme="night"] .admin-page .data-table thead th {
  background: #28384b; color: #b9c7d7; border-bottom-color: #465970;
}
html[data-theme="night"] .admin-page .data-table tbody td {
  color: #cddae7; border-top-color: #2d3e53;
}
html[data-theme="night"] .admin-page .data-table tbody tr:hover td { background: #243447; }

html[data-theme="night"] .admin-tabs { background: #26384d; border-color: #3a4a5e; }
html[data-theme="night"] .admin-tabs .tab { color: #b9c7d7; }
html[data-theme="night"] .admin-tabs .tab:hover { background: #203044; color: #82c2ff; }
html[data-theme="night"] .admin-tabs .tab.active {
  background: linear-gradient(180deg, #203044 0%, #243447 100%);
  color: #82c2ff; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 0 0 1px #3f6d9e inset;
}

html[data-theme="night"] .member-batch-bar { background: #243447; border-color: #3a4a5e; }
html[data-theme="night"] .member-batch-bar .batch-bar-copy strong { color: #e4edf6; }
html[data-theme="night"] .member-batch-bar .batch-bar-copy small  { color: #93a4b7; }
html[data-theme="night"] .address-form-card,
html[data-theme="night"] .twofa-card { background: #243447; border-color: #3a4a5e; }
html[data-theme="night"] .topup-form-head { background: #243447; border-color: #3a4a5e; }
html[data-theme="night"] .topup-settings-grid { background: #203044; border-color: #3a4a5e; }

/* 管理后台响应式：窄屏时卡片 / tab 宽度自适应 */
@media (max-width: 860px) {
  .card.admin-page, section.card.admin-page { padding: 20px 18px 28px; }
  .records-page-head { padding-bottom: 18px; margin-bottom: 22px; }
  .records-page-head h2 { font-size: 19px; }
  .admin-tabs { gap: 2px; }
  .admin-tabs .tab { padding: 7px 12px; font-size: 12.5px; }
  .admin-metric strong, .ledger-summary-grid strong, .admin-quick-grid strong { font-size: 22px; }
  .member-batch-bar { padding: 14px; }
  .member-batch-bar .batch-bar-actions { margin-left: 0; width: 100%; }
  .member-batch-bar .batch-bar-actions .btn { flex: 1; }
}

/* Submission review uses the existing admin form controls and follows the theme. */
.task-review-panel { margin: 20px 0; padding: 18px; border: 1px solid var(--border, #dcdfe6); border-radius: 10px; }
.task-review-panel > p { line-height: 1.6; }
.task-review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--border, #dcdfe6); }
.task-review-form p { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; }
.task-review-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.task-review-form input, .task-review-form select { width: 100%; min-width: 0; padding: 9px; box-sizing: border-box; }
.task-review-form button { align-self: end; justify-self: start; }
@media (max-width: 640px) { .task-review-form { grid-template-columns: 1fr; } }
