:root {
  --bg: #0b0f14;
  --bg2: #11161d;
  --card: #141a22;
  --border: #232b36;
  --txt: #d7dde5;
  --muted: #6b7684;
  --accent: #4ea8ff;
  --green: #3fb950;
  --orange: #d29922;
  --red: #f85149;
  --violet: #a371f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(78, 168, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(163, 113, 247, 0.06), transparent 50%);
}
.hidden { display: none !important; }

/* Custom scrollbars — slim, themed, hover-highlight. */
* {
  scrollbar-width: thin;
  scrollbar-color: #2b3542 transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b3542, #222a34);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3a4a5e, #2f3b49);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(46, 160, 67, 0.12), transparent 50%),
    #0d1117;
}
.login-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 36px;
  width: 360px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.login-card .logo {
  font-size: 22px;
  font-weight: 700;
  color: #58a6ff;
  text-align: center;
  margin-bottom: 6px;
}
.login-card .sub {
  text-align: center;
  color: #8b949e;
  font-size: 13px;
  margin-bottom: 24px;
}
.login-card label {
  display: block;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 6px;
}
.login-card input {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
}
.login-card input:focus { border-color: #58a6ff; }
.error { color: var(--red); font-size: 13px; min-height: 18px; }

.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.sidebar {
  width: 220px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}
.brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.brand h1 {
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, #4ea8ff, #a371f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .ver { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav { flex: 1; padding: 12px 10px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: 0.15s;
}
.nav a:hover { background: rgba(78, 168, 255, 0.08); color: var(--txt); }
.nav a.active {
  background: rgba(78, 168, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
}
.nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.main {
  flex: 1;
  padding: 24px 28px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}
.page { display: none; }
.page.active {
  display: block;
  animation: fade 0.25s;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.page-head h2 { font-size: 20px; font-weight: 700; }
.page-head .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-health { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1280px) {
  .grid-health { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 1000px) {
  .grid-4, .grid-health { grid-template-columns: repeat(2, 1fr); }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2, .grid-health { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(78,168,255,0.22);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
}
.card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.stat {
  position: relative;
  background: linear-gradient(160deg, var(--card), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: 0.5;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(78,168,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.stat .icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 4px;
}
.stat .val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat .key { font-size: 12px; color: var(--muted); }
.stat .trend { font-size: 11px; color: var(--green); margin-top: 2px; }
.stat-ready { border-color: rgba(63,185,80,.45); }
.stat-ready::before { background: var(--green); }
.stat-depleted { border-color: rgba(210,153,34,.45); }
.stat-depleted::before { background: var(--orange); }
.stat-disabled { border-color: rgba(248,81,73,.45); }
.stat-disabled::before { background: var(--red); }
tr.health-ready td.col-gate { box-shadow: inset 3px 0 0 var(--green); }
tr.health-depleted td.col-gate { box-shadow: inset 3px 0 0 var(--orange); }
tr.health-circuit td.col-gate { box-shadow: inset 3px 0 0 var(--red); }
.usage-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1000px) {
  .usage-strip { grid-template-columns: repeat(2, 1fr); }
}
.usage-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.18s, background 0.18s;
}
.usage-item:hover {
  border-color: rgba(78,168,255,0.25);
  background: rgba(78,168,255,0.04);
}
.usage-item .uk {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.usage-item .uv {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.usage-item .uh {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.chart-wrap { overflow: hidden; }
svg.chart { width: 100%; height: 220px; display: block; }
.chart-label { font-size: 10px; fill: var(--muted); }
.chart-grid { stroke: var(--border); stroke-width: 1; fill: none; }
.legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
}
.legend span { display: flex; align-items: center; gap: 5px; }
.legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend.legend-col {
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  flex-shrink: 0;
}
.legend.legend-col span { font-size: 12px; color: var(--txt); }
.legend.legend-col b {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding-left: 10px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.chart-donut {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.chart-donut circle { transition: stroke-dasharray 0.3s; }
.donut-total {
  font-size: 22px;
  font-weight: 700;
  fill: var(--txt);
  font-variant-numeric: tabular-nums;
}
.donut-sub { font-size: 9px; fill: var(--muted); }
@media (max-width: 640px) {
  .chart-row { gap: 14px; }
}

.tbl-wrap { overflow-x: auto; }
#p-accounts .tbl-wrap {
  max-height: calc(100vh - 160px);
  overflow: auto;
}
#accounts-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
#acct-mini {
  max-height: 70vh;
  overflow: auto;
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.mini-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
}
.mini-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 2px solid var(--border);
}
.mini-table th {
  text-align: center;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.mini-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mini-table tbody tr:hover {
  background: rgba(78,168,255,.06);
}
#accounts-table tbody tr:hover,
#proxies-table tbody tr:hover,
#apikeys-table tbody tr:hover,
#models-table tbody tr:hover {
  background: rgba(78,168,255,.05);
}
#accounts-table tbody tr, #proxies-table tbody tr,
#apikeys-table tbody tr, #models-table tbody tr {
  transition: background 0.12s;
}
.mini-table .mini-email {
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-table .mini-models {
  color: var(--muted);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.mini-table .mini-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini-table .mini-time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.key-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.acct-pick-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}
.pick-row:last-child { border-bottom: none; }
.pick-row span:nth-child(2) { flex: 1; }
table { width: 100%; border-collapse: collapse; min-width: 1100px; }
th, td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
th { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
tr:hover td { background: rgba(78, 168, 255, 0.04); }
.nowrap { white-space: nowrap; }

th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
th.sortable:hover { color: var(--txt); }
th.sortable::after {
  content: "⇅";
  margin-left: 5px;
  font-size: 9px;
  opacity: 0.35;
}
th.sortable.sort-asc::after { content: "▲"; opacity: 1; color: var(--accent); }
th.sortable.sort-desc::after { content: "▼"; opacity: 1; color: var(--accent); }

.dedup-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.08);
  color: var(--green);
  font-size: 12px;
}

#accounts-table .col-email { min-width: 220px; max-width: 280px; }
#accounts-table .email {
  font-weight: 600;
  word-break: break-all;
  line-height: 1.35;
}
#accounts-table .cell-err {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#accounts-table .col-gate { white-space: nowrap; }
#accounts-table .col-pkg { white-space: nowrap; }
#accounts-table .col-period { white-space: nowrap; color: var(--muted); }
#accounts-table .col-quota { min-width: 190px; }
#accounts-table .col-expire,
#accounts-table .col-used { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
#accounts-table .col-ops { white-space: nowrap; }

.quota-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 168px;
  font-variant-numeric: tabular-nums;
}
.quota-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.35;
}
.quota-line .ql {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}
.quota-line b {
  font-weight: 650;
  letter-spacing: 0.01em;
}
.quota-line b.remain { color: var(--accent); }
.quota-hint {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
/* —— 用量数字语义配色：输入蓝 / 输出绿 / 请求橙 / 在途紫 / 已用橙 / 剩余金 —— */
.usage-item .uv.c-in, .quota-line .ql.c-in, .quota-line b.c-in { color: var(--accent); }
.usage-item .uv.c-out, .quota-line .ql.c-out, .quota-line b.c-out { color: var(--green); }
.usage-item .uv.c-used, .c-req { color: var(--orange); }
.usage-item .uv.c-remain { color: #fbbf24; }
.usage-item .uv.c-flight, .c-flight { color: #a78bfa; }
.usage-item .uv.c-in, .usage-item .uv.c-out, .usage-item .uv.c-used,
.usage-item .uv.c-remain, .usage-item .uv.c-flight {
  font-size: 23px;
  letter-spacing: 0.2px;
}
.quota-line b.c-in, .quota-line b.c-out { font-weight: 700; }
.quota-bar {
  margin-top: 4px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.quota-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #3fb950);
  border-radius: 99px;
}

.ops {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.ops .btn.sm { padding: 5px 10px; font-size: 12px; }

select.acct-proxy {
  min-width: 148px;
  max-width: 200px;
  padding: 4px 8px;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.bg { background: rgba(63, 185, 80, 0.12); color: var(--green); }
.bo { background: rgba(210, 153, 34, 0.12); color: var(--orange); }
.br { background: rgba(248, 81, 73, 0.12); color: var(--red); }
.bb { background: rgba(78, 168, 255, 0.12); color: var(--accent); }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(63, 185, 80, 0.1);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.2);
}
.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.inflight-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1s infinite;
  vertical-align: middle;
}

.btn {
  background: linear-gradient(180deg, #1a222c 0%, #141a22 100%);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  border-color: rgba(78, 168, 255, 0.55);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 168, 255, 0.08);
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #5eb0ff 0%, #3d8fef 100%);
  border-color: #2f7edb;
  color: #061018;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(61, 143, 239, 0.22);
}
.btn.primary:hover {
  filter: brightness(1.06);
  color: #061018;
  border-color: #4ea8ff;
  box-shadow: 0 8px 20px rgba(61, 143, 239, 0.3);
}
.btn.ghost {
  background: transparent;
  border-color: rgba(78, 168, 255, 0.28);
  color: var(--accent);
}
.btn.ghost:hover {
  background: rgba(78, 168, 255, 0.1);
}
.btn.danger {
  background: transparent;
}
.btn.danger:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.1);
}
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; display: flex; }
.btn.sm.active,
.seg-item.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(78, 168, 255, 0.12);
}

.import-toolbar,
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.list-toolbar { margin-top: 0; margin-bottom: 12px; }

.file-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.file-btn {
  background: linear-gradient(180deg, rgba(78,168,255,.14) 0%, rgba(78,168,255,.06) 100%);
  border-color: rgba(78, 168, 255, 0.35);
  color: var(--accent);
}
.file-btn:hover {
  background: rgba(78, 168, 255, 0.16);
  border-color: var(--accent);
}
.file-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.file-name.has-file {
  color: var(--txt);
  font-family: ui-monospace, Consolas, monospace;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: .15s;
}
.check-pill:hover { border-color: rgba(78,168,255,.4); color: var(--txt); }
.check-pill:has(input:checked) {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.08);
  color: var(--green);
}
.check-pill input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
  margin: 0;
  cursor: pointer;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
}
.seg-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}
.seg-item:hover { color: var(--txt); background: rgba(255,255,255,.04); }
.seg-item.active {
  color: #0b1220;
  background: linear-gradient(180deg, #6bb4ff 0%, #4ea8ff 100%);
  box-shadow: 0 2px 8px rgba(78,168,255,.25);
}

input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
textarea {
  width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.muted { color: var(--muted); font-size: 12px; }
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  font-size: 12px;
  max-height: 380px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 8px;
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2a38;
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 12px 20px;
  border-radius: 10px;
  display: none;
  z-index: 99;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  max-width: 420px;
}
.toast.show { display: block; animation: fade 0.2s; }

.login-line {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-family: Consolas, "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  background: rgba(78, 168, 255, 0.06);
  word-break: break-all;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
}


/* batch ops */
.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.batch-bar .check-pill,
.batch-bar .check-pill {
  margin: 0;
}
.col-check, .col-check {
  width: 36px;
  text-align: center;
}
.col-check input,
.row-check {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.btn.sm.danger, .btn.danger.sm {
  color: var(--red);
  border-color: rgba(248,81,73,.35);
}

/* ===== 实时调用日志着色 ===== */
#liveBox div.live-err   { color:#ff6b6b; background:rgba(255,80,80,0.14); font-weight:600; padding:2px 4px; border-radius:3px; margin:1px 0; }
#liveBox div.live-warn  { color:#e3b341; padding:2px 4px; }
#liveBox div.live-info  { color:#7dd3fc; padding:2px 4px; }
#liveBox div.live-ok    { color:#3fb950; padding:2px 4px; }
#liveBox div.live-err::before  { content:"✖ "; }
#liveBox div.live-warn::before { content:"⚠ "; }
#liveBox div.live-info::before { content:"ℹ "; }
#liveBox div.live-ok::before   { content:"✓ "; }
#liveBox::-webkit-scrollbar { width:8px; }
#liveBox::-webkit-scrollbar-track { background:#0d1117; }
#liveBox::-webkit-scrollbar-thumb { background:#30363d; border-radius:4px; }
#liveBox::-webkit-scrollbar-thumb:hover { background:#484f58; }
