:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --line: #e2e7ec;
  --text: #18212b;
  --muted: #6c7782;
  --orange: #c92939;
  --orange-soft: #fff0f2;
  --green: #188a61;
  --red: #c54646;
  --shadow: 0 8px 24px rgba(28, 39, 49, .06);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 78px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: #19242d; color: #fff; }
.eyebrow, .section-kicker { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: #8997a3; }
.eyebrow { color: #f0a1aa; margin-bottom: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: 21px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 18px; font-weight: 650; }
.top-actions, .toolbar { display: flex; align-items: center; gap: 10px; }
.connection { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: #b9c5ce; margin-right: 10px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #f0a66e; display: inline-block; }
.connection.online i { background: #52c892; }
main { max-width: 1480px; padding: 24px 34px 46px; margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 112px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-button { width: 100%; text-align: left; color: var(--text); }
.stat-button:hover { border-color: #c6d0d8; background: #fbfcfd; }
.stat-card.accent { border-top: 3px solid var(--orange); padding-top: 15px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-head .button { flex: 0 0 auto; }
.stat-card strong { display: block; margin: 6px 0 3px; font-size: 28px; line-height: 1; font-weight: 650; }
.stat-card small { font-size: 12px; }
.console-page .stock-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 22px 22px; }
.console-page .stock-tier-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 15px 16px; background: #fafbfc; }
.console-page .stock-tier-card > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.console-page .stock-tier-card strong { display: block; font-size: 24px; line-height: 1.3; margin-top: 8px; font-variant-numeric: tabular-nums; }
.console-page .stock-tier-card small { font-size: 11px; font-weight: 400; color: var(--muted); }
.console-page .stock-tier-card > small { display: block; margin-top: 5px; }
.console-page .statistics-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.console-page .statistics-controls label { font-size: 12px; color: var(--muted); margin: 0; }
.console-page .statistics-controls input { width: 150px; min-width: 0; height: 34px; margin: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text); }
.console-page .statistics-status { padding: 12px 22px 0; min-height: 32px; }
.console-page .statistics-metrics { margin: 16px 22px 20px; }
.console-page .statistics-metrics .stat-card { min-width: 0; box-shadow: none; border-radius: 8px; }
.console-page .statistics-metrics strong { margin: 12px 0 8px; font-size: 25px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.console-page .statistics-metrics small { line-height: 1.7; }
.console-page .statistics-tier-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px; }
.console-page .statistics-tier-heading h3 { font-size: 14px; }
.console-page .statistics-history-note { margin: 0; padding: 0 22px 20px; }
.console-page .credential-stock-summary { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.console-page .credential-stock-summary .statistics-tier-heading { padding-top: 18px; }
@media (max-width: 900px) {
  .console-page .daily-statistics > .panel-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .console-page .statistics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .console-page .stock-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 15px 16px; gap: 8px; }
  .console-page .stock-tier-card { padding: 12px; }
  .console-page .stock-tier-card > span { flex-wrap: wrap; gap: 2px 8px; }
  .console-page .statistics-metrics { margin: 14px 15px; gap: 8px; }
  .console-page .statistics-metrics .stat-card { padding: 14px 12px; }
  .console-page .statistics-metrics strong { font-size: 23px; }
  .console-page .statistics-controls { width: 100%; }
  .console-page .statistics-controls label { width: 100%; }
  .console-page .statistics-controls input { flex: 1; }
  .console-page .statistics-tier-heading { align-items: flex-start; flex-direction: column; gap: 4px; padding: 0 15px; }
  .console-page .statistics-status { padding-left: 15px; padding-right: 15px; }
  .console-page .statistics-history-note { padding: 0 15px 16px; }
}
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.panel-header.compact { padding-bottom: 14px; }
.section-kicker { margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 12px; }
.button { border: 1px solid transparent; min-height: 34px; padding: 0 14px; border-radius: 5px; font-weight: 600; transition: background .15s, border-color .15s; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: #ad1d2c; }
.button.secondary { background: #fff; color: #34414b; border-color: #cfd7de; }
.button.secondary:hover { background: #f4f7f9; }
.button.danger { color: var(--red); border-color: #edc9c9; background: #fff; }
.button.small { min-height: 29px; padding: 0 9px; font-size: 12px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; min-width: 1000px; width: 100%; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
th { color: #78838d; font-weight: 600; font-size: 12px; background: #fbfcfd; white-space: nowrap; }
td { color: #26343e; }
tr:last-child td { border-bottom: 0; }
.account-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e7edf1; object-fit: cover; display: grid; place-items: center; color: #6c7782; font-weight: 700; }
.account-name { font-weight: 650; }
.account-sub { color: var(--muted); font-size: 11px; margin-top: 1px; }
.profile-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; color: #53616c; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dot.offline { color: var(--muted); }
.task-mini { width: 190px; }
.task-mini-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.progress { height: 6px; background: #e9edf0; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width .25s; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 35px 18px; }
.task-list { padding: 10px 22px 18px; }
.task-card { border: 1px solid var(--line); padding: 14px 16px; margin-top: 10px; }
.task-head, .task-meta, .task-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-title { font-weight: 650; }
.task-meta { justify-content: flex-start; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 8px 0 10px; }
.task-meta b { color: var(--text); font-weight: 650; }
.task-error { margin: 7px 0 9px; color: #9b4f24; font-size: 12px; overflow-wrap: anywhere; }
.task-actions { justify-content: flex-end; margin-top: 11px; }
.task-status { padding: 3px 8px; border-radius: 3px; background: #eef2f4; color: #5f6d78; font-size: 11px; }
.task-status.running { color: #a62735; background: var(--orange-soft); }
.task-status.waiting_network { color: #8a5d12; background: #fff4d6; }
.task-status.completed { color: var(--green); background: #e8f7f0; }
.task-status.partial_success { color: #a95425; background: #fff2dd; }
.task-status.failed { color: var(--red); background: #fff0f0; }
.dialog { border: 0; border-radius: 8px; padding: 0; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--text); box-shadow: 0 20px 65px rgba(20, 31, 41, .24); }
.dialog.wide { width: min(760px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(13, 22, 29, .45); }
.console-page .dialog.statistics-history-dialog { width: min(1120px, calc(100vw - 32px)); overflow-x: hidden; }
.statistics-history-content { min-width: 0; padding: 18px 24px 24px; }
.statistics-history-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.statistics-history-range label { margin: 0; flex: 1 1 180px; min-width: 0; }
.statistics-history-range input { min-width: 0; }
.statistics-history-range .button { min-height: 41px; }
.statistics-history-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.statistics-history-status { min-height: 22px; margin: 15px 0 14px; overflow-wrap: anywhere; }
.statistics-history-summary-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; }
.console-page .statistics-history-dialog .statistics-history-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.console-page .statistics-history-summary .stat-card { min-width: 0; min-height: 82px; padding: 13px; box-shadow: none; border-radius: 8px; }
.console-page .statistics-history-summary .stat-card span { font-size: 11px; }
.console-page .statistics-history-summary .stat-card strong { margin: 12px 0 3px; font-size: 23px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statistics-history-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; overscroll-behavior-x: contain; }
.statistics-history-table { width: 100%; min-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.statistics-history-table th, .statistics-history-table td { padding: 12px 13px; font-size: 12px; }
.statistics-history-table .history-date, .statistics-history-table .history-face-value { white-space: nowrap; }
.statistics-history-table .history-tier-sales { width: 240px; min-width: 200px; }
.statistics-history-table .history-tier-sales span { display: block; line-height: 1.8; }
.statistics-history-table td:last-child { white-space: nowrap; }
.statistics-history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; }
@media (max-width: 600px) {
  .statistics-history-content { padding: 15px 16px 18px; }
  .statistics-history-range { gap: 9px; }
  .statistics-history-range label { flex: 1 1 calc(50% - 5px); }
  .statistics-history-range .button { flex: 1 1 calc(50% - 5px); }
  .console-page .statistics-history-dialog .statistics-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-history-presets { gap: 6px; }
  .statistics-history-presets > span:first-child { flex: 0 0 100%; }
  .statistics-history-pagination { align-items: flex-start; flex-direction: column; }
  .statistics-history-pagination .toolbar { width: 100%; justify-content: flex-end; }
}
.dialog > form, .dialog > .dialog-header, .dialog > .credential-list { padding-left: 24px; padding-right: 24px; }
.dialog > form { padding-top: 22px; padding-bottom: 22px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.icon-button { width: 28px; height: 28px; border: 0; background: transparent; font-size: 25px; line-height: 1; color: #7b8791; }
.dialog-note { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.code-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.code-line input { margin-top: 0; }
.login-status { min-height: 19px; color: var(--muted); font-size: 12px; margin-top: 7px; }
.login-mode { display: flex; gap: 4px; padding: 4px; margin: 0 0 15px; background: #f2f5f7; border: 1px solid var(--line); }
.mode-button { flex: 1; min-height: 31px; border: 0; background: transparent; color: var(--muted); border-radius: 3px; font-size: 12px; font-weight: 650; }
.mode-button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(28, 39, 49, .1); }
.login-panel[hidden] { display: none; }
.qr-layout { display: grid; grid-template-columns: 232px 1fr; align-items: center; gap: 18px; }
.qr-frame { width: 232px; height: 232px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; }
.qr-frame img { width: 220px; height: 220px; object-fit: contain; display: none; }
.qr-frame img.ready { display: block; }
.qr-frame span, #qrEmpty { color: var(--muted); font-size: 12px; text-align: center; padding: 16px; }
.qr-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.qr-side strong { font-size: 13px; }
.qr-side .login-status { margin: 0; }
#qrVerify { min-height: 38px; height: auto; padding-top: 7px; padding-bottom: 7px; white-space: normal; text-align: center; }
label { display: block; margin: 13px 0; color: #53616c; font-size: 12px; font-weight: 600; }
input, select { display: block; width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #ccd5dc; border-radius: 4px; outline: none; color: var(--text); background: #fff; }
input[hidden] { display: none !important; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #c929391d; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.account-summary { padding: 12px 14px; background: #f8fafb; border-left: 3px solid var(--orange); margin-bottom: 15px; }
.allocation-list { max-height: 390px; overflow: auto; padding-top: 4px; }
.allocation-row { display: grid; grid-template-columns: 26px 1fr 145px 135px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0f2; }
.allocation-row:last-child { border-bottom: 0; }
.allocation-row input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.allocation-row input[type=number], .allocation-row select { margin: 0; height: 34px; }
.allocation-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.allocation-total strong { font-size: 22px; }
.credential-list { max-height: 62vh; overflow: auto; padding-top: 16px; padding-bottom: 20px; }
.credential-note { position: sticky; top: 0; z-index: 1; margin-bottom: 8px; padding: 9px 11px; color: #7f5521; background: #fff6df; border: 1px solid #efd9aa; font-size: 12px; }
.credential-row { display: grid; grid-template-columns: 165px 1fr 76px; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f2; font-size: 12px; }
.credential-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #53616c; }
.import-list { max-height: 62vh; overflow: auto; padding: 14px 24px 20px; }
.import-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.import-row:last-child { border-bottom: 0; }
.import-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.import-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.import-count { font-size: 18px; font-weight: 650; white-space: nowrap; }
.import-record { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.import-record:last-child { border-bottom: 0; }
.import-record .import-row { border-bottom: 0; }
.import-details, .import-detail-empty { color: var(--muted); font-size: 12px; }
.import-details summary { cursor: pointer; padding: 6px 0; color: var(--text); }
.import-details summary:focus-visible { outline: 3px solid #c9293980; outline-offset: 3px; }
.import-details ul { margin: 6px 0 0; padding: 0; list-style: none; }
.import-details li { padding: 9px 12px; margin-top: 5px; border-left: 2px solid var(--line); background: #f8fafb; }
.import-file-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; overflow-wrap: anywhere; }
.import-file-head strong { color: var(--text); }
.import-file-reason { color: #94551a; margin: 4px 0 0; overflow-wrap: anywhere; }
.import-file-ok { color: var(--green); margin: 4px 0 0; }
.toast { position: fixed; right: 24px; bottom: 24px; background: #1d2a33; color: #fff; padding: 11px 15px; border-radius: 5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

/* The red reading-spine mark anchors the inherited console layout to Qidian. */
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 3px 3px 12px 3px; background: var(--orange); font: 700 25px/1 "STSong", "SimSun", serif; color: #fff; box-shadow: inset -4px 0 0 #ffffff1f; }
.workspace-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 0 16px; }
.workspace-note > span:first-child { color: var(--text); font-weight: 650; }
#modeLabel { margin-left: auto; }
.workspace-footer { color: var(--muted); font-size: 11px; text-align: center; margin-top: 25px; }
.fixture-banner { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff4d6; border: 1px solid #deb45f; color: #805417; margin-bottom: 16px; }
.fixture-banner strong { flex: 0 0 auto; background: #805417; padding: 3px 8px; color: #fff; border-radius: 3px; }
.inline-status { padding: 12px 22px; background: #fff8f9; border-bottom: 1px solid var(--line); color: #9c2634; font-size: 12px; overflow-wrap: anywhere; }
.toolbar { flex-wrap: wrap; }
.button:disabled, .mode-button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary:disabled:hover { background: var(--orange); }
.button:focus-visible, .icon-button:focus-visible, .mode-button:focus-visible, a:focus-visible, .stat-button:focus-visible { outline: 3px solid #c9293980; outline-offset: 3px; }
.button { touch-action: manipulation; }
.external-link { display: inline-flex; align-items: center; text-decoration: none; padding-top: 6px; padding-bottom: 6px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.task-actions { flex-wrap: wrap; }
.task-head > div { min-width: 0; overflow-wrap: anywhere; }
.task-status { white-space: nowrap; }
.dialog > form > .dialog-header { padding-top: 0; }
.dialog > .dialog-header { margin-bottom: 0; }
.dialog.login-dialog { width: min(560px, calc(100vw - 32px)); }
.login-steps { padding-left: 20px; color: var(--muted); font-size: 12px; }
.login-steps li { margin: 8px 0; }
.login-status { overflow-wrap: anywhere; }
textarea { display: block; width: 100%; resize: vertical; margin-top: 6px; border: 1px solid #ccd5dc; border-radius: 4px; padding: 10px; color: var(--text); background: #fff; outline: none; line-height: 1.5; }
textarea, .payload-preview, .stat-card strong, .allocation-total strong, .import-count { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", "Microsoft YaHei", monospace; }
input[type=checkbox] { display: inline-block; width: 16px; height: 16px; margin: 0; accent-color: var(--orange); vertical-align: middle; cursor: pointer; }
input[type=checkbox]:disabled { cursor: not-allowed; }
input[readonly] { background: #f5f7f9; }
.inline-label { display: flex; align-items: center; gap: 8px; margin: 0; }
.inline-label select { margin: 0; width: auto; height: 34px; }
.credential-toolbar, .pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; }
.credential-toolbar { background: #fafbfc; border-bottom: 1px solid var(--line); }
.pagination { border-top: 1px solid var(--line); }
.library-table { min-width: 850px; }
.panel[aria-labelledby="credentialHeading"] .table-wrap { max-height: 440px; }
.library-table thead { position: sticky; top: 0; z-index: 1; }
.library-table th:first-child { width: 42px; }
.library-table td:nth-child(2) { max-width: 200px; overflow-wrap: anywhere; }
.payload-preview { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.allocation-row .sr-only { position: absolute; }
.over-limit { color: var(--red); }
.credential-row { grid-template-columns: 140px minmax(0, 1fr) 110px; }
.credential-row .task-status { white-space: normal; overflow-wrap: anywhere; }
.toast { z-index: 10000; max-width: min(540px, calc(100vw - 32px)); overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 10001; padding: 8px 16px; background: #fff; color: var(--orange); }
.skip-link:focus { top: 10px; }
.clipboard-fallback { position: fixed; left: -10000px; top: 0; }

@media (max-width: 1050px) {
  main { padding: 20px; }
  .topbar { padding: 0 20px; }
  .panel-header { align-items: flex-start; gap: 16px; }
  .panel-header .toolbar { justify-content: flex-end; }
}
@media (max-width: 700px) {
  main { padding: 16px 12px 28px; }
  .topbar { height: auto; min-height: 86px; padding: 13px 16px; gap: 16px; flex-wrap: wrap; }
  .top-actions { margin-left: auto; gap: 8px; }
  .top-actions .button { min-height: 32px; }
  .connection { margin: 0; }
  h1 { font-size: 19px; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .brand-mark { width: 32px; height: 38px; font-size: 22px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 105px; padding: 15px 14px; }
  .stat-card.accent { padding-top: 12px; }
  .stat-card strong { font-size: 25px; }
  .stat-head { gap: 4px; }
  .stat-head .button { font-size: 10px; padding: 0 5px; }
  .panel-header, .panel-header.compact { padding: 16px; flex-direction: column; gap: 12px; }
  .panel-header .toolbar { width: 100%; justify-content: flex-start; gap: 7px; }
  .button { min-height: 38px; padding: 0 11px; }
  .button.small { min-height: 32px; }
  .workspace-note { line-height: 1.7; gap: 3px 8px; }
  #modeLabel { margin-left: 0; flex-basis: 100%; }
  .fixture-banner { align-items: flex-start; font-size: 12px; gap: 10px; }
  .task-list { padding: 4px 12px 12px; }
  .task-card { padding: 12px; }
  .task-head { align-items: flex-start; }
  .task-head .muted { display: block; margin-top: 4px; }
  .task-actions { justify-content: flex-start; gap: 7px; }
  .credential-toolbar, .pagination { padding: 12px 16px; flex-wrap: wrap; }
  .credential-toolbar > .toolbar { gap: 6px; }
  .dialog > form, .dialog > .dialog-header, .dialog > .credential-list { padding-left: 18px; padding-right: 18px; }
  .qr-layout { display: flex; flex-direction: column; gap: 16px; }
  .qr-side { align-items: center; text-align: center; }
  .qr-side .button { min-width: 140px; }
  .allocation-row { grid-template-columns: 22px 1fr 85px 70px; gap: 7px; font-size: 12px; }
  .allocation-row input[type=number], .allocation-row select { padding: 0 6px; }
  .two-column { grid-template-columns: 1fr; gap: 0; }
  .import-list { padding: 8px 18px 18px; }
  .import-row { grid-template-columns: 1fr auto; gap: 8px; }
  .import-path { grid-column: 1 / -1; grid-row: 2; }
  .import-row .button { grid-column: 2; grid-row: 1; }
  .import-count { font-size: 14px; }
  .credential-row { grid-template-columns: 1fr auto; gap: 7px; }
  .credential-row code { grid-column: 1 / -1; grid-row: 2; }
  .toast { right: 16px; bottom: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
