:root {
  --ink: #0b1720;
  --ink-2: #263743;
  --muted: #6e7b83;
  --line: #d9ddd8;
  --paper: #fffef9;
  --canvas: #f4f1e9;
  --lime: #e9ff70;
  --lime-dark: #c6df3f;
  --teal: #0f796e;
  --teal-soft: #dff2ec;
  --red: #c84e43;
  --red-soft: #fff0ec;
  --bg: #fffef9;
  --shadow: 0 22px 60px rgba(25, 35, 38, 0.11);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.mobile-body {
  background:
    radial-gradient(circle at 10% 5%, rgba(233, 255, 112, 0.25), transparent 25rem),
    var(--canvas);
}
.app-frame { width: min(100%, 660px); min-height: 100vh; margin: 0 auto; }
.mobile-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(70px + env(safe-area-inset-top));
  padding: calc(11px + env(safe-area-inset-top)) 18px 11px;
  background: rgba(244, 241, 233, 0.9);
  border-bottom: 1px solid rgba(210, 213, 206, 0.8);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand b { font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.16em; }
.brand-mark {
  position: relative;
  display: inline-grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  background: var(--ink);
  border-radius: 12px;
}
.brand-mark::before, .brand-mark::after, .brand-mark i::before, .brand-mark i::after {
  position: absolute;
  width: 9px;
  height: 9px;
  content: "";
  border-color: var(--lime);
  border-style: solid;
}
.brand-mark::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.brand-mark::after { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.brand-mark i::before { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.brand-mark i::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.brand-mark.large { width: 54px; height: 54px; margin-bottom: 20px; border-radius: 17px; }
.account-menu { display: flex; align-items: center; gap: 7px; }
.online-dot { width: 8px; height: 8px; background: #35b888; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53,184,136,.13); }
.quiet-button { padding: 8px; color: var(--muted); background: transparent; border: 0; font-size: 13px; font-weight: 750; }
.eyebrow { margin: 0 0 6px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.login-view { display: grid; min-height: calc(100vh - 70px); place-items: center; padding: 30px 20px max(38px, env(safe-area-inset-bottom)); }
.login-card { display: grid; width: min(360px, 100%); gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 5px; font-size: 30px; text-align: center; }
.login-card input { height: 54px; padding: 0 14px; background: #f6f5ef; border: 1.5px solid #cfd4cf; border-radius: 12px; outline: none; font-size: 16px; font-weight: 700; }
.login-card input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 121, 110, .11); }
.manual-form label, .test-dialog label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 850; }
.primary-button, .camera-button {
  min-height: 54px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  font-weight: 850;
  letter-spacing: .01em;
}
.primary-button { width: 100%; padding: 0 18px; }
.primary-button:hover, .camera-button:hover { background: #182a35; }
.primary-button:disabled, .camera-button:disabled { cursor: wait; opacity: .55; }
.primary-button.compact { width: auto; min-height: 44px; padding: 0 17px; border-radius: 12px; }
.form-error { min-height: 18px; margin: 10px 2px 0; color: var(--red); font-size: 12px; line-height: 1.45; }

.scanner-view { padding: 12px 14px max(18px, env(safe-area-inset-bottom)); }
.scanner-intro { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 5px 15px; }
.scanner-intro h1 { margin: 0; font-size: 27px; line-height: 1.1; letter-spacing: -.035em; }
.connection-badge { padding: 7px 10px; color: #146a58; background: var(--teal-soft); border: 1px solid #b9dfd4; border-radius: 999px; font-size: 11px; font-weight: 850; }
.connection-badge.offline { color: #9b3d35; background: var(--red-soft); border-color: #ecc5be; }
.user-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 0 14px; }
.user-stats article { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 4px; min-height: 66px; padding: 10px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 18px rgba(31,40,39,.04); }
.user-stats span { grid-column: 1 / 3; color: var(--muted); font-size: 11px; font-weight: 800; }
.user-stats strong { color: var(--teal); font-size: clamp(23px, 7vw, 30px); line-height: 1; letter-spacing: -.06em; }
.user-stats small { padding-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 750; }

/* 兑换码恢复区 */
.restore-section { margin: 0 0 14px; }
.restore-card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(31,40,39,.04); }
.restore-card .eyebrow { margin-bottom: 8px; }
.restore-row { display: flex; gap: 0; align-items: stretch; justify-content: center; }
.restore-input { width: 50%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; background: var(--bg); color: var(--ink); flex: none; }
.restore-input:focus { border-color: var(--teal); }
.restore-row .primary-button { width: 40%; margin-left: 10%; padding: 0 8px; font-size: 12px; border-radius: 6px; min-height: 0; flex: none; }
.restore-hint { margin-top: 6px; font-size: 11px; color: var(--muted); }
.camera-card { overflow: hidden; background: var(--ink); border-radius: 27px; box-shadow: 0 22px 52px rgba(11,23,32,.24); }
.camera-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111e27; }
.camera-stage video { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.scan-shade { position: absolute; z-index: 3; inset: 0; background: radial-gradient(circle at center, transparent 0 33%, rgba(2,9,14,.45) 61%, rgba(2,9,14,.7)); pointer-events: none; }
.scan-frame { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(71vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.scan-frame i { position: absolute; width: 37px; height: 37px; border-color: var(--lime); border-style: solid; filter: drop-shadow(0 0 7px rgba(233,255,112,.35)); }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 13px 0 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 13px 0 0; }
.scan-frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-radius: 0 0 13px; }
.scan-frame i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 13px; }
.scan-frame span { position: absolute; top: 9%; right: 8px; left: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 14px 3px rgba(233,255,112,.32); animation: scan-line 2.3s ease-in-out infinite; }
@keyframes scan-line { 0%, 100% { top: 9%; opacity: .7; } 50% { top: 90%; opacity: 1; } }
.placeholder-icon.small { width: 46px; height: 40px; border-color: var(--teal); border-right-color: transparent; border-left-color: transparent; }
.placeholder-icon.small::after { top: 17px; background: var(--teal); box-shadow: none; }
.camera-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px; background: #0b1720; }
.camera-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); background: var(--lime); }
.camera-button:hover { background: #f0ff9a; }
.camera-symbol { position: relative; width: 21px; height: 15px; border: 2px solid currentColor; border-radius: 5px; }
.camera-symbol::before { position: absolute; top: -5px; left: 5px; width: 7px; height: 4px; content: ""; background: currentColor; border-radius: 2px 2px 0 0; }
.camera-symbol::after { position: absolute; top: 3px; left: 7px; width: 4px; height: 4px; content: ""; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-button { width: 54px; min-height: 54px; color: var(--lime); background: #23343f; border: 1px solid #344955; border-radius: 14px; }
.icon-button.active { color: var(--ink); background: var(--lime); }
.flash-symbol { font-size: 26px; font-weight: 900; }
.camera-zoom { display: grid; grid-template-columns: 38px auto 1fr 38px; align-items: center; gap: 10px; padding: 0 13px 13px; color: #dce5e7; background: #0b1720; }
.camera-zoom[hidden] { display: none; }
.camera-zoom button { width: 38px; height: 34px; padding: 0; color: var(--lime); background: #182a35; border: 1px solid #314550; border-radius: 10px; font-size: 21px; font-weight: 800; }
.camera-zoom label { display: flex; gap: 5px; align-items: center; font-size: 11px; white-space: nowrap; }
.camera-zoom label strong { color: var(--lime); font-size: 12px; }
.camera-zoom input { width: 100%; accent-color: var(--lime); }
.scan-guidance { display: flex; justify-content: space-between; padding: 12px 7px 18px; color: var(--muted); font-size: 11px; }

.redeem-history { margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.redeem-history { padding: 16px; box-shadow: 0 13px 32px rgba(25,35,38,.05); }
.redeem-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.redeem-history-head .eyebrow { margin: 0 0 3px; }
.redeem-history-head h2 { margin: 0; font-size: 19px; }
.redeem-history-head h2 small { margin-left: 6px; color: var(--teal); font-size: 12px; font-weight: 800; }
.redeem-history textarea { box-sizing: border-box; width: 100%; padding: 12px; color: var(--ink); background: #fbfaf5; border: 1px solid var(--line); border-radius: 12px; font: 700 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.redeem-history textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.1); }
.redeem-history > p { margin: 8px 1px 0; color: var(--muted); font-size: 11px; }
.text-button { padding: 6px 2px; color: var(--red); background: transparent; border: 0; font-size: 12px; font-weight: 800; }
.result-card { padding: 17px; box-shadow: 0 13px 32px rgba(25,35,38,.07); }
.result-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin-bottom: 15px; }
.result-head p { margin: 0 0 2px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.result-head h2 { margin: 0; font-size: 20px; }
.result-head > small { color: var(--muted); font-size: 10px; }
.result-state { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; font-size: 20px; font-weight: 900; }
.result-state.success { color: #126c59; background: var(--teal-soft); }
.result-state.error { color: #a53f36; background: var(--red-soft); }
.result-fields { display: grid; gap: 1px; overflow: hidden; margin: 0 0 13px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; }
.result-fields > div { display: grid; grid-template-columns: minmax(86px, .65fr) 1.35fr; gap: 13px; padding: 12px; background: #fbfaf5; }
.result-fields dt { color: var(--muted); font-size: 12px; }
.result-fields dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 750; white-space: pre-wrap; }
.alternate-card { padding: 16px; }
.alternate-card strong { font-size: 15px; }
.alternate-card p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.alternate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.secondary-button, .danger-button { display: inline-grid; min-height: 44px; padding: 0 14px; place-items: center; background: #f1f1eb; border: 1px solid #d4d8d3; border-radius: 11px; font-size: 13px; font-weight: 800; text-decoration: none; }
.secondary-button { color: var(--ink-2); }
.secondary-button:hover { background: #fff; }
.danger-button { color: var(--red); background: var(--red-soft); border-color: #ecc7c0; }
.file-button { cursor: pointer; }
.manual-form { display: grid; gap: 9px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.manual-form textarea, .test-dialog input { width: 100%; padding: 12px; background: #fff; border: 1px solid #ccd2ce; border-radius: 11px; outline: none; resize: vertical; }
.manual-form textarea:focus, .test-dialog input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.1); }
.install-card { display: grid; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; color: var(--ink); text-align: left; }
.install-icon { display: grid; width: 39px; height: 39px; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 12px; font-size: 22px; font-weight: 900; }
.install-card span:nth-child(2) { display: grid; gap: 3px; }
.install-card strong { font-size: 14px; }
.install-card small { color: var(--muted); font-size: 11px; }
.install-card > b { color: var(--muted); font-size: 24px; }

.sheet-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(6,14,19,.68); backdrop-filter: blur(7px); }
.bottom-sheet { width: min(520px, 100%); padding: 11px 22px max(22px, env(safe-area-inset-bottom)); background: var(--paper); border-radius: 25px; box-shadow: var(--shadow); }
.sheet-handle { display: block; width: 44px; height: 5px; margin: 0 auto 20px; background: #d1d4d0; border-radius: 99px; }
.bottom-sheet h2 { margin: 0; font-size: 24px; }
.bottom-sheet ol { display: grid; gap: 12px; margin: 18px 0 22px; padding-left: 23px; color: var(--ink-2); line-height: 1.55; }
.toast { position: fixed; z-index: 150; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 12px 16px; color: #fff; background: rgba(11,23,32,.94); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.24); font-size: 13px; font-weight: 750; text-align: center; }

/* Admin */
.admin-body { min-width: 320px; background: #f4f1e9; }
.admin-login { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(233,255,112,.32), transparent 30rem), #0b1720; }
.admin-login-card { width: min(430px, 100%); padding: 38px; background: var(--paper); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.admin-login-card h1 { margin: 0 0 8px; font-size: 35px; letter-spacing: -.045em; }
.admin-login-card > p:not(.eyebrow):not(.form-error) { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.admin-login-card label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.admin-login-card input { width: 100%; height: 54px; margin-bottom: 12px; padding: 0 14px; border: 1px solid #cdd3ce; border-radius: 12px; outline: none; }
.admin-login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,121,110,.1); }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; display: flex; width: 244px; flex-direction: column; padding: 26px 18px; color: #fff; background: var(--ink); }
.brand.inverse { margin: 0 8px 34px; color: #fff; }
.brand.inverse small { color: #81929c; }
.admin-sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 47px; padding: 0 13px; color: #aebac1; background: transparent; border: 0; border-radius: 11px; font-size: 13px; font-weight: 750; text-align: left; text-decoration: none; }
.nav-item span { width: 20px; font-size: 18px; text-align: center; }
.nav-item.active, .nav-item:hover { color: var(--ink); background: var(--lime); }
.sidebar-foot { display: grid; gap: 15px; margin-top: auto; padding: 18px 11px 5px; border-top: 1px solid #263a46; }
.sidebar-foot span { color: #9db0ba; font-size: 11px; }
.sidebar-foot span i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #48c694; border-radius: 50%; }
.sidebar-foot button { padding: 0; color: #d8e0e4; background: transparent; border: 0; font-size: 12px; text-align: left; }
.admin-main { margin-left: 244px; padding: 36px clamp(22px, 4vw, 56px) 60px; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-topbar h1 { margin: 0 0 7px; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.045em; }
.admin-topbar > div > p:last-child { margin: 0; color: var(--muted); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stats-row article { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 17px 19px; background: rgba(255,254,249,.8); border: 1px solid var(--line); border-radius: 16px; }
.stats-row span { color: var(--muted); font-size: 11px; font-weight: 750; }
.stats-row strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 30px; letter-spacing: -.04em; }
.stats-row small { color: var(--ink-2); font-size: 12px; }
.stats-row .status-word { color: var(--teal); font-size: 20px; }
.admin-grid { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(520px, 1.65fr); gap: 16px; align-items: start; }
.account-panel, .editor-panel, .password-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 24px rgba(31,40,39,.04); }
.operation-panel { margin-top: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 24px rgba(31,40,39,.04); }
.operation-panel.standalone { margin-top: 0; }
.log-filters { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)); align-items: end; gap: 12px; padding: 18px 19px; background: #fbfaf5; border-bottom: 1px solid var(--line); }
.log-filters label { display: grid; gap: 7px; color: var(--ink-2); font-size: 11px; font-weight: 800; }
.log-filters select, .log-filters input { width: 100%; height: 43px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #cfd4cf; border-radius: 10px; outline: none; }
.log-filters select:focus, .log-filters input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.09); }
.log-filters > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; white-space: nowrap; }
.log-total-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.log-total-summary article { display: grid; gap: 5px; padding: 13px 15px; background: #0b1a22; border-radius: 12px; }
.log-total-summary span { color: #a9b9bd; font-size: 11px; }
.log-total-summary strong { color: #dfff61; font-size: 24px; }
.summary-heading { display: flex; justify-content: space-between; align-items: center; padding: 13px 19px 8px; background: #f5f7ef; }
.summary-heading strong { font-size: 13px; }
.summary-heading span { color: var(--muted); font-size: 11px; }
.daily-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding: 14px 19px; background: #f5f7ef; border-bottom: 1px solid var(--line); }
.daily-summary article { display: grid; gap: 5px; padding: 12px 14px; background: #fff; border: 1px solid #dce2d9; border-radius: 11px; }
.daily-summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.daily-summary span { color: var(--muted); font-size: 11px; }
.daily-breakdown { display: grid; gap: 0; padding: 0 19px 10px; background: #f5f7ef; border-bottom: 1px solid var(--line); }
.daily-breakdown article { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e5e8e2; }
.daily-breakdown article:first-child { border-radius: 10px 10px 0 0; }
.daily-breakdown article:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
.daily-breakdown strong { font-size: 12px; }
.daily-breakdown span { color: var(--muted); font-size: 11px; }
.operation-log-list { display: grid; }
.operation-log-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.operation-log-row:last-child { border-bottom: 0; }
.operation-log-row > div { display: flex; align-items: center; gap: 9px; }
.operation-log-row strong { font-size: 14px; }
.operation-log-row span { padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 850; }
.operation-log-row.success span { color: #126c59; background: var(--teal-soft); }
.operation-log-row.error span { color: #a53f36; background: var(--red-soft); }
.operation-log-row p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.operation-log-row small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 11px; text-align: right; }
.log-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 19px; border-top: 1px solid var(--line); }
.log-pagination span { min-width: 90px; color: var(--muted); font-size: 12px; text-align: center; }
.operation-log-empty { margin: 0; padding: 28px 19px; color: var(--muted); font-size: 13px; text-align: center; }
.account-panel { position: sticky; top: 20px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 19px; }
.panel-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.account-list { display: grid; max-height: 670px; overflow: auto; padding: 9px; }
.account-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 12px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: left; }
.account-row:hover, .account-row.active { background: #f4f5ee; border-color: #d9ded7; }
.account-row.active { box-shadow: inset 3px 0 var(--teal); }
.account-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--teal); border-radius: 11px; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.account-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.account-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.state-pill { padding: 5px 7px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.state-pill.success { color: #126c59; background: #dff5eb; }
.state-pill.failed { color: #a53f36; background: #fde5e1; }
.state-pill.pending { color: #6d7478; background: #eceeec; }
.state-pill.working { color: #8a6517; background: #fff0c7; }
.state-pill.disabled { color: #7a6d67; background: #edece6; }
.pool-selection-actions { display: flex; gap: 9px; padding: 10px 9px 16px; }
.pool-selection-actions button { flex: 1; }
.empty-admin { padding: 45px 22px; color: var(--muted); text-align: center; }
.empty-admin .placeholder-icon { margin: auto; }
.empty-admin h3 { margin: 16px 0 6px; color: var(--ink); }
.empty-admin p { margin: 0; font-size: 12px; line-height: 1.6; }
.editor-panel { overflow: hidden; }
.editor-heading { background: #fbfaf5; }
.editor-heading .eyebrow { margin-bottom: 4px; }
.switch-row { display: flex !important; align-items: center; gap: 9px; margin: 0 !important; color: var(--muted); font-size: 11px !important; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 43px; height: 24px; background: #cbd0cc; border-radius: 99px; transition: .2s; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s; }
.switch-row input:checked + .switch { background: var(--teal); }
.switch-row input:checked + .switch::after { transform: translateX(19px); }
.form-section { padding: 20px; border-bottom: 1px solid #e6e8e3; }
.form-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 15px; }
.form-section h3 span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 8px; font-size: 11px; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.method-row { grid-template-columns: 130px 1fr; }
.form-section label { display: grid; gap: 7px; margin-top: 12px; color: var(--ink-2); font-size: 11px; font-weight: 800; }
.form-section .field-grid label { margin-top: 0; }
.required { margin-left: 3px; color: var(--red); }
.form-section input, .form-section select, .form-section textarea, .password-panel input { width: 100%; padding: 11px 12px; color: var(--ink); background: #fbfbf7; border: 1px solid #cfd4cf; border-radius: 10px; outline: none; font-size: 13px; resize: vertical; }
.form-section input, .form-section select, .password-panel input { height: 43px; }
.form-section input:focus, .form-section select:focus, .form-section textarea:focus, .password-panel input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.09); }
.form-section textarea { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; line-height: 1.55; }
.field-note { margin: 9px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.field-note code { padding: 2px 4px; color: #4c6710; background: #f1f7d1; border-radius: 4px; }
.editor-error { padding: 0 20px; }
.editor-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; padding: 17px 20px; background: #fbfaf5; }
.password-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 20px; }
.password-panel h2, .password-panel h3 { margin: 0 0 4px; font-size: 18px; }
.password-panel p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.password-panel .hint { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.password-panel form { display: grid; grid-template-columns: 180px 200px auto; gap: 8px; }
.password-panel input { min-width: 0; }
.night-pause-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.night-pause-form .toggle-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.night-pause-form .toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.night-pause-form .time-row { display: flex; gap: 10px; }
.night-pause-form .time-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.night-pause-form .time-row input[type="time"] { width: 110px; height: 36px; padding: 4px 8px; font-size: 13px; background: #fbfbf7; border: 1px solid #cfd4cf; border-radius: 8px; }
.night-pause-form .time-row input[type="time"]:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.09); }
.night-pause-form .form-actions { display: flex; align-items: center; gap: 10px; }
.night-pause-form .form-actions span { font-size: 12px; color: var(--teal); font-weight: 600; }
#securityContent { display: grid; gap: 16px; }
.test-dialog { width: min(590px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 0 20px 20px; background: var(--paper); border-radius: 22px; }
.test-dialog .panel-heading { margin: 0 -20px 18px; }
.close-button { width: 38px; height: 38px; color: var(--muted); background: #eeeee8; border: 0; border-radius: 50%; font-size: 24px; }
.test-dialog > .primary-button { margin-top: 11px; }
.test-output { display: grid; gap: 1px; overflow: hidden; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; }
.test-output > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 11px; background: #fbfaf5; }
.test-output span { color: var(--muted); font-size: 11px; }
.test-output strong { overflow-wrap: anywhere; font-size: 12px; white-space: pre-wrap; }

/* 导入账号弹窗 */
#importSheet { align-items: center; }
.import-dialog { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 0 28px 28px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.import-dialog .panel-heading { margin: 0 -28px 16px; }
.import-dialog .import-hint { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.import-dialog textarea { width: 100%; min-height: 260px; padding: 14px 16px; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); background: #fbfbf7; border: 1.5px solid var(--line); border-radius: 14px; resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.import-dialog textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.12); }
.import-dialog textarea.dragover { border-color: var(--teal); background: var(--teal-soft); }
.import-dialog .import-footer { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.import-dialog .import-line-count { color: var(--muted); font-size: 12px; margin-left: auto; }

/* A16代理选择 */
.a16-proxy-label { margin-left: 6px; font-size: 12px; color: var(--muted); }
.a16-proxy-select { margin-left: 4px; }

/* 号池转移 */
.transfer-label { font-size: 13px; color: var(--ink-2); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.transfer-select { min-width: 160px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.transfer-input { width: 80px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* 编辑器底部导航提示 */
.editor-nav-hint { margin-top: 8px; text-align: center; }
.muted-text { opacity: 0.5; }

@media (max-width: 1050px) {
  .admin-grid { grid-template-columns: 1fr; }
  .account-panel { position: static; }
  .account-list { max-height: 330px; }
  .password-panel { align-items: flex-start; flex-direction: column; }
  .password-panel form { width: 100%; grid-template-columns: 1fr 1fr auto; }
  .night-pause-form { flex-direction: column; align-items: flex-start; }
  .log-filters { grid-template-columns: 1fr 1fr; }
  .log-filters > span { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .admin-sidebar { position: static; width: auto; padding: 14px 16px; flex-direction: row; align-items: center; }
  .admin-sidebar .brand { margin: 0 auto 0 0; }
  .admin-sidebar nav { display: flex; overflow-x: auto; max-width: calc(100vw - 210px); scrollbar-width: thin; }
  .nav-item { flex: 0 0 auto; width: auto; padding: 0 11px; white-space: nowrap; }
  .nav-item span { display: none; }
  .sidebar-foot { margin: 0 0 0 8px; padding: 0; border: 0; }
  .sidebar-foot span { display: none; }
  .admin-main { margin: 0; padding: 24px 14px 50px; }
  .stats-row { grid-template-columns: 1fr; }
  .field-grid.two, .field-grid.method-row { grid-template-columns: 1fr; }
  .password-panel form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-sidebar nav .nav-item:last-child { display: none; }
  .log-filters { grid-template-columns: 1fr 1fr; }
  .log-filters > span { grid-column: 1 / -1; padding-bottom: 0; }
  .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-topbar .compact { width: 100%; }
  .editor-actions { grid-template-columns: 1fr 1fr; }
  .editor-actions > span { display: none; }
  .editor-actions .primary-button { width: 100%; }
  .login-view { padding-top: 38px; }
}
@media (min-width: 661px) {
  .mobile-body { padding: 22px 0; }
  .app-frame { overflow: hidden; min-height: calc(100vh - 44px); background: var(--canvas); border: 1px solid #d4d8d2; border-radius: 28px; box-shadow: var(--shadow); }
  .mobile-header { top: 22px; }
}
/* ==============================
   全局过渡动画
   ============================== */
button,
.primary-button,
.secondary-button,
.danger-button,
.camera-button,
.icon-button,
.quiet-button,
.text-button,
.close-button,
.file-button { transition: all .2s ease; }

.nav-item { transition: color .2s ease, background .2s ease; }

.account-row { transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }

.operation-log-row { transition: background-color .2s ease; }
.operation-log-row:hover { background-color: #f6f5ef; }

/* ==============================
   卡片阴影层次优化
   ============================== */
.account-panel,
.editor-panel,
.password-panel,
.operation-panel { transition: box-shadow .2s ease, transform .2s ease; }

.stats-row article,
.user-stats article,
.redeem-history,
.result-card,
.login-card,
.admin-login-card { transition: box-shadow .25s ease, transform .25s ease; }

.stats-row article:hover,
.user-stats article:hover { box-shadow: 0 12px 28px rgba(31,40,39,.09); transform: translateY(-2px); }

.redeem-history:hover,
.result-card:hover { box-shadow: 0 16px 40px rgba(25,35,38,.1); transform: translateY(-1px); }

/* ==============================
   仪表盘统计卡片 - 4列网格
   ============================== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dashboard-stats article {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(31,40,39,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.dashboard-stats article:hover {
  box-shadow: 0 12px 30px rgba(31,40,39,.1);
  transform: translateY(-3px);
}
.dashboard-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
}
.dashboard-stats strong {
  color: var(--teal);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 850;
}
.dashboard-stats small {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

/* ==============================
   仪表盘图表区域 - 2列网格
   ============================== */
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.chart-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(31,40,39,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.chart-card:hover {
  box-shadow: 0 12px 30px rgba(31,40,39,.1);
  transform: translateY(-2px);
}
.chart-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.chart-card canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 260px;
}

/* ==============================
   号池状态卡片网格
   ============================== */
.dashboard-pools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.pool-status-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(31,40,39,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.pool-status-card.pool-clickable { cursor: pointer; }
.claims-edit-row { display: flex; align-items: center; gap: 8px; }
.claims-edit-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.claims-count-input { width: 80px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; text-align: center; }
.claims-edit-row .secondary-button { padding: 4px 10px; font-size: 12px; }
.global-proxy-input { width: 300px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.pool-status-card:hover {
  box-shadow: 0 12px 30px rgba(31,40,39,.1);
  transform: translateY(-3px);
}
.pool-status-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-status-card .pool-meter {
  height: 6px;
  background: #e8e8e2;
  border-radius: 99px;
  overflow: hidden;
}
.pool-status-card .pool-meter span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width .4s ease;
}
.pool-status-card .pool-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pool-status-card .pool-numbers strong {
  color: var(--teal);
  font-size: 22px;
  letter-spacing: -.03em;
}
.pool-status-card .pool-numbers small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* 号池健康数据 */
.pool-health { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0ec; font-size: 12px; }
.pool-health .health-ok { color: #0f796e; font-weight: 700; }
.pool-health .health-warn { color: #b45309; font-weight: 700; }
.pool-health .health-bad { color: #c84e43; font-weight: 700; }
.pool-health .health-time { color: var(--muted); }

/* 失败原因排行 */
.pool-fail-reasons { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0ec; }
.pool-fail-reasons .reason-title { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 6px; cursor: pointer; user-select: none; }
.pool-fail-reasons .reason-title::after { content: " ▼"; font-size: 9px; }
.pool-fail-reasons.collapsed .reason-title::after { content: " ▶"; }
.pool-fail-reasons.collapsed .reason-list { display: none; }
.pool-fail-reasons .reason-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 0; font-size: 12px; gap: 8px; }
.pool-fail-reasons .reason-row span { color: var(--ink-2); word-break: break-all; line-height: 1.4; flex: 1; min-width: 0; }
.pool-fail-reasons .reason-row b { color: #c84e43; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

/* ==============================
   响应式 - 仪表盘
   ============================== */
@media (max-width: 1050px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-charts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-stats strong { font-size: 26px; }
  .dashboard-charts { grid-template-columns: 1fr; gap: 12px; }
  .chart-card { padding: 16px; }
  .chart-card canvas { max-height: 200px; }
  .dashboard-pools { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
}
@media (max-width: 520px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-stats article { padding: 14px; }
  .dashboard-stats strong { font-size: 24px; }
  .chart-card canvas { max-height: 170px; }
}

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

/* ==============================
   账号查询
   ============================== */
.lookup-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 24px rgba(31,40,39,.04); overflow: hidden; }
.lookup-input-area { padding: 20px; border-bottom: 1px solid var(--line); }
.lookup-input-area textarea { width: 100%; padding: 14px; color: var(--ink); background: #fbfbf7; border: 1px solid #cfd4cf; border-radius: 12px; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; outline: none; }
.lookup-input-area textarea:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,121,110,.09); }
.lookup-input-area textarea.dragover { border-color: var(--teal); background: var(--teal-soft); }
.lookup-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.lookup-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.lookup-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lookup-summary article { display: grid; gap: 5px; padding: 14px 16px; background: #0b1a22; border-radius: 12px; }
.lookup-summary span { color: #a9b9bd; font-size: 11px; }
.lookup-summary strong { color: #dfff61; font-size: 24px; }
.lookup-summary strong.found { color: #22c55e; }
.lookup-summary strong.history { color: #f59e0b; }
.lookup-summary strong.not-found { color: var(--muted); }
.lookup-pool-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid #eef0ec; flex-wrap: wrap; }
.lookup-pool-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.lookup-pool-stat { font-size: 12px; color: var(--muted); }
.lookup-pool-btn { font-size: 12px !important; padding: 3px 10px !important; }
.lookup-table-wrap { overflow-x: auto; }
.lookup-table-wrap.scrollable { max-height: 600px; overflow-y: auto; }
.lookup-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lookup-table th { padding: 12px 16px; color: var(--muted); background: #fbfaf5; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; text-align: left; }
.lookup-table td { padding: 11px 16px; border-bottom: 1px solid #eef0ec; }
.lookup-table tr:hover td { background: #f6f5ef; }
.lookup-found td:first-child { color: var(--teal); font-weight: 700; }
.lookup-history td:first-child { color: var(--amber, #b45309); font-weight: 700; }
.lookup-history td { color: var(--amber, #b45309); }
.lookup-not-found td { color: var(--muted); }
.lookup-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-found { background: #dff2ec; color: #0f796e; }
.badge-history { background: #fef3c7; color: #92400e; }
.badge-not-found { background: #f3f4f6; color: #6b7280; }
.badge-failed { background: #fff0ec; color: #c84e43; }
.lookup-copy-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 20px; }
.wxid-cell { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.lookup-empty { padding: 30px 20px; color: var(--muted); font-size: 13px; text-align: center; }

/* ==============================
   混合出码面板
   ============================== */
.hybrid-section { background: #f8faf6; border: 1px solid #d4ddd4; border-radius: 14px; margin: 16px 0; }
.stat-box { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.stat-box strong { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.stat-box span { color: var(--ink); font-size: 13px; font-weight: 600; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.hybrid-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.hybrid-actions { margin: 20px 0 0; }
.hybrid-actions h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.account-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.account-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pool-status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.status-available { background: #dff2ec; color: #0f796e; }
.status-busy { background: #fef3c7; color: #92400e; }
.live-brand-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.brand-tag { display: inline-block; padding: 2px 8px; background: #e8eae5; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.account-row-actions { display: flex; gap: 6px; align-items: center; }
.compact { padding: 5px 12px; font-size: 12px; }
.diag-text-output { background: #1e1e1e; color: #d4d4d4; font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace; font-size: 12px; line-height: 1.6; padding: 20px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; max-height: 70vh; overflow-y: auto; }
