/* 后台图稿统一令牌：近黑底、香槟金主色、橙色只强调选中与待办。 */
:root {
  --bg: #101110;
  --panel: #181a18;
  --border: #ffffff12;
  --text: #e9e9e1;
  --muted: #93998d;
  --gold: #dfb980;
  --orange: #e99545;
  --danger: #f2a19b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
[hidden] { display: none !important; }
body { background: var(--bg); font-size: 14px; }
button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; }
button { border-radius: 5px; padding: 8px 14px; }
button:hover { border-color: #dfb98050; }
button.primary, .button-link.primary { background: var(--gold); color: #252219; border-color: var(--gold); }
button.primary:hover, .button-link.primary:hover { background: #ecca99; }
button:disabled { cursor: not-allowed; }
h1 { font-size: 36px; font-weight: 650; letter-spacing: -.7px; line-height: 1.3; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.4; }
h3 { font-size: 15px; font-weight: 550; margin: 0 0 16px; }
small { font-size: 12px; }
input, select, textarea { background: #ffffff03; color: var(--text); border: 1px solid #ffffff26; border-radius: 4px; }
input, select { min-height: 40px; padding: 8px 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
input[type="checkbox"] { min-height: 0; accent-color: var(--gold); }
textarea { padding: 12px; line-height: 1.8; resize: vertical; }
label { font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.mono, .numeric, .hero-amount, .metric-strip strong, .reward-summary strong { font-family: "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.orange { color: var(--orange); }
.success { color: #a3ccb3; display: inline-flex; gap: 7px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 21px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.console, .console:has(.simulation-workspace) { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: auto; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 22px; }
.brand > span:last-child { font-size: 24px; letter-spacing: 3px; font-weight: 450; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 3px; }
.brand-mark.small { width: 42px; height: 48px; border: none; border-radius: 0; box-shadow: none; font-size: 53px; line-height: 1; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 12px; border-radius: 4px; font-size: 14px; min-height: 39px; }
.sidebar nav a:hover { background: #ffffff05; }
.sidebar nav a.active { background: #dfb98024; color: var(--gold); }
.sidebar nav a.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--orange); border-radius: 2px; }
.nav-label { color: var(--muted); font-size: 11px; letter-spacing: .5px; padding: 13px 12px 5px; margin: 0; }
.sidebar-footer { margin-top: 22px; border-top: 1px solid var(--border); padding: 19px 12px 0; display: flex; align-items: center; gap: 13px; color: var(--text); font-size: 13px; }
.sidebar-footer small { display: block; color: var(--muted); font-size: 10px; }
.workspace, .workspace:has(.simulation-workspace) { padding: 0 28px 32px; max-width: none; min-width: 0; }
.utility-bar { min-height: 64px; margin: 0 -28px; padding: 0 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; gap: 16px; }
.utility-divider { margin: 0 15px; opacity: .5; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions button { background: transparent; border-color: transparent; min-height: 34px; font-size: 12px; }
.topbar-actions button + button { border-left: 1px solid var(--border); border-radius: 0; }
.topbar { margin: 28px 0 26px; display: flex; align-items: center; justify-content: space-between; }
.topbar .eyebrow { display: none; }
.page-description { color: var(--muted); margin-top: 9px; font-size: 13px; }
.panel { border-radius: 6px; background: var(--panel); border: 1px solid var(--border); }
.panel-heading { margin-bottom: 20px; }
.panel-heading h2 { font-size: 20px; }
.panel-heading > span { font-size: 12px; }
.icon-button { padding: 4px; min-height: 27px; border: 0; background: transparent; color: var(--gold); }
.icon-button .admin-icon { width: 16px; height: 16px; flex-basis: 16px; }
.copy-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; }
.copy-value > span { overflow-wrap: anywhere; }
.badge { border-radius: 4px; padding: 3px 8px; font-size: 11px; border: 1px solid #ffffff26; }
.badge.pending, .badge.anchoring { color: var(--orange); border-color: #e9954550; background: #e9954509; }
.badge.active, .badge.approved, .badge.curve, .badge.ready { color: var(--gold); border-color: #dfb98050; }
.badge.anchored, .badge.paid, .badge.graduated { color: #a3ccb3; }
.badge.rejected, .badge.failed { color: var(--danger); }
/* 总览：指标横条、趋势与待办、财务负债与邀请入口。 */
.metric-strip { display: grid; grid-template-columns: .8fr .8fr 1.3fr 1.3fr; padding: 25px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); margin-bottom: 22px; }
.metric-strip article { padding: 0 22px; border-right: 1px solid var(--border); min-width: 0; }
.metric-strip article:last-child { border: 0; }
.metric-strip span { display: block; color: var(--muted); font-size: 13px; }
.metric-strip strong { display: block; font-size: clamp(21px, 2.1vw, 31px); font-weight: 500; margin: 8px 0 4px; overflow-wrap: anywhere; }
.metric-strip small { font-size: 11px; color: var(--muted); }
.dashboard-main { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(245px, 1fr); gap: 20px; }
.chart { padding: 24px; min-width: 0; }
.chart svg { margin: 12px 0; width: 100%; display: block; }
.chart svg text { fill: var(--muted); font-size: 11px; }
.chart-legend { display: flex; gap: 20px; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 8px; }
.chart-legend i { width: 24px; height: 2px; }
.chart-data { margin-top: 8px; }
.chart-data summary { font-size: 11px; color: var(--muted); }
.chart-data .table-scroll { max-height: 280px; }
.pending-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; }
.pending-panel > a:not(.primary) { display: flex; gap: 13px; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pending-panel strong { font-family: monospace; font-size: 28px; color: var(--orange); margin-left: auto; }
.pending-panel > p { margin: 24px 0; }
.pending-panel .button-link { margin-top: auto; border-radius: 5px; padding: 10px; }
.dashboard-bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; margin-top: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 26px; }
.dashboard-bottom dl { font-size: 15px; row-gap: 19px; margin: 24px 0; }
.dashboard-bottom dt { font-size: 14px; }
.dashboard-bottom dd { font-family: monospace; }
.referral-block { border-left: 1px solid var(--border); padding-left: 32px; }
.referral-code { margin: 30px 0 14px; background: #ffffff03; padding: 15px; border: 1px solid var(--border); border-radius: 4px; color: var(--gold); font-size: 23px; }
.referral-code .copy-value { width: 100%; justify-content: space-between; }
/* 上传存储盘：已用进度条与剩余下限刻度，暂停上传时整块标红。 */
.storage-panel { margin-top: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 26px; }
.storage-panel dl { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 10px 14px; margin: 18px 0 10px; font-size: 14px; }
.storage-panel dd { font-family: monospace; margin: 0; }
.storage-meter { position: relative; height: 10px; border-radius: 5px; background: #ffffff10; margin-top: 18px; overflow: hidden; }
.storage-meter span { display: block; height: 100%; background: var(--gold); }
.storage-meter i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
.storage-panel.is-blocked { border-color: #f2a19b80; }
.storage-panel.is-blocked .storage-meter span, .storage-panel.is-blocked .storage-state, .storage-alert { color: var(--danger); }
.storage-panel.is-blocked .storage-meter span { background: var(--danger); }
.dashboard-secondary { margin-top: 24px; }
.dashboard-secondary summary { color: var(--muted); padding: 10px 0; }
/* 数据页面：本页筛选、可选中主列表、固定详情栏。 */
.records-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.record-filters, .toolbar-actions { display: flex; gap: 8px; align-items: center; }
.record-filters { flex: 1; min-width: 0; }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid #ffffff26; border-radius: 4px; padding-left: 12px; margin: 0; flex: 1; max-width: 340px; }
.search-field input { background: transparent; border: none; width: 100%; margin: 0; min-width: 100px; }
.search-field .admin-icon { color: var(--muted); width: 18px; }
.record-filters select { margin: 0; width: auto; max-width: 165px; font-size: 12px; }
.record-filters button, .toolbar-actions button { white-space: nowrap; font-size: 12px; }
.record-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); min-height: 640px; }
.record-master { min-width: 0; display: flex; flex-direction: column; }
.record-detail { border-left: 1px solid var(--border); margin-left: 20px; padding: 12px 0 24px 24px; min-width: 0; }
.records-evidence .record-split { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.5fr); }
.records-settlements .record-split, .records-audit .record-split { grid-template-columns: minmax(280px, .7fr) minmax(0, 1.5fr); }
.records-plans .record-split { grid-template-columns: minmax(0, 1.8fr) minmax(290px, .8fr); }
.records-categories .record-split { grid-template-columns: 1fr 1fr; }
.records-rewards .record-split { grid-template-columns: minmax(0, 2.2fr) minmax(270px, .8fr); }
.records-withdrawals .record-split { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
.data-panel { border: 0; background: transparent; min-width: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { background: #ffffff05; color: #b3b6ab; padding: 13px 11px; font-weight: 450; }
td { border-top: 0; border-bottom: 1px solid var(--border); padding: 17px 11px; max-width: 180px; }
th.numeric, td.numeric { text-align: right; }
tr.selected { background: #dfb98020; }
tr.selected td:first-child { box-shadow: inset 3px 0 var(--orange); }
.record-link { min-height: 24px; padding: 0; border: 0; background: transparent; justify-content: flex-start; text-align: left; font-size: inherit; }
.record-link:hover { color: var(--gold); background: transparent; }
.row-actions button { background: transparent; border: 0; padding: 3px; min-height: 26px; margin: 0; }
.row-actions .admin-icon { width: 16px; height: 16px; flex-basis: 16px; }
.pagination { margin-top: auto; padding: 22px 0 0; border-top: 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 12px; }
.pagination button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.enabled-state { font-size: 11px; color: var(--muted); }
.enabled-state.on { color: var(--gold); }
.record-detail h2 { font-size: 22px; overflow-wrap: anywhere; }
.detail-facts { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.3fr); row-gap: 20px; margin: 26px 0; }
.detail-facts dt { font-size: 12px; align-self: center; }
.detail-facts dd { font-size: 13px; overflow-wrap: anywhere; align-self: center; }
.detail-section { border-top: 1px solid var(--border); padding-top: 25px; margin-top: 25px; }
.detail-section p { line-height: 1.9; }
.hero-amount { color: var(--gold); font-size: clamp(26px, 2.8vw, 42px); margin: 10px 0 20px; overflow-wrap: anywhere; }
.hero-amount small { font-size: 14px; color: var(--muted); font-weight: 400; }
.hero-amount .mono { font: inherit; }
.relationship { display: flex; align-items: center; gap: 18px; }
.relationship span, .relationship strong { padding: 7px 18px; border: 1px solid #ffffff26; border-radius: 4px; font-family: monospace; font-size: 14px; }
.relationship strong { color: var(--gold); border-color: #dfb98060; }
.record-item { display: flex; width: 100%; gap: 15px; align-items: flex-start; text-align: left; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 23px 16px; min-height: 105px; background: transparent; }
.record-item.selected { background: #dfb98020; box-shadow: inset 3px 0 var(--orange); }
.record-item > span:not(.admin-icon):not(.badge) { flex: 1; min-width: 0; }
.record-item strong { display: block; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.record-item small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.record-item .badge { margin-left: auto; flex: 0 0 auto; }
.record-item > .admin-icon { width: 26px; height: 30px; margin-top: 2px; }
.document-heading { display: flex; align-items: center; gap: 16px; }
.document-heading > .admin-icon { width: 45px; height: 50px; flex-basis: 45px; }
.document-heading .badge { margin-left: auto; }
.hash-line { display: flex; align-items: center; gap: 18px; margin: 25px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.hash-line .copy-value { color: var(--text); }
.evidence-steps { display: flex; list-style: none; padding: 10px 0; margin: 0; }
.evidence-steps li { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.evidence-steps li span { border-radius: 50%; border: 1px solid var(--muted); background: var(--bg); width: 23px; height: 23px; text-align: center; margin-top: -12px; }
.evidence-steps .complete { color: var(--orange); border-color: #e9954560; }
.evidence-steps .complete span { border-color: var(--orange); }
.review-reason { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.detail-actions .primary { min-width: 160px; }
#config-form .primary { width: 100%; margin-top: 14px; }
#config-form .form-grid { grid-template-columns: 1fr; gap: 0; }
#config-form .muted { font-size: 11px; line-height: 1.8; margin: 10px 0 20px; }
#withdrawal-review textarea { min-height: 105px; }
#withdrawal-review > label:has(select) { display: none; }
.approval-actions { display: flex; gap: 14px; margin-top: 25px; }
.approval-actions .primary { flex: 1; }
.danger-button { color: var(--danger); border-color: #f2a19b60; background: transparent; }
.approval-note { margin-top: 20px; line-height: 1.8; }
.purchase-summary { border: 1px solid var(--border); border-radius: 6px; background: var(--panel); padding: 25px; margin-bottom: 25px; }
.purchase-numbers { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.purchase-numbers > div + div { border-left: 1px solid var(--border); padding-left: 20px; }
.purchase-numbers span { color: var(--muted); font-size: 12px; }
.purchase-numbers strong { display: block; margin-top: 10px; font-size: 23px; font-weight: 450; }
.purchase-numbers strong span { color: var(--text); font-size: inherit; }
.purchase-numbers .badge { margin-top: 8px; }
.purchase-progress { display: flex; align-items: center; gap: 15px; margin: 22px 0; color: var(--muted); font-size: 12px; }
progress { appearance: none; height: 7px; border: 0; border-radius: 2px; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #ffffff10; border-radius: 2px; }
progress::-webkit-progress-value { background: var(--gold); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--gold); }
.purchase-progress progress { flex: 1; width: auto; }
.purchase-timeline { list-style: none; padding: 20px 0 0; margin: 0 0 12px; border-top: 1px solid var(--border); }
.purchase-timeline li { padding: 7px 0 7px 18px; border-left: 2px solid #dfb98050; display: flex; gap: 28px; font-size: 13px; }
.purchase-timeline time { font-family: monospace; color: var(--muted); }
.reward-summary { padding: 21px 24px; border-radius: 5px; background: #dfb98016; margin-bottom: 24px; }
.reward-summary > p { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.reward-summary > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.reward-summary article { padding: 0 24px; border-right: 1px solid var(--border); }
.reward-summary article:first-child { padding-left: 0; }
.reward-summary article:last-child { border: 0; }
.reward-summary article > span { display: block; color: var(--muted); }
.reward-summary strong { display: block; font-size: 30px; color: var(--gold); font-weight: 450; margin-top: 6px; }
.reward-summary small { margin-left: 8px; }
.token-identity { display: flex; align-items: center; gap: 22px; padding: 24px 0; border-block: 1px solid var(--border); }
.token-identity img { width: 72px; height: 72px; border-radius: 50%; }
.token-identity > .admin-icon { width: 55px; height: 55px; flex-basis: 55px; color: var(--gold); }
.token-identity h3 { margin: 0; }
.token-price { font-size: 30px; }
.text-button { display: inline-flex; color: var(--orange); background: none; border: 0; padding: 8px 0; font-size: 13px; }
.audit-time { max-width: 90px; font-family: monospace; font-size: 12px; }
.audit-timeline .record-item strong { color: var(--gold); font-size: 14px; }
.audit-json { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; background: var(--panel); border: 1px solid var(--border); border-radius: 5px; padding: 22px; }
.award-bar { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 14px; align-items: center; margin: 17px 0; font-size: 12px; }
.award-bar b { font-family: monospace; font-weight: 450; }
.award-bar progress { width: 100%; }
.journal-disclosure { margin-top: 28px; }
.journal-disclosure > summary { font-size: 16px; font-weight: 550; margin-bottom: 18px; }
.embedded-journal > .panel-heading, .embedded-journal > .journal-summary { display: none; }
.embedded-journal h3 { margin-top: 25px; }
.embedded-journal th, .embedded-journal td { padding: 12px 9px; }
.embedded-journal .journal-awards { max-height: 340px; }
/* 图标工坊与 AI 审核策略。 */
.icon-editor-body { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 48px; margin: 40px 0 20px; }
.icon-stage { width: min(100%, 350px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.icon-editor .icon-stage img { width: 70%; height: 70%; object-fit: contain; border-radius: 0; border: 0; }
.icon-editor [data-icon-empty] { border: 0; width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.icon-stage .admin-icon { width: 70px; height: 70px; }
.icon-spec { text-align: center; margin: 16px 0 26px; }
.icon-editor .upload-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; border: 1px dashed #ffffff35; border-radius: 5px; position: relative; cursor: pointer; }
.upload-zone strong { color: var(--gold); font-size: 16px; }
.upload-zone span:not(.admin-icon) { color: var(--muted); font-size: 12px; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-zone:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.icon-previews { border-left: 1px solid var(--border); padding-left: 35px; min-height: 580px; }
.icon-previews > p { margin-top: 10px; }
.icon-previews section { margin-top: 38px; }
.icon-previews h3 { border-left: 3px solid var(--gold); padding-left: 10px; }
.token-preview { display: flex; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 5px; padding: 22px; }
.icon-editor .token-preview img { width: 42px; height: 42px; object-fit: contain; border: 0; border-radius: 50%; }
.token-preview strong { display: block; font-size: 19px; }
.token-preview small { display: block; color: var(--muted); margin-top: 4px; }
.icon-editor:not(.platform-editor) .icon-editor-body { display: block; }
.icon-editor:not(.platform-editor) .icon-stage { width: 180px; }
.prompt-editor { border: 1px solid var(--border); background: var(--panel); border-radius: 5px; overflow: hidden; }
.prompt-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.prompt-workspace aside { border-right: 1px solid var(--border); padding: 26px; }
.prompt-workspace h2 { font-size: 18px; }
.prompt-workspace aside > p { margin-top: 26px; }
.prompt-workspace .prompt-hint { line-height: 1.9; }
.prompt-text { margin: 0; display: flex; }
.prompt-editor textarea[name="prompt"] { margin: 0; padding: 26px; border: 0; background: transparent; border-radius: 0; min-height: 370px; font-family: "SFMono-Regular", "PingFang SC", monospace; font-size: 13px; line-height: 1.95; }
.prompt-footer { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--border); }
.prompt-footer > div { display: flex; gap: 10px; }
.prompt-editor > .form-error:not(:empty) { padding: 0 24px 16px; }
.records-heading { margin: 30px 0 20px; }
/* 系统邀请码：批量生成表单与本次生成结果并排，窄屏上下排列。 */
.referral-generator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.generator-form, .generator-result { padding: 24px; }
.generator-form > .muted { margin: 10px 0 20px; line-height: 1.8; }
.generator-fields { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 16px; }
.generator-codes { list-style: none; margin: 14px 0 0; padding: 0; max-height: 280px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.generator-codes .copy-value { justify-content: space-between; width: 100%; color: var(--gold); }
.referral-auto { padding: 18px 24px; }
.referral-auto .check { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.referral-auto p { line-height: 1.8; }
.file-types { padding: 18px 24px; margin-top: 20px; }
.file-types h2 { font-size: 15px; margin-bottom: 12px; }
.file-type-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
.file-types .check { margin: 0; padding: 6px 0; color: var(--text); }
.file-types .check .muted { font-size: 12px; }
.file-types > p { line-height: 1.8; margin-top: 10px; }
.referral-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.referral-filter { display: flex; gap: 14px; flex-wrap: wrap; }
.referral-filter label { margin: 0; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.referral-filter select { width: auto; min-width: 150px; margin: 0; }
.badge.unused { color: var(--gold); border-color: #dfb98050; }
.badge.used { color: #a3ccb3; }
.badge.void, .badge.cancelled { color: var(--muted); }
/* 奖励规则：局部标签页、右侧生效说明、独立限额保存。 */
.rules-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow: auto; }
.rules-tabs button { border: 0; background: transparent; border-radius: 0; padding: 13px 22px; white-space: nowrap; border-bottom: 3px solid transparent; }
.rules-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--orange); }
.rules-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; }
.rules-context { border-left: 1px solid var(--border); padding-left: 28px; }
.rules-context h3 { font-size: 16px; }
.rules-context p { line-height: 1.9; }
.rules-context .gold { float: right; }
.rules-context .badge { font-size: 10px; display: block; width: fit-content; margin-top: 12px; }
.rules-context dl { grid-template-columns: 1fr; row-gap: 8px; }
.rules-context dd { text-align: left; font-family: monospace; margin-bottom: 10px; }
.section-heading { display: flex; align-items: baseline; gap: 15px; margin-bottom: 18px; flex-wrap: wrap; }
.section-description { margin: 18px 0 24px; line-height: 1.9; }
.referral-table td { padding: 8px 14px; }
.referral-table th { padding: 11px 14px; }
.percent-input { display: flex; gap: 9px; align-items: center; margin: 0; }
.percent-input input { width: 90px; min-height: 30px; padding: 4px 8px; margin: 0; font-family: monospace; }
.referral-table progress { width: 100%; max-width: 280px; height: 10px; }
.referral-table td:last-child { width: 43%; }
.rule-summary { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 28px; }
.rule-summary table { margin-top: 20px; }
.rules-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 18px 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 2; }
.rules-save .primary { min-width: 160px; }
.rules-layout .rules-form { padding: 0; border: 0; background: transparent; }
.rules-layout .rules-form > p { line-height: 1.9; }
.rules-layout [data-rule-panel] { min-height: 360px; }
.fee-explanation { margin: 28px 0; padding: 24px; background: var(--panel); border: 1px solid var(--border); }
.fee-explanation > strong { display: block; color: var(--gold); font-size: 36px; margin-bottom: 20px; }
.fee-explanation p { margin: 14px 0; line-height: 1.9; }
/* 模拟保留全部真实参数和状态，仅调整布局密度与视觉层级。 */
.simulation-workspace { gap: 24px; }
.sim-config > h2 { display: none; }
.sim-config > .sim-note { margin: 0 0 10px; }
.sim-config .sim-tabs { margin-top: 8px; }
.sim-tabs button { font-size: 14px; }
.sim-config [data-sim-panel] { background: transparent; border-left: 0; border-right: 0; border-radius: 0; }
.sim-plan-table { min-width: 900px; }
.sim-plan-table th:nth-child(1) { width: 8%; }
.sim-plan-table th:nth-child(2) { width: 25%; }
.sim-plan-table th:nth-child(3) { width: 12%; }
.sim-plan-table th:nth-child(4) { width: 29%; }
.sim-plan-table th:nth-child(5) { width: 16%; }
.sim-plan-table th:nth-child(6) { width: 10%; }
.sim-plan-table th, .sim-plan-table td { padding: 12px 10px; }
.sim-config input { min-height: 32px; }
.sim-config input[type="checkbox"] { min-height: 0; }
.sim-config-actions { border: 0; background: #ffffff03; padding: 14px 10px; }
.sim-config-actions button { font-size: 12px; }
.sim-run { padding: 20px; border-radius: 5px; }
.simulation-form { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.simulation-form h2 { grid-column: 1 / -1; font-size: 18px; }
.simulation-form input { min-height: 34px; }
.simulation-form .primary { min-height: 36px; }
.sim-results { border: 0; background: transparent; }
.sim-result-heading { padding: 0; }
.sim-result-heading > h2 { display: none; }
.sim-result-toolbar { padding: 16px 0; }
.sim-user-layout { grid-template-columns: 220px minmax(0, 1fr); }
.sim-user-list { padding: 20px 18px 20px 0; }
.sim-user-detail { padding: 0 0 20px 24px; }
.sim-results .simulation-calendar-grid button { min-height: 70px; }
.sim-results .simulation-calendar-grid button[aria-current="date"] { background: #e9954520; outline-color: var(--orange); }
.sim-user-list button[aria-pressed="true"] { box-shadow: inset 3px 0 var(--orange); }
.sim-empty { padding: 55px 24px; }
dialog { width: min(720px, calc(100vw - 32px)); padding: 28px; background: var(--panel); }
.empty button { margin: 16px auto 0; display: flex; }
/* 中窄屏不隐藏菜单或业务操作；表格只在自身容器内滚动。 */
@media (min-width: 1700px) { .workspace, .workspace:has(.simulation-workspace) { padding-inline: 42px; } .utility-bar { margin-inline: -42px; padding-inline: 42px; } }
@media (max-width: 1200px) {
  .console, .console:has(.simulation-workspace) { grid-template-columns: 190px minmax(0, 1fr); }
  .workspace, .workspace:has(.simulation-workspace) { padding-inline: 20px; }
  .utility-bar { margin-inline: -20px; padding-inline: 20px; }
  .sidebar { padding-inline: 10px; }
  .sidebar nav a { gap: 9px; padding-inline: 9px; font-size: 13px; }
  .brand > span:last-child { font-size: 22px; }
  .record-split { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); }
  .records-toolbar { align-items: flex-start; }
  .record-filters { flex-wrap: wrap; }
  .dashboard-main { grid-template-columns: minmax(0, 1fr) 240px; }
  .metric-strip article { padding-inline: 14px; }
  .record-detail { margin-left: 16px; padding-left: 20px; }
  .rules-layout { gap: 22px; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
  .rules-context { padding-left: 20px; }
  .icon-editor-body { gap: 25px; }
  .icon-previews { padding-left: 24px; }
}
@media (max-width: 980px) {
  .storage-panel dl { grid-template-columns: auto 1fr; }
  h1 { font-size: 30px; }
  .record-split, .records-evidence .record-split, .records-settlements .record-split,
  .records-audit .record-split, .records-plans .record-split, .records-categories .record-split,
  .records-rewards .record-split, .records-withdrawals .record-split { grid-template-columns: minmax(0, 1fr); }
  .record-detail { border-left: 0; border-top: 1px solid var(--border); margin: 28px 0 0; padding: 25px 0 0; }
  .record-list { max-height: 420px; overflow: auto; }
  .dashboard-main, .dashboard-bottom { grid-template-columns: minmax(0, 1fr); }
  .pending-panel > a:not(.primary) { padding: 18px 0; }
  .referral-block { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .referral-generator, .generator-fields { grid-template-columns: minmax(0, 1fr); }
  .metric-strip { grid-template-columns: 1fr 1fr; gap: 25px 0; }
  .metric-strip article:nth-child(2) { border: 0; }
  .rules-layout { grid-template-columns: minmax(0, 1fr); }
  .rules-context { border: 0; padding: 20px 0; }
  .icon-editor-body { grid-template-columns: minmax(0, 1fr); }
  .icon-previews { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--border); min-height: 0; }
  .prompt-workspace { grid-template-columns: 170px minmax(0, 1fr); }
  .prompt-workspace aside { padding: 20px; }
  .simulation-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-user-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .sim-results .simulation-calendar-grid button { padding: 8px 4px; }
}
@media (max-width: 700px) {
  .console, .console:has(.simulation-workspace) { display: block; }
  .sidebar { height: auto; position: static; display: block; padding: 14px; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .sidebar .brand { margin: 0 0 14px; }
  .brand-mark.small { width: 32px; height: 34px; font-size: 38px; }
  .brand > span:last-child { font-size: 20px; }
  .brand small { font-size: 9px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; gap: 5px; padding-bottom: 5px; }
  .sidebar nav a { white-space: nowrap; flex-shrink: 0; }
  .sidebar nav a span { display: inline-block; }
  .sidebar .nav-label, .sidebar-footer { display: none; }
  .workspace, .workspace:has(.simulation-workspace) { padding: 0 16px 24px; }
  .utility-bar { margin-inline: -16px; padding-inline: 16px; min-height: 50px; }
  .utility-bar > span { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar { margin: 24px 0; }
  .topbar h1 { font-size: 28px; }
  .record-filters { flex: 1 1 100%; }
  .record-filters .search-field { max-width: none; flex-basis: 100%; }
  .record-filters select { flex: 1; max-width: none; }
  .toolbar-actions { flex-wrap: wrap; }
  .chart, .pending-panel, .dashboard-bottom { padding: 18px; }
  .metric-strip strong { font-size: 21px; }
  .chart svg text { font-size: 13px; }
  .purchase-numbers { grid-template-columns: 1fr 1fr; }
  .purchase-numbers > div + div { border: 0; padding: 0; }
  .purchase-summary { padding: 18px; }
  .purchase-numbers strong { font-size: 20px; }
  .purchase-timeline li { gap: 12px; font-size: 11px; }
  .reward-summary { padding: 18px; }
  .reward-summary article { padding-inline: 10px; }
  .reward-summary article > span { font-size: 11px; }
  .reward-summary strong { font-size: 18px; overflow-wrap: anywhere; }
  .reward-summary small { display: block; margin-left: 0; }
  .prompt-workspace { grid-template-columns: minmax(0, 1fr); }
  .prompt-workspace aside { border-right: 0; border-bottom: 1px solid var(--border); }
  .prompt-workspace aside > p { margin-top: 12px; }
  .prompt-editor textarea[name="prompt"] { padding: 18px; }
  .prompt-footer { align-items: start; flex-direction: column; padding: 18px; }
  .rules-tabs { gap: 0; }
  .rules-tabs button { padding-inline: 14px; }
  .rules-save { gap: 12px; }
  .rules-save > span { font-size: 11px; }
  .rules-save .primary { min-width: 110px; }
  .simulation-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-user-layout { grid-template-columns: minmax(0, 1fr); }
  .sim-user-list { border-right: 0; padding: 15px 0; }
  .sim-user-list nav { flex-direction: row; max-height: 90px; }
  .sim-user-detail { padding: 0; }
  .sim-result-heading { flex-wrap: wrap; }
  .sim-result-toolbar { align-items: start; flex-direction: column; gap: 10px; }
  .sim-result-toolbar label { flex-wrap: wrap; }
  .simulation-calendar { min-width: 0; flex-basis: 100%; }
  .sim-results .simulation-calendar-grid small { font-size: 10px; }
  .sim-results .simulation-calendar-grid button { padding: 6px 2px; min-height: 65px; }
}
/* 截图验收修正：消除旧图标容器对菜单文字的宽度约束。 */
.sidebar nav a span:not(.admin-icon) { width: auto; font-size: inherit; text-align: left; white-space: nowrap; }
.sidebar nav a { color: #c5c8bf; }
.sidebar nav a .admin-icon { width: 21px; }
.topbar { border-bottom: 0; padding-bottom: 0; }
.topbar h1 { font-size: 36px; }
.sidebar-footer small { margin: 3px 0 0; }
.sidebar { background: #121412; }
table { font-size: 14px; }
th { font-size: 13px; }
.detail-facts dt { font-size: 14px; }
.detail-facts dd { font-size: 14px; }
.record-item small { font-size: 12px; }
.referral-table td { padding-block: 6px; }
.referral-table .percent-input input { min-height: 30px; }
.rules-context dl { grid-template-columns: 1fr 1fr; gap: 15px 8px; }
.rules-context dd { text-align: right; margin-bottom: 0; }
@media (max-width: 700px) { .topbar h1 { font-size: 28px; } table { font-size: 12px; } }
/* 二轮对照：恢复首屏的指标、图表、负债纵向比例，并让全部导航在桌面可见。 */
.sidebar nav { gap: 0; }
.sidebar nav a { min-height: 36px; padding-block: 7px; }
.nav-label { padding-top: 9px; padding-bottom: 4px; }
.sidebar-footer { margin-top: 16px; padding-top: 16px; }
.utility-bar { min-height: 48px; }
.topbar { margin-block: 24px; }
[data-page="dashboard"] .page-description { display: none; }
.metric-strip { padding-block: 18px; }
.metric-strip strong { font-size: 30px; line-height: 1.2; }
.dashboard-main .chart { position: relative; padding: 22px; }
.dashboard-main .chart .panel-heading { margin-bottom: 12px; }
.dashboard-main .chart .panel-heading > span { display: none; }
.dashboard-main .chart-legend { position: absolute; right: 22px; top: 28px; }
.dashboard-main .chart svg { height: 260px; margin: 10px 0; }
.dashboard-main .chart > p { font-size: 11px; padding-right: 110px; }
.dashboard-main .chart-data { margin: 0; }
.dashboard-main .chart-data > summary { text-align: right; margin-top: -18px; }
.dashboard-main .chart-data[open] { margin-top: 12px; }
.dashboard-main .chart-data[open] > summary { margin-top: 0; }
.pending-panel > a:not(.primary) { padding-block: 22px; }
.dashboard-bottom { padding: 24px; }
.dashboard-bottom dl { margin-block: 22px; }
.dashboard-secondary { margin-top: 12px; }
.sim-config > .sim-note, #simulation-config-form > p.muted:first-child { display: none; }
.sim-config .sim-tabs { margin-top: 0; }
.sim-plan-table th, .sim-plan-table td { padding-block: 7px; }
.sim-config input { min-height: 30px; }
.sim-config-actions { padding-block: 10px; }
#simulation-config-form > p.muted:last-child { font-size: 11px; margin-top: 6px; }
.simulation-workspace { gap: 18px; }
.simulation-form { display: block; }
.sim-run { padding: 14px 18px; }
.sim-run-primary { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
.sim-run-primary .primary { align-self: end; }
.sim-advanced { margin-top: 12px; }
.sim-advanced summary { font-size: 11px; color: var(--muted); }
.sim-advanced-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sim-run > p { margin-top: 8px; font-size: 10px; line-height: 1.7; }
@media (max-width: 980px) {
  .sim-run-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-advanced-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-main .chart-legend { position: static; margin-bottom: 4px; }
}
@media (max-width: 700px) {
  .sidebar nav { gap: 4px; }
  .metric-strip strong { font-size: 22px; }
  .dashboard-main .chart svg { height: auto; }
  .dashboard-main .chart > p { padding-right: 0; }
  .dashboard-main .chart-data > summary { margin-top: 8px; text-align: left; }
  .sim-run-primary, .sim-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 工作台首屏密度按图稿校准，长文本和完整凭据仍可展开读取。 */
.data-panel td { padding-block: 10px; }
.records-plans .data-panel td, .records-categories .data-panel td { padding-block: 18px; }
[data-page="users"] .page-description { display: none; }
.records-evidence .record-detail > .detail-facts:first-of-type { grid-template-columns: .7fr 1.3fr .7fr 1.3fr; gap: 18px 12px; }
.records-evidence .record-detail > .detail-facts:first-of-type dt { font-size: 12px; }
.records-evidence .record-detail > .detail-facts:first-of-type dd { font-size: 12px; }
.records-settlements .record-detail .detail-section { padding-top: 20px; margin-top: 20px; }
.records-settlements .record-detail td { padding-block: 12px; }
.settlement-total { color: var(--gold); background: #dfb98012; }
[data-page="simulation"] { position: relative; }
[data-page="simulation"] .utility-bar { position: absolute; right: 28px; top: 18px; border: 0; min-height: 32px; padding: 0; margin: 0; }
[data-page="simulation"] .utility-bar > span { display: none; }
[data-page="simulation"] .topbar { margin-top: 22px; margin-bottom: 25px; }
[data-page="simulation"] .topbar h1 { font-size: 32px; }
[data-page="simulation"] .page-description { display: none; }
.sim-plan-table td { padding-block: 5px; }
.sim-plan-table input { background: transparent; border-color: transparent; padding-block: 3px; min-height: 28px; }
.sim-plan-table input:hover, .sim-plan-table input:focus { border-color: #dfb98060; background: #ffffff03; }
.sim-config-actions button { min-height: 30px; padding-block: 5px; }
.sim-run > p { max-height: 35px; overflow: auto; }
@media (max-width: 980px) {
  .records-evidence .record-detail > .detail-facts:first-of-type { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.3fr); }
}
@media (max-width: 700px) {
  [data-page="simulation"] .utility-bar { position: static; min-height: 48px; }
  [data-page="simulation"] .topbar h1 { font-size: 28px; }
}
/* 审核和产品配置保留设计图中的成组表面，避免主从区域退化为平铺控件。 */
.records-evidence .record-master, .records-plans .record-master { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.records-evidence .record-detail, .records-plans .record-detail { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 26px 22px; }
.records-evidence .pagination, .records-plans .pagination { padding: 18px 16px; }
.queue-heading { padding: 20px 18px; border-bottom: 1px solid var(--border); }
.queue-heading h2 { font-size: 18px; }
.queue-heading span { font-size: 14px; color: var(--muted); margin-left: 6px; }
.term-badge { color: var(--orange); background: #e9954514; border-radius: 4px; padding: 3px 9px; white-space: nowrap; }
input[type="checkbox"][role="switch"] { appearance: none; position: relative; width: 37px; height: 21px; min-height: 21px; flex: 0 0 37px; padding: 0; border: 1px solid #ffffff30; border-radius: 20px; background: #ffffff12; cursor: pointer; }
input[type="checkbox"][role="switch"]::before { content: ''; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px; border-radius: 50%; background: #e9e9e1; transition: transform .15s; }
input[type="checkbox"][role="switch"]:checked { background: var(--gold); border-color: var(--gold); }
input[type="checkbox"][role="switch"]:checked::before { transform: translateX(16px); }
@media (max-width: 980px) { .records-evidence .record-detail, .records-plans .record-detail { margin-top: 20px; } }
/* 行情目录使用真实图标与双层名称，保持金融数值的等宽阅读。 */
.mono, .numeric, .hero-amount, .metric-strip strong, .reward-summary strong { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 400; }
.token-cell { display: flex; align-items: center; gap: 12px; text-align: left; }
.token-cell img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.token-cell > .admin-icon { width: 28px; height: 28px; flex-basis: 28px; color: var(--gold); }
.token-cell strong { display: block; font-size: 14px; font-weight: 550; }
.token-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.records-tokens .record-master, .records-rewards .record-master { background: var(--panel); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.records-tokens .record-detail, .records-rewards .record-detail { background: var(--panel); border: 1px solid var(--border); border-radius: 5px; padding: 24px 20px; }
.records-tokens .data-panel td { padding-block: 17px; }
.records-tokens .pagination, .records-rewards .pagination { padding: 18px 16px; }
.records-rewards .detail-facts { grid-template-columns: minmax(100px, 1fr) minmax(0, 1.2fr); gap: 18px 8px; }
.records-rewards .detail-facts dt, .records-rewards .detail-facts dd { font-size: 12px; }
.reward-summary article > span { display: flex; align-items: center; gap: 9px; }
.reward-summary .admin-icon { color: var(--gold); }
.reward-summary article:nth-child(2) .admin-icon { color: var(--orange); }
.records-users .detail-section .detail-facts { background: #ffffff03; padding: 16px 12px; border-radius: 4px; }
@media (max-width: 700px) { .reward-summary article > span { gap: 5px; } .reward-summary .admin-icon { width: 15px; height: 15px; flex-basis: 15px; } }
/* 审计日期分组、编辑器行号与图标预览尺寸。 */
.records-audit .record-split { grid-template-columns: minmax(340px, .95fr) minmax(0, 1.4fr); }
.audit-day { padding: 12px 18px 20px; margin: 0; font-size: 23px; border-bottom: 1px solid var(--border); }
.audit-timeline .record-item { position: relative; padding-left: 28px; min-height: 90px; }
.audit-timeline .record-item::before { content: ''; position: absolute; width: 7px; height: 7px; left: 11px; top: 30px; border: 1px solid var(--muted); border-radius: 50%; background: var(--bg); }
.audit-timeline .record-item::after { content: ''; position: absolute; left: 15px; top: 40px; bottom: -29px; border-left: 1px solid var(--border); }
.audit-timeline .record-item:last-child::after { display: none; }
.audit-timeline .record-item.selected::before { border-color: var(--orange); }
.platform-editor .icon-stage { width: min(100%, 400px); }
.platform-editor .upload-zone { min-height: 165px; justify-content: center; }
.prompt-code { display: grid; grid-template-columns: 46px minmax(0, 1fr); min-width: 0; }
.prompt-code [data-prompt-lines] { margin: 0; padding: 26px 0; text-align: right; color: var(--muted); background: transparent; border: 0; font: 13px/1.95 ui-monospace, Menlo, monospace; max-height: 370px; overflow: hidden; user-select: none; }
.prompt-code .prompt-text { min-width: 0; }
.prompt-code textarea[name="prompt"] { font: 13px/1.95 ui-monospace, "PingFang SC", Menlo, monospace; padding-left: 18px; resize: none; height: 370px; }
@media (max-width: 980px) { .records-audit .record-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .prompt-code [data-prompt-lines] { padding-top: 18px; } .prompt-code { grid-template-columns: 30px minmax(0, 1fr); } }
