:root {
  color-scheme: light;
  --primary: #1b76d1;
  --primary-dark: #155fa9;
  --primary-soft: #eaf3fc;
  --green: #159a6c;
  --green-soft: #e8f7f1;
  --ink: #172d35;
  --muted: #6b7e87;
  --line: #e2e9ec;
  --surface: #ffffff;
  --background: #f4f7f8;
  --sidebar: #122d32;
  --sidebar-muted: #8da7ac;
  --danger: #c44747;
  --danger-soft: #fff0f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 49, 60, .07);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #fff; flex: none; }
.brand-logo.large { width: 58px; height: 58px; border-radius: 16px; }
.brand-mark {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  flex: 0 0 auto; border-radius: 11px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .8px;
}
.brand-mark.large { width: 58px; height: 58px; border-radius: 16px; font-size: 17px; }
.eyebrow { color: var(--primary); font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: 1.8px; }

.button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px;
  font-weight: 650; transition: background .16s, border-color .16s, transform .16s;
}
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; background: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { color: #38515d; background: #fff; border-color: #d7e1e6; }
.button.secondary:hover { background: #f7fafb; border-color: #bfcfd6; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button.full { width: 100%; min-height: 46px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-button.dark { color: var(--sidebar-muted); }
.icon-button.dark:hover { color: #fff; background: rgba(255,255,255,.08); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(440px, .95fr); background: #fff; }
.login-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 9vw; color: #fff; background: var(--sidebar);
}
.login-brand::after {
  content: "IN"; position: absolute; right: -25px; bottom: -100px; color: rgba(255,255,255,.035);
  font-size: 360px; line-height: 1; font-weight: 900; letter-spacing: -35px; pointer-events: none;
}
.login-brand .brand-mark { margin-bottom: 44px; }
.login-brand .eyebrow { color: #68c5a5; margin-bottom: 16px; }
.login-brand h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.22; letter-spacing: -1.8px; }
.login-brand > p:not(.eyebrow) { max-width: 470px; margin-top: 24px; color: #aac0c5; font-size: 16px; line-height: 1.9; }
.login-scope { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: #d9e8eb; font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(100%, 390px); }
.login-card h2 { margin-top: 12px; font-size: 29px; letter-spacing: -.5px; }
.login-card > .muted { margin: 10px 0 34px; }
.login-card .field { margin-bottom: 19px; }
.login-card .button { margin-top: 8px; }
.login-foot { margin-top: 20px; color: #8a9aa2; text-align: center; font-size: 12px; }
.mobile-brand { display: none; }
.form-error { padding: 10px 12px; color: var(--danger); background: var(--danger-soft); border-radius: 7px; font-size: 13px; }

.field { display: grid; gap: 8px; color: #354d58; font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink);
  background: #fff; border: 1px solid #d7e1e6; border-radius: 8px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,118,209,.1); }
.field small { color: var(--muted); font-size: 11px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 14px 12px; color: #fff; background: var(--sidebar); z-index: 5;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand strong { display: block; font-size: 15px; letter-spacing: .3px; white-space: nowrap; }
.sidebar-brand small { display: block; margin-top: 4px; color: var(--sidebar-muted); font-size: 9px; letter-spacing: 1.3px; }
.nav-list { display: grid; gap: 3px; margin-top: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 2px 6px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nav-list::-webkit-scrollbar { width: 4px; }
.nav-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }
.nav-list::-webkit-scrollbar-track { background: transparent; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 0 12px; flex: 0 0 auto;
  color: #a9bec3; background: transparent; border: 0; border-radius: 8px; text-align: left; font-weight: 550;
}
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.sidebar-boundary { margin-top: 10px; padding: 11px 14px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.035); }
.boundary-icon { display: inline-grid; place-items: center; width: 30px; height: 24px; margin-bottom: 10px; color: #79d6b4; border: 1px solid rgba(121,214,180,.4); border-radius: 6px; font-size: 10px; font-weight: 800; }
.sidebar-boundary strong { display: block; font-size: 12px; }
.sidebar-boundary p { margin-top: 7px; color: var(--sidebar-muted); font-size: 11px; line-height: 1.7; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 5px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #d9eee7; background: #28504f; font-weight: 700; }
.sidebar-user > div { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user small { margin-top: 3px; color: var(--sidebar-muted); font-size: 10px; }

.main-area { min-width: 0; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 36px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { margin-bottom: 7px; color: #8b9aa2; font-size: 11px; }
.breadcrumb span { color: var(--primary); }
.topbar h1 { font-size: 23px; letter-spacing: -.4px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.scope-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; color: #23775b; background: var(--green-soft); border: 1px solid #d5eee4; border-radius: 999px; font-size: 12px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #25b582; box-shadow: 0 0 0 3px rgba(37,181,130,.12); }
.content { max-width: 1500px; margin: 0 auto; padding: 28px 36px 42px; }

.scope-banner { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding: 17px 19px; background: #edf6f3; border: 1px solid #d9ebe5; border-radius: var(--radius); }
.scope-symbol { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--green); border-radius: 10px; font-size: 12px; font-weight: 800; }
.scope-banner > div:nth-child(2) { flex: 1; }
.scope-banner strong { font-size: 13px; }
.scope-banner p { margin-top: 5px; color: #648079; font-size: 12px; line-height: 1.6; }
.ov-mon-badges { display: inline-flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.ov-mon-badges.hidden { display: none; }
.ov-mon-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; cursor: default; }
.ov-mon-pill i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ov-mon-pill b { font-weight: 700; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag.blue { color: var(--primary); background: var(--primary-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }
.tag.gray { color: #70818a; background: #edf1f3; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { position: relative; overflow: hidden; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--primary); }
.stat-card.green::after { background: var(--green); }
.stat-card.neutral::after { background: #94a8b2; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-size: 11px; font-weight: 800; }
.stat-card.green .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-value { margin-top: 14px; font-size: 30px; line-height: 1; font-weight: 750; letter-spacing: -.8px; }
.stat-note { margin-top: 10px; color: #8a9aa2; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-header h2 { font-size: 15px; }
.card-header p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.call-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 30px 24px 34px; }
.flow-node { position: relative; min-width: 0; padding: 18px 13px; text-align: center; background: #f8fafb; border: 1px solid #e4ebee; border-radius: 10px; }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -22px; transform: translateY(-50%); color: #8ca2ac; font-size: 20px; }
.flow-node.focus { background: #f0f8f5; border-color: #cce8dd; }
.flow-icon { width: 36px; height: 36px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--primary); background: var(--primary-soft); border-radius: 9px; font-size: 10px; font-weight: 800; }
.flow-node.focus .flow-icon { color: var(--green); background: #dff2eb; }
.flow-node strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.flow-node p { margin-top: 7px; overflow-wrap: anywhere; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.5; }
.flow-number { margin-top: 12px; padding-top: 10px; color: var(--primary); border-top: 1px dashed #dce6ea; font-size: 10px; }
.check-list { display: grid; gap: 0; margin: 0; padding: 8px 22px 14px; list-style: none; }
.check-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1f3; }
.check-list li:last-child { border: 0; }
.check-list li > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 12px; font-weight: 800; }
.check-list li.neutral > span { color: #7b8e97; background: #edf1f3; }
.check-list strong { display: block; font-size: 12px; }
.check-list p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-toolbar h2 { font-size: 17px; }
.section-toolbar p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: #71838d; background: #f8fafb; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 650; white-space: nowrap; }
td { padding: 17px 18px; border-bottom: 1px solid #edf1f3; vertical-align: middle; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfc; }
.align-right { text-align: right; }
.cell-title { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.node-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-size: 10px; font-weight: 800; }
.cell-title strong, .cell-title small { display: block; }
.cell-title strong { font-size: 12px; }
.cell-title small { margin-top: 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.number-main { color: #173f5a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 700; }
.address { color: #34505f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.remark-cell { max-width: 220px; color: var(--muted); line-height: 1.5; }
.status-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green); white-space: nowrap; }
.status-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-label.disabled { color: #8b9aa2; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.text-button { padding: 5px 8px; color: var(--primary); background: transparent; border: 0; border-radius: 5px; font-size: 12px; }
.text-button:hover { background: var(--primary-soft); }
.text-button.danger { color: var(--danger); }
.text-button.danger:hover { background: var(--danger-soft); }
.empty-state { padding: 48px 20px !important; color: var(--muted); text-align: center; }

.config-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 16px 18px; color: #75541f; background: #fff8e9; border: 1px solid #f0e2be; border-radius: 10px; }
.config-notice strong { font-size: 13px; }
.config-notice p { margin-top: 5px; color: #8b744e; font-size: 11px; line-height: 1.6; }
.config-card { overflow: hidden; }
.config-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tab-list { display: flex; gap: 4px; }
.tab { min-height: 35px; padding: 0 13px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 12px; }
.tab:hover { background: #f3f6f7; }
.tab.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.code-actions { display: flex; gap: 7px; }
.config-meta { display: flex; justify-content: space-between; gap: 20px; padding: 10px 18px; color: #8b9aa2; background: #f8fafb; border-bottom: 1px solid var(--line); font-size: 10px; }
.code-view { min-height: 520px; max-height: 68vh; overflow: auto; margin: 0; padding: 24px; color: #d8e8ed; background: #14292f; font: 12px/1.85 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 2; white-space: pre; }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(10,30,36,.48); }
.modal-card { width: min(100%, 620px); max-height: 92vh; overflow-y: auto; padding: 25px; background: #fff; border-radius: 14px; box-shadow: 0 25px 70px rgba(9,29,36,.22); }
.modal-card.compact { width: min(100%, 450px); }
.modal-card.wide { width: min(100%, 880px); }
.guide-body h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13.5px; }
.guide-body h3:first-child { margin-top: 0; }
.guide-body table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.guide-body th, .guide-body td { padding: 7px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.guide-body th { background: #f2f7f6; font-weight: 650; white-space: nowrap; }
.guide-body td.mono { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; color: #4a6570; }
.guide-note { margin-top: 16px; padding: 12px 14px; background: #f2f7f6; border-radius: 10px; font-size: 12.5px; line-height: 1.9; color: #33565f; }
.guide-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.guide-badge.ok { color: #1c7a4e; background: #e2f4ea; }
.guide-badge.warn { color: #9a6b00; background: #fdf3d7; }
.guide-badge.bad { color: #b3352e; background: #fbe4e2; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.modal-head h2 { margin-top: 7px; font-size: 20px; }
.modal-close { width: 32px; height: 32px; color: #6e828b; background: #f2f5f6; border: 0; border-radius: 8px; font-size: 23px; line-height: 1; }
.modal-card .field { margin-bottom: 17px; }
.modal-card .form-grid .field { margin-bottom: 0; }
.modal-card .form-grid { margin-bottom: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; gap: 9px; color: #536a75; font-size: 12px; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--primary); }
.inline-notice { margin-bottom: 19px; padding: 11px 13px; color: #2b6d58; background: var(--green-soft); border-radius: 7px; font-size: 12px; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 50; max-width: 420px; padding: 13px 18px; color: #fff; background: #23464d; border-radius: 9px; box-shadow: var(--shadow); font-size: 13px; }
.toast.error { background: #9f4141; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .call-flow { gap: 22px; }
  .flow-node:not(:last-child)::after { right: -18px; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; font-weight: 750; }
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 20px 10px 14px; }
  .sidebar-brand { justify-content: center; padding: 0 0 20px; }
  .sidebar-brand > div, .nav-item:not(.active) { }
  .sidebar-brand > div, .sidebar-boundary, .sidebar-user > div { display: none; }
  .nav-item { justify-content: center; padding: 0; font-size: 0; }
  .nav-item svg { width: 21px; height: 21px; }
  .sidebar-user { justify-content: center; padding: 14px 0 0; }
  .sidebar-user .avatar { display: none; }
  .content, .topbar { padding-left: 22px; padding-right: 22px; }
  .call-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-node:nth-child(2)::after { display: none; }
  .config-head { align-items: flex-start; flex-direction: column; }
  .tab-list { width: 100%; overflow-x: auto; }
}

@media (max-width: 560px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 12px 14px; flex-direction: row; align-items: center; }
  .sidebar-brand { padding: 0; border: 0; }
  .sidebar-brand .brand-mark { width: 35px; height: 35px; }
  .nav-list { display: flex; flex: 1; justify-content: flex-end; gap: 3px; margin: 0; }
  .nav-item { width: 38px; min-height: 38px; }
  .sidebar-user { margin: 0; padding: 0; border: 0; }
  .topbar { min-height: 90px; padding: 17px 18px; }
  .topbar h1 { font-size: 20px; }
  .topbar-actions .scope-pill { display: none; }
  .content { padding: 18px 14px 30px; }
  .scope-banner { align-items: flex-start; }
  .scope-banner > .tag { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-value { font-size: 25px; }
  .call-flow { grid-template-columns: 1fr; }
  .flow-node:not(:last-child)::after { content: "↓"; display: block; top: auto; right: 50%; bottom: -25px; transform: translateX(50%); }
  .section-toolbar { align-items: flex-start; }
  .section-toolbar .button { padding: 0 12px; font-size: 12px; }
  .config-notice { align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal-card { padding: 20px; }
  .code-view { padding: 17px; font-size: 11px; }
  .config-meta { flex-direction: column; gap: 5px; }
}

/* 实时并发徽标 (2026-11-10) */
.stats-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; color: #1b6fb8; background: var(--primary-soft); border: 1px solid #cfe2f5; border-radius: 999px; font-size: 12px; font-weight: 650; cursor: pointer; }
.stats-badge b { font-size: 15px; color: var(--primary-dark); line-height: 1; }
.stats-badge .stats-dot { width: 7px; height: 7px; border-radius: 50%; background: #25b582; box-shadow: 0 0 0 3px rgba(37,181,130,.12); }
.stats-badge.live { color: #23775b; background: var(--green-soft); border-color: #d5eee4; }
.stats-badge.live b { color: var(--green); }
.stats-badge.err { color: var(--danger); background: var(--danger-soft); border-color: #f2d4d4; }
.stats-badge.err .stats-dot { background: var(--danger); box-shadow: none; }
/* 路由搜索框 (2026-11-10) */
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; display: inline-flex; align-items: center; }
.search-box input[type="search"] { min-width: 260px; height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink); outline: none; }
.search-box input[type="search"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,118,209,.10); }
.search-clear { position: absolute; right: 6px; width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--background); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.search-clear:hover { color: var(--danger); }
