/* generated by build_static_assets.py sha256=a8aa4cd5829eea079404366300437939118b35677f04db4fa33c30b617ee9599 */

/* source: snpr-tokens.css */
:root {
  color-scheme: light;
  --snpr-color-bg: #edf4fb;
  --snpr-color-panel: #ffffff;
  --snpr-color-panel-2: #f8fbfe;
  --snpr-color-panel-3: #f2f7fc;
  --snpr-color-line: #ccdce9;
  --snpr-color-line-soft: #e5edf5;
  --snpr-color-text: #243348;
  --snpr-color-muted: #6f8095;
  --snpr-color-strong: #142236;
  --snpr-color-good: #13845d;
  --snpr-color-bad: #d3414d;
  --snpr-color-warn: #aa761d;
  --snpr-color-brand: #1f6fb8;
  --snpr-color-brand-soft: #e7f2fd;
  --snpr-color-bot1: #2377c9;
  --snpr-color-bot2: #7563b9;
  --snpr-surface-glass: rgba(255, 255, 255, .72);
  --snpr-surface-glass-strong: rgba(255, 255, 255, .9);
  --snpr-shadow-soft: 0 14px 38px rgba(38, 59, 84, .1);
  --snpr-shadow-panel: 0 18px 48px rgba(38, 59, 84, .12);
  --snpr-type-micro: 10px;
  --snpr-type-label: 11px;
  --snpr-type-body: 12px;
  --snpr-type-title: 14px;
  --snpr-radius-control: 4px;
  --snpr-radius-panel: 6px;
  --snpr-space-1: 4px;
  --snpr-space-2: 8px;
  --snpr-space-3: 12px;
  --snpr-space-4: 16px;
  --snpr-space-5: 22px;
  --snpr-layout-max: 1480px;
  --snpr-motion-fast: 160ms;
  --snpr-motion-standard: 260ms;
}

/* source: snpr.css */
:root {
  color-scheme: light;
  --bg: var(--snpr-color-bg);
  --panel: var(--snpr-color-panel);
  --panel-2: var(--snpr-color-panel-2);
  --panel-3: var(--snpr-color-panel-3);
  --line: var(--snpr-color-line);
  --line-soft: var(--snpr-color-line-soft);
  --text: var(--snpr-color-text);
  --muted: var(--snpr-color-muted);
  --strong: var(--snpr-color-strong);
  --good: var(--snpr-color-good);
  --bad: var(--snpr-color-bad);
  --warn: var(--snpr-color-warn);
  --brand: var(--snpr-color-brand);
  --brand-soft: var(--snpr-color-brand-soft);
  --glass: var(--snpr-surface-glass);
  --glass-strong: var(--snpr-surface-glass-strong);
  --shadow-soft: var(--snpr-shadow-soft);
  --shadow-panel: var(--snpr-shadow-panel);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -8%, rgba(35, 110, 181, 0.20), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(22, 134, 95, 0.10), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 46%, #e7f0f8 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
}
body::before {
  content: "";
  position: fixed;
  inset: 70px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35,110,181,0.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,110,181,0.040) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.58), transparent 72%);
}
a { color: inherit; text-decoration: none; }
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(247,251,255,0.88)),
    radial-gradient(circle at 12% 50%, rgba(35,110,181,0.10), transparent 28%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 28px rgba(43, 62, 84, 0.08);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(35,110,181,0.045) 1px, transparent 1px),
    linear-gradient(rgba(35,110,181,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.5), transparent 52%);
  pointer-events: none;
}
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 820;
  font-size: 13px;
  background: linear-gradient(135deg, #1f6fb8, #245a96);
  box-shadow: 0 10px 22px rgba(35, 110, 181, 0.22);
}
.brand-text {
  display: grid;
  gap: 2px;
}
.brand-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #16865f;
  font-size: 12px;
  font-weight: 680;
  margin-left: 6px;
}
.topbar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a66e;
  box-shadow: 0 0 0 5px rgba(22,134,95,0.11);
}
.brand { font-weight: 780; letter-spacing: 0; color: var(--strong); }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  padding: 5px;
  border: 1px solid rgba(185, 205, 224, 0.76);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 8px 20px rgba(43,62,84,0.06);
}
.nav a, .btn {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 680;
}
.nav a.active, .nav a:hover, .btn:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #b8d2ea;
  box-shadow: 0 4px 12px rgba(35,110,181,0.10);
}
.layout { max-width: 1480px; margin: 0 auto; padding: 22px 28px 32px; position: relative; z-index: 1; }
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px 24px;
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(196, 214, 229, 0.80);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(241,248,253,0.62)),
    linear-gradient(90deg, rgba(35,110,181,0.040), transparent 46%);
  box-shadow: 0 8px 22px rgba(38, 59, 84, 0.06);
  color: var(--muted);
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--strong);
  font-weight: 760;
}
.site-footer-brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f6fb8;
  box-shadow: 0 0 0 5px rgba(35,110,181,0.10);
}
.site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(199, 217, 232, 0.88);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: #506981;
  font-size: 12px;
  font-weight: 650;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h1 { font-size: 22px; margin: 0 0 5px; letter-spacing: 0; color: var(--strong); }
h2 { font-size: 14px; margin: 0; letter-spacing: 0; color: var(--strong); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 254, 0.86)),
    linear-gradient(135deg, rgba(35,110,181,0.045), transparent 42%);
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(14px);
}
.layout > .panel,
.layout > section.panel {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35,110,181,0.28), rgba(22,134,95,0.16), transparent);
  pointer-events: none;
}
.panel-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(224, 234, 243, 0.92);
  background:
    linear-gradient(90deg, rgba(244, 249, 253, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(35,110,181,0.045), transparent 44%);
}
.panel-body { padding: 14px; }
.metric {
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 253, 0.90)),
    radial-gradient(circle at 100% 0%, rgba(35, 110, 181, 0.08), transparent 38%);
}
.metric-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.metric-value { font-size: 23px; line-height: 1.15; font-weight: 760; color: var(--strong); letter-spacing: 0; }
.metric-sub { margin-top: 6px; color: var(--muted); font-size: 12px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}
.hero-grid > .grid.cols-2 {
  height: 100%;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}
.hero-grid > .grid.cols-2 > .metric {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 17px;
}
.health-hero {
  min-height: 190px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(242,248,253,0.90)),
    radial-gradient(circle at 100% 0%, rgba(35,110,181,0.12), transparent 40%);
}
.health-hero-link {
  display: block;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.health-hero-link:hover {
  border-color: #9dc6e9;
  box-shadow: 0 18px 46px rgba(35,110,181,0.15);
  transform: translateY(-1px);
}
.health-detail-hero {
  max-width: 780px;
}
.health-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.health-switch-card {
  width: 100%;
  min-height: 244px;
  padding: 16px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.health-switch-card:hover,
.health-switch-card.active {
  border-color: #9dc6e9;
  box-shadow: 0 18px 46px rgba(35,110,181,0.15);
  transform: translateY(-1px);
}
.health-switch-card.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #2d79bd, #18a06e);
}
.self-heal-switch-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,250,254,0.90)),
    radial-gradient(circle at 100% 0%, rgba(22,134,95,0.10), transparent 38%);
}
.health-switch-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(224,234,243,0.92);
  color: #2d6f9f;
  font-size: 12px;
  font-weight: 760;
}
.health-tab-panel {
  display: none;
}
.health-tab-panel.active {
  display: block;
}
.health-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.health-hero-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
  justify-items: end;
}
.health-title {
  color: var(--strong);
  font-size: 15px;
  font-weight: 780;
}
.health-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.health-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.health-count {
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,0.68);
}
.health-count span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}
.health-count strong {
  color: var(--strong);
  font-size: 19px;
  line-height: 1.1;
}
.health-notes {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.health-note {
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(244,249,253,0.76);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-grid > .health-hero .health-notes {
  grid-template-rows: repeat(2, 30px);
  min-height: 66px;
  max-height: 66px;
  overflow: hidden;
}
.rotating-note {
  animation: selfHealPulse 18s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.8s);
}
@keyframes selfHealPulse {
  0%, 72%, 100% { border-color: var(--line-soft); background: rgba(248,251,254,0.82); }
  12%, 28% { border-color: rgba(35,110,181,0.25); background: rgba(236,247,255,0.90); }
}
.self-heal-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,250,254,0.90)),
    linear-gradient(135deg, rgba(22,134,95,0.050), transparent 46%);
}
.self-heal-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.self-heal-overview > div {
  min-height: 82px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,0.72);
}
.self-heal-overview span,
.self-heal-overview em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.self-heal-overview strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--strong);
  font-size: 18px;
  line-height: 1.1;
}
.self-heal-subhead {
  min-height: 38px;
  background: rgba(244,249,253,0.72);
}
.self-heal-actions table { min-width: 1280px; }
.self-heal-actions th:nth-child(1), .self-heal-actions td:nth-child(1) { width: 150px; }
.self-heal-actions th:nth-child(2), .self-heal-actions td:nth-child(2) { width: 105px; }
.self-heal-actions th:nth-child(3), .self-heal-actions td:nth-child(3) { width: 70px; }
.self-heal-actions th:nth-child(4), .self-heal-actions td:nth-child(4) { width: 260px; }
.self-heal-actions th:nth-child(5), .self-heal-actions td:nth-child(5) { width: 230px; }
.self-heal-actions th:nth-child(6), .self-heal-actions td:nth-child(6) { width: 190px; }
.self-heal-fuses table { min-width: 920px; }
.self-heal-policies table { min-width: 1180px; }
.health-detail-table table { min-width: 1040px; }
.health-detail-table th:nth-child(1), .health-detail-table td:nth-child(1) { width: 52px; }
.health-detail-table th:nth-child(2), .health-detail-table td:nth-child(2) { width: 120px; }
.health-detail-table th:nth-child(3), .health-detail-table td:nth-child(3) { width: 260px; }
.health-detail-table th:nth-child(4), .health-detail-table td:nth-child(4) { width: 120px; }
.health-task-table table { min-width: 1160px; }
.health-task-table th:nth-child(1), .health-task-table td:nth-child(1) { width: 110px; }
.health-task-table th:nth-child(2), .health-task-table td:nth-child(2) { width: 210px; }
.health-task-table th:nth-child(3), .health-task-table td:nth-child(3) { width: 120px; }
.health-task-table th:nth-child(4), .health-task-table td:nth-child(4) { width: 170px; }
.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.section-card {
  display: block;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,249,253,0.88)),
    radial-gradient(circle at 100% 0%, rgba(35,110,181,0.075), transparent 42%);
  box-shadow: var(--shadow-soft);
}
.section-card:hover {
  border-color: #a9cce9;
  box-shadow: 0 18px 42px rgba(43,62,84,0.12);
  transform: translateY(-1px);
}
.section-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.section-card strong {
  display: block;
  color: var(--strong);
  font-size: 16px;
  margin-bottom: 8px;
}
.section-card em {
  display: block;
  color: #416078;
  font-style: normal;
  line-height: 1.55;
}
.quick-nav {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(238, 246, 252, 0.78), rgba(255,255,255,0.66)),
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(238,246,252,0.48));
  box-shadow: 0 10px 26px rgba(38, 59, 84, 0.07);
}
.quick-nav-head {
  padding: 10px 12px;
  border-right: 1px solid rgba(203, 221, 234, 0.82);
}
.quick-nav-head span {
  display: block;
  color: #2d6fa8;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.quick-nav-head strong {
  display: block;
  color: var(--strong);
  font-size: 16px;
}
.quick-nav-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.quick-nav-item {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 11px 12px;
  border: 1px solid #d7e5f1;
  border-radius: 6px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 5px 14px rgba(38,59,84,0.045);
}
.quick-nav-item:hover {
  border-color: #9dc6e9;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}
.quick-nav-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .06em;
}
.quick-nav-item strong {
  color: var(--strong);
  font-size: 15px;
  line-height: 1.2;
}
.quick-nav-item em {
  color: #49647c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.bot-module-strip {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  margin: 14px 0;
  border: 1px solid rgba(196, 214, 229, 0.92);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(250,252,254,0.92), rgba(239,246,252,0.78));
  box-shadow: 0 10px 24px rgba(38,59,84,0.07);
  overflow: hidden;
}
.bot-module-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(31,111,184,0.12), rgba(255,255,255,0.58)),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(234,244,251,0.68));
  border-right: 1px solid rgba(196, 214, 229, 0.88);
}
.bot-module-head span {
  color: #2d6fa8;
  font-size: 11px;
  font-weight: 840;
  letter-spacing: .08em;
}
.bot-module-head strong {
  color: var(--strong);
  font-size: 17px;
  line-height: 1.1;
}
.bot-module-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bot-module-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 13px 14px;
  border-right: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.52);
}
.bot-module-item:last-child {
  border-right: 0;
}
.bot-module-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(235,246,255,0.82));
}
.bot-module-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #c7ddec;
  background: #ffffff;
  color: #2d6fa8;
  font-size: 12px;
  font-weight: 840;
}
.bot-module-copy span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.bot-module-copy strong {
  display: block;
  color: var(--strong);
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 5px;
}
.bot-module-copy em {
  display: block;
  color: #52687f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.history-table table { min-width: 1180px; table-layout: fixed; }
.history-table th:nth-child(1), .history-table td:nth-child(1) { width: 150px; }
.history-table th:nth-child(2), .history-table td:nth-child(2),
.history-table th:nth-child(3), .history-table td:nth-child(3),
.history-table th:nth-child(4), .history-table td:nth-child(4),
.history-table th:nth-child(6), .history-table td:nth-child(6),
.history-table th:nth-child(8), .history-table td:nth-child(8) { width: 130px; }
.history-table th:nth-child(5), .history-table td:nth-child(5),
.history-table th:nth-child(7), .history-table td:nth-child(7),
.history-table th:nth-child(9), .history-table td:nth-child(9) { width: 86px; text-align: center; }
.history-date-link {
  color: #235f9b;
  font-weight: 760;
}
.history-business-day {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.monitor-leaderboard-panel .panel-head {
  align-items: flex-start;
}
.monitor-leaderboard-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,250,254,0.90)),
    linear-gradient(90deg, rgba(31,111,184,0.055), rgba(36,150,129,0.035));
}
.monitor-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 12px 14px 14px;
}
.leaderboard-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(188, 211, 229, 0.92);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,253,0.88)),
    linear-gradient(135deg, rgba(31,111,184,0.06), rgba(34,154,124,0.025) 54%, transparent);
  box-shadow:
    0 9px 22px rgba(39, 62, 88, 0.065),
    inset 0 1px 0 rgba(255,255,255,0.82);
  overflow: hidden;
}
.leaderboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(31,111,184,0.62), rgba(38,156,128,0.46), rgba(152,182,207,0.18));
}
.leaderboard-card-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px 8px;
  border-bottom: 1px solid rgba(213,228,240,0.92);
  background: linear-gradient(180deg, rgba(247,251,254,0.92), rgba(240,247,252,0.76));
}
.leaderboard-card h3 {
  margin: 0;
  color: var(--strong);
  font-size: 14px;
  line-height: 1.2;
}
.leaderboard-table {
  margin: 0;
}
.leaderboard-table table {
  min-width: 400px;
  table-layout: fixed;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 8px 6px;
  font-size: 12px;
}
.leaderboard-table thead th {
  background: rgba(247,251,254,0.78);
}
.leaderboard-table tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.leaderboard-table tbody tr:hover {
  background: rgba(232,243,252,0.66);
  box-shadow: inset 2px 0 0 rgba(31,111,184,0.34);
}
.leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 38px; text-align: center; }
.leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 126px; }
.leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { width: 108px; }
.leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { width: 66px; text-align: right; }
.leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5) { width: 56px; text-align: center; }
.leaderboard-sort-head {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  padding: 0;
}
.leaderboard-sort-head:hover,
.leaderboard-sort-head.active {
  color: #1f6fb8;
}
.leaderboard-sort-head.active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.leaderboard-rank {
  color: #2d6fa8;
  font-weight: 820;
}
.leaderboard-wallet {
  white-space: nowrap;
}
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #244e73;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: baseline;
}
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text:hover,
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text:focus-visible {
  border: 0;
  background: transparent;
  color: #1f6fa5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  outline: none;
}
.home-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.92fr);
  gap: 18px;
  min-height: 318px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(242,248,253,0.88)),
    radial-gradient(circle at 13% 18%, rgba(31,111,184,0.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(22,134,95,0.10), transparent 32%);
}
.home-command::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(31,111,184,0.05) 1px, transparent 1px),
    linear-gradient(rgba(31,111,184,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.58), transparent 68%);
  pointer-events: none;
}
.home-command-main,
.home-command-side {
  position: relative;
  z-index: 1;
}
.home-command-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #cbddea;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #236eb5;
  font-size: 11px;
  font-weight: 820;
}
.home-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f6fb8;
  box-shadow: 0 0 0 5px rgba(31,111,184,0.11);
}
.home-title {
  margin: 16px 0 8px;
  color: #102035;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 860;
  letter-spacing: 0;
}
.home-subtitle {
  max-width: 760px;
  color: #60758c;
  line-height: 1.7;
  font-size: 13px;
}
.home-profit-line {
  display: grid;
  gap: 7px;
}
.home-profit-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.home-profit-value {
  color: var(--strong);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1;
  font-weight: 880;
  letter-spacing: 0;
}
.home-profit-value.good { color: #0f7a58; }
.home-profit-value.bad { color: #bd3441; }
.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-kpi {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(196,214,229,0.86);
  border-radius: 6px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 8px 18px rgba(43,62,84,0.06);
}
.home-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.home-kpi strong {
  display: block;
  color: var(--strong);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 820;
}
.home-kpi em {
  display: block;
  margin-top: 5px;
  color: #6c7e93;
  font-style: normal;
  font-size: 11px;
}
.home-command-side {
  display: grid;
  gap: 12px;
}
.home-health-card {
  padding: 15px;
  border: 1px solid rgba(196,214,229,0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow-soft);
}
.home-health-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.home-health-title {
  color: var(--strong);
  font-size: 14px;
  font-weight: 820;
}
.home-health-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.home-health-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.home-health-stat {
  padding: 9px;
  border-radius: 6px;
  background: rgba(244,249,253,0.82);
  border: 1px solid var(--line-soft);
}
.home-health-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.home-health-stat strong {
  color: var(--strong);
  font-size: 17px;
  line-height: 1;
}
.home-health-notes {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}
.home-health-note {
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(248,251,254,0.82);
  color: #52687f;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-quick {
  min-height: 70px;
  padding: 11px;
  border: 1px solid rgba(196,214,229,0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.66);
}
.home-quick span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.home-quick strong {
  display: block;
  color: #244563;
  font-size: 15px;
}
.home-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.home-bot-card {
  position: relative;
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(196,214,229,0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,249,253,0.88)),
    radial-gradient(circle at 100% 0%, rgba(31,111,184,0.10), transparent 40%);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.home-bot-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #1f6fb8, #18a66e);
}
.home-bot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.home-bot-name {
  color: var(--strong);
  font-size: 18px;
  font-weight: 840;
}
.home-bot-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.home-bot-net {
  color: var(--strong);
  font-size: 27px;
  line-height: 1.05;
  font-weight: 860;
  letter-spacing: 0;
}
.home-bot-net.good { color: #0f7a58; }
.home-bot-net.bad { color: #bd3441; }
.home-bot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.home-bot-stat {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,0.62);
}
.home-bot-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.home-bot-stat strong {
  color: #21364e;
  font-size: 13px;
}
.home-bot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.home-bot-links a {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cbddea;
  border-radius: 999px;
  background: #ffffff;
  color: #236eb5;
  font-size: 12px;
  font-weight: 720;
}
.home-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.home-section-title h2 {
  font-size: 16px;
}
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.dashboard-kicker {
  color: #2d6fa8;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-title {
  margin: 5px 0 6px;
  color: #102033;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 840;
}
.dashboard-meta {
  color: var(--muted);
  line-height: 1.55;
}
.dashboard-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d3e2ef;
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 20px rgba(38, 59, 84, 0.06);
}
.dashboard-status span:last-child {
  color: var(--muted);
  font-size: 12px;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: 1.34fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-card {
  position: relative;
  min-height: 132px;
  padding: 15px;
  border: 1px solid rgba(198, 215, 230, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,254,0.92));
  box-shadow: 0 10px 26px rgba(38, 59, 84, 0.07);
  overflow: hidden;
}
.dashboard-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(31,111,184,0.46), rgba(22,134,95,0.20), transparent);
}
.dashboard-card.primary {
  min-height: 170px;
  background:
    linear-gradient(135deg, #ffffff, #f5f9fd),
    radial-gradient(circle at 100% 0%, rgba(31,111,184,0.10), transparent 42%);
}
.dashboard-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.dashboard-value {
  margin-top: 10px;
  color: var(--strong);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 840;
  letter-spacing: 0;
}
.dashboard-card.primary .dashboard-value {
  font-size: clamp(38px, 4vw, 52px);
  line-height: .98;
}
.dashboard-value.good { color: #0f7a58; }
.dashboard-value.bad { color: #bd3441; }
.dashboard-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .82fr);
  gap: 12px;
  margin-top: 12px;
}
.bot-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bot-status-card {
  min-height: 176px;
  padding: 14px;
  border: 1px solid rgba(198, 215, 230, 0.92);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(38,59,84,0.06);
}
.bot-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.bot-status-name {
  color: var(--strong);
  font-size: 17px;
  font-weight: 820;
}
.bot-status-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.bot-status-net {
  color: var(--strong);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 840;
  white-space: nowrap;
}
.bot-status-net.good { color: #0f7a58; }
.bot-status-net.bad { color: #bd3441; }
.bot-status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.bot-status-metric {
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f8fbfe;
}
.bot-status-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.bot-status-metric strong {
  color: #20354d;
  font-size: 13px;
  line-height: 1.25;
}
.bot-status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.bot-status-links a,
.dashboard-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #cbddea;
  border-radius: 7px;
  background: #fff;
  color: #236eb5;
  font-size: 12px;
  font-weight: 720;
}
.health-compact-card {
  min-height: 176px;
  padding: 14px;
  border: 1px solid rgba(198, 215, 230, 0.92);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(38,59,84,0.06);
}
.health-compact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.health-compact-title {
  color: var(--strong);
  font-size: 15px;
  font-weight: 820;
}
.health-compact-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.health-compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.health-compact-stat {
  padding: 8px;
  border-radius: 7px;
  background: #f8fbfe;
  border: 1px solid var(--line-soft);
}
.health-compact-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.health-compact-stat strong {
  color: var(--strong);
  font-size: 17px;
}
.health-compact-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.health-compact-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f8fbfe;
  border: 1px solid var(--line-soft);
  color: #52687f;
  font-size: 12px;
}
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dashboard-action {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(198, 215, 230, 0.92);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 8px 20px rgba(38,59,84,0.05);
}
.dashboard-action span {
  display: block;
  color: #2d6fa8;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.dashboard-action strong {
  display: block;
  color: var(--strong);
  font-size: 15px;
  margin-bottom: 6px;
}
.dashboard-action em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}
.page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.70);
  box-shadow: 0 8px 20px rgba(43,62,84,0.06);
}
.date-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-filter-form input[type="date"] {
  width: auto;
  min-height: 34px;
  padding: 6px 9px;
}
.date-filter-form button,
.date-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #cbddea;
  border-radius: 6px;
  background: #ffffff;
  color: #236eb5;
  font-weight: 720;
}
.fund-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.fund-card {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(241,248,253,0.92)),
    radial-gradient(circle at 100% 0%, rgba(35,110,181,0.10), transparent 38%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.fund-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(35,110,181,0.42), rgba(22,134,95,0.22), transparent);
}
.fund-card-label { color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.fund-card-value { color: var(--strong); font-size: 24px; line-height: 1.12; font-weight: 760; }
.fund-card-sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.fund-suite-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.fund-suite-card {
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,250,253,0.84));
  padding: 12px;
}
.fund-suite-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--strong);
  font-weight: 720;
  margin-bottom: 10px;
}
.fund-suite-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.fund-suite-line strong { color: #22364d; }
.competitor-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.competitor-review-card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243,248,252,0.90)),
    radial-gradient(circle at 100% 0%, rgba(35,110,181,0.09), transparent 42%);
  box-shadow: var(--shadow-soft);
}
.competitor-review-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.competitor-review-card strong {
  color: var(--strong);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}
.competitor-manager-table table { min-width: 1720px; table-layout: fixed; }
.competitor-manager-table th,
.competitor-manager-table td { padding: 9px 10px; vertical-align: middle; }
.competitor-manager-table th:nth-child(1), .competitor-manager-table td:nth-child(1) { width: 210px; }
.competitor-manager-table th:nth-child(2), .competitor-manager-table td:nth-child(2) { width: 112px; text-align: center; }
.competitor-manager-table th:nth-child(3), .competitor-manager-table td:nth-child(3) { width: 84px; text-align: center; }
.competitor-manager-table th:nth-child(4), .competitor-manager-table td:nth-child(4) { width: 84px; text-align: center; }
.competitor-manager-table th:nth-child(5), .competitor-manager-table td:nth-child(5) { width: 96px; text-align: center; }
.competitor-manager-table th:nth-child(6), .competitor-manager-table td:nth-child(6) { width: 92px; text-align: center; }
.competitor-manager-table th:nth-child(7), .competitor-manager-table td:nth-child(7) { width: 82px; text-align: center; }
.competitor-manager-table th:nth-child(8), .competitor-manager-table td:nth-child(8),
.competitor-manager-table th:nth-child(9), .competitor-manager-table td:nth-child(9),
.competitor-manager-table th:nth-child(10), .competitor-manager-table td:nth-child(10) { width: 104px; text-align: right; }
.competitor-manager-table th:nth-child(11), .competitor-manager-table td:nth-child(11) { width: 156px; }
.competitor-manager-table th:nth-child(12), .competitor-manager-table td:nth-child(12) { width: 240px; }
.competitor-manager-table th:nth-child(13), .competitor-manager-table td:nth-child(13) { width: 184px; }
.competitor-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef7ff;
  color: #236eb5;
  font-weight: 800;
}
.competitor-source-cell,
.competitor-review-note {
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
  line-height: 1.45;
}
.competitor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.competitor-actions form {
  margin: 0;
}
.competitor-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  border: 1px solid transparent;
  background: #fff;
}
.competitor-action-btn.approve {
  color: #0f7a58;
  background: linear-gradient(180deg, #effbf6, #e6f7f0);
  border-color: #b9e6d4;
}
.competitor-action-btn.reject {
  color: #b42318;
  background: linear-gradient(180deg, #fff6f5, #fdecec);
  border-color: #f2c4bf;
}
.competitor-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(43,62,84,0.10);
}
.competitor-status-done {
  color: var(--muted);
  font-weight: 720;
}
.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #cbddea;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbfe, #eef6fc);
  color: #244563;
  font-weight: 650;
}
.notice.bad {
  border-color: #f0c4c2;
  background: linear-gradient(180deg, #fff8f7, #fdeeee);
  color: #a3312b;
}
.config-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.config-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 22px rgba(43,62,84,0.05);
}
.config-filter-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.config-filter-btn {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cbddea;
  border-radius: 999px;
  background: rgba(248,251,254,0.92);
  color: #2b679a;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}
.config-filter-btn.active {
  border-color: #9dc7ea;
  background: linear-gradient(180deg, #eef8ff, #e5f2fd);
  color: #1765a6;
}
.config-search {
  width: 240px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.config-section {
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(246,251,254,0.78)),
    radial-gradient(circle at 100% 0%, rgba(35,110,181,0.055), transparent 42%);
  overflow: hidden;
}
.config-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(224, 234, 243, 0.92);
}
.config-section-head strong {
  color: var(--strong);
  font-size: 14px;
}
.config-section-head span {
  color: var(--muted);
  font-size: 12px;
}
.config-table {
  min-width: 1040px;
  table-layout: fixed;
}
.config-table th,
.config-table td {
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}
.config-table th:nth-child(1),
.config-table td:nth-child(1) {
  width: 210px;
}
.config-table th:nth-child(2),
.config-table td:nth-child(2) {
  width: 150px;
}
.config-table th:nth-child(3),
.config-table td:nth-child(3) {
  width: 170px;
}
.config-table th:nth-child(4),
.config-table td:nth-child(4) {
  width: 72px;
  text-align: center;
}
.config-table th:nth-child(5),
.config-table td:nth-child(5) {
  width: 438px;
  color: var(--muted);
  white-space: normal;
}
.config-current {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  padding: 2px 7px;
  border: 1px solid #cbddea;
  border-radius: 6px;
  background: rgba(244,249,253,0.72);
  color: #285d8f;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-input {
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}
.mixed-gate-section {
  border-color: rgba(145, 190, 226, 0.95);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(238,247,254,0.82)),
    linear-gradient(90deg, rgba(35,110,181,0.065), transparent 54%);
}
.mixed-gate-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  gap: 12px;
  padding: 12px;
}
.mixed-gate-panel {
  min-width: 0;
  border: 1px solid rgba(198, 216, 231, 0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 8px 20px rgba(38,59,84,0.045);
}
.mixed-gate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(224, 234, 243, 0.92);
}
.mixed-gate-panel-head strong {
  color: var(--strong);
  font-size: 13px;
}
.mixed-gate-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #b8d5ed;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef8ff, #e6f2fb);
  color: #236eb5;
  font-size: 12px;
  font-weight: 820;
}
.mixed-gate-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 168px;
  overflow: auto;
  padding: 10px;
}
.mixed-gate-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #c4dbed;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(248,252,255,0.96), rgba(236,246,253,0.88));
  color: #244563;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 780;
}
.mixed-gate-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}
.mixed-gate-edit-body {
  padding: 10px;
}
.mixed-gate-textarea {
  min-height: 156px;
  resize: vertical;
  border-color: #b8d5ed;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,252,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.mixed-gate-note {
  margin: 0 12px 12px;
  padding: 8px 10px;
  border: 1px solid rgba(184,213,237,0.86);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(245,251,255,0.92), rgba(236,247,254,0.78));
  color: #486882;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.mixed-gate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.mixed-gate-meta code {
  color: #286ca5;
  font-size: 11px;
}
.config-readonly-panel {
  margin-bottom: 12px;
}
.config-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.config-readonly-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(203, 221, 234, 0.88);
  border-radius: 6px;
  background: rgba(248,251,254,0.78);
}
.config-readonly-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.config-readonly-value {
  min-height: 28px;
  max-height: 110px;
  overflow: auto;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #cbddea;
  border-radius: 6px;
  background: rgba(255,255,255,0.82);
  color: #243b53;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}
.config-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(224, 234, 243, 0.92);
  background: linear-gradient(180deg, rgba(248,251,254,0.78), rgba(241,248,253,0.68));
}
.config-submit {
  width: auto !important;
  min-width: 156px;
  margin-top: 0 !important;
}
.config-version-table {
  min-width: 980px;
}
.manage-subnav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 8px;
  border: 1px solid rgba(196, 214, 229, 0.76);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(244,249,253,0.72)),
    linear-gradient(90deg, rgba(35,110,181,0.045), transparent 52%);
}
.manage-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.manage-subnav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #4b647d;
  font-weight: 760;
  font-size: 13px;
}
.manage-subnav a.active {
  border-color: #b8d5ed;
  background: linear-gradient(180deg, #eef7ff, #e5f1fb);
  color: #1f67a2;
}
.manage-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.manage-overview-card {
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,251,254,0.82)),
    linear-gradient(135deg, rgba(35,110,181,0.060), transparent 48%);
  box-shadow: 0 12px 28px rgba(38, 59, 84, 0.08);
}
.manage-overview-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 7px;
}
.manage-overview-card strong {
  display: block;
  color: var(--strong);
  font-size: 18px;
  margin-bottom: 6px;
}
.manage-overview-card em {
  display: block;
  color: #536c85;
  font-style: normal;
  line-height: 1.55;
}
.manage-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 10px;
}
.manage-section-title h2 {
  font-size: 17px;
}
.manage-section-title span {
  color: var(--muted);
}
.config-rollback-form {
  margin: 0;
}
.config-rollback-btn {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #c9deef;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0f7fd, #e5f0fa);
  color: #285d8f;
  font-weight: 760;
  cursor: pointer;
}
.config-rollback-btn:hover {
  box-shadow: 0 7px 16px rgba(43,62,84,0.10);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(248,251,254,0.80), rgba(244,248,252,0.70));
  color: var(--muted);
}
.pager-info {
  font-size: 12px;
  font-weight: 650;
}
.pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #cbddea;
  background: #ffffff;
  color: #236eb5;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}
.pager-btn.disabled {
  color: #9aa8b8;
  background: #f5f8fb;
  cursor: default;
}
.pager-size-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid #cbddea;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,253,0.92));
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(43,62,84,0.05);
}
.pager-size-select {
  height: 24px;
  min-width: 58px;
  padding: 2px 22px 2px 8px;
  border: 1px solid rgba(171, 196, 218, 0.92);
  border-radius: 5px;
  background: #fff;
  color: #236eb5;
  font: inherit;
  font-weight: 760;
  outline: none;
}
.pager-size-select:focus {
  border-color: #7eb4e0;
  box-shadow: 0 0 0 3px rgba(35,110,181,0.12);
}
.fund-table table { table-layout: fixed; }
.fund-table th,
.fund-table td { padding: 9px 10px; vertical-align: middle; }
.fund-table-suite table { width: 1260px; min-width: 1260px; }
.fund-table-suite th:nth-child(1), .fund-table-suite td:nth-child(1) { width: 66px; text-align: center; }
.fund-table-suite th:nth-child(2), .fund-table-suite td:nth-child(2) { width: 86px; }
.fund-table-suite th:nth-child(3), .fund-table-suite td:nth-child(3) { width: 126px; }
.fund-table-suite th:nth-child(4), .fund-table-suite td:nth-child(4) { width: 190px; }
.fund-table-suite th:nth-child(5), .fund-table-suite td:nth-child(5) { width: 150px; text-align: right; font-weight: 720; color: #22364d; }
.fund-table-suite th:nth-child(6), .fund-table-suite td:nth-child(6) { width: 320px; color: var(--muted); white-space: normal; line-height: 1.45; }
.fund-table-suite th:nth-child(7), .fund-table-suite td:nth-child(7) { width: 90px; text-align: center; }
.fund-table-suite th:nth-child(8), .fund-table-suite td:nth-child(8) { width: 232px; overflow: visible; text-overflow: clip; }
.fund-table-nosuite table { width: 1540px; min-width: 1540px; }
.fund-table-nosuite th:nth-child(1), .fund-table-nosuite td:nth-child(1) { width: 74px; }
.fund-table-nosuite th:nth-child(2), .fund-table-nosuite td:nth-child(2) { width: 116px; }
.fund-table-nosuite th:nth-child(3), .fund-table-nosuite td:nth-child(3) { width: 174px; }
.fund-table-nosuite th:nth-child(4), .fund-table-nosuite td:nth-child(4) { width: 150px; text-align: left; font-weight: 720; color: #22364d; }
.fund-table-nosuite th:nth-child(5), .fund-table-nosuite td:nth-child(5) { width: 370px; color: var(--muted); white-space: normal; line-height: 1.45; }
.fund-table-nosuite th:nth-child(6), .fund-table-nosuite td:nth-child(6) { width: 86px; text-align: left; }
.fund-table-nosuite th:nth-child(7), .fund-table-nosuite td:nth-child(7) { width: 530px; overflow: visible; text-overflow: clip; }
.fund-collection-table table { table-layout: fixed; }
.fund-collection-table th,
.fund-collection-table td { padding: 9px 10px; }
.fund-collection-suite table { width: 1220px; min-width: 1220px; }
.fund-collection-suite th:nth-child(1), .fund-collection-suite td:nth-child(1) { width: 58px; text-align: center; }
.fund-collection-suite th:nth-child(2), .fund-collection-suite td:nth-child(2) { width: 104px; }
.fund-collection-suite th:nth-child(3), .fund-collection-suite td:nth-child(3) { width: 150px; }
.fund-collection-suite th:nth-child(4), .fund-collection-suite td:nth-child(4) { width: 150px; }
.fund-collection-suite th:nth-child(5), .fund-collection-suite td:nth-child(5) { width: 150px; }
.fund-collection-suite th:nth-child(6), .fund-collection-suite td:nth-child(6) { width: 320px; color: var(--muted); white-space: normal; line-height: 1.45; }
.fund-collection-suite th:nth-child(7), .fund-collection-suite td:nth-child(7) { width: 94px; text-align: center; }
.fund-collection-suite th:nth-child(8), .fund-collection-suite td:nth-child(8) { width: 194px; }
.fund-collection-nosuite table { width: 1780px; min-width: 1780px; }
.fund-collection-nosuite th:nth-child(1), .fund-collection-nosuite td:nth-child(1) { width: 96px; }
.fund-collection-nosuite th:nth-child(2), .fund-collection-nosuite td:nth-child(2) { width: 150px; }
.fund-collection-nosuite th:nth-child(3), .fund-collection-nosuite td:nth-child(3) { width: 430px; }
.fund-collection-nosuite th:nth-child(4), .fund-collection-nosuite td:nth-child(4) { width: 430px; }
.fund-collection-nosuite th:nth-child(5), .fund-collection-nosuite td:nth-child(5) { width: 340px; color: var(--muted); white-space: normal; line-height: 1.45; }
.fund-collection-nosuite th:nth-child(6), .fund-collection-nosuite td:nth-child(6) { width: 90px; text-align: left; }
.fund-collection-nosuite th:nth-child(7), .fund-collection-nosuite td:nth-child(7) { width: 244px; }
.fund-okx-address {
  color: #2069a8;
  font-weight: 760;
}
.fund-collect-rule {
  display: inline-block;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #d8e7f3;
  background: linear-gradient(180deg, #f8fbfe, #eef6fc);
  color: #416078;
  font-size: 12px;
  white-space: normal;
  line-height: 1.45;
}
.fund-action-table table { table-layout: fixed; }
.fund-action-table th,
.fund-action-table td { padding: 9px 10px; }
.fund-type-menu {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.fund-type-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #506983;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fund-type-menu summary::-webkit-details-marker {
  display: none;
}
.fund-type-menu summary::after {
  content: "▾";
  color: #2a74aa;
  font-size: 10px;
  line-height: 1;
}
.fund-type-menu[open] summary,
.fund-type-menu summary:hover {
  color: #0d5892;
  border-color: #b9d8ef;
  background: linear-gradient(180deg, #f5fbff, #e8f4fd);
}
.fund-type-menu strong {
  color: #0d5892;
  font-weight: 800;
}
.fund-type-menu-options {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  flex-direction: column;
  gap: 6px;
  min-width: 178px;
  max-width: 260px;
  padding: 8px;
  border: 1px solid #c5dced;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,248,253,0.98)),
    radial-gradient(circle at 12% 0%, rgba(35,110,181,0.10), transparent 42%);
  box-shadow: 0 16px 36px rgba(40, 72, 104, 0.16);
}
.fund-type-menu[open] .fund-type-menu-options {
  display: flex;
}
.fund-type-th {
  position: sticky;
  overflow: visible;
  z-index: 6;
}
.fund-type-option,
.fund-type-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c8dfef;
  background: linear-gradient(180deg, #fbfdff, #eef7fd);
  color: #2a5d8d;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.fund-type-option {
  width: 100%;
}
.fund-type-option em {
  color: var(--muted);
  font-style: normal;
  font-weight: 720;
}
.fund-type-option.active,
.fund-type-link.active {
  color: #0d5892;
  border-color: #8fc5ee;
  background: linear-gradient(180deg, #edf8ff, #dceffc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.fund-type-link {
  min-height: 26px;
  padding: 3px 9px;
}
.fund-empty-type-filter {
  padding: 0 16px 12px;
}
.fund-action-suite table { width: 1900px; min-width: 1900px; }
.fund-action-suite th:nth-child(1), .fund-action-suite td:nth-child(1) { width: 126px; }
.fund-action-suite th:nth-child(2), .fund-action-suite td:nth-child(2) { width: 52px; text-align: center; }
.fund-action-suite th:nth-child(3), .fund-action-suite td:nth-child(3) { width: 116px; }
.fund-action-suite th:nth-child(4), .fund-action-suite td:nth-child(4) { width: 84px; text-align: center; }
.fund-action-suite th:nth-child(5), .fund-action-suite td:nth-child(5) { width: 156px; }
.fund-action-suite th:nth-child(6), .fund-action-suite td:nth-child(6) { width: 650px; }
.fund-action-suite th:nth-child(7), .fund-action-suite td:nth-child(7) { width: 330px; }
.fund-action-suite th:nth-child(8), .fund-action-suite td:nth-child(8) { width: 300px; }
.fund-action-nosuite table { width: 2260px; min-width: 2260px; }
.fund-action-nosuite th:nth-child(1), .fund-action-nosuite td:nth-child(1) { width: 124px; }
.fund-action-nosuite th:nth-child(2), .fund-action-nosuite td:nth-child(2) { width: 118px; }
.fund-action-nosuite th:nth-child(3), .fund-action-nosuite td:nth-child(3) { width: 78px; text-align: left; }
.fund-action-nosuite th:nth-child(4), .fund-action-nosuite td:nth-child(4) { width: 138px; }
.fund-action-nosuite th:nth-child(5), .fund-action-nosuite td:nth-child(5) { width: 620px; }
.fund-action-nosuite th:nth-child(6), .fund-action-nosuite td:nth-child(6) { width: 710px; }
.fund-action-nosuite th:nth-child(7), .fund-action-nosuite td:nth-child(7) { width: 472px; }
.fund-action-suite td:nth-child(6),
.fund-action-nosuite td:nth-child(5) {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.fund-action-suite td:nth-child(8),
.fund-action-nosuite td:nth-child(7) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fund-amount-cell {
  text-align: left;
  color: #20334a;
}
.fund-amount-cell span {
  display: inline-flex;
  justify-content: flex-start;
  min-width: 132px;
  font-weight: 760;
  letter-spacing: 0;
}
.fund-hash-chip {
  display: block;
  width: max-content;
  max-width: none;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #cbddea;
  background: linear-gradient(180deg, #f8fbfe, #edf5fb);
  color: #203a55;
  overflow-x: visible;
  overflow-y: hidden;
  text-overflow: initial;
  white-space: nowrap;
  letter-spacing: 0;
  scrollbar-width: thin;
}
.fund-route-cell {
  white-space: normal;
  padding-right: 10px;
}
.fund-route-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(244, 249, 253, 0.78);
}
.fund-route-line + .fund-route-line {
  margin-top: 4px;
}
.fund-route-line span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.fund-route-address {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f344c;
  font-size: 12px;
}
.fund-route-empty {
  color: var(--muted);
}
.fund-note {
  display: block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  color: #42576e;
}
.fund-table-suite .fund-address,
.fund-collection-suite .fund-address {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot2-funds-page .fund-table-suite table {
  width: 1620px;
  min-width: 1620px;
}
.bot2-funds-page .fund-table-suite th:nth-child(8),
.bot2-funds-page .fund-table-suite td:nth-child(8) {
  width: 592px;
  overflow: visible;
  text-overflow: clip;
}
.bot2-funds-page .fund-table-suite .fund-address {
  overflow: visible;
  text-overflow: clip;
}
.bot2-funds-page .fund-collection-suite table {
  width: 1880px;
  min-width: 1880px;
}
.bot2-funds-page .fund-collection-suite th:nth-child(4),
.bot2-funds-page .fund-collection-suite td:nth-child(4),
.bot2-funds-page .fund-collection-suite th:nth-child(5),
.bot2-funds-page .fund-collection-suite td:nth-child(5) {
  width: 430px;
  overflow: visible;
  text-overflow: clip;
}
.bot2-funds-page .fund-collection-suite .fund-address {
  overflow: visible;
  text-overflow: clip;
}
.fund-action-suite .fund-hash-chip {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.fund-action-suite .fund-route-address {
  overflow: hidden;
  text-overflow: ellipsis;
}
.fund-action-suite .fund-note {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot1-funds-page .fund-action-nosuite table {
  width: 1928px;
  min-width: 1928px;
}
.bot1-funds-page .fund-action-nosuite th,
.bot1-funds-page .fund-action-nosuite td {
  padding-left: 12px;
  padding-right: 12px;
}
.bot1-funds-page .fund-action-nosuite th:nth-child(1),
.bot1-funds-page .fund-action-nosuite td:nth-child(1) { width: 136px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(2),
.bot1-funds-page .fund-action-nosuite td:nth-child(2) { width: 190px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(3),
.bot1-funds-page .fund-action-nosuite td:nth-child(3) { width: 96px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(4),
.bot1-funds-page .fund-action-nosuite td:nth-child(4) { width: 164px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(5),
.bot1-funds-page .fund-action-nosuite td:nth-child(5) { width: 610px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(6),
.bot1-funds-page .fund-action-nosuite td:nth-child(6) { width: 510px; }
.bot1-funds-page .fund-action-nosuite th:nth-child(7),
.bot1-funds-page .fund-action-nosuite td:nth-child(7) { width: 222px; }
.bot1-funds-page .fund-action-nosuite .fund-amount-cell span {
  min-width: 142px;
}
.bot1-funds-page .fund-action-nosuite .fund-route-cell {
  padding-right: 6px;
}
.bot1-funds-page .fund-action-nosuite .fund-route-line {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px;
}
.bot1-funds-page .fund-action-nosuite .fund-note {
  max-width: 206px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fund-empty-cell { color: var(--muted); }
.fund-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #1e344d;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.42;
}
.fund-role-accent td {
  background-image: linear-gradient(90deg, rgba(35, 110, 181, 0.060), transparent 34%);
}
.fund-profit-accent td {
  background-image: linear-gradient(90deg, rgba(22, 134, 95, 0.058), transparent 34%);
}
.fund-role-blue,
.fund-role-blue .fund-address {
  color: #1f6fb8;
  font-weight: 760;
}
.fund-role-green,
.fund-role-green .fund-address {
  color: #13845d;
  font-weight: 760;
}
.fund-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 760;
  border: 1px solid transparent;
}
.fund-role-chip.blue {
  color: #1f6fb8;
  background: #eaf4fd;
  border-color: #c8dff4;
}
.fund-role-chip.green {
  color: #13845d;
  background: #e9f7f0;
  border-color: #c3e7d5;
}
.health {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
}
.health.ok { color: var(--good); background: #eaf7f1; border-color: #c6e8da; }
.health.warn { color: var(--warn); background: #fff7e8; border-color: #ecd9ad; }
.health.bad { color: var(--bad); background: #fff0f1; border-color: #efc7cc; }
.health.neutral { color: var(--muted); background: #f4f8fc; border-color: var(--line); }
.competitor-address {
  color: #7b3ff2;
  font-weight: 700;
}
.competitor-type {
  color: #7b3ff2;
  font-weight: 700;
}
.miss-reason-cell {
  white-space: nowrap;
}
.miss-reason-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.miss-reason-lost {
  color: #235f9b;
  background: #eaf4fd;
  border-color: #bfdaf2;
}
.miss-reason-not-included {
  color: #1f5f8b;
  background: #edf6fb;
  border-color: #bdd9ea;
}
.miss-reason-no-front {
  color: #315978;
  background: #edf6fb;
  border-color: #c4ddea;
}
.miss-reason-latency-high {
  color: #9a4f00;
  background: #fff4e5;
  border-color: #e7c58f;
}
.miss-reason-ratio-high {
  color: #b42318;
  background: #fff2f2;
  border-color: #efc7cc;
}
.miss-reason-ratio-gray {
  color: #805400;
  background: #fff7e8;
  border-color: #ecd9ad;
}
.miss-reason-position-low {
  color: #56657a;
  background: #f4f8fc;
  border-color: #d7e1ec;
}
.miss-reason-builder-fail {
  color: #9a4f00;
  background: #fff4e5;
  border-color: #e7c58f;
}
.miss-reason-landed {
  color: #4f46a5;
  background: #f1f0ff;
  border-color: #d3d0fb;
}
.miss-reason-unsent {
  color: #b54708;
  background: #fff7e8;
  border-color: #efd29b;
}
.miss-reason-unknown {
  color: var(--muted);
  background: #f4f8fc;
  border-color: #d7e1ec;
}
.miss-reason-missing {
  color: #6a4a12;
  background: #fff8e8;
  border-color: #ecd39e;
}
.follow-result-cell {
  text-align: center;
  overflow: visible !important;
}
.follow-result-text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.follow-result-win {
  color: #0f7a58;
}
.follow-result-loss {
  color: #bd3441;
}
.follow-result-pending {
  color: #236eb5;
}
.follow-result-neutral {
  color: var(--muted);
}
.pnl-text {
  display: inline-block;
  text-align: right;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  font-family: inherit;
  font-variant-numeric: normal;
  font-feature-settings: "kern" 1, "tnum" 0;
  font-kerning: normal;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}
.pnl-win {
  color: #0f7a58;
}
.pnl-loss {
  color: #bd3441;
}
.pnl-flat {
  color: #52657b;
}
.pnl-cell {
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: right;
}
.stat-pnl-cell {
  text-align: left;
}
.stat-pnl-cell .pnl-text {
  text-align: left;
}
.fee-cell { color: #20334a; font-weight: 620; }
.latency-cell {
  color: #1f5f9a;
  font-weight: 760;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.latency-missing-cell {
  color: #8a6b36;
}
.latency-board table {
  min-width: 1180px;
}
.latency-board th,
.latency-board td {
  text-align: center;
}
.latency-board th:first-child,
.latency-board td:first-child {
  text-align: left;
}
.latency-chart-shell {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(126, 179, 220, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(249,253,255,0.98), rgba(239,248,254,0.92)),
    radial-gradient(circle at 18% 8%, rgba(35,110,181,0.085), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(123,63,242,0.075), transparent 36%);
  overflow-x: auto;
  contain: layout paint;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.80), 0 12px 30px rgba(42, 88, 128, 0.07);
}
.latency-chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #455d76;
  font-size: 12px;
  font-weight: 760;
}
.latency-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(187, 212, 232, 0.76);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  white-space: nowrap;
}
.latency-legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(35,110,181,0.08), 0 0 12px currentColor;
}
.latency-kline-svg {
  display: block;
  width: 100%;
  min-width: 1180px;
  height: auto;
}
.latency-chart-bg {
  fill: rgba(251,254,255,0.78);
  stroke: rgba(169, 205, 232, 0.72);
}
.latency-chart-scan {
  fill: url(#latencyGridPattern);
  opacity: .26;
}
.latency-chart-grid {
  stroke: rgba(170, 203, 228, 0.54);
  stroke-width: .75;
}
.latency-chart-axis {
  fill: #6f8299;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0;
}
.latency-chart-dot {
  stroke: #ffffff;
  stroke-width: .9;
  filter: drop-shadow(0 1px 3px rgba(35,110,181,0.16));
}
.latency-chart-low-dot {
  opacity: .58;
}
.latency-chart-line {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
}
.latency-chart-band {
  opacity: .12;
}
.latency-chart-range-line {
  stroke-width: .85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .32;
}
.latency-chart-hit {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}
.snpr-latency-tooltip {
  position: fixed;
  z-index: 9998;
  max-width: min(360px, calc(100vw - 24px));
  padding: 9px 11px;
  border: 1px solid rgba(142, 187, 224, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,248,254,0.96)),
    radial-gradient(circle at 100% 0%, rgba(123,63,242,0.10), transparent 46%);
  box-shadow: 0 18px 42px rgba(32, 68, 104, 0.18);
  color: #172b42;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.5;
  white-space: pre-line;
  pointer-events: none;
}
.snpr-latency-tooltip.hidden {
  display: none;
}
.latency-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.latency-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(202, 222, 238, 0.86);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
  color: #435b73;
  font-size: 12px;
}
.latency-summary-card strong {
  color: #18283b;
  font-size: 13px;
}
.latency-summary-card span {
  white-space: nowrap;
}
.muted-cell {
  color: #73839a;
  font-weight: 650;
  white-space: nowrap;
}
.tx-full,
.follow-hash,
.fund-tx-cell,
.fund-hash-chip {
  color: inherit;
  letter-spacing: 0;
}
.addr-short {
  color: #284058;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.addr-short.competitor-address {
  color: #7b3ff2;
  font-weight: 800;
}
.addr-popover-cell {
  overflow: visible !important;
  text-overflow: clip !important;
}
.addr-popover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #cfe1f0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbfe, #edf5fb);
  color: #284058;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
}
.addr-popover-btn:hover,
.addr-popover-btn:focus-visible {
  border-color: #8abbe8;
  background: linear-gradient(180deg, #eef7ff, #dcecf9);
  outline: none;
}
.addr-popover-btn.competitor-address {
  color: #7b3ff2;
  border-color: #d8c9fb;
  background: linear-gradient(180deg, #fbf8ff, #f0eafd);
  font-weight: 820;
}
.addr-popover-btn.addr-text-popover {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}
.addr-popover-btn.addr-text-popover:hover,
.addr-popover-btn.addr-text-popover:focus-visible {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.snpr-address-popover {
  position: fixed;
  z-index: 9999;
  min-width: 360px;
  max-width: min(620px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #bfd7ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(33, 61, 89, 0.18);
  color: #172b42;
}
.snpr-address-popover.hidden {
  display: none;
}
.snpr-address-popover .popover-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.snpr-address-popover .popover-address {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}
.builder-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f2f8fd, #e6f2fb);
  color: #236eb5;
  border: 1px solid #cfe1f0;
  font-weight: 700;
}
.miss-builder-source {
  text-align: center;
  overflow: visible !important;
  text-overflow: clip !important;
}
.miss-builder-badge {
  min-width: 38px;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.market-cell { text-align: center; }
.follow-exec-cell {
  text-align: center;
  font-weight: 720;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip !important;
}
.market-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d4e3ef;
  background: linear-gradient(180deg, #f8fbfe, #edf5fb);
  color: #39516b;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
}
.market-fm {
  color: #197456;
  border-color: #c6e7dc;
  background: linear-gradient(180deg, #f7fdfa, #e9f8f2);
}
.market-v2 {
  color: #6f45cf;
  border-color: #d9ccfb;
  background: linear-gradient(180deg, #fbf8ff, #f0ebfe);
}
.follow-table table { width: 2498px; min-width: 2498px; table-layout: fixed; }
.follow-table th, .follow-table td { overflow: hidden; text-overflow: ellipsis; }
.follow-table th:nth-child(1), .follow-table td:nth-child(1) { width: 70px; }
.follow-table th:nth-child(2), .follow-table td:nth-child(2) { width: 160px; }
.follow-table th:nth-child(3), .follow-table td:nth-child(3) { width: 66px; text-align: center; padding-left: 4px; padding-right: 4px; }
.follow-table th:nth-child(4), .follow-table td:nth-child(4) { width: 76px; text-align: center; padding-left: 4px; padding-right: 4px; }
.follow-table th:nth-child(5), .follow-table td:nth-child(5) {
  width: 116px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: clip;
}
.follow-table th:nth-child(6), .follow-table td:nth-child(6) {
  width: 116px;
  padding-left: 12px;
  overflow: hidden;
  text-overflow: clip;
}
.follow-table th:nth-child(7), .follow-table td:nth-child(7) { width: 70px; text-align: center; }
.follow-table th:nth-child(8), .follow-table td:nth-child(8),
.follow-table th:nth-child(9), .follow-table td:nth-child(9),
.follow-table th:nth-child(10), .follow-table td:nth-child(10),
.follow-table th:nth-child(11), .follow-table td:nth-child(11),
.follow-table th:nth-child(12), .follow-table td:nth-child(12) { width: 100px; text-align: right; }
.follow-table th:nth-child(13), .follow-table td:nth-child(13) {
  width: 136px;
  text-align: right;
  overflow: visible;
  text-overflow: clip;
}
.follow-table th:nth-child(14), .follow-table td:nth-child(14) { width: 92px; text-align: center; }
.follow-table th:nth-child(15), .follow-table td:nth-child(15),
.follow-table th:nth-child(16), .follow-table td:nth-child(16) {
  width: 600px;
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
  text-overflow: clip;
}
.follow-table-market table { width: 2602px; min-width: 2602px; }
.follow-table-market th:nth-child(3), .follow-table-market td:nth-child(3) { width: 66px; text-align: center; padding-left: 4px; padding-right: 4px; }
.follow-table-market th:nth-child(4), .follow-table-market td:nth-child(4) { width: 56px; text-align: center; padding-left: 4px; padding-right: 4px; }
.follow-table-market th:nth-child(5), .follow-table-market td:nth-child(5) {
  width: 76px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow-table-market th:nth-child(6), .follow-table-market td:nth-child(6) {
  width: 116px;
  padding-left: 14px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: clip;
}
.follow-table-market th:nth-child(7), .follow-table-market td:nth-child(7) {
  width: 116px;
  padding-left: 12px;
  padding-right: 14px;
  overflow: hidden;
  text-overflow: clip;
}
.follow-table-market th:nth-child(8), .follow-table-market td:nth-child(8) { width: 70px; text-align: center; }
.follow-table-market th:nth-child(9), .follow-table-market td:nth-child(9),
.follow-table-market th:nth-child(10), .follow-table-market td:nth-child(10),
.follow-table-market th:nth-child(11), .follow-table-market td:nth-child(11),
.follow-table-market th:nth-child(12), .follow-table-market td:nth-child(12),
.follow-table-market th:nth-child(13), .follow-table-market td:nth-child(13) { width: 100px; text-align: right; }
.follow-table-market th:nth-child(14), .follow-table-market td:nth-child(14) {
  width: 136px;
  text-align: right;
  overflow: visible;
  text-overflow: clip;
}
.follow-table-market th:nth-child(15), .follow-table-market td:nth-child(15) { width: 92px; text-align: center; }
.follow-table-market th:nth-child(16), .follow-table-market td:nth-child(16),
.follow-table-market th:nth-child(17), .follow-table-market td:nth-child(17) {
  width: 600px;
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
  text-overflow: clip;
}
.overview-scroll {
  max-height: 360px;
  overflow: auto;
}
.overview-scroll table { min-width: 1180px; }
.miss-table table { width: 2532px; min-width: 2532px; table-layout: fixed; }
.miss-table th, .miss-table td { padding: 10px 10px; }
.miss-table th, .miss-table td { overflow: hidden; text-overflow: ellipsis; }
.miss-table .col-time { width: 168px; overflow: visible; text-overflow: clip; }
.miss-table .time-cell { width: 168px; overflow: visible; text-overflow: clip; }
.miss-table th:nth-child(2), .miss-table td:nth-child(2) { width: 104px; }
.miss-table th:nth-child(3), .miss-table td:nth-child(3) {
  width: 118px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: clip;
}
.miss-table th:nth-child(4), .miss-table td:nth-child(4) {
  width: 118px;
  padding-left: 12px;
  overflow: hidden;
  text-overflow: clip;
}
.miss-table th:nth-child(5), .miss-table td:nth-child(5) { width: 70px; text-align: center; color: var(--muted); }
.miss-table th:nth-child(6), .miss-table td:nth-child(6) { width: 96px; text-align: center; }
.miss-table th:nth-child(7), .miss-table td:nth-child(7) {
  width: 150px;
  padding-left: 6px;
  padding-right: 4px;
  overflow: visible;
  text-overflow: clip;
}
.miss-table th:nth-child(8), .miss-table td:nth-child(8) {
  width: 72px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}
.miss-table th:nth-child(9), .miss-table td:nth-child(9) {
  width: 104px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}
.miss-table th:nth-child(10), .miss-table td:nth-child(10),
.miss-table th:nth-child(11), .miss-table td:nth-child(11),
.miss-table th:nth-child(12), .miss-table td:nth-child(12) {
  width: 104px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}
.miss-table th:nth-child(13), .miss-table td:nth-child(13) {
  width: 146px;
  overflow: visible;
  text-overflow: clip;
}
.miss-table th:nth-child(14), .miss-table td:nth-child(14) { width: 118px; text-align: center; }
.miss-table th:nth-child(15), .miss-table td:nth-child(15),
.miss-table th:nth-child(16), .miss-table td:nth-child(16) { width: 112px; text-align: right; }
.miss-table th:nth-child(17), .miss-table td:nth-child(17) { width: 70px; text-align: center; }
.miss-table th:nth-child(18), .miss-table td:nth-child(18) { width: 600px; }
.miss-table td:nth-child(18) { overflow: visible; text-overflow: clip; }
.strategy-table table { width: max-content; min-width: 3000px; table-layout: auto; }
.strategy-table th, .strategy-table td { overflow: visible; text-overflow: clip; }
.strategy-table th:nth-child(1), .strategy-table td:nth-child(1) { min-width: 44px; text-align: center; }
.strategy-table th:nth-child(2), .strategy-table td:nth-child(2) { min-width: 380px; }
.strategy-table td:nth-child(2) {
  overflow: visible;
  text-overflow: clip;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #1f3248;
}
.strategy-table th:nth-child(3), .strategy-table td:nth-child(3) { min-width: 82px; }
.strategy-table th:nth-child(4), .strategy-table td:nth-child(4) { min-width: 160px; }
.strategy-table th:nth-child(5), .strategy-table td:nth-child(5) { min-width: 105px; text-align: right; }
.strategy-table th:nth-child(6), .strategy-table td:nth-child(6) { min-width: 112px; text-align: center; color: var(--muted); }
.strategy-table th:nth-child(7), .strategy-table td:nth-child(7),
.strategy-table th:nth-child(9), .strategy-table td:nth-child(9) { min-width: 126px; text-align: center; color: var(--muted); }
.strategy-table th:nth-child(8), .strategy-table td:nth-child(8) { min-width: 140px; text-align: center; font-weight: 650; }
.strategy-table th:nth-child(10), .strategy-table td:nth-child(10) { min-width: 170px; text-align: center; color: #2f5f8f; font-weight: 650; }
.strategy-table th:nth-child(11), .strategy-table td:nth-child(11) { min-width: 260px; }
.strategy-table th:nth-child(12), .strategy-table td:nth-child(12) { min-width: 150px; }
.strategy-table th:nth-child(13), .strategy-table td:nth-child(13) { min-width: 135px; }
.strategy-table th:nth-child(14), .strategy-table td:nth-child(14) { min-width: 150px; }
.strategy-table th:nth-child(15), .strategy-table td:nth-child(15) { min-width: 130px; text-align: center; color: var(--muted); }
.strategy-table th:nth-child(16), .strategy-table td:nth-child(16),
.strategy-table th:nth-child(17), .strategy-table td:nth-child(17) { min-width: 190px; text-align: center; }
.strategy-table th:nth-child(18), .strategy-table td:nth-child(18) { min-width: 270px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a {
  padding: 8px 12px;
  border: 1px solid rgba(196, 214, 229, 0.88);
  border-radius: 6px;
  background: rgba(255,255,255,0.68);
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(43,62,84,0.05);
}
.tabs a.active, .tabs a:hover {
  color: var(--brand);
  border-color: #b8d2ea;
  background: linear-gradient(180deg, #eef7ff, #e4f0fb);
  box-shadow: 0 8px 18px rgba(35,110,181,0.10);
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  contain: layout paint;
  scrollbar-gutter: stable;
}
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background:
    linear-gradient(180deg, #f5f9fd, #ecf4fb),
    linear-gradient(90deg, rgba(35,110,181,0.040), transparent);
  position: sticky;
  top: 0;
  z-index: 1;
}
td { color: #304258; }
tr:hover td { background: rgba(239, 247, 253, 0.78); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0f7fd, #e5f0fa);
  color: #285d8f;
  border: 1px solid #c9deef;
  font-size: 12px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: linear-gradient(180deg, #f7fbfe, #eef5fb);
  color: #263445;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 12px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 22%, rgba(35, 110, 181, 0.22), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(22, 134, 95, 0.12), transparent 26%),
    linear-gradient(135deg, #f9fcff 0%, #eef5fb 46%, #e7eff8 100%);
}
.login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 110, 181, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 110, 181, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,0.76), transparent 72%);
  pointer-events: none;
}
.login-shell {
  width: min(1040px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(185, 205, 224, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(43, 62, 84, 0.18);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.login-visual {
  position: relative;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(244, 250, 255, 0.92), rgba(232, 242, 251, 0.88)),
    linear-gradient(90deg, rgba(35, 110, 181, 0.12), transparent);
  overflow: hidden;
}
.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(35, 110, 181, 0.18);
  border-radius: 8px;
  transform: rotate(-8deg);
}
.login-visual::before {
  width: 360px;
  height: 220px;
  right: -96px;
  top: 92px;
  background: linear-gradient(135deg, rgba(255,255,255,0.48), rgba(35,110,181,0.045));
}
.login-visual::after {
  width: 260px;
  height: 160px;
  right: 72px;
  bottom: 56px;
  background: linear-gradient(135deg, rgba(22,134,95,0.08), rgba(255,255,255,0.24));
}
.login-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1d5f9e;
  font-weight: 780;
  letter-spacing: 0;
}
.login-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f6fb8;
  box-shadow: 0 0 0 6px rgba(35,110,181,0.12);
}
.login-title {
  max-width: 520px;
  margin-top: 76px;
  font-size: 42px;
  line-height: 1.08;
  color: #132337;
  font-weight: 820;
  letter-spacing: 0;
}
.login-copy {
  max-width: 500px;
  margin-top: 18px;
  color: #66778c;
  font-size: 14px;
  line-height: 1.8;
}
.login-signal-grid {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  z-index: 2;
}
.login-signal {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(185, 205, 224, 0.76);
  border-radius: 8px;
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(10px);
}
.login-signal span {
  display: block;
  color: #7a899b;
  font-size: 11px;
  margin-bottom: 7px;
}
.login-signal strong {
  color: #20354d;
  font-size: 15px;
  letter-spacing: 0;
}
.login-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,253,0.94));
  border-left: 1px solid rgba(215, 225, 236, 0.9);
}
.login-card h1 {
  font-size: 24px;
  margin-bottom: 7px;
}
.login-subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.field { display: grid; gap: 6px; margin-top: 14px; }
label { color: var(--muted); font-size: 13px; }
input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfdce8;
  border-radius: 6px;
  font: inherit;
  background: rgba(255,255,255,0.88);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus {
  border-color: #82b2de;
  box-shadow: 0 0 0 4px rgba(35, 110, 181, 0.12);
  background: #ffffff;
}
button.primary {
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #1f6fb8, #245a96);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(35, 110, 181, 0.22);
}
.login-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.alert {
  margin-top: 12px;
  color: var(--bad);
  font-size: 13px;
  background: #fff0f1;
  border: 1px solid #efc7cc;
  border-radius: 6px;
  padding: 9px 10px;
}
.empty { padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 960px) {
  .grid.cols-6, .grid.cols-5, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-grid > .grid.cols-2 {
    height: auto;
    grid-template-rows: none;
  }
  .hero-grid > .grid.cols-2 > .metric {
    min-height: 104px;
    height: auto;
    justify-content: flex-start;
    padding: 13px;
  }
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .dashboard-title { font-size: 25px; }
  .dashboard-meta {
    font-size: 12px;
    line-height: 1.55;
  }
  .dashboard-kpi-grid,
  .dashboard-split,
  .bot-status-grid,
  .dashboard-actions {
    grid-template-columns: 1fr;
  }
  .dashboard-card.primary { min-height: 150px; }
  .bot-status-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .bot-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-command {
    grid-template-columns: 1fr;
    padding: 16px;
    min-height: 0;
  }
  .health-hero {
    min-height: 0;
    padding: 14px;
  }
  .health-switch-grid {
    grid-template-columns: 1fr;
  }
  .health-switch-card {
    min-height: 0;
    padding: 14px;
  }
  .health-switch-card .health-note {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .health-switch-foot {
    margin-top: 9px;
    padding-top: 9px;
  }
  .health-hero-top {
    gap: 10px;
  }
  .health-title {
    font-size: 14px;
  }
  .health-sub {
    font-size: 11px;
    line-height: 1.45;
  }
  .health-hero-action .health {
    white-space: nowrap;
  }
  .health-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }
  .health-count {
    min-height: 58px;
    padding: 8px;
  }
  .health-count span {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .health-count strong {
    font-size: 17px;
  }
  .health-notes {
    margin-top: 9px;
    gap: 5px;
  }
  .health-note {
    padding: 6px 7px;
    font-size: 11px;
  }
  .health-tab-panel .panel-head,
  .self-heal-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .self-heal-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-title { font-size: 28px; }
  .home-kpi-grid,
  .home-bot-grid,
  .home-bot-stats {
    grid-template-columns: 1fr;
  }
  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 13px;
    min-height: 104px;
  }
  .metric-value {
    font-size: 25px;
    line-height: 1.18;
  }
  .quick-nav,
  .bot-module-strip {
    gap: 10px;
  }
  .fund-hero, .fund-suite-grid { grid-template-columns: 1fr; }
  .topbar {
    height: auto;
    min-height: 70px;
    padding: 10px 14px;
    gap: 8px;
  }
  .brand-wrap {
    gap: 8px;
    flex: 0 1 auto;
  }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; }
  .brand {
    white-space: nowrap;
    font-size: 13px;
  }
  .brand-sub, .topbar-status { display: none; }
  .nav {
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 62vw;
    flex: 0 0 auto;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .layout { padding: 18px 16px 26px; }
  .site-footer { padding: 0 16px 18px; }
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .site-footer-meta {
    justify-content: flex-start;
  }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .muted,
  .page-head p,
  .dashboard-meta {
    overflow-wrap: anywhere;
  }
  .page-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 9px 10px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .quick-nav {
    grid-template-columns: 1fr;
  }
  .quick-nav-head {
    border-right: 0;
    border-bottom: 1px solid rgba(203, 221, 234, 0.82);
  }
  .quick-nav-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .monitor-leaderboard-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .leaderboard-card-head {
    align-items: center;
    flex-direction: row;
  }
  .leaderboard-table table {
    min-width: 360px;
  }
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 7px 5px;
    font-size: 11px;
  }
  .leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 30px; }
  .leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 112px; }
  .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { width: 96px; }
  .leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { width: 56px; }
  .leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5) { width: 48px; }
  .leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text {
    font-size: 10.5px;
  }
  .bot-module-strip {
    grid-template-columns: 1fr;
  }
  .bot-module-head {
    border-right: 0;
    border-bottom: 1px solid rgba(196, 214, 229, 0.88);
  }
  .bot-module-items {
    grid-template-columns: 1fr;
  }
  .bot-module-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .bot-module-item:last-child {
    border-bottom: 0;
  }
  .date-filter-form { width: 100%; }
  .login-wrap { padding: 18px; }
  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .login-visual {
    min-height: 260px;
    padding: 26px;
  }
  .login-title {
    margin-top: 38px;
    font-size: 30px;
  }
  .login-copy { font-size: 13px; }
  .login-signal-grid {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 30px 24px;
    border-left: 0;
    border-top: 1px solid rgba(215, 225, 236, 0.9);
  }
  .panel { border-radius: 6px; }
  .panel-head { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px 10px; }
  .panel-body { padding: 11px; }
  th, td { padding: 10px 9px; font-size: 12px; line-height: 1.45; }
  th { font-size: 11px; line-height: 1.32; }
  .table-wrap {
    scrollbar-width: thin;
    border-radius: 6px;
  }
  .pager {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .pager-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .pager-size-form {
    order: -1;
  }
  .competitor-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competitor-manager-table table { min-width: 1720px; }
  .fund-table-suite table { width: 1260px; min-width: 1260px; }
  .bot2-funds-page .fund-table-suite table { width: 1620px; min-width: 1620px; }
  .bot2-funds-page .fund-table-suite th:nth-child(8),
  .bot2-funds-page .fund-table-suite td:nth-child(8) { width: 592px; }
  .fund-table-nosuite table { width: 1540px; min-width: 1540px; }
  .fund-collection-suite table { width: 1220px; min-width: 1220px; }
  .bot2-funds-page .fund-collection-suite table { width: 1880px; min-width: 1880px; }
  .fund-collection-suite th:nth-child(4), .fund-collection-suite td:nth-child(4) { width: 150px; }
  .fund-collection-suite th:nth-child(5), .fund-collection-suite td:nth-child(5) { width: 150px; }
  .bot2-funds-page .fund-collection-suite th:nth-child(4),
  .bot2-funds-page .fund-collection-suite td:nth-child(4),
  .bot2-funds-page .fund-collection-suite th:nth-child(5),
  .bot2-funds-page .fund-collection-suite td:nth-child(5) { width: 430px; }
  .fund-collection-suite th:nth-child(6), .fund-collection-suite td:nth-child(6) { width: 320px; }
  .fund-collection-nosuite table { width: 1780px; min-width: 1780px; }
  .fund-collection-nosuite th:nth-child(3), .fund-collection-nosuite td:nth-child(3) { width: 430px; }
  .fund-collection-nosuite th:nth-child(4), .fund-collection-nosuite td:nth-child(4) { width: 430px; }
  .fund-collection-nosuite th:nth-child(5), .fund-collection-nosuite td:nth-child(5) { width: 340px; }
  .follow-table table { width: 2648px; min-width: 2648px; }
  .follow-table th, .follow-table td { padding-top: 10px; padding-bottom: 10px; }
  .follow-table th:nth-child(1), .follow-table td:nth-child(1) { width: 64px; }
  .follow-table th:nth-child(2), .follow-table td:nth-child(2) { width: 176px; overflow: visible; text-overflow: clip; }
  .follow-table th:nth-child(3), .follow-table td:nth-child(3) { width: 66px; text-align: center; padding-left: 4px; padding-right: 4px; }
  .follow-table th:nth-child(4), .follow-table td:nth-child(4) { width: 76px; text-align: center; padding-left: 4px; padding-right: 4px; }
  .follow-table th:nth-child(5), .follow-table td:nth-child(5) { width: 118px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .follow-table th:nth-child(6), .follow-table td:nth-child(6) { width: 118px; padding-left: 10px; overflow: hidden; text-overflow: clip; }
  .follow-table th:nth-child(7), .follow-table td:nth-child(7) { width: 64px; }
  .follow-table th:nth-child(8), .follow-table td:nth-child(8),
  .follow-table th:nth-child(9), .follow-table td:nth-child(9),
  .follow-table th:nth-child(10), .follow-table td:nth-child(10),
  .follow-table th:nth-child(11), .follow-table td:nth-child(11),
  .follow-table th:nth-child(12), .follow-table td:nth-child(12) { width: 100px; }
  .follow-table th:nth-child(13), .follow-table td:nth-child(13) { width: 136px; overflow: visible; text-overflow: clip; }
  .follow-table th:nth-child(14), .follow-table td:nth-child(14) { width: 92px; }
  .follow-table th:nth-child(15), .follow-table td:nth-child(15),
  .follow-table th:nth-child(16), .follow-table td:nth-child(16) { width: 620px; padding-left: 10px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .follow-table-market table { width: 2756px; min-width: 2756px; }
  .follow-table-market th:nth-child(3), .follow-table-market td:nth-child(3) { width: 66px; text-align: center; padding-left: 4px; padding-right: 4px; }
  .follow-table-market th:nth-child(4), .follow-table-market td:nth-child(4) { width: 56px; text-align: center; padding-left: 4px; padding-right: 4px; }
  .follow-table-market th:nth-child(5), .follow-table-market td:nth-child(5) { width: 76px; text-align: center; padding-left: 4px; padding-right: 4px; }
  .follow-table-market th:nth-child(6), .follow-table-market td:nth-child(6) { width: 118px; padding-left: 10px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .follow-table-market th:nth-child(7), .follow-table-market td:nth-child(7) { width: 118px; padding-left: 10px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .follow-table-market th:nth-child(8), .follow-table-market td:nth-child(8) { width: 64px; text-align: center; }
  .follow-table-market th:nth-child(9), .follow-table-market td:nth-child(9),
  .follow-table-market th:nth-child(10), .follow-table-market td:nth-child(10),
  .follow-table-market th:nth-child(11), .follow-table-market td:nth-child(11),
  .follow-table-market th:nth-child(12), .follow-table-market td:nth-child(12),
  .follow-table-market th:nth-child(13), .follow-table-market td:nth-child(13) { width: 100px; text-align: right; }
  .follow-table-market th:nth-child(14), .follow-table-market td:nth-child(14) { width: 136px; overflow: visible; text-overflow: clip; }
  .follow-table-market th:nth-child(15), .follow-table-market td:nth-child(15) { width: 92px; text-align: center; }
  .follow-table-market th:nth-child(16), .follow-table-market td:nth-child(16),
  .follow-table-market th:nth-child(17), .follow-table-market td:nth-child(17) { width: 620px; padding-left: 10px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .miss-table table { width: 2432px; min-width: 2432px; }
  .miss-table th, .miss-table td { padding: 10px 8px; }
  .miss-table .col-time,
  .miss-table .time-cell { width: 150px; }
  .miss-table th:nth-child(2), .miss-table td:nth-child(2) { width: 102px; }
  .miss-table th:nth-child(3), .miss-table td:nth-child(3) { width: 116px; padding-right: 10px; overflow: hidden; text-overflow: clip; }
  .miss-table th:nth-child(4), .miss-table td:nth-child(4) { width: 116px; padding-left: 10px; overflow: hidden; text-overflow: clip; }
  .miss-table th:nth-child(5), .miss-table td:nth-child(5) { width: 62px; }
  .miss-table th:nth-child(6), .miss-table td:nth-child(6) { width: 92px; }
  .miss-table th:nth-child(7), .miss-table td:nth-child(7) { width: 146px; padding-left: 6px; padding-right: 4px; overflow: visible; text-overflow: clip; }
  .miss-table th:nth-child(8), .miss-table td:nth-child(8) { width: 72px; padding-left: 6px; padding-right: 6px; text-align: center; }
  .miss-table th:nth-child(9), .miss-table td:nth-child(9) { width: 98px; padding-left: 4px; padding-right: 4px; text-align: center; }
  .miss-table th:nth-child(10), .miss-table td:nth-child(10),
  .miss-table th:nth-child(11), .miss-table td:nth-child(11),
  .miss-table th:nth-child(12), .miss-table td:nth-child(12) { width: 98px; padding-left: 4px; padding-right: 4px; text-align: center; }
  .miss-table th:nth-child(13), .miss-table td:nth-child(13) { width: 146px; overflow: visible; text-overflow: clip; }
  .miss-table th:nth-child(14), .miss-table td:nth-child(14) { width: 112px; }
  .miss-table th:nth-child(15), .miss-table td:nth-child(15),
  .miss-table th:nth-child(16), .miss-table td:nth-child(16) { width: 108px; }
  .miss-table th:nth-child(17), .miss-table td:nth-child(17) { width: 68px; }
  .miss-table th:nth-child(18), .miss-table td:nth-child(18) { width: 580px; overflow: visible; text-overflow: clip; }
  .snpr-address-popover {
    left: 14px !important;
    right: 14px !important;
    bottom: 18px !important;
    top: auto !important;
    min-width: 0;
    max-width: none;
  }
  .fund-action-suite table { width: 1900px; min-width: 1900px; }
  .fund-action-nosuite table { width: 2260px; min-width: 2260px; }
  .fund-action-table th,
  .fund-action-table td { padding: 9px 10px; }
  .fund-action-suite th:nth-child(1), .fund-action-suite td:nth-child(1) { width: 128px; }
  .fund-action-suite th:nth-child(2), .fund-action-suite td:nth-child(2) { width: 56px; }
  .fund-action-suite th:nth-child(3), .fund-action-suite td:nth-child(3) { width: 118px; }
  .fund-action-suite th:nth-child(4), .fund-action-suite td:nth-child(4) { width: 90px; }
  .fund-action-suite th:nth-child(5), .fund-action-suite td:nth-child(5) { width: 160px; }
  .fund-action-suite th:nth-child(6), .fund-action-suite td:nth-child(6) { width: 650px; }
  .fund-action-suite th:nth-child(7), .fund-action-suite td:nth-child(7) { width: 330px; }
  .fund-action-suite th:nth-child(8), .fund-action-suite td:nth-child(8) { width: 300px; }
  .fund-action-nosuite th:nth-child(1), .fund-action-nosuite td:nth-child(1) { width: 132px; }
  .fund-action-nosuite th:nth-child(2), .fund-action-nosuite td:nth-child(2) { width: 118px; }
  .fund-action-nosuite th:nth-child(3), .fund-action-nosuite td:nth-child(3) { width: 78px; }
  .fund-action-nosuite th:nth-child(4), .fund-action-nosuite td:nth-child(4) { width: 138px; }
  .fund-action-nosuite th:nth-child(5), .fund-action-nosuite td:nth-child(5) { width: 620px; }
  .fund-action-nosuite th:nth-child(6), .fund-action-nosuite td:nth-child(6) { width: 710px; }
  .fund-action-nosuite th:nth-child(7), .fund-action-nosuite td:nth-child(7) { width: 472px; }
  .bot1-funds-page .fund-action-nosuite table { width: 1928px; min-width: 1928px; }
  .bot1-funds-page .fund-action-nosuite th,
  .bot1-funds-page .fund-action-nosuite td { padding-left: 12px; padding-right: 12px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(1),
  .bot1-funds-page .fund-action-nosuite td:nth-child(1) { width: 136px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(2),
  .bot1-funds-page .fund-action-nosuite td:nth-child(2) { width: 190px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(3),
  .bot1-funds-page .fund-action-nosuite td:nth-child(3) { width: 96px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(4),
  .bot1-funds-page .fund-action-nosuite td:nth-child(4) { width: 164px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(5),
  .bot1-funds-page .fund-action-nosuite td:nth-child(5) { width: 610px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(6),
  .bot1-funds-page .fund-action-nosuite td:nth-child(6) { width: 510px; }
  .bot1-funds-page .fund-action-nosuite th:nth-child(7),
  .bot1-funds-page .fund-action-nosuite td:nth-child(7) { width: 222px; }
  .fund-amount-cell span { min-width: 132px; }
  .bot1-funds-page .fund-action-nosuite .fund-amount-cell span { min-width: 142px; }
  .fund-route-line { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 3px 8px; }
  .bot1-funds-page .fund-action-nosuite .fund-route-line { grid-template-columns: 36px minmax(0, 1fr); gap: 7px; }
  .latency-board .panel-head {
    align-items: flex-start;
    gap: 5px;
  }
  .latency-board .panel-head .muted {
    line-height: 1.45;
  }
  .latency-chart-shell {
    margin: 10px 0 12px;
    padding: 10px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .latency-kline-svg {
    min-width: 960px;
  }
  .latency-summary-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .latency-summary-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
  }
  .latency-summary-card strong,
  .latency-summary-card span {
    white-space: normal;
  }
}
@media (max-width: 520px) {
  body::before {
    background-size: 36px 36px;
  }
  .topbar {
    min-height: 86px;
    padding: 9px 10px 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .brand-wrap {
    width: 100%;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .brand {
    font-size: 13px;
  }
  .nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
  .nav a {
    min-height: 31px;
    padding: 6px 10px;
  }
  .layout {
    padding: 14px 10px 22px;
  }
  .site-footer {
    padding: 0 10px 16px;
  }
  h1,
  .dashboard-title {
    font-size: 23px;
    line-height: 1.15;
  }
  .home-title {
    font-size: 24px;
  }
  .home-profit-value {
    font-size: 31px;
  }
  .home-kpi-grid,
  .home-health-stats,
  .health-count-grid,
  .self-heal-overview {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  .page-head .pager-btn {
    align-self: flex-start;
  }
  .health-switch-grid {
    gap: 10px;
  }
  .health-switch-card {
    padding: 12px;
  }
  .health-switch-card .health-hero-top {
    align-items: flex-start;
  }
  .health-switch-card .health {
    min-width: 44px;
    min-height: 20px;
    padding: 2px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .health-switch-card .health-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }
  .health-switch-card .health-count {
    min-height: 50px;
    padding: 7px 6px;
  }
  .health-switch-card .health-count span {
    font-size: 10px;
    white-space: nowrap;
  }
  .health-switch-card .health-count strong {
    font-size: 16px;
  }
  .health-switch-card .health-notes {
    margin-top: 8px;
  }
  .health-switch-card .health-note:nth-child(n+3) {
    display: none;
  }
  .health-switch-foot {
    font-size: 11px;
    line-height: 1.35;
  }
  .health-tab-panel > .panel {
    margin-top: 10px !important;
  }
  .self-heal-overview > div {
    min-height: 68px;
    padding: 10px;
  }
  .self-heal-overview strong {
    font-size: 16px;
  }
  .home-quick-grid,
  .quick-nav-items,
  .competitor-review-grid {
    grid-template-columns: 1fr;
  }
  .quick-nav,
  .bot-module-strip {
    padding: 10px;
  }
  .manage-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .manage-overview-card {
    min-height: 76px;
    padding: 12px;
  }
  .manage-subnav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: -2px;
  }
  .manage-subnav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .manage-subnav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .manage-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .quick-nav-item,
  .bot-module-item {
    min-height: 70px;
  }
  .dashboard-card {
    min-height: 112px;
    padding: 13px;
  }
  .dashboard-card.primary {
    min-height: 138px;
  }
  .dashboard-value {
    font-size: 24px;
  }
  .dashboard-card.primary .dashboard-value {
    font-size: 34px;
  }
  .bot-status-net {
    font-size: 22px;
  }
  .metric-value {
    font-size: 24px;
  }
  .date-filter-form {
    width: 100%;
  }
  .date-filter-form input[type="date"],
  .date-filter-form button,
  .date-link {
    min-height: 32px;
    font-size: 12px;
  }
  .pager-actions {
    gap: 6px;
    flex-wrap: wrap;
  }
  th, td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .config-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
  }
  .config-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .config-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .config-filter-btn {
    width: 100%;
    min-height: 32px;
  }
  .config-search {
    width: 100%;
  }
  .config-readonly-grid {
    grid-template-columns: 1fr;
  }
  .mixed-gate-card {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px;
  }
  .mixed-gate-panel-head {
    padding: 8px 9px;
  }
  .mixed-gate-chip-grid {
    max-height: 142px;
    padding: 9px;
  }
  .mixed-gate-textarea {
    min-height: 148px;
  }
  .mixed-gate-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .config-center-grid {
    gap: 9px;
  }
  .config-table {
    min-width: 760px;
  }
  .config-table th,
  .config-table td {
    padding: 7px 7px;
  }
  .config-table th:nth-child(1),
  .config-table td:nth-child(1) {
    width: 156px;
  }
  .config-table th:nth-child(2),
  .config-table td:nth-child(2) {
    width: 116px;
  }
  .config-table th:nth-child(3),
  .config-table td:nth-child(3) {
    width: 136px;
  }
  .config-table th:nth-child(4),
  .config-table td:nth-child(4) {
    width: 64px;
  }
  .config-table th:nth-child(5),
  .config-table td:nth-child(5) {
    width: 288px;
  }
  .config-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }
  .config-submit {
    width: 100% !important;
  }
  .config-current {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mixed-gate-chip {
    min-height: 25px;
    padding: 3px 7px;
    font-size: 11px;
  }
  .mixed-gate-note {
    margin: 0 9px 9px;
    font-size: 11px;
  }
  .follow-table th,
  .follow-table td,
  .miss-table th,
  .miss-table td,
  .fund-action-table th,
  .fund-action-table td {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .follow-table table {
    width: 2588px;
    min-width: 2588px;
  }
  .follow-table-market table {
    width: 2696px;
    min-width: 2696px;
  }
  .miss-table table {
    width: 2382px;
    min-width: 2382px;
  }
  .miss-table th:nth-child(7),
  .miss-table td:nth-child(7) {
    width: 136px;
  }
  .miss-table th:nth-child(10),
  .miss-table td:nth-child(10),
  .miss-table th:nth-child(11),
  .miss-table td:nth-child(11),
  .miss-table th:nth-child(12),
  .miss-table td:nth-child(12) {
    width: 94px;
  }
  .miss-table th:nth-child(8),
  .miss-table td:nth-child(8) { width: 68px; }
  .miss-table th:nth-child(9),
  .miss-table td:nth-child(9) { width: 94px; }
  .fund-action-suite table {
    width: 1900px;
    min-width: 1900px;
  }
  .fund-action-nosuite table {
    width: 2140px;
    min-width: 2140px;
  }
  .fund-action-suite th:nth-child(6),
  .fund-action-suite td:nth-child(6) {
    width: 650px;
  }
  .fund-action-nosuite th:nth-child(5),
  .fund-action-nosuite td:nth-child(5) {
    width: 560px;
  }
  .fund-action-nosuite th:nth-child(6),
  .fund-action-nosuite td:nth-child(6) {
    width: 620px;
  }
  .fund-action-nosuite th:nth-child(7),
  .fund-action-nosuite td:nth-child(7) {
    width: 420px;
  }
  .latency-board {
    margin-top: 10px !important;
  }
  .latency-board .panel-head {
    padding: 10px;
  }
  .latency-chart-shell {
    margin: 8px 0 10px;
    padding: 8px;
    border-radius: 6px;
  }
  .latency-chart-legend {
    gap: 6px;
    margin-bottom: 7px;
    font-size: 11px;
  }
  .latency-legend-item {
    padding: 3px 7px;
  }
  .latency-kline-svg {
    min-width: 820px;
  }
  .latency-summary-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 8px 9px;
  }
  .latency-summary-card .health {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .latency-summary-card strong {
    font-size: 12px;
    line-height: 1.35;
  }
  .latency-summary-card span {
    font-size: 11px;
    line-height: 1.35;
  }
  .fund-hash-chip,
  .tx-full {
    max-width: none;
  }
}

/* V8.1 live wallet operations studio */
.strategy-workbench {
  --strategy-line: #cbdce3;
  --strategy-ink: #173d4d;
  --strategy-accent: #147d8e;
  margin-top: 12px;
  overflow: hidden;
  border-color: #bfd3dc;
  background: #f8fbfc;
}
.strategy-command {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.28fr);
  min-height: 112px;
  border-bottom: 1px solid var(--strategy-line);
  background: #f3f8fa;
}
.strategy-command-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--strategy-line);
}
.strategy-command-title > small {
  color: #728b96;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.strategy-command-title h2 {
  margin: 4px 0 3px;
  color: var(--strategy-ink);
  font-size: 20px;
  line-height: 1.25;
}
.strategy-command-title p {
  margin: 0;
  color: #68808a;
  font-size: 11px;
}
.strategy-command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strategy-command-metrics > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px 16px;
  border-right: 1px solid #d5e2e7;
}
.strategy-command-metrics > span:last-child { border-right: 0; }
.strategy-command-metrics small {
  color: #6c858f;
  font-size: 9px;
}
.strategy-command-metrics strong {
  overflow: hidden;
  color: #1c5263;
  font: 700 15px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-filter-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--strategy-line);
  background: #fff;
}
.strategy-filter-buttons {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.strategy-filter-buttons::-webkit-scrollbar { display: none; }
.strategy-filter-buttons button {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5b727c;
  font-size: 10px;
  cursor: pointer;
}
.strategy-filter-buttons button:hover,
.strategy-filter-buttons button.active {
  border-bottom-color: var(--strategy-accent);
  color: #126a7a;
}
.strategy-filter-buttons button span {
  color: #83979f;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.strategy-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #c8d9df;
  background: #f8fbfc;
}
.strategy-search span {
  color: #7a9099;
  font-size: 9px;
}
.strategy-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #244b59;
  font-size: 11px;
}
.strategy-filter-rail > strong {
  color: #426774;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.strategy-master-detail {
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  min-height: 610px;
}
.strategy-queue {
  min-width: 0;
  border-right: 1px solid var(--strategy-line);
  background: #f6fafb;
}
.strategy-queue-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #d7e3e7;
  color: #2f5967;
  font-size: 11px;
  font-weight: 700;
}
.strategy-queue-head small { color: #84979e; font-size: 9px; font-weight: 500; }
.strategy-queue-list {
  max-height: 690px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.strategy-queue-item {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #dde7ea;
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.strategy-queue-item:hover { background: #eef6f7; }
.strategy-queue-item[hidden] { display: none !important; }
.strategy-queue-item.active {
  border-left-color: var(--strategy-accent);
  background: #eaf4f5;
}
.strategy-queue-rank {
  color: #78909a;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.strategy-queue-main,
.strategy-queue-side { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.strategy-queue-main strong {
  overflow: hidden;
  color: #1b5263;
  font: 700 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-queue-main small,
.strategy-queue-side small {
  overflow: hidden;
  color: #758b94;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-queue-side { align-items: flex-end; text-align: right; }
.strategy-queue-side i {
  color: #526f79;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.strategy-queue-side i.good { color: var(--good); }
.strategy-queue-side i.warn { color: #a56b12; }
.strategy-queue-side i.bad { color: var(--bad); }
.strategy-queue-empty { padding: 24px 12px; color: #7e929a; font-size: 11px; text-align: center; }
.strategy-dossier-stage { min-width: 0; padding: 14px; background: #fff; }
.strategy-dossier[hidden] { display: none !important; }
.strategy-dossier { min-width: 0; }
.strategy-dossier-head {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #c8dbe2;
  border-left: 3px solid var(--strategy-accent);
  background: #f5fafb;
}
.strategy-dossier-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.strategy-rank {
  color: #167285;
  font: 750 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.strategy-dossier-identity > div { min-width: 0; }
.strategy-dossier-identity small {
  display: block;
  margin-bottom: 4px;
  color: #7e929a;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.strategy-dossier-address.addr-popover-btn {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #143f50;
  font: 750 14px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
}
.strategy-dossier-state { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.strategy-dossier-state > small { max-width: 300px; color: #6f858e; font-size: 9px; text-align: right; }
.strategy-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid #d3e1e6;
  background: #fbfdfe;
}
.strategy-quick-grid > span {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px 11px;
  border-right: 1px solid #d9e5e8;
}
.strategy-quick-grid > span:last-child { border-right: 0; }
.strategy-quick-grid small,
.strategy-fact small { color: #748a93; font-size: 9px; }
.strategy-quick-grid strong {
  overflow-wrap: anywhere;
  color: #244e5d;
  font: 700 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.strategy-dossier-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.strategy-dossier-section {
  min-width: 0;
  border: 1px solid #d3e1e6;
  background: #fff;
}
.strategy-dossier-section h3 {
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid #dae6e9;
  color: #2c5665;
  font-size: 10px;
}
.strategy-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strategy-fact {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-right: 1px solid #e0e9ec;
  border-bottom: 1px solid #e0e9ec;
}
.strategy-fact:nth-child(2n) { border-right: 0; }
.strategy-fact-wide { grid-column: 1 / -1; border-right: 0; }
.strategy-fact strong {
  overflow-wrap: anywhere;
  color: #284f5d;
  font: 650 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 1100px) {
  .strategy-command { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); }
  .strategy-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-command-metrics > span:nth-child(2) { border-right: 0; }
  .strategy-command-metrics > span:nth-child(-n+2) { border-bottom: 1px solid #d5e2e7; }
  .strategy-master-detail { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); }
  .strategy-dossier-body { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .strategy-command { grid-template-columns: 1fr; }
  .strategy-command-title { border-right: 0; border-bottom: 1px solid var(--strategy-line); }
  .strategy-filter-rail { grid-template-columns: 1fr auto; }
  .strategy-filter-buttons { grid-column: 1 / -1; }
  .strategy-search { min-width: 0; }
  .strategy-master-detail { grid-template-columns: 1fr; min-height: 0; }
  .strategy-queue { border-right: 0; border-bottom: 1px solid var(--strategy-line); }
  .strategy-queue-list { max-height: 300px; }
  .strategy-dossier-stage { padding: 10px; }
}

@media (max-width: 520px) {
  .strategy-command-title { padding: 14px 12px; }
  .strategy-command-title h2 { font-size: 17px; }
  .strategy-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-command-metrics > span { min-height: 64px; padding: 10px 11px; }
  .strategy-command-metrics strong { font-size: 12px; }
  .strategy-filter-rail { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; }
  .strategy-queue-item { grid-template-columns: 26px minmax(0, 1fr) minmax(84px, auto); padding-inline: 7px; }
  .strategy-dossier-head { align-items: flex-start; flex-direction: column; }
  .strategy-dossier-state { align-items: flex-start; }
  .strategy-dossier-state > small { max-width: none; text-align: left; }
  .strategy-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-quick-grid > span:nth-child(2) { border-right: 0; }
  .strategy-quick-grid > span:nth-child(-n+2) { border-bottom: 1px solid #d9e5e8; }
  .strategy-fact-grid { grid-template-columns: 1fr; }
  .strategy-fact,
  .strategy-fact:nth-child(2n) { border-right: 0; }
  .strategy-dossier-address.addr-popover-btn { font-size: 12px; }
}

/* SNPR Console V3 --------------------------------------------------------- */
:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --panel-2: #f8fafb;
  --panel-3: #edf2f5;
  --line: #d6dfe6;
  --line-soft: #e7edf1;
  --text: #263741;
  --muted: #526473;
  --strong: #14212b;
  --good: #087a55;
  --bad: #c43d4b;
  --warn: #a96814;
  --brand: #176b87;
  --brand-soft: #e6f1f4;
  --shadow-soft: 0 1px 2px rgba(20, 33, 43, 0.04);
  --shadow-panel: 0 1px 2px rgba(20, 33, 43, 0.05);
}

body {
  background: var(--bg) !important;
  color: var(--text);
  font-size: 13px;
}

body::before {
  inset: 56px 0 0;
  background-image:
    linear-gradient(rgba(23, 107, 135, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 135, 0.025) 1px, transparent 1px) !important;
  background-size: 40px 40px;
  mask-image: none !important;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -3px;
}

.section-gap { margin-top: 12px !important; }
.muted { color: var(--muted) !important; }

.topbar {
  height: 56px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.topbar::before { display: none; }
.brand-wrap { gap: 10px; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--strong) !important;
  box-shadow: none;
}
.brand-mark .icon { width: 17px; height: 17px; }
.brand { color: var(--strong); font-size: 14px; font-weight: 750; }
.brand-sub { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.topbar-status {
  margin-left: 8px;
  color: var(--good);
  font-size: 10px;
  font-weight: 750;
}
.topbar-status::before { display: none; }
.topbar-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.10);
}
.nav {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2) !important;
  box-shadow: none;
}
.nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 650;
}
.nav a:hover { background: #edf3f6; color: var(--strong); }
.nav a.active { background: var(--panel); color: var(--brand); box-shadow: 0 1px 2px rgba(20, 33, 43, 0.08); }
.nav .nav-logout { color: #6a7780; }

.layout {
  width: min(1560px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.panel,
.metric,
.health-hero,
.quick-nav,
.quick-nav-item,
.leaderboard-card,
.latency-chart-shell,
.latency-summary-card,
.bot-module-strip,
.bot-module-item,
.competitor-review-card,
.login-card,
.login-context {
  background: var(--panel) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  box-shadow: var(--shadow-panel) !important;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
}
.panel::before,
.panel::after,
.quick-nav::before,
.quick-nav::after,
.leaderboard-card::before,
.latency-chart-shell::before,
.bot-module-strip::before,
.login-card::before,
.login-context::before { display: none !important; }

.panel-head {
  min-height: 34px;
  margin-bottom: 10px;
  padding: 0;
  align-items: center;
}
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--strong);
  font-size: 14px;
  font-weight: 750;
}
.panel-head h2 .icon { color: var(--brand); }
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}
.panel-link .icon { width: 13px; height: 13px; }

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.dashboard-header::before,
.dashboard-header::after { display: none !important; }
.dashboard-header h1 {
  margin: 2px 0 4px;
  color: var(--strong);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.2;
}
.page-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}
.dashboard-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.dashboard-sync .icon { color: var(--brand); }

.operations-strip {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--panel);
}
.operations-strip:hover { border-color: #afc3cf; }
.operations-strip-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--brand);
  background: var(--brand-soft);
}
.operations-strip > span:nth-child(2) { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.operations-strip strong { color: var(--strong); font-size: 12px; }
.operations-strip em { overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.operations-strip-meta { color: var(--muted); font-size: 11px; }
.operations-strip > .icon { width: 14px; height: 14px; color: var(--muted); }

.dashboard-metrics { gap: 10px; }
.metric {
  min-height: 112px;
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: 6px;
}
.metric::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 16px;
  border-bottom: 1px solid rgba(23, 107, 135, 0.18);
  border-left: 1px solid rgba(23, 107, 135, 0.18);
  transform: skewX(-30deg);
}
.metric-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-value {
  margin: 9px 0 7px;
  color: var(--strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}
.metric-sub { color: var(--muted); font-size: 10px; }

.quick-nav {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.quick-nav-head { display: none; }
.quick-nav-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-nav-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.quick-nav-item:hover { border-color: #afc3cf; transform: none; }
.quick-nav-item > .icon:first-child { color: var(--brand); }
.quick-nav-item > .icon:last-child { width: 13px; color: var(--muted); }
.quick-nav-item > span { display: none; }
.quick-nav-item strong { color: var(--strong); font-size: 12px; }
.quick-nav-item em { overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.task-summary-list { border-top: 1px solid var(--line-soft); }
.task-summary-row {
  min-height: 39px;
  display: grid;
  grid-template-columns: 62px minmax(160px, 1fr) auto 132px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.task-summary-row:last-child { border-bottom: 0; }
.task-summary-owner {
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
}
.task-summary-row strong { overflow: hidden; color: var(--strong); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-summary-row time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }
.compact-empty { padding: 20px 0; }

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel);
}
table { border-collapse: collapse; }
th {
  background: var(--panel-2) !important;
  color: #49606f;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}
td { color: var(--text); }
th, td { border-bottom-color: var(--line-soft) !important; }
tbody tr:hover td { background: #f5f9fa !important; }
.tag,
.health,
.site-footer-pill,
.builder-cell {
  border-radius: 4px !important;
  box-shadow: none !important;
}
.health { min-height: 22px; padding: 3px 7px; font-size: 10px; }
.health.ok { color: var(--good); background: #e9f5f0 !important; border-color: #b9dfd0; }
.health.warn { color: var(--warn); background: #fbf3e7 !important; border-color: #e7d0a9; }
.health.bad { color: var(--bad); background: #faecee !important; border-color: #e9bdc2; }
.good { color: var(--good) !important; }
.bad { color: var(--bad) !important; }

.monitor-leaderboard-panel { overflow: hidden; }
.leaderboard-period-tabs { display: none; }
.monitor-leaderboard-grid { gap: 10px; }
.leaderboard-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.leaderboard-card-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2) !important;
}
.leaderboard-card-head h3 { color: var(--strong); font-size: 13px; font-weight: 760; }
.leaderboard-table { border: 0; border-radius: 0; }
.leaderboard-table th,
.leaderboard-table td { padding: 8px 7px; white-space: nowrap; }
.leaderboard-rank {
  width: 34px;
  color: #758590;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}
.leaderboard-address-text {
  color: #205c73;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}
.leaderboard-sort-head {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent !important;
  color: #49606f;
  font-size: 10px;
}
.leaderboard-sort-head.active { border-bottom-color: var(--brand); color: var(--brand); }

.latency-chart-shell { border: 1px solid var(--line-soft); border-radius: 5px; }
.latency-swatch { width: 8px; height: 8px; border-radius: 2px; }
.latency-swatch.bot1 { background: #176b87; }
.latency-swatch.bot2 { background: #087a55; }
.latency-summary-card { border: 1px solid var(--line-soft); border-radius: 5px; }

.site-footer { background: transparent !important; border-top: 1px solid var(--line); }
.site-footer::before { display: none !important; }
.site-footer-inner { color: var(--muted); }
.site-footer-pill { background: var(--panel) !important; border-color: var(--line); color: var(--muted); }

.note-delay-0 { animation-delay: 0s; }
.note-delay-1 { animation-delay: 0.8s; }
.note-delay-2 { animation-delay: 1.6s; }
.note-delay-3 { animation-delay: 2.4s; }
.is-hidden { display: none !important; }
.snpr-address-popover {
  position: fixed !important;
  left: 50% !important;
  top: auto !important;
  right: auto !important;
  bottom: 24px !important;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: var(--strong) !important;
  box-shadow: 0 12px 36px rgba(20, 33, 43, 0.20) !important;
}
.snpr-latency-tooltip {
  position: fixed !important;
  left: 50% !important;
  top: auto !important;
  right: auto !important;
  bottom: 18px !important;
  width: min(460px, calc(100vw - 28px));
  transform: translateX(-50%);
  border-radius: 5px !important;
  background: var(--strong) !important;
  box-shadow: 0 10px 30px rgba(20, 33, 43, 0.18) !important;
}

/* Login is intentionally operational, not a marketing surface. */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg) !important;
}
.login-page .site-footer { display: none; }
.login-wrap::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 107, 135, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 135, 0.035) 1px, transparent 1px) !important;
  background-size: 36px 36px;
  mask-image: none !important;
}
.login-shell {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.login-shell::before,
.login-shell::after { display: none !important; }
.login-card {
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.login-brand .icon { width: 18px; height: 18px; }
.login-card h1 { margin: 0 0 22px; color: var(--strong); font-size: 21px; }
.login-card .field { margin-bottom: 14px; }
.login-card label { color: var(--muted); font-size: 11px; font-weight: 650; }
.login-card input {
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2) !important;
  color: var(--strong);
}
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.10); }
.login-submit {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 5px;
  background: var(--strong) !important;
  box-shadow: none;
}
.login-submit .icon { width: 14px; }
.login-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.login-context-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--good);
  background: #e9f5f0;
}
.login-context strong { display: block; color: var(--strong); font-size: 11px; }
.login-context span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.login-visual { display: none !important; }

@media (max-width: 900px) {
  .topbar { height: auto; min-height: 54px; padding: 8px 12px; gap: 8px; }
  .brand-sub, .topbar-status { display: none; }
  .nav { max-width: calc(100vw - 76px); overflow-x: auto; }
  .nav a { padding: 7px 9px; }
  .nav .nav-logout span { display: none; }
  .layout { width: min(100% - 20px, 760px); padding-top: 16px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-summary-row { grid-template-columns: 52px minmax(120px, 1fr) auto; }
  .task-summary-row time { display: none; }
  .bot-compare-panel .table-wrap,
  .history-table { overflow-x: auto; }
}

@media (max-width: 640px) {
  body { font-size: 12px; }
  .layout { width: calc(100% - 16px); padding: 12px 0 24px; }
  .topbar { position: sticky; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { display: none; }
  .nav { max-width: calc(100vw - 56px); margin-left: auto; }
  .nav a { min-height: 31px; gap: 4px; padding: 6px 8px; font-size: 11px; }
  .nav a .icon { width: 14px; height: 14px; }
  .dashboard-header { align-items: flex-start; margin-bottom: 10px; }
  .dashboard-header h1 { font-size: 20px; }
  .dashboard-sync { display: none; }
  .operations-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .operations-strip > span:nth-child(2) { display: grid; gap: 2px; }
  .operations-strip em { max-width: 100%; }
  .operations-strip-meta,
  .operations-strip > .icon:last-child { display: none; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric { min-height: 96px; padding: 12px; }
  .metric-value { margin: 7px 0 5px; font-size: 17px; overflow-wrap: anywhere; }
  .metric-sub { line-height: 1.35; }
  .quick-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .quick-nav-item { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 44px; padding: 8px; }
  .quick-nav-item em { display: none; }
  .panel { padding: 11px; border-radius: 5px; }
  .panel-head { align-items: center; gap: 8px; }
  .panel-head > .muted { max-width: 56%; font-size: 9px; text-align: right; }
  .task-summary-row {
    min-height: 43px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .task-summary-owner { font-size: 9px; }
  .task-summary-row strong { font-size: 11px; }
  .leaderboard-period-tabs {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-2);
  }
  .leaderboard-period-tabs button {
    min-height: 27px;
    padding: 4px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
  }
  .leaderboard-period-tabs button.active { background: var(--panel); color: var(--brand); box-shadow: 0 1px 2px rgba(20, 33, 43, 0.08); }
  .monitor-leaderboard-grid { display: block; }
  .leaderboard-card { display: none; }
  .leaderboard-card.mobile-active { display: block; }
  .leaderboard-table { overflow-x: hidden; }
  .leaderboard-table table { min-width: 100% !important; width: 100%; table-layout: fixed; }
  .leaderboard-table th,
  .leaderboard-table td { padding: 8px 4px; }
  .leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 28px; }
  .leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 31%; }
  .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { width: 29%; }
  .leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { width: 18%; }
  .leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5) { width: 17%; }
  .leaderboard-address-text { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .leaderboard-table .pnl-chip { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  .latency-board .panel-head > .muted { display: none; }
  .login-wrap { min-height: 100vh; padding: 14px; }
  .login-shell { width: 100%; max-width: 390px; }
  .login-card { padding: 21px; }
  .login-brand { margin-bottom: 18px; }
  .login-card h1 { margin-bottom: 18px; font-size: 19px; }
}

/* SNPR Quant Console V6.0 - data-driven live signal system ------------ */
:root {
  --signal-primary: 8, 127, 155;
  --signal-secondary: 7, 138, 102;
  --signal-speed: 2.8s;
}
body[data-market-regime="cold"] {
  --signal-primary: 64, 121, 144;
  --signal-secondary: 67, 132, 113;
  --signal-speed: 4.8s;
}
body[data-market-regime="hot"] {
  --signal-primary: 0, 145, 174;
  --signal-secondary: 0, 156, 112;
  --signal-speed: 1.75s;
}

.signal-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.topbar { isolation: isolate; overflow: hidden; }
.topbar-signal-field { z-index: -1; opacity: .48; }
.topbar > :not(.signal-field-canvas) { position: relative; z-index: 1; }
.dashboard-command-deck { isolation: isolate; }
.command-signal-field { z-index: 0; opacity: .62; }
.dashboard-command-deck > :not(.signal-field-canvas) { position: relative; z-index: 1; }

.brand-mark {
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 1px solid rgba(var(--signal-primary), .20);
  opacity: .38;
  animation: snprBrandSignal 3.8s ease-in-out infinite;
}
.brand-mark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--signal-primary), .18); }
.nav a { position: relative; overflow: hidden; }
.nav a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--signal-primary), .88), transparent);
  opacity: 0;
  transform: translateX(-35%);
}
.nav a:hover::after,
.nav a.active::after { opacity: 1; animation: snprNavScan 2.4s linear infinite; }

body.page-motion-ready main.layout,
body.page-motion-ready .quant-tape { animation: snprPageEnter 240ms cubic-bezier(.2,.7,.2,1) both; }
body.page-motion-leaving main.layout { opacity: .86; transform: translateY(2px); transition: opacity 120ms ease, transform 120ms ease; }

.value-flash {
  position: relative;
  animation: snprValueSignal 620ms ease-out both;
}
.value-rise { --value-signal-color: rgba(7, 138, 102, .18); }
.value-fall { --value-signal-color: rgba(194, 65, 73, .14); }
.console-freshness i,
.topbar-status i { animation: snprOnlinePulse 2.8s ease-in-out infinite; }
.health.warn,
.health.bad { animation: snprAttentionPulse 2.2s ease-in-out infinite; }

.execution-pulse,
.bot-execution-flow,
.capital-flow-band { --flow-accent: rgba(var(--signal-primary), .72); }
.capital-flow-band::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 30px;
  bottom: 0;
  left: 0;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--signal-secondary), .10), transparent);
  transform: translateX(-120%);
  animation: snprCapitalSweep calc(var(--signal-speed) * 1.8) linear infinite;
}
.execution-stage,
.bot-flow-stage,
.capital-flow-node { transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.execution-stage:hover,
.bot-flow-stage:hover,
.capital-flow-node:hover { background: rgba(var(--signal-primary), .045); }
.execution-stage.signal-active .execution-stage-icon,
.bot-flow-stage.signal-active > span,
.capital-flow-node.signal-active > span {
  color: rgb(var(--signal-primary));
  filter: drop-shadow(0 0 5px rgba(var(--signal-primary), .28));
}
.execution-stage.signal-active::before,
.bot-flow-stage.signal-active::before,
.capital-flow-node.signal-active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(var(--signal-secondary));
  box-shadow: 0 0 0 4px rgba(var(--signal-secondary), .08), 0 0 9px rgba(var(--signal-secondary), .35);
  animation: snprFlowNode calc(var(--signal-speed) + .8s) ease-in-out infinite;
  animation-delay: calc(var(--signal-stage, 0) * 140ms);
}
.execution-stage-grid::before,
.bot-flow-grid::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--signal-primary), .12) 22%, rgba(var(--signal-secondary), .30) 50%, rgba(var(--signal-primary), .12) 78%, transparent 100%);
  background-size: 220% 100%;
  animation: snprFlowTrack var(--signal-speed) linear infinite;
}

.live-row-arrival { animation: snprRowIngress 1.15s ease-out both; }
.live-row-arrival > td:first-child { box-shadow: inset 2px 0 0 rgb(var(--signal-primary)); }
.builder-confirmed { animation: snprBuilderConfirm 920ms ease-out both; }

[data-live-latency] .latency-chart-line {
  stroke-dasharray: 7 4;
  animation: snprLatencyTrace 8s linear infinite;
}
[data-live-latency] .latency-latest-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: snprLatencyLatest 2.2s ease-in-out infinite;
}
[data-live-latency]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(var(--signal-primary), .045) 48%, transparent 62%);
  transform: translateX(-75%);
  animation: snprChartScanner 7s ease-in-out infinite;
}

.record-detail-dialog[open] .record-detail-shell,
.global-search-dialog[open] .global-search-shell,
.snpr-address-popover.open { animation: snprDialogEnter 180ms cubic-bezier(.2,.75,.2,1) both; }

.login-visual { isolation: isolate; overflow: hidden; }
.login-signal-field { z-index: 0; opacity: .78; }
.login-visual > img { position: relative; z-index: 1; mix-blend-mode: multiply; }
.login-signal-core {
  position: absolute;
  left: 55%;
  top: 48%;
  z-index: 2;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.login-signal-core i,
.login-signal-core span,
.login-signal-core b {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--signal-primary), .28);
  border-radius: 50%;
  animation: snprLoginOrbit 8s linear infinite;
}
.login-signal-core span { inset: 18px; border-color: rgba(var(--signal-secondary), .34); animation-direction: reverse; animation-duration: 5.5s; }
.login-signal-core b { inset: 39px; border: 0; background: rgba(var(--signal-primary), .75); box-shadow: 0 0 0 8px rgba(var(--signal-primary), .08), 0 0 24px rgba(var(--signal-primary), .32); animation: snprOnlinePulse 2.2s ease-in-out infinite; }

@keyframes snprPageEnter { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes snprBrandSignal { 0%,100% { opacity: .22; transform: scale(.96); } 50% { opacity: .62; transform: scale(1.04); } }
@keyframes snprNavScan { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@keyframes snprValueSignal { 0% { background: var(--value-signal-color, rgba(var(--signal-primary), .16)); text-shadow: 0 0 10px rgba(var(--signal-primary), .30); } 100% { background: transparent; text-shadow: none; } }
@keyframes snprOnlinePulse { 0%,100% { opacity: .68; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes snprAttentionPulse { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(183,119,22,.09); } }
@keyframes snprFlowTrack { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@keyframes snprFlowNode { 0%,100% { opacity: .35; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.2); } }
@keyframes snprRowIngress { 0% { background: rgba(var(--signal-primary), .14); transform: translateX(-3px); } 100% { background: transparent; transform: none; } }
@keyframes snprBuilderConfirm { 0% { box-shadow: 0 0 0 0 rgba(var(--signal-primary), .34); } 55% { box-shadow: 0 0 0 5px rgba(var(--signal-primary), .07); } 100% { box-shadow: none; } }
@keyframes snprLatencyTrace { to { stroke-dashoffset: -44; } }
@keyframes snprLatencyLatest { 0%,100% { transform: scale(.9); opacity: .72; } 50% { transform: scale(1.38); opacity: 1; } }
@keyframes snprChartScanner { 0%,20% { transform: translateX(-75%); } 75%,100% { transform: translateX(75%); } }
@keyframes snprDialogEnter { from { opacity: 0; transform: translateY(6px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes snprLoginOrbit { from { transform: rotate(0deg) scaleX(1); } 50% { transform: rotate(180deg) scaleX(.72); } to { transform: rotate(360deg) scaleX(1); } }
@keyframes snprCapitalSweep { to { transform: translateX(560%); } }

@media (max-width: 900px) {
  .command-signal-field { opacity: .42; }
  .execution-stage-grid::before,
  .bot-flow-grid::before { display: none; }
}

@media (max-width: 640px) {
  .topbar-signal-field { opacity: .32; }
  .command-signal-field { opacity: .34; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark::after,
  .nav a::after,
  .console-freshness i,
  .topbar-status i,
  .health,
  .execution-stage::before,
  .bot-flow-stage::before,
  .capital-flow-node::before,
  .capital-flow-band::after,
  [data-live-latency] .latency-chart-line,
  [data-live-latency] .latency-latest-dot,
  [data-live-latency]::after,
  .login-signal-core * {
    animation: none !important;
  }
  body.page-motion-ready main.layout,
  body.page-motion-ready .quant-tape,
  .live-row-arrival,
  .builder-confirmed { animation: none !important; }
}

/* SNPR Quant Console V4.5 - financial history signal ------------------ */
.history-date-link {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  color: #173b56;
  text-decoration: none;
}
.history-date-main {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
  color: #164963;
  font-variant-numeric: tabular-nums;
}
.history-date-meta {
  display: grid;
  gap: 1px;
  padding-left: 8px;
  border-left: 1px solid #b9d4dc;
  line-height: 1;
}
.history-date-meta b {
  color: #168da0;
  font-size: 8px;
  font-weight: 820;
}
.history-date-meta time {
  color: #718995;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}
.history-date-link:hover .history-date-main { color: #078ca4; }
.history-date-link:focus-visible {
  outline: 2px solid rgba(7, 140, 164, .28);
  outline-offset: 4px;
}
.history-trend-shell {
  padding: 0 14px 8px;
  border-bottom: 1px solid #c8dce4;
  background:
    linear-gradient(180deg, rgba(247, 252, 253, .98), rgba(237, 246, 249, .92)),
    repeating-linear-gradient(90deg, transparent 0, transparent 68px, rgba(39, 103, 126, .035) 69px);
}
.history-trend-head {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 8px 8px 2px;
  border-bottom: 1px solid rgba(180, 207, 218, .58);
}
.history-trend-head > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.history-trend-head span { color: #718793; font-size: 9px; font-weight: 720; }
.history-trend-head strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.history-trend-head strong.positive { color: #078a68; }
.history-trend-head strong.negative { color: #c43f4f; }
.history-trend-stats,
.history-trend-legend { display: flex; align-items: center; gap: 13px; }
.history-trend-stats b { color: #274d5d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.history-trend-legend span { position: relative; padding-left: 17px; }
.history-trend-legend .bar-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #15a58a;
}
.history-trend-legend .line-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 2px;
  background: #167da1;
  box-shadow: 0 0 5px rgba(22, 125, 161, .32);
}
.history-trend-svg { width: 100%; height: 164px; display: block; overflow: hidden; }
.history-chart-plot {
  width: 100%;
  overflow: hidden;
  padding-top: 6px;
}
.history-x-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  padding: 1px 3px 4px;
}
.history-x-axis span {
  color: #738994;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.history-x-axis span:first-child { text-align: left; }
.history-x-axis span:last-child { text-align: right; }
.history-trend-grid { stroke: #d5e4e9; stroke-width: .8; stroke-dasharray: 2 7; }
.history-trend-grid,
.history-trend-zero,
.history-average-line { vector-effect: non-scaling-stroke; }
.history-trend-zero { stroke: #8eabb7; stroke-width: 1; stroke-dasharray: 4 5; }
.history-pnl-bar { opacity: .94; }
.history-pnl-bar.positive { fill: url(#history-positive); }
.history-pnl-bar.negative { fill: url(#history-negative); }
.history-pnl-bar:hover { opacity: 1; filter: saturate(1.15); }
.history-average-line {
  fill: none;
  stroke: #167da1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#history-line-glow);
  pointer-events: none;
}
.history-trend-label,
.history-axis-label {
  fill: #738994;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .history-trend-shell { padding: 0 4px 6px; }
  .history-trend-head {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 8px 7px 5px;
  }
  .history-trend-head > div:first-child {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px;
  }
  .history-trend-head strong { font-size: 14px; white-space: nowrap; }
  .history-trend-head span { white-space: nowrap; }
  .history-trend-stats { grid-column: 1; justify-content: flex-start; gap: 8px; }
  .history-trend-legend { grid-column: 2; justify-content: flex-end; gap: 10px; }
  .history-trend-svg { height: 140px; }
  .history-x-axis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .history-x-axis span:nth-child(even) { display: none; }
  .history-date-link { gap: 6px; }
  .history-date-main { font-size: 13px; }
}

/* SNPR Quant Console V4 -------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #070a0e;
  --panel: #0d131a;
  --panel-2: #111922;
  --panel-3: #16212b;
  --line: #25323d;
  --line-soft: #1a252e;
  --text: #aebdca;
  --muted: #718391;
  --strong: #e5eef2;
  --good: #39d49d;
  --bad: #ff6877;
  --warn: #e6b65a;
  --brand: #2ad0dc;
  --brand-soft: rgba(42, 208, 220, 0.10);
  --violet: #9b8cff;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-panel: 0 16px 42px rgba(0, 0, 0, 0.22);
}

html { background: var(--bg); }
html,
body { max-width: 100%; overflow-x: hidden; }
* { letter-spacing: 0 !important; }
::selection { color: #061014; background: #62e3ea; }
body {
  background: #070a0e !important;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
body::before {
  inset: 0 !important;
  z-index: 0;
  background-image:
    linear-gradient(rgba(80, 116, 132, 0.050) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 116, 132, 0.050) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 52%, transparent 100%) !important;
}
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  top: 58px;
  right: 0;
  width: min(68vw, 1040px);
  height: 520px;
  pointer-events: none;
  opacity: .18;
  background: url('/static/snpr-quant-field.svg') right top / cover no-repeat;
  mask-image: linear-gradient(120deg, transparent 5%, #000 48%, transparent 95%);
}
body :where(h1, h2, h3, h4, strong, label) { color: var(--strong); }
body :where(.muted, .metric-label, .metric-sub, .dashboard-meta, .dashboard-note) { color: var(--muted) !important; }
a { transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #090e13; }
::-webkit-scrollbar-thumb { background: #2a3945; border: 2px solid #090e13; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #39505e; }

.topbar {
  height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid #24323d;
  background: rgba(8, 12, 17, .94) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2ad0dc 18%, transparent 46%, #39d49d 76%, transparent);
  opacity: .38;
}
.brand-wrap { gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: 0 0 24px rgba(42,208,220,.12);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-text { gap: 0; }
.brand { color: #eff7fa; font-size: 15px; font-weight: 820; }
.brand-sub { color: #677b88; font-size: 9px; font-weight: 720; text-transform: uppercase; }
.topbar-status {
  min-height: 22px;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(57,212,157,.24);
  border-radius: 4px;
  color: var(--good);
  background: rgba(57,212,157,.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}
.topbar-status::before { display: none; }
.topbar-status i { width: 5px; height: 5px; background: var(--good); box-shadow: 0 0 10px var(--good); }
.nav {
  gap: 2px;
  padding: 3px;
  border: 1px solid #202c35;
  border-radius: 6px;
  background: #0b1117 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.nav a {
  min-height: 32px;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #778a97;
  font-size: 11px;
  font-weight: 700;
}
.nav a:hover { color: #cfdae0; border-color: #283945; background: #111a22; }
.nav a.active {
  color: var(--brand);
  border-color: rgba(42,208,220,.25);
  background: rgba(42,208,220,.08);
  box-shadow: inset 0 -1px 0 rgba(42,208,220,.45);
}
.nav .nav-logout { color: #687984; }

.layout {
  width: min(1720px, calc(100% - 32px));
  padding: 18px 0 32px;
}
.dashboard-shell { position: relative; }
.dashboard-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: 0;
  width: 62%;
  height: 250px;
  opacity: .34;
  background: url('/static/snpr-quant-field.svg') right top / cover no-repeat;
  mask-image: linear-gradient(120deg, transparent 0%, #000 58%, transparent 100%);
  pointer-events: none;
}

.page-head,
.dashboard-header {
  min-height: 64px;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 2px 8px;
}
.dashboard-header h1,
.page-head h1 {
  margin: 3px 0 4px;
  color: #edf6f8;
  font-size: 24px;
  font-weight: 780;
}
.page-kicker,
.dashboard-kicker {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.dashboard-sync {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #26343e;
  border-radius: 4px;
  color: #81929e;
  background: rgba(10,15,20,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.dashboard-sync .icon { color: var(--brand); }

.panel,
.metric,
.health-hero,
.fund-hero,
.fund-card,
.section-card,
.config-section,
.config-readonly-card,
.mixed-gate-card,
.self-heal-overview > div,
.competitor-review-card,
.latency-summary-card,
.leaderboard-card,
.bot-module-strip {
  border-color: var(--line) !important;
  background: linear-gradient(180deg, #10171f, #0c1218) !important;
  background-image: linear-gradient(180deg, #10171f, #0c1218) !important;
  box-shadow: var(--shadow-panel) !important;
  color: var(--text);
}
.panel {
  padding: 13px;
  border-radius: 6px;
  overflow: hidden;
}
.panel::before {
  display: block !important;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,208,220,.34), rgba(57,212,157,.18), transparent);
}
.panel-head {
  min-height: 34px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent !important;
}
.panel-head h2 {
  color: #dce9ed;
  font-size: 13px;
  font-weight: 760;
}
.panel-head h2 .icon { color: var(--brand); }
.panel-link { color: var(--brand); }
.section-gap { margin-top: 9px !important; }

.operations-strip {
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #26343f;
  border-left: 2px solid var(--brand);
  border-radius: 5px;
  background: rgba(12,18,24,.88);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.operations-strip:hover { border-color: #34505d; background: #101820; }
.operations-strip-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(42,208,220,.20);
  border-radius: 4px;
  color: var(--brand);
  background: rgba(42,208,220,.08);
}
.operations-strip strong { color: #d7e4e8; }
.operations-strip em,
.operations-strip-meta { color: var(--muted); }

.dashboard-metrics { gap: 8px; }
.metric {
  min-height: 102px;
  padding: 13px 14px;
  border-radius: 5px;
}
.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34%;
  height: 2px;
  background: var(--brand);
  opacity: .72;
}
.metric:nth-child(2)::before { background: var(--good); }
.metric:nth-child(3)::before { background: #6edaa9; }
.metric:nth-child(4)::before { background: var(--warn); }
.metric::after {
  right: 11px;
  bottom: 11px;
  width: 34px;
  height: 17px;
  border-color: rgba(42,208,220,.16);
}
.metric-label {
  color: #788b98 !important;
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}
.metric-value {
  margin: 9px 0 6px;
  color: #e2ecef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 23px;
  font-weight: 720;
}
.metric-sub { color: #637683 !important; font-size: 10px; }
.good { color: var(--good) !important; }
.bad { color: var(--bad) !important; }

.quick-nav { padding: 0; border: 0; background: transparent !important; box-shadow: none !important; }
.quick-nav { display: block; grid-template-columns: none; }
.quick-nav-items { width: 100%; gap: 6px; }
.quick-nav-item {
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #202d36;
  border-radius: 4px;
  background: rgba(12,18,24,.88) !important;
  box-shadow: none !important;
}
.quick-nav-item:hover { border-color: rgba(42,208,220,.35); background: #101922 !important; }
.quick-nav-item > .icon:first-child { color: var(--brand); }
.quick-nav-item > .icon:last-child { color: #536773; }
.quick-nav-item strong { color: #cbd8de; font-size: 11px; }
.quick-nav-item em { color: #627581; font-size: 9px; }

.task-summary-panel { border-left: 2px solid #263944; }
.task-summary-list { border-top-color: var(--line-soft); }
.task-summary-row { min-height: 36px; border-bottom-color: var(--line-soft); }
.task-summary-owner { color: var(--brand); }
.task-summary-row strong { color: #c8d5da; }
.task-summary-row time { color: #60717d; }

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #0a1015 !important;
  box-shadow: inset 0 1px 8px rgba(0,0,0,.14);
}
table { color: var(--text); }
th {
  background: #111922 !important;
  color: #8194a0 !important;
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}
td {
  color: #aebdc7;
  background: transparent;
  font-size: 11px;
}
th, td { border-bottom-color: #1a252d !important; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.008); }
tbody tr:hover td { background: rgba(42,208,220,.045) !important; }
.mono,
.tx-full,
.follow-hash,
.fund-address,
.fund-route-address,
.fund-hash-chip,
.competitor-address,
.config-readonly-value {
  color: #8fcbd1 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tag,
.health,
.builder-cell,
.site-footer-pill,
.market-badge,
.fund-role-chip,
.miss-reason-badge {
  min-height: 21px;
  border-radius: 3px !important;
  box-shadow: none !important;
  font-size: 9px;
}
.tag { color: #9dcad0; border-color: #29404b; background: #111e25 !important; }
.health.ok { color: var(--good); border-color: rgba(57,212,157,.28); background: rgba(57,212,157,.08) !important; }
.health.warn { color: var(--warn); border-color: rgba(230,182,90,.30); background: rgba(230,182,90,.08) !important; }
.health.bad { color: var(--bad); border-color: rgba(255,104,119,.30); background: rgba(255,104,119,.08) !important; }
.health.neutral { color: #9aabba; border-color: #34424d; background: #151d24 !important; }
.pnl-chip,
.pnl-text,
.stat-pnl-cell,
.pnl-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.history-date-link,
.date-link { color: #65dbe3 !important; font-weight: 700; }
.pager {
  border-top-color: var(--line-soft);
  background: #0d141b;
}
.pager-info { color: #6d7e8a; }
.pager-btn,
.pager-size-select {
  border-color: #2a3944;
  border-radius: 4px;
  color: #9eb0bb;
  background: #101820 !important;
}
.pager-btn:hover { color: var(--brand); border-color: rgba(42,208,220,.38); }
.pager-btn.disabled { color: #43535e; background: #0c1217 !important; }

.monitor-leaderboard-panel {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.monitor-leaderboard-panel::before { display: none !important; }
.monitor-leaderboard-panel > .panel-head {
  margin-bottom: 6px;
  padding: 0 2px 7px;
}
.monitor-leaderboard-grid { gap: 7px; padding: 0; }
.leaderboard-card {
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
}
.leaderboard-card::before {
  display: block !important;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--good), transparent);
}
.leaderboard-card:nth-child(2)::before { background: linear-gradient(90deg, var(--good), var(--warn), transparent); }
.leaderboard-card:nth-child(3)::before { background: linear-gradient(90deg, var(--warn), var(--violet), transparent); }
.leaderboard-card-head {
  min-height: 36px;
  padding: 0 10px;
  border-bottom-color: var(--line-soft);
  background: #111922 !important;
}
.leaderboard-card-head h3 { color: #d7e5e8; font-size: 12px; }
.leaderboard-table { border: 0; background: transparent !important; }
.leaderboard-table thead th { background: #0e161d !important; }
.leaderboard-table tbody tr:hover { background: rgba(42,208,220,.04); box-shadow: inset 2px 0 0 var(--brand); }
.leaderboard-rank { color: #60727f; }
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text,
.leaderboard-address-text { color: #8dd4da !important; }
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text:hover { color: #c6f5f7 !important; }
.leaderboard-sort-head { color: #738692; }
.leaderboard-sort-head:hover,
.leaderboard-sort-head.active { color: var(--brand); }

.latency-board { padding-bottom: 10px; }
.latency-chart-shell {
  border: 1px solid #20303a;
  border-radius: 4px;
  background: #090f14 !important;
  box-shadow: inset 0 0 28px rgba(0,0,0,.28) !important;
}
.latency-chart-legend { color: #7a8d99; }
.latency-legend-item { border-color: #263740; background: #101820; }
.latency-swatch.bot1 { background: var(--brand); box-shadow: 0 0 10px rgba(42,208,220,.34); }
.latency-swatch.bot2 { background: var(--good); box-shadow: 0 0 10px rgba(57,212,157,.30); }
.latency-chart-bg { fill: #090f14 !important; }
.latency-chart-scan { fill: rgba(42,208,220,.035) !important; }
.latency-chart-grid,
.latency-chart-vgrid { stroke: #1d2a33 !important; }
.latency-chart-axis { fill: #637784 !important; }
.latency-chart-line { stroke: #2ad0dc !important; }
.latency-chart-line.bot2 { stroke: #39d49d !important; }
.latency-chart-band { fill: rgba(42,208,220,.055) !important; }
.latency-chart-range-line { stroke: #58727e !important; }
.latency-chart-dot { fill: #2ad0dc !important; }
.latency-chart-dot.bot2 { fill: #39d49d !important; }
.latency-chart-low-dot { fill: #e6b65a !important; }
.latency-summary-strip { gap: 7px; }
.latency-summary-card { border-radius: 4px; box-shadow: none !important; }
.latency-summary-card strong { color: #cfdbdf; }
.latency-summary-card span { color: #6f818d; }

.tabs,
.manage-subnav-tabs {
  gap: 3px;
  padding: 3px;
  border: 1px solid #22303a;
  border-radius: 5px;
  background: #0b1117;
}
.tabs a,
.manage-subnav-tabs a {
  min-height: 31px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #778996;
  background: transparent;
}
.tabs a:hover,
.tabs a.active,
.manage-subnav-tabs a:hover,
.manage-subnav-tabs a.active {
  color: var(--brand);
  border-color: rgba(42,208,220,.22);
  background: rgba(42,208,220,.07);
}

.health-hero,
.fund-hero { border-radius: 5px; }
.health-title,
.fund-card-value,
.self-heal-overview strong,
.competitor-review-card strong { color: #dce8ec !important; }
.health-sub,
.health-note,
.fund-card-label,
.fund-card-sub,
.fund-note { color: #70828e !important; }
.health-count,
.market-badge,
.competitor-score { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.health-switch-card,
.self-heal-switch-card,
.config-readonly-panel,
.mixed-gate-panel {
  border-color: var(--line) !important;
  background: #0c1319 !important;
}

.section-panel,
.config-section,
.competitor-section { margin-top: 9px; }
.config-section-head,
.mixed-gate-panel-head,
.self-heal-subhead {
  border-color: var(--line-soft) !important;
  background: #111922 !important;
}
.config-section-head strong,
.mixed-gate-panel-head strong { color: #d2dfe3; }
.config-section-head span,
.mixed-gate-note,
.mixed-gate-meta { color: #6e808c; }
.config-current { color: var(--good); border-color: rgba(57,212,157,.24); background: rgba(57,212,157,.07); }
.config-readonly-value { border-color: #283945; background: #0a1015; }
.mixed-gate-chip { color: #94bfc4; border-color: #2a3d47; background: #101b22; }

input,
select,
textarea,
.config-input,
.config-textarea,
.mixed-gate-textarea {
  border-color: #2a3944 !important;
  border-radius: 4px !important;
  color: #d1dde2 !important;
  background: #090f14 !important;
  caret-color: var(--brand);
}
input:focus,
select:focus,
textarea:focus,
.config-input:focus,
.config-textarea:focus {
  border-color: rgba(42,208,220,.62) !important;
  box-shadow: 0 0 0 3px rgba(42,208,220,.08) !important;
}
button.primary,
.config-submit,
.login-submit {
  border-color: #36d6df !important;
  color: #061014 !important;
  background: #2ad0dc !important;
  box-shadow: 0 8px 24px rgba(42,208,220,.13) !important;
}
button.primary:hover,
.config-submit:hover,
.login-submit:hover { background: #62e3ea !important; }
.competitor-action-btn.approve { color: var(--good); border-color: rgba(57,212,157,.30); background: rgba(57,212,157,.07); }
.competitor-action-btn.reject,
.config-rollback-btn { color: var(--bad); border-color: rgba(255,104,119,.28); background: rgba(255,104,119,.06); }
.alert,
.notice {
  border-color: rgba(230,182,90,.28);
  border-radius: 4px;
  color: #e4c889;
  background: rgba(230,182,90,.07);
}
.notice.bad,
.alert.bad { border-color: rgba(255,104,119,.30); color: #ff9ca7; background: rgba(255,104,119,.07); }

.fund-role-blue,
.fund-role-blue .fund-address { color: var(--brand) !important; }
.fund-role-green,
.fund-role-green .fund-address { color: var(--good) !important; }
.fund-role-chip.blue { color: var(--brand); border-color: rgba(42,208,220,.28); background: rgba(42,208,220,.07); }
.fund-role-chip.green { color: var(--good); border-color: rgba(57,212,157,.28); background: rgba(57,212,157,.07); }
.fund-type-menu summary,
.fund-type-menu-options { border-color: #2a3944; color: #99aab5; background: #101820; }
.fund-type-option,
.fund-type-link { color: #8a9da9; }
.fund-type-option.active,
.fund-type-link.active { color: var(--brand); background: rgba(42,208,220,.07); }

.site-footer {
  width: min(1720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 20px;
  border-top: 1px solid #1c2831;
  background: transparent !important;
}
.site-footer-inner {
  min-height: 44px;
  padding: 9px 2px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
.site-footer-brand { color: #9aabb5; }
.site-footer-brand::before { border-radius: 1px; background: var(--brand); box-shadow: 0 0 10px rgba(42,208,220,.45); }
.site-footer-pill { color: #657783; border-color: #24333d; background: #0c1218 !important; }

.snpr-address-popover,
.snpr-latency-tooltip {
  border-color: #334954 !important;
  border-radius: 5px !important;
  color: #d9e7ea !important;
  background: #101820 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.48) !important;
}

.login-wrap {
  min-height: 100vh;
  padding: 24px;
  background: #070a0e !important;
  overflow: hidden;
}
.login-wrap::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(73,109,124,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73,109,124,.055) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
}
.login-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/snpr-quant-field.svg') center / cover no-repeat;
  opacity: .42;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 55%, transparent 100%);
  pointer-events: none;
}
.login-shell {
  width: min(940px, 100%);
  min-height: 480px;
  grid-template-columns: minmax(0, 1.35fr) 390px;
  grid-template-rows: 1fr auto;
  gap: 10px;
  align-items: end;
  background: transparent !important;
}
.login-card {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 30px;
  border-color: #2a3944;
  border-radius: 6px;
  background: rgba(12,18,24,.94) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.44) !important;
  backdrop-filter: blur(16px) !important;
}
.login-brand { margin-bottom: 28px; color: #edf6f8; font-size: 14px; }
.login-brand img { width: 34px; height: 34px; }
.login-card h1 { margin-bottom: 24px; color: #edf5f7; font-size: 22px; }
.login-card label { color: #80919d; }
.login-card input { min-height: 43px; background: #090f14 !important; }
.login-context {
  grid-column: 2;
  grid-row: 2;
  border-color: #25343e;
  border-radius: 5px;
  background: rgba(11,17,23,.90) !important;
}
.login-context-mark { color: var(--good); border: 1px solid rgba(57,212,157,.20); background: rgba(57,212,157,.07); }
.login-context strong { color: #cbd8dd; }
.login-context span { color: #667985; }
.login-visual {
  display: block !important;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border: 1px solid #263842;
  border-left: 2px solid rgba(42,208,220,.52);
  border-radius: 5px;
  background: #090f14 !important;
  box-shadow: inset 0 0 60px rgba(0,0,0,.30);
}
.login-visual::before {
  content: "SNPR / QUANT EXECUTION";
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 1;
  color: #87dce1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 760;
}
.login-visual::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 48px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.login-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }

@media (max-width: 1100px) {
  .layout { width: min(100% - 24px, 980px); }
  .site-footer { width: min(100% - 24px, 980px); }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body::after { opacity: .10; }
  .topbar { min-height: 56px; padding: 7px 11px; }
  .brand-sub, .topbar-status { display: none; }
  .nav { max-width: calc(100vw - 102px); overflow-x: auto; }
  .layout { width: calc(100% - 18px); padding-top: 12px; }
  .site-footer { width: calc(100% - 18px); }
  .monitor-leaderboard-grid { gap: 6px; }
  .login-shell { grid-template-columns: minmax(0, 1fr) 370px; }
}

@media (max-width: 640px) {
  body { font-size: 12px; }
  body::after { display: none; }
  .topbar { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { display: none; }
  .nav { max-width: calc(100vw - 60px); margin-left: auto; }
  .nav a { min-height: 31px; padding: 6px 8px; font-size: 10px; }
  .layout { width: calc(100% - 12px); padding: 9px 0 22px; }
  .site-footer { width: calc(100% - 12px); }
  .dashboard-shell::before { display: none; }
  .dashboard-header { min-height: 52px; margin-bottom: 7px; padding: 0 2px 6px; }
  .dashboard-header h1,
  .page-head h1 { font-size: 20px; }
  .dashboard-sync { display: none; }
  .operations-strip { grid-template-columns: auto minmax(0, 1fr) auto; }
  .operations-strip > span:nth-child(2) { display: grid; gap: 1px; }
  .operations-strip-meta,
  .operations-strip > .icon:last-child { display: none; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .metric { min-height: 91px; padding: 10px; }
  .metric-value { margin: 7px 0 5px; font-size: 16px; overflow-wrap: anywhere; }
  .metric-sub { font-size: 9px; line-height: 1.3; }
  .quick-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .quick-nav-item { min-height: 40px; padding: 7px; }
  .quick-nav-item em { display: none; }
  .panel { padding: 9px; border-radius: 5px; }
  .panel-head { min-height: 31px; }
  .panel-head > .muted { max-width: 54%; font-size: 9px; text-align: right; }
  .task-summary-row { min-height: 39px; grid-template-columns: 42px minmax(0, 1fr) auto; }
  .task-summary-row time { display: none; }
  .monitor-leaderboard-panel { padding: 0; }
  .leaderboard-period-tabs { border-color: #283842; background: #0b1218; }
  .leaderboard-period-tabs button { color: #6d808c; }
  .leaderboard-period-tabs button.active { color: var(--brand); background: rgba(42,208,220,.08); box-shadow: none; }
  .monitor-leaderboard-grid { display: block; }
  .leaderboard-card { display: none; }
  .leaderboard-card.mobile-active { display: block; }
  .leaderboard-table table { width: 100%; min-width: 100% !important; table-layout: fixed; }
  .leaderboard-table th,
  .leaderboard-table td { padding: 7px 3px; }
  .leaderboard-address-text { font-size: 9px; }
  .latency-board .panel-head > .muted { display: none; }
  .site-footer-inner { align-items: flex-start; }
  .site-footer-meta { justify-content: flex-start; }
  .login-wrap { padding: 12px; }
  .login-shell { width: 100%; max-width: 390px; min-height: 0; display: grid; grid-template-columns: 1fr; }
  .login-card { grid-column: 1; grid-row: 1; padding: 24px; }
  .login-context { grid-column: 1; grid-row: 2; }
  .login-visual { display: none !important; }
}

/* SNPR Quant Console V4.1 - luminous financial palette ------------------ */
:root {
  color-scheme: light;
  --bg: #e7eef3;
  --panel: #f8fbfd;
  --panel-2: #eef4f7;
  --panel-3: #e3edf2;
  --line: #bfd0da;
  --line-soft: #d7e3e9;
  --text: #405665;
  --muted: #718694;
  --strong: #102b3c;
  --good: #078a66;
  --bad: #d94958;
  --warn: #a66d11;
  --brand: #087f9b;
  --brand-soft: rgba(8,127,155,.09);
  --violet: #6d63b8;
  --shadow-soft: 0 8px 22px rgba(32,62,78,.08);
  --shadow-panel: 0 12px 30px rgba(32,62,78,.10);
}

html { background: var(--bg); }
::selection { color: #ffffff; background: #087f9b; }
body {
  background: #e7eef3 !important;
  color: var(--text);
}
body::before {
  background-image:
    linear-gradient(rgba(49,100,124,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49,100,124,.065) 1px, transparent 1px) !important;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.44) 58%, transparent 100%) !important;
}
body::after { opacity: .20; }
body :where(h1, h2, h3, h4, strong, label) { color: var(--strong); }

::-webkit-scrollbar-track { background: #e8eff3; }
::-webkit-scrollbar-thumb { background: #aabdc8; border-color: #e8eff3; }
::-webkit-scrollbar-thumb:hover { background: #879fab; }

.topbar {
  border-bottom-color: #adc4cf;
  background: rgba(248,252,253,.95) !important;
  box-shadow: 0 10px 28px rgba(28,59,75,.10);
}
.topbar::after {
  background: linear-gradient(90deg, transparent, #0da7ba 18%, transparent 48%, #19a47e 76%, transparent);
  opacity: .55;
}
.brand-mark { box-shadow: 0 6px 18px rgba(8,127,155,.16); }
.brand { color: #123347; }
.brand-sub { color: #6d8491; }
.topbar-status {
  color: var(--good);
  border-color: rgba(7,138,102,.25);
  background: rgba(7,138,102,.07);
}
.nav {
  border-color: #c1d1da;
  background: #edf4f7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.nav a { color: #657c8a; }
.nav a:hover { color: #17384a; border-color: #bdd0d9; background: #f8fbfd; }
.nav a.active {
  color: var(--brand);
  border-color: rgba(8,127,155,.25);
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(28,59,75,.08), inset 0 -2px 0 rgba(8,127,155,.50);
}
.nav .nav-logout { color: #718490; }

.dashboard-shell::before { opacity: .24; }
.dashboard-header h1,
.page-head h1 { color: #102b3c; }
.dashboard-sync {
  border-color: #bdced7;
  color: #647d8a;
  background: rgba(248,252,253,.78);
}

.panel,
.metric,
.health-hero,
.fund-hero,
.fund-card,
.section-card,
.config-section,
.config-readonly-card,
.mixed-gate-card,
.self-heal-overview > div,
.competitor-review-card,
.latency-summary-card,
.leaderboard-card,
.bot-module-strip {
  border-color: var(--line) !important;
  background: linear-gradient(180deg, #fbfdfe, #f1f6f9) !important;
  background-image: linear-gradient(180deg, #fbfdfe, #f1f6f9) !important;
  box-shadow: var(--shadow-panel) !important;
  color: var(--text);
}
.panel::before {
  background: linear-gradient(90deg, transparent, rgba(8,127,155,.34), rgba(7,138,102,.18), transparent);
}
.panel-head { border-bottom-color: var(--line-soft); }
.panel-head h2 { color: #18384a; }

.operations-strip {
  border-color: #b9cbd5;
  border-left-color: #0797ad;
  background: rgba(248,252,253,.88);
  box-shadow: 0 8px 22px rgba(32,62,78,.08);
}
.operations-strip:hover { border-color: #91b5c4; background: #ffffff; }
.operations-strip-icon {
  color: var(--brand);
  border-color: rgba(8,127,155,.20);
  background: rgba(8,127,155,.08);
}
.operations-strip strong { color: #18394a; }
.operations-strip em,
.operations-strip-meta { color: #708691; }

.metric { background: linear-gradient(160deg, #ffffff, #edf5f8) !important; }
.metric-label { color: #718794 !important; }
.metric-value { color: #173244; }
.metric-sub { color: #738895 !important; }
.metric::after { border-color: rgba(8,127,155,.17); }

.quick-nav-item {
  border-color: #bdced7;
  background: rgba(248,252,253,.90) !important;
}
.quick-nav-item:hover { border-color: rgba(8,127,155,.38); background: #ffffff !important; }
.quick-nav-item strong { color: #1d3d4e; }
.quick-nav-item em { color: #718591; }
.quick-nav-item > .icon:last-child { color: #8ca0ab; }

.task-summary-panel { border-left-color: #8cafbd; }
.task-summary-row strong { color: #324d5c; }
.task-summary-row time { color: #7b8f9a; }

.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-color: #cfdee5;
  background: #f9fcfd !important;
  box-shadow: inset 0 1px 7px rgba(33,66,83,.035);
}
.latency-kline-svg { overflow: hidden; }
th { color: #587180 !important; background: #eaf2f6 !important; }
td { color: #405866; }
th, td { border-bottom-color: #d9e5ea !important; }
tbody tr:nth-child(even) td { background: rgba(74,122,143,.018); }
tbody tr:hover td { background: rgba(8,127,155,.055) !important; }
.mono,
.tx-full,
.follow-hash,
.fund-address,
.fund-route-address,
.fund-hash-chip,
.competitor-address,
.config-readonly-value { color: #236d80 !important; }

.tag { color: #386b79; border-color: #bdd1d9; background: #edf6f8 !important; }
.health.ok { color: var(--good); border-color: rgba(7,138,102,.27); background: rgba(7,138,102,.075) !important; }
.health.warn { color: var(--warn); border-color: rgba(166,109,17,.27); background: rgba(166,109,17,.075) !important; }
.health.bad { color: var(--bad); border-color: rgba(217,73,88,.27); background: rgba(217,73,88,.07) !important; }
.health.neutral { color: #647984; border-color: #c6d4db; background: #edf2f5 !important; }

.pager { border-top-color: #d2e0e6; background: #eef4f7; }
.pager-btn,
.pager-size-select {
  color: #4f6977;
  border-color: #bdcfd8;
  background: #f9fcfd !important;
}
.pager-btn.disabled { color: #9aabb4; background: #e8eff3 !important; }

.leaderboard-card { box-shadow: 0 10px 24px rgba(33,66,83,.085) !important; }
.leaderboard-card-head { border-bottom-color: #d1e0e6; background: #edf4f7 !important; }
.leaderboard-card-head h3 { color: #1b3b4c; }
.leaderboard-table thead th { background: #f3f7f9 !important; }
.leaderboard-table tbody tr:hover { background: rgba(8,127,155,.045); }
.leaderboard-rank { color: #81939e; }
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text,
.leaderboard-address-text { color: #236d80 !important; }
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text:hover { color: #075f76 !important; }
.leaderboard-sort-head { color: #657c89; }

.latency-chart-shell {
  border-color: #c5d7df;
  background: #f7fbfc !important;
  box-shadow: inset 0 0 24px rgba(35,75,94,.045) !important;
}
.latency-legend-item { color: #5f7785; border-color: #bfd1da; background: #f4f9fb; }
.latency-chart-bg { fill: #f8fbfc !important; }
.latency-chart-scan { fill: rgba(8,127,155,.035) !important; }
.latency-chart-grid,
.latency-chart-vgrid { stroke: #d5e2e7 !important; }
.latency-chart-axis { fill: #6b8290 !important; }
.latency-chart-line { stroke: #0787a0 !important; }
.latency-chart-line.bot2 { stroke: #078a66 !important; }
.latency-chart-band { fill: rgba(8,127,155,.06) !important; }
.latency-chart-range-line { stroke: #88a6b3 !important; }
.latency-chart-dot { fill: #0787a0 !important; }
.latency-chart-dot.bot2 { fill: #078a66 !important; }
.latency-chart-low-dot { fill: #b77716 !important; }
.latency-summary-card strong { color: #304d5c; }
.latency-summary-card span { color: #718693; }

.tabs,
.manage-subnav-tabs {
  border-color: #bdcfd8;
  background: #edf4f7;
}
.tabs a,
.manage-subnav-tabs a { color: #657d89; }
.tabs a:hover,
.tabs a.active,
.manage-subnav-tabs a:hover,
.manage-subnav-tabs a.active {
  color: var(--brand);
  border-color: rgba(8,127,155,.24);
  background: #ffffff;
}

.health-title,
.fund-card-value,
.self-heal-overview strong,
.competitor-review-card strong { color: #193a4b !important; }
.health-sub,
.health-note,
.fund-card-label,
.fund-card-sub,
.fund-note { color: #718692 !important; }
.health-switch-card,
.self-heal-switch-card,
.config-readonly-panel,
.mixed-gate-panel {
  border-color: #c3d3db !important;
  background: #f3f8fa !important;
}
.config-section-head,
.mixed-gate-panel-head,
.self-heal-subhead {
  border-color: #d3e0e6 !important;
  background: #eaf2f6 !important;
}
.config-section-head strong,
.mixed-gate-panel-head strong { color: #294958; }
.config-section-head span,
.mixed-gate-note,
.mixed-gate-meta { color: #728692; }
.config-readonly-value { border-color: #c4d5dd; background: #f9fcfd; }
.mixed-gate-chip { color: #426b77; border-color: #bfd2da; background: #edf6f8; }

input,
select,
textarea,
.config-input,
.config-textarea,
.mixed-gate-textarea {
  border-color: #b9ccd5 !important;
  color: #264656 !important;
  background: #f9fcfd !important;
}
input:focus,
select:focus,
textarea:focus,
.config-input:focus,
.config-textarea:focus {
  border-color: rgba(8,127,155,.58) !important;
  box-shadow: 0 0 0 3px rgba(8,127,155,.09) !important;
}
button.primary,
.config-submit,
.login-submit {
  color: #ffffff !important;
  border-color: #087f9b !important;
  background: #087f9b !important;
  box-shadow: 0 8px 22px rgba(8,127,155,.16) !important;
}
button.primary:hover,
.config-submit:hover,
.login-submit:hover { background: #096f88 !important; }
.alert,
.notice { color: #825b1f; border-color: rgba(166,109,17,.26); background: rgba(255,244,217,.72); }
.notice.bad,
.alert.bad { color: #a93744; border-color: rgba(217,73,88,.27); background: rgba(255,233,236,.78); }

.fund-type-menu summary,
.fund-type-menu-options { color: #536d7a; border-color: #bfd0d9; background: #f4f9fb; }
.fund-type-option,
.fund-type-link { color: #637b88; }

.site-footer { border-top-color: #c6d6de; }
.site-footer-brand { color: #536b78; }
.site-footer-pill { color: #667d89; border-color: #c1d2da; background: #f2f7f9 !important; }

.snpr-address-popover,
.snpr-latency-tooltip {
  color: #e2eef1 !important;
  border-color: #315769 !important;
  background: #183746 !important;
}

.login-wrap { background: #e6eef3 !important; }
.login-wrap::before {
  background-image:
    linear-gradient(rgba(44,96,119,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,96,119,.075) 1px, transparent 1px) !important;
}
.login-wrap::after { opacity: .30; }
.login-card {
  border-color: #a9c1cc;
  background: rgba(249,252,253,.95) !important;
  box-shadow: 0 28px 70px rgba(38,75,92,.22) !important;
}
.login-brand { color: #17394a; }
.login-card h1 { color: #102b3c; }
.login-card label { color: #708591; }
.login-card input { background: #f7fbfc !important; }
.login-context {
  border-color: #b7cbd4;
  background: rgba(244,249,251,.94) !important;
}
.login-context-mark { color: var(--good); border-color: rgba(7,138,102,.20); background: rgba(7,138,102,.07); }
.login-context strong { color: #294858; }
.login-context span { color: #728792; }
.login-visual {
  border-color: #a9c4cf;
  border-left-color: rgba(8,127,155,.52);
  background: #dceaf0 !important;
  box-shadow: inset 0 0 60px rgba(46,92,111,.08);
}
.login-visual::before { color: #167b92; }
.login-visual img { opacity: .82; }

@media (max-width: 640px) {
  .leaderboard-period-tabs { border-color: #bdcfd8; background: #edf4f7; }
  .leaderboard-period-tabs button { color: #6e838f; }
  .leaderboard-period-tabs button.active { color: var(--brand); background: #ffffff; }
  .topbar {
    height: 82px;
    min-height: 82px;
    align-items: flex-start;
    padding: 7px 6px;
  }
  .brand-mark { width: 30px; height: 30px; }
  .nav {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 42px;
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
  }
  .nav a { justify-content: center; }
  .panel-head > .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid.cols-4.dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* SNPR Quant Console V4.2 - telemetry and execution language ------------ */
.quant-tape {
  position: relative;
  z-index: 9;
  min-height: 31px;
  overflow: hidden;
  border-bottom: 1px solid #b8cad3;
  background: rgba(238, 246, 249, .96);
  box-shadow: 0 5px 16px rgba(31, 63, 79, .055);
}
.quant-tape-track {
  width: min(1720px, calc(100% - 32px));
  min-height: 31px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.quant-tape-track::-webkit-scrollbar { display: none; }
.quant-tape-brand,
.quant-tape-item,
.quant-tape-sync {
  flex: 0 0 auto;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-right: 1px solid #cedce2;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}
.quant-tape-brand { padding-left: 2px; color: #076f87; }
.quant-tape-brand .icon { width: 13px; height: 13px; }
.quant-tape-brand strong { color: #116a7e; font-size: 9px; }
.quant-tape-item em { color: #81939d; font-style: normal; }
.quant-tape-item strong { color: #274a5b; font-size: 9px; font-variant-numeric: tabular-nums; }
.quant-tape-item:nth-child(4) strong { color: #6d63b8; }
.quant-tape-item:nth-child(5) strong { color: var(--good); }
.quant-tape-clock { margin-left: auto; }
.quant-tape-sync { color: #7b8f99; border-right: 0; }

.page-head,
.dashboard-header { position: relative; }
.page-head::before,
.dashboard-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, #078ca4, #078a66, transparent);
  opacity: .72;
}
.page-head::after,
.dashboard-header::after {
  content: "SNPR / DATA PLANE";
  position: absolute;
  right: 2px;
  bottom: 7px;
  color: #91a3ac;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}
.dashboard-header::after { content: "SNPR / EXECUTION PLANE"; }

.execution-pulse,
.bot-execution-flow,
.capital-flow-band,
.health-topology {
  position: relative;
  overflow: hidden;
  border: 1px solid #b9cdd6;
  border-left: 2px solid #078ca4;
  border-radius: 5px;
  background: rgba(245, 250, 252, .90);
  box-shadow: 0 8px 22px rgba(31, 63, 79, .075);
}
.execution-pulse::after,
.bot-execution-flow::after,
.health-topology::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/static/snpr-probe-orbit.svg') right center / auto 160% no-repeat;
  opacity: .10;
}
.execution-pulse-head {
  position: relative;
  z-index: 1;
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid #d3e0e5;
}
.execution-pulse-head > span { display: inline-flex; align-items: center; gap: 7px; }
.execution-pulse-head .icon { width: 14px; height: 14px; color: #078ca4; }
.execution-pulse-head strong { color: #173b4d; font-size: 11px; }
.execution-pulse-head em {
  color: #81949e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-style: normal;
}
.execution-pulse-head .execution-net { color: var(--good); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.execution-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.execution-stage {
  position: relative;
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-right: 1px solid #d5e2e7;
}
.execution-stage:last-child { border-right: 0; }
.execution-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -4px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #078ca4;
  box-shadow: 0 0 0 4px rgba(7, 140, 164, .10), 0 0 13px rgba(7, 140, 164, .30);
  animation: snprSignalPulse 3.6s ease-in-out infinite;
}
.execution-stage:nth-child(2)::after { animation-delay: .45s; }
.execution-stage:nth-child(3)::after { animation-delay: .9s; }
.execution-stage:nth-child(4)::after { animation-delay: 1.35s; }
.execution-stage:nth-child(5)::after { animation-delay: 1.8s; }
.execution-stage-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #078ca4;
  border: 1px solid rgba(7, 140, 164, .20);
  background: rgba(7, 140, 164, .06);
}
.execution-stage:nth-child(4) .execution-stage-icon { color: #6d63b8; border-color: rgba(109,99,184,.22); background: rgba(109,99,184,.06); }
.execution-stage:nth-child(6) .execution-stage-icon { color: var(--good); border-color: rgba(7,138,102,.22); background: rgba(7,138,102,.06); }
.execution-stage-icon .icon { width: 15px; height: 15px; }
.execution-stage-copy { min-width: 0; display: grid; gap: 2px; }
.execution-stage-copy em,
.execution-stage-copy small { color: #7b8f9a; font-size: 8px; font-style: normal; }
.execution-stage-copy strong {
  overflow: hidden;
  color: #173748;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-execution-flow { display: grid; grid-template-columns: 152px minmax(0, 1fr); }
.bot-flow-label {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border-right: 1px solid #d2e0e6;
  background: rgba(230, 241, 246, .68);
}
.bot-flow-label strong { color: #173b4d; font-size: 13px; }
.bot-flow-label span { color: #79909b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.bot-flow-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bot-flow-stage {
  min-width: 0;
  min-height: 67px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-content: center;
  gap: 1px 7px;
  padding: 8px 10px;
  border-right: 1px solid #d5e2e7;
}
.bot-flow-stage:last-child { border-right: 0; }
.bot-flow-stage > span { grid-row: 1 / span 3; align-self: center; color: #078ca4; }
.bot-flow-stage .icon { width: 15px; height: 15px; }
.bot-flow-stage em,
.bot-flow-stage small { color: #7c909a; font-size: 8px; font-style: normal; }
.bot-flow-stage strong { overflow: hidden; color: #254959; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.health-topology { margin-bottom: 9px; }
.topology-rail { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topology-node {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-right: 1px solid #d4e1e6;
}
.topology-node:last-child { border-right: 0; }
.topology-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: calc(50% - 1px);
  z-index: 2;
  width: 18px;
  height: 2px;
  background: #3fa4b6;
}
.topology-node-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #078ca4; border: 1px solid #b7d4dc; background: #edf7f9; }
.topology-node-icon .icon { width: 15px; height: 15px; }
.topology-node-copy,
.topology-node-value { min-width: 0; display: grid; gap: 2px; }
.topology-node-copy em { color: #8699a3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-style: normal; }
.topology-node-copy strong { color: #234858; font-size: 10px; }
.topology-node-value { text-align: right; }
.topology-node-value strong { color: #17394a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.topology-node-value small { color: #82959f; font-size: 8px; }

.capital-flow-band {
  margin-top: 9px;
  margin-bottom: 9px;
  background-image: url('/static/snpr-capital-flow.svg');
  background-position: center;
  background-size: cover;
}
.capital-flow-head {
  position: relative;
  z-index: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-bottom: 1px solid #d4e1e6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}
.capital-flow-head strong { color: #14778c; }
.capital-flow-head span { color: #82949e; }
.capital-flow-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.capital-flow-node {
  position: relative;
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-content: center;
  gap: 1px 8px;
  padding: 9px 14px;
  border-right: 1px solid rgba(193, 211, 219, .78);
  background: rgba(247, 251, 252, .66);
}
.capital-flow-node:last-child { border-right: 0; }
.capital-flow-node > span { grid-row: 1 / span 3; align-self: center; color: #078ca4; }
.capital-flow-node .icon { width: 16px; height: 16px; }
.capital-flow-node em,
.capital-flow-node small { color: #7f929c; font-size: 8px; font-style: normal; }
.capital-flow-node strong { overflow: hidden; color: #214555; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.strategy-spectrum-panel .tag-cloud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.strategy-state-tag {
  min-height: 43px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px !important;
}
.strategy-state-tag em { overflow: hidden; color: #647e8b; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.strategy-state-tag strong { color: #126f84; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.panel { transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.panel:hover { border-color: #a8c4cf !important; box-shadow: 0 14px 34px rgba(31, 63, 79, .12) !important; }
.metric:hover::before { width: 58%; }
.metric::before { transition: width 220ms ease; }
.value-flash { animation: snprValueFlash 650ms ease-out; }
.reveal-ready { opacity: 1; transform: none; }
.reveal-ready.is-visible { animation: snprReveal 280ms ease-out both; }

@keyframes snprSignalPulse {
  0%, 70%, 100% { opacity: .38; transform: scale(.72); }
  18%, 36% { opacity: 1; transform: scale(1); }
}
@keyframes snprValueFlash {
  0% { color: #ffffff; text-shadow: 0 0 14px rgba(7, 140, 164, .45); }
  100% { text-shadow: none; }
}
@keyframes snprReveal {
  0% { opacity: .72; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .quant-tape-track { width: calc(100% - 24px); }
  .quant-tape-clock { margin-left: 0; }
  .execution-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .execution-stage:nth-child(3) { border-right: 0; }
  .execution-stage:nth-child(-n+3) { border-bottom: 1px solid #d5e2e7; }
  .bot-execution-flow { grid-template-columns: 128px minmax(0, 1fr); }
  .bot-flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bot-flow-stage:nth-child(3) { border-right: 0; }
  .bot-flow-stage:nth-child(-n+3) { border-bottom: 1px solid #d5e2e7; }
}

@media (max-width: 900px) {
  .quant-tape-track { width: 100%; padding-left: 9px; }
  .quant-tape-brand { padding-left: 4px; }
  .quant-tape-sync { display: none; }
  .topology-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topology-node:nth-child(2) { border-right: 0; }
  .topology-node:nth-child(-n+2) { border-bottom: 1px solid #d4e1e6; }
  .capital-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capital-flow-node:nth-child(2) { border-right: 0; }
  .capital-flow-node:nth-child(-n+2) { border-bottom: 1px solid #d4e1e6; }
  .strategy-spectrum-panel .tag-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .quant-tape { min-height: 28px; }
  .quant-tape-track { min-height: 28px; padding-left: 6px; }
  .quant-tape-brand,
  .quant-tape-item { min-height: 28px; padding: 3px 9px; }
  .quant-tape-brand strong { display: none; }
  .quant-tape-brand .icon { width: 14px; height: 14px; }
  .quant-tape-item em,
  .quant-tape-item strong { font-size: 8px; }
  .quant-tape-item:nth-child(2),
  .quant-tape-item:nth-child(6) { display: none; }
  .page-head::after,
  .dashboard-header::after { display: none; }
  .execution-pulse-head { min-height: 33px; padding: 6px 9px; }
  .execution-pulse-head em { display: none; }
  .execution-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .execution-stage { min-height: 67px; padding: 8px; }
  .execution-stage:nth-child(2n) { border-right: 0; }
  .execution-stage:nth-child(-n+4) { border-bottom: 1px solid #d5e2e7; }
  .execution-stage:nth-child(3) { border-right: 1px solid #d5e2e7; }
  .execution-stage:not(:last-child)::after { display: none; }
  .execution-stage-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .execution-stage-copy strong { font-size: 11px; }
  .bot-execution-flow { display: block; }
  .bot-flow-label { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid #d2e0e6; }
  .bot-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-flow-stage { min-height: 58px; padding: 7px 8px; }
  .bot-flow-stage:nth-child(2n) { border-right: 0; }
  .bot-flow-stage:nth-child(-n+4) { border-bottom: 1px solid #d5e2e7; }
  .bot-flow-stage:nth-child(3) { border-right: 1px solid #d5e2e7; }
  .topology-node { min-height: 63px; grid-template-columns: 26px minmax(0, 1fr); padding: 8px; }
  .topology-node-value { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 5px; }
  .topology-node:not(:last-child)::after { display: none; }
  .capital-flow-node { min-height: 62px; padding: 8px; }
  .capital-flow-head { padding: 5px 9px; }
  .strategy-spectrum-panel .tag-cloud { grid-template-columns: 1fr; }

  .bot-compare-panel .table-wrap { overflow: visible; border: 0; background: transparent !important; }
  .mobile-record-table,
  .mobile-record-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .mobile-record-table thead { display: none; }
  .mobile-record-table tbody { display: grid; gap: 6px; }
  .mobile-record-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #c9d9e0;
    background: #f7fbfc;
  }
  .mobile-record-table td {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 7px !important;
    border-right: 1px solid #dbe6ea;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-record-table td:nth-child(2n) { border-right: 0; }
  .mobile-record-table td::before {
    content: attr(data-label);
    color: #81949e;
    font-size: 8px;
    font-weight: 700;
  }
}

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

/* SNPR Quant Console V4.3 - task-centered workspaces -------------------- */
.quick-nav-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.diagnostic-toolbar {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0;
  padding: 6px 8px;
  overflow-x: auto;
  border: 1px solid #bfd1d9;
  border-left: 2px solid #078ca4;
  background: rgba(244, 249, 251, .94);
  box-shadow: 0 7px 18px rgba(31, 63, 79, .055);
  scrollbar-width: none;
}
.diagnostic-toolbar::-webkit-scrollbar { display: none; }
.diagnostic-toolbar-label,
.diagnostic-toolbar-count { flex: 0 0 auto; color: #657d89; font-size: 9px; font-weight: 700; }
.diagnostic-toolbar button,
.diagnostic-toolbar a[data-miss-category-link] {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #c3d4dc;
  color: #617987;
  background: #f7fbfc;
  font: inherit;
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}
.diagnostic-toolbar button:hover,
.diagnostic-toolbar button.active,
.diagnostic-toolbar a[data-miss-category-link]:hover,
.diagnostic-toolbar a[data-miss-category-link].active { color: #087f9b; border-color: rgba(8,127,155,.34); background: #ffffff; box-shadow: inset 0 -2px 0 rgba(8,127,155,.45); }
.diagnostic-toolbar button span,
.diagnostic-toolbar a[data-miss-category-link] span { color: #8799a2; }
.diagnostic-toolbar input {
  min-width: 210px;
  min-height: 29px;
  margin-left: auto;
  padding: 5px 8px;
  font-size: 9px;
}
.diagnostic-toolbar-count { min-width: 42px; text-align: right; }
tr[hidden] { display: none !important; }

.row-detail-btn {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #bdd2da;
  color: #087f9b;
  background: #f2f8fa;
  cursor: pointer;
}
.row-detail-btn:hover { border-color: #6faebc; background: #ffffff; }
.row-detail-btn .icon { width: 14px; height: 14px; }
.follow-table tr[data-follow-row] { cursor: pointer; }

.record-detail-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #9eb9c5;
  border-radius: 6px;
  color: var(--text);
  background: #edf4f7;
  box-shadow: 0 28px 90px rgba(20, 49, 64, .34);
}
.record-detail-dialog::backdrop { background: rgba(19, 43, 56, .40); backdrop-filter: blur(3px); }
.record-detail-shell { max-height: inherit; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.record-detail-shell > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #c8d9e0;
  background: #f8fbfc;
}
.record-detail-shell > header > span { display: inline-flex; align-items: center; gap: 8px; }
.record-detail-shell > header .icon { width: 16px; height: 16px; color: #087f9b; }
.record-detail-close { width: 30px; height: 30px; border: 0; color: #657d89; background: transparent; font-size: 20px; cursor: pointer; }
.record-detail-body { min-height: 0; overflow-y: auto; padding: 12px; }
.record-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.record-detail-item { min-width: 0; display: grid; gap: 4px; padding: 8px 9px; border: 1px solid #cedde3; background: #f7fbfc; }
.record-detail-item span { color: #7d909b; font-size: 8px; }
.record-detail-item strong,
.record-detail-item code { overflow-wrap: anywhere; color: #24495a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.record-timeline { display: grid; gap: 6px; }
.record-timeline-stage { display: grid; grid-template-columns: 126px minmax(0, 1fr); border: 1px solid #cbdbe2; background: #f8fbfc; }
.record-timeline-stage > header { display: flex; align-items: center; gap: 8px; padding: 9px; border-right: 1px solid #d3e1e6; background: #eaf3f6; }
.record-timeline-stage > header span { color: #087f9b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.record-timeline-stage > header strong { color: #284b5a; font-size: 10px; }
.record-timeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; }
.strategy-evidence-group { margin-bottom: 8px; border: 1px solid #c9dae1; background: #f7fbfc; }
.strategy-evidence-group h3 { margin: 0; padding: 8px 10px; border-bottom: 1px solid #d4e2e7; color: #28505f; font-size: 10px; }

.miss-diagnostic-panel {
  margin: 9px 0;
  border: 1px solid #bbced7;
  border-left: 2px solid #a66d11;
  background: rgba(246, 250, 251, .94);
  box-shadow: 0 8px 22px rgba(31, 63, 79, .07);
}
.miss-diagnostic-head { min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #d2e0e6; }
.miss-diagnostic-head > span { display: inline-flex; align-items: center; gap: 7px; }
.miss-diagnostic-head .icon { width: 14px; height: 14px; color: #a66d11; }
.miss-diagnostic-head strong { color: #294b5a; font-size: 10px; }
.miss-diagnostic-head em { color: #80939d; font-size: 9px; font-style: normal; }
.miss-diagnostic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.miss-diagnostic-card { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 3px 8px; padding: 9px 11px; border: 0; border-right: 1px solid #d5e2e7; color: inherit; background: transparent; text-align: left; cursor: default; }
.miss-diagnostic-card:last-child { border-right: 0; }
.miss-diagnostic-card span { grid-column: 1 / -1; color: #6b828e; font-size: 9px; }
.miss-diagnostic-card strong { color: #264b5b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.miss-diagnostic-card em { align-self: end; color: #8a9ba4; font-size: 8px; font-style: normal; }

.health-detail-disclosure { margin-top: 9px; border: 1px solid #bfd1da; background: rgba(244, 249, 251, .92); }
.health-detail-disclosure > summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; cursor: pointer; list-style: none; }
.health-detail-disclosure > summary::-webkit-details-marker { display: none; }
.health-detail-disclosure > summary span { color: #274b5b; font-weight: 750; }
.health-detail-disclosure > summary em { color: #80939d; font-size: 9px; font-style: normal; }
.health-detail-disclosure > summary::after { content: "+"; color: #087f9b; font-size: 16px; }
.health-detail-disclosure[open] > summary::after { content: "−"; }
.health-detail-disclosure > .panel { margin: 0; border-right: 0 !important; border-bottom: 0 !important; border-left: 0 !important; box-shadow: none !important; }

.fund-action-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid #d2e0e6; background: #f1f7f9; }
.fund-timeline-item { position: relative; min-width: 0; min-height: 78px; display: grid; align-content: center; gap: 2px; padding: 9px 10px 9px 21px; border-right: 1px solid #d4e1e6; }
.fund-timeline-item:last-child { border-right: 0; }
.fund-timeline-item time,
.fund-timeline-item small { color: #82949e; font-size: 8px; }
.fund-timeline-item strong { overflow: hidden; color: #294d5d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fund-timeline-item em { color: #087f9b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-style: normal; }
.fund-timeline-dot { position: absolute; left: 9px; top: 35px; width: 6px; height: 6px; border-radius: 50%; background: #8297a1; }
.fund-timeline-dot.ok { background: var(--good); box-shadow: 0 0 0 4px rgba(7,138,102,.08); }
.fund-timeline-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(166,109,17,.08); }
.fund-timeline-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(217,73,88,.08); }

.research-funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #b8ccd5; border-left: 2px solid #6d63b8; background: rgba(245,250,252,.92); box-shadow: 0 9px 24px rgba(31,63,79,.08); }
.research-funnel > div { position: relative; min-height: 88px; display: grid; align-content: center; gap: 3px; padding: 12px 16px; border-right: 1px solid #d2e0e6; }
.research-funnel > div:last-child { border-right: 0; }
.research-funnel > div:not(:last-child)::after { content: "›"; position: absolute; right: -6px; top: 29px; z-index: 1; color: #078ca4; font-size: 22px; }
.research-funnel span { display: inline-flex; align-items: center; gap: 7px; color: #657e8b; font-size: 9px; }
.research-funnel .icon { width: 14px; height: 14px; color: #078ca4; }
.research-funnel strong { color: #183b4c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 23px; }
.research-funnel em { color: #81949e; font-size: 8px; font-style: normal; }
.research-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px; }
.research-status-item { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; border: 1px solid #c7d9e0; background: #f4f9fb; }
.research-status-item span { overflow: hidden; color: #69818d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.research-status-item strong { color: #087f9b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.research-candidate-table table { min-width: 1280px; }
.research-sim-table table { min-width: 860px; }
.research-reason { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.history-trend-shell {
  padding: 0 14px 8px;
  border-bottom: 1px solid #c8dce4;
  background: linear-gradient(180deg, rgba(247,252,253,.98), rgba(237,246,249,.92));
}
.history-trend-svg { width: 100%; height: 164px; display: block; overflow: hidden; }
.history-trend-zero { stroke: #8eabb7; stroke-width: 1; stroke-dasharray: 4 5; }
.history-trend-line { fill: none; stroke: #078ca4; stroke-width: 2.2; }
.history-trend-dot { stroke: #f7fbfc; stroke-width: 2; }
.history-trend-dot.positive { fill: var(--good); }
.history-trend-dot.negative { fill: var(--bad); }
.history-trend-label { fill: #7d909a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }

.config-actions { position: sticky; z-index: 8; bottom: 8px; border: 1px solid #a9c2cd; background: rgba(247,251,252,.96) !important; box-shadow: 0 14px 38px rgba(27,57,72,.18); backdrop-filter: blur(12px); }
.config-change-state { min-width: 0; display: grid; gap: 3px; }
.config-change-state > strong { color: #087f9b; font-size: 10px; }
.config-diff-preview { min-width: 0; display: flex; gap: 5px; overflow: hidden; }
.config-diff-preview span { max-width: 260px; overflow: hidden; color: #768b96; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .quick-nav-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .miss-diagnostic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .miss-diagnostic-card:nth-child(3) { border-right: 0; }
  .miss-diagnostic-card:nth-child(-n+3) { border-bottom: 1px solid #d5e2e7; }
  .fund-action-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fund-timeline-item:nth-child(3) { border-right: 0; }
  .fund-timeline-item:nth-child(-n+3) { border-bottom: 1px solid #d4e1e6; }
}

@media (max-width: 640px) {
  .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav a { padding-right: 4px; padding-left: 4px; }
  .quick-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-toolbar { align-items: center; }
  .diagnostic-toolbar input { min-width: 150px; margin-left: 0; }
  .record-detail-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
  .record-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-timeline-stage { display: block; }
  .record-timeline-stage > header { border-right: 0; border-bottom: 1px solid #d3e1e6; }
  .record-timeline-grid { grid-template-columns: 1fr; }
  .miss-diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miss-diagnostic-card:nth-child(3) { border-right: 1px solid #d5e2e7; }
  .miss-diagnostic-card:nth-child(2n) { border-right: 0; }
  .miss-diagnostic-card:nth-child(-n+4) { border-bottom: 1px solid #d5e2e7; }
  .fund-action-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-timeline-item:nth-child(3) { border-right: 1px solid #d4e1e6; }
  .fund-timeline-item:nth-child(2n) { border-right: 0; }
  .fund-timeline-item:nth-child(-n+4) { border-bottom: 1px solid #d4e1e6; }
  .research-funnel { grid-template-columns: 1fr; }
  .research-funnel > div { min-height: 68px; border-right: 0; border-bottom: 1px solid #d2e0e6; }
  .research-funnel > div:last-child { border-bottom: 0; }
  .research-funnel > div:not(:last-child)::after { right: 12px; top: auto; bottom: -10px; transform: rotate(90deg); }
  .research-overview-grid { grid-template-columns: 1fr !important; }
  .research-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-trend-shell { padding: 0 4px 6px; }
  .history-trend-svg { height: 140px; }
  .config-actions { bottom: 4px; align-items: flex-end; }
  .config-change-state .muted { display: none; }
  .config-diff-preview { max-width: 210px; }
}

/* SNPR Quant Console V4.3.1 - delivery responsive corrections ---------- */
.leaderboard-sort-head {
  min-width: 44px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
}

@media (max-width: 640px) {
  .leaderboard-table th:nth-child(1),
  .leaderboard-table td:nth-child(1) { width: 9%; }
  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) { width: 25%; }
  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) { width: 37%; }
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) { width: 17%; }
  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) { width: 12%; }
  .leaderboard-sort-head { width: 100%; min-width: 0; }
  .leaderboard-table .pnl-chip {
    width: 100%;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .config-table,
  .config-table tbody {
    width: 100%;
    min-width: 0 !important;
    display: block;
  }
  .config-table thead { display: none; }
  .config-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }
  .config-table tr {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid #c8d9e0;
    background: #f7fbfc;
  }
  .config-table td,
  .config-table td:nth-child(n) {
    width: auto;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 8px;
    border-right: 1px solid #d8e5ea;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .config-table td:nth-child(2n) { border-right: 0; }
  .config-table td:nth-child(1) {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .config-table td:nth-child(1) { background: #edf5f8; }
  .config-table td:nth-child(5) { border-right: 0; color: #708590; }
  .config-table td::before {
    content: attr(data-label);
    color: #81949e;
    font-size: 8px;
    font-weight: 700;
  }
  .config-table .config-current { max-width: 100%; }
  .config-table .config-input { width: 100%; min-width: 0; }
}

/* V4.5 final cascade: supersede the retired dark-console date accent. */
.history-table .history-date-link { color: #173b56 !important; }
.history-table .history-date-link:hover { color: #078ca4 !important; }

/* SNPR Quant Console V4.4 - operational ergonomics --------------------- */
.monitor-leaderboard-panel > .panel-head {
  min-height: 42px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.monitor-leaderboard-panel > .panel-head > h2,
.monitor-leaderboard-panel > .panel-head > div { margin-top: 0; margin-bottom: 0; }

.wallet-state-badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #506d7b;
  vertical-align: middle;
}
.wallet-state-badge strong { color: currentColor; font-size: 9px; white-space: nowrap; }
.wallet-state-badge code {
  max-width: 180px;
  overflow: hidden;
  color: #83959e;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-state-badge.good { color: var(--good); }
.wallet-state-badge.warn { color: var(--warn); }
.wallet-state-badge.bad { color: var(--bad); }
.strategy-state-tag { gap: 8px; }
.strategy-state-tag > strong { margin-left: auto; }
.strategy-filter-toolbar button code { color: #8b9ba3; font-size: 7px; }

.research-filter-toolbar {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 8px;
  overflow-x: auto;
  border: 1px solid #bfd1d9;
  border-left: 2px solid #6d63b8;
  background: rgba(244,249,251,.94);
  scrollbar-width: none;
}
.research-filter-toolbar::-webkit-scrollbar { display: none; }
.research-filter-toolbar select,
.research-filter-toolbar input {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 9px;
}
.research-filter-toolbar select { max-width: 180px; }
.research-filter-toolbar input { width: min(280px, 42vw); margin-left: auto; }
.research-filter-toolbar > span { min-width: 42px; color: #647d89; font-size: 9px; text-align: right; }
.research-candidate-table table { min-width: 1360px; }

.table-wrap.has-wide-table th:first-child,
.table-wrap.has-wide-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 #cbdbe2;
}
.table-wrap.has-wide-table th:first-child { z-index: 4; background: #eaf2f6 !important; }
.table-wrap.has-wide-table td:first-child { background: #f9fcfd !important; }
.table-wrap.has-wide-table tbody tr:nth-child(even) td:first-child { background: #f5f9fb !important; }
@media (max-width: 640px) {
  .monitor-leaderboard-panel > .panel-head {
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .wallet-state-badge { display: grid; gap: 1px; }
  .wallet-state-badge strong { font-size: 8px; }
  .wallet-state-badge code { max-width: 112px; font-size: 7px; }
  .research-filter-toolbar input { width: 180px; margin-left: 0; }
}

/* SNPR Quant Console V4.5 final cascade ------------------------------- */
.history-table th:nth-child(1),
.history-table td:nth-child(1) { width: 172px; }
.history-table .history-date-link { color: #173b56 !important; }
.history-table .history-date-link:hover { color: #078ca4 !important; }
.history-trend-shell {
  padding: 0 14px 8px;
  border-bottom-color: #c8dce4;
  background:
    linear-gradient(180deg, rgba(247,252,253,.98), rgba(237,246,249,.92)),
    repeating-linear-gradient(90deg, transparent 0, transparent 68px, rgba(39,103,126,.035) 69px);
}
.history-trend-svg { height: 164px; }
@media (max-width: 640px) {
  .history-trend-shell { padding: 0 4px 6px; }
  .history-trend-svg { height: 140px; }
}

/* SNPR Quant Console V4.6 - decision efficiency and evidence --------- */
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  border: 1px solid #087f9b;
  color: #123d51;
  background: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

.console-search-trigger {
  min-width: 270px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #bdcfd7;
  border-radius: 4px;
  color: #597582;
  background: rgba(247, 251, 252, .92);
  font: inherit;
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}
.console-search-trigger:hover { border-color: #80b7c4; color: #087f9b; background: #fff; }
.console-search-trigger .icon { width: 13px; height: 13px; }
.console-search-trigger span { flex: 1; }
.console-search-trigger kbd,
.global-search-dialog kbd {
  min-width: 28px;
  padding: 2px 5px;
  border: 1px solid #c6d6dd;
  border-bottom-width: 2px;
  border-radius: 3px;
  color: #78909b;
  background: #f8fbfc;
  font: 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.console-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #54746f;
  font-size: 9px;
  font-weight: 700;
}
.console-freshness i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(7,138,102,.09); }
.console-freshness.stale { color: var(--warn); }
.console-freshness.stale i { background: var(--warn); box-shadow: 0 0 0 4px rgba(166,109,17,.09); }

.decision-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 1.2fr) minmax(340px, .9fr) minmax(300px, .8fr);
  grid-template-areas: "main status funnel" "window window window";
  gap: 10px 18px;
  padding: 13px 14px 10px;
  overflow: hidden;
  border: 1px solid #b7ccd5;
  border-left: 3px solid #078ca4;
  border-radius: 5px;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98), rgba(238,247,250,.96)),
    repeating-linear-gradient(90deg, transparent 0, transparent 58px, rgba(7,140,164,.04) 59px);
  box-shadow: 0 12px 30px rgba(31,63,79,.10);
}
.decision-console.warn { border-left-color: var(--warn); }
.decision-console.bad { border-left-color: var(--bad); }
.decision-main { grid-area: main; min-width: 0; display: grid; align-content: center; gap: 4px; }
.decision-kicker { display: inline-flex; align-items: center; gap: 6px; color: #087f9b; font-size: 9px; font-weight: 800; }
.decision-kicker .icon { width: 13px; height: 13px; }
.decision-main > strong { color: #183e50; font-size: 14px; line-height: 1.45; }
.decision-window-text { color: #7a909b; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.decision-status { grid-area: status; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cadbe2; background: rgba(255,255,255,.68); }
.decision-status > span { min-width: 0; display: grid; align-content: center; gap: 2px; padding: 7px 9px; border-right: 1px solid #d6e3e8; }
.decision-status > span:last-child { border-right: 0; }
.decision-status em,
.decision-status small { overflow: hidden; color: #82959e; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.decision-status strong { overflow: hidden; color: #244b5c; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.decision-funnel { grid-area: funnel; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #cadbe2; background: rgba(255,255,255,.66); }
.decision-funnel a { min-width: 0; display: grid; align-content: center; gap: 2px; padding: 7px 8px; border-right: 1px solid #d6e3e8; text-decoration: none; }
.decision-funnel a:last-child { border-right: 0; }
.decision-funnel a:hover { background: #fff; }
.decision-funnel span { overflow: hidden; color: #78909a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.decision-funnel strong { color: #087f9b; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.data-trust-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 1px solid #c3d5dc;
  border-radius: 50%;
  color: #63808c;
  background: rgba(255,255,255,.72);
  font: 700 10px Georgia, serif;
  cursor: pointer;
}
.data-trust-button:hover { color: #087f9b; border-color: #79b2bf; background: #fff; }
.decision-main > .data-trust-button { position: absolute; right: 8px; top: 8px; }
.data-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.task-summary-row { grid-template-columns: 76px minmax(150px, 1fr) 86px auto 132px; text-decoration: none; }
.task-summary-row:hover { background: #f4f9fb; }
.task-summary-state { color: #738994; font-size: 8px; text-align: right; }
.task-lifecycle-state { display: block; margin-top: 3px; color: #7e929c; font-size: 7px; }

.global-search-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #96b5c1;
  border-radius: 6px;
  color: #294d5d;
  background: #edf5f8;
  box-shadow: 0 30px 100px rgba(22,51,66,.38);
}
.global-search-dialog::backdrop { background: rgba(19,43,56,.38); backdrop-filter: blur(4px); }
.global-search-shell { max-height: inherit; display: grid; grid-template-rows: auto auto minmax(90px, 1fr); }
.global-search-shell > header { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid #c9dae1; background: #f8fbfc; }
.global-search-shell > header > span { display: inline-flex; align-items: center; gap: 7px; }
.global-search-shell > header .icon { width: 15px; height: 15px; color: #087f9b; }
.global-search-shell > header button { width: 27px; height: 27px; border: 0; color: #6d8490; background: transparent; font-size: 18px; cursor: pointer; }
.global-search-input { min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #cbdce3; background: #f2f8fa; }
.global-search-input .icon { width: 15px; height: 15px; color: #7b929c; }
.global-search-input input { min-width: 0; height: 36px; padding: 7px 9px; border: 1px solid #aac4ce; background: #fff; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.global-search-input > span { color: #7b909a; font-size: 8px; white-space: nowrap; }
.global-search-results { min-height: 90px; overflow-y: auto; padding: 7px; }
.global-search-result { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 9px; padding: 9px; border-bottom: 1px solid #d4e2e7; color: inherit; text-decoration: none; }
.global-search-result:hover,
.global-search-result:focus { background: #fff; }
.global-search-result > span { align-self: center; color: #087f9b; font-size: 8px; font-weight: 750; }
.global-search-result > div { min-width: 0; display: grid; gap: 3px; }
.global-search-result strong { overflow: hidden; color: #234858; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result small { overflow: hidden; color: #748b96; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-empty { padding: 28px; color: #7a909a; text-align: center; }

.focus-match { animation: focus-evidence 1.8s ease-out 1; box-shadow: inset 3px 0 0 #078ca4 !important; }
@keyframes focus-evidence { 0%, 35% { background: rgba(7,140,164,.16); } 100% { background: transparent; } }

:where(button, a, input, select, summary):focus-visible { outline: 2px solid #078ca4; outline-offset: 2px; }
.metric[href] { display: block; text-decoration: none; }
.metric[href]:hover { border-color: #80b6c2 !important; transform: translateY(-1px); }
.metric-drilldown { border-bottom: 1px dotted rgba(8,127,155,.24); }
.metric-drilldown:hover { color: #087f9b; border-bottom-color: #087f9b; }

@media (max-width: 1100px) {
  .decision-console { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); grid-template-areas: "main status" "funnel funnel" "window window"; }
}

@media (max-width: 640px) {
  .console-search-trigger { min-width: 0; flex: 1; }
  .console-search-trigger kbd { display: none; }
  .console-freshness { flex: 0 0 auto; }
  .decision-console { grid-template-columns: 1fr; grid-template-areas: "main" "status" "funnel" "window"; gap: 8px; padding: 11px 9px 8px; }
  .decision-main { padding-right: 26px; }
  .decision-main > strong { font-size: 12px; }
  .decision-status > span { padding: 6px; }
  .decision-funnel a { padding: 6px 5px; }
  .task-summary-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 7px; padding: 8px 6px; }
  .task-summary-row .task-summary-state { grid-column: 2; text-align: left; }
  .task-summary-row .health { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .task-summary-row time { grid-column: 1; font-size: 7px; }
  .global-search-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
  .global-search-input { grid-template-columns: auto minmax(0, 1fr); }
  .global-search-input > span { grid-column: 2; white-space: normal; }
  .global-search-result { grid-template-columns: 62px minmax(0, 1fr); padding: 8px 6px; }
  .data-trust-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-match { animation: none; }
  .metric[href]:hover { transform: none; }
}

/* SNPR Quant Console V4.7 - integrated market decision and source research */
.quant-tape.dashboard-integrated {
  background: rgba(240, 247, 249, .98);
}
.quant-decision-row {
  width: min(1720px, calc(100% - 32px));
  min-height: 46px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 1.35fr) minmax(390px, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 7px 2px 8px;
  border-top: 1px solid #cbdbe1;
  border-left: 3px solid #078ca4;
}
.quant-decision-row.warn { border-left-color: var(--warn); }
.quant-decision-row.bad { border-left-color: var(--bad); }
.quant-decision-verdict {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
}
.quant-decision-verdict .icon { width: 15px; height: 15px; color: #078ca4; }
.quant-decision-verdict > strong {
  overflow: hidden;
  color: #214a5c;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quant-decision-verdict > small {
  color: #7a909a;
  font: 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.quant-decision-verdict > .data-trust-button { width: 22px; height: 22px; margin-left: 0; }
.quant-decision-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #c8d9e0;
  background: rgba(255,255,255,.72);
}
.quant-decision-funnel a {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 5px 8px;
  border-right: 1px solid #d5e2e7;
  text-decoration: none;
}
.quant-decision-funnel a:last-child { border-right: 0; }
.quant-decision-funnel a:hover { background: #fff; }
.quant-decision-funnel span {
  overflow: hidden;
  color: #78909a;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quant-decision-funnel strong {
  color: #087f9b;
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.research-overview-grid > .panel:first-child { min-width: 0; }
.research-sim-table td:nth-child(7) { min-width: 150px; }

@media (max-width: 1100px) {
  .quant-decision-row {
    width: calc(100% - 24px);
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr);
  }
}

@media (max-width: 700px) {
  .quant-tape.dashboard-integrated { overflow: visible; }
  .quant-decision-row {
    width: calc(100% - 12px);
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 7px 3px 8px;
  }
  .quant-decision-verdict {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 2px 5px;
  }
  .quant-decision-verdict > .icon { grid-column: 1; grid-row: 1 / span 2; }
  .quant-decision-verdict > strong { grid-column: 2; grid-row: 1; }
  .quant-decision-verdict > strong { font-size: 10px; white-space: normal; }
  .quant-decision-verdict > small { grid-column: 2; grid-row: 2; white-space: normal; }
  .quant-decision-verdict > .data-trust-button { grid-column: 3; grid-row: 1 / span 2; }
  .quant-decision-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quant-decision-funnel a:nth-child(2) { border-right: 0; }
  .quant-decision-funnel a:nth-child(-n+2) { border-bottom: 1px solid #d5e2e7; }
}

/* SNPR Quant Console V4.9 - business-day command header -------------- */
.dashboard-command-deck {
  position: relative;
  overflow: hidden;
  border: 1px solid #aec7d1;
  border-top: 3px solid #078ca4;
  border-radius: 7px;
  background:
    linear-gradient(112deg, rgba(250,253,254,.98), rgba(232,243,247,.97)),
    repeating-linear-gradient(90deg, transparent 0, transparent 64px, rgba(7,140,164,.035) 65px);
  box-shadow: 0 14px 34px rgba(31,63,79,.11);
}
.dashboard-command-deck.warn { border-top-color: var(--warn); }
.dashboard-command-deck.bad { border-top-color: var(--bad); }
.dashboard-command-deck::after {
  content: "SNPR / LIVE EXECUTION PLANE";
  position: absolute;
  z-index: 0;
  right: 15px;
  top: 8px;
  color: rgba(55,92,108,.18);
  font: 700 7px ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.dashboard-command-head {
  position: relative;
  z-index: 1;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(290px, .9fr) minmax(390px, 1.25fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 16px 12px;
}
.dashboard-command-identity { position: relative; min-width: 0; padding-right: 30px; }
.dashboard-command-identity > .data-trust-button { position: absolute; right: 0; top: 12px; }
.dashboard-command-identity h1 {
  margin: 2px 0 4px;
  color: #173e51;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.15;
}
.dashboard-command-identity p {
  margin: 0;
  overflow: hidden;
  color: #6f8793;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-command-identity p strong { color: #087f9b; font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dashboard-command-health {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(96px, auto) auto minmax(90px, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 0 5px 18px;
  border-left: 1px solid #c8d9e0;
  color: inherit;
  text-decoration: none;
}
.dashboard-command-health:hover p { color: #28566a; }
.dashboard-command-health > span { display: inline-flex; align-items: center; gap: 6px; color: #087f9b; }
.dashboard-command-health > span .icon { width: 15px; height: 15px; }
.dashboard-command-health em { color: #355b6b; font-size: 10px; font-style: normal; font-weight: 760; }
.dashboard-command-health p {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: #6e8590;
  font-size: 9px;
  line-height: 1.35;
}
.dashboard-command-health b { justify-self: end; color: #7a8f99; font-size: 8px; font-weight: 650; white-space: nowrap; }
.dashboard-command-actions {
  min-width: 260px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 6px 9px;
}
.dashboard-command-actions .console-search-trigger { min-width: 0; width: 100%; grid-column: 1 / -1; }
.dashboard-command-actions .console-freshness { justify-self: start; }
.dashboard-command-sync {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #758b96;
  font-size: 8px;
  white-space: nowrap;
}
.dashboard-command-sync .icon { width: 12px; height: 12px; color: #078ca4; }
.dashboard-command-rail {
  position: relative;
  z-index: 1;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(135px, 1.2fr) minmax(85px, .75fr) repeat(5, minmax(96px, 1fr)) auto;
  align-items: stretch;
  border-top: 1px solid #c6d8df;
  border-bottom: 1px solid #c6d8df;
  background: rgba(222,237,242,.72);
}
.dashboard-command-rail > span,
.dashboard-command-rail > a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-right: 1px solid #c7d8df;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.dashboard-command-rail > :last-child { border-right: 0; }
.dashboard-command-rail > a:hover { background: rgba(255,255,255,.74); }
.dashboard-command-rail em { color: #80949e; font-size: 7px; font-style: normal; }
.dashboard-command-rail strong { overflow: hidden; color: #294f60; font-size: 9px; text-overflow: ellipsis; }
.dashboard-command-rail [data-dashboard-key="market_regime"] { color: #6d63b8; }
.command-rail-brand { color: #087f9b; }
.command-rail-brand .icon { width: 13px; height: 13px; }
.command-rail-brand strong { color: #087f9b; }
.command-rail-clock { justify-content: flex-end; }
.dashboard-command-deck .quant-decision-row {
  width: 100%;
  min-height: 50px;
  margin: 0;
  gap: 14px;
  padding: 8px 12px;
  border-top: 0;
  border-left-width: 3px;
  background: rgba(249,252,253,.66);
}
.dashboard-command-deck .quant-decision-verdict {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}
.dashboard-command-deck .quant-decision-verdict > .icon { grid-column: 1; grid-row: 1 / span 2; }
.dashboard-command-deck .quant-decision-verdict > strong {
  grid-column: 2;
  grid-row: 1;
  white-space: normal;
}
.dashboard-command-deck .quant-decision-verdict > small { grid-column: 2; grid-row: 2; }
.dashboard-command-deck .quant-decision-verdict > .data-trust-button { grid-column: 3; grid-row: 1 / span 2; }
.dashboard-command-deck + .dashboard-shell { margin-top: 12px; }

@media (max-width: 1180px) {
  .dashboard-command-head { grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); }
  .dashboard-command-actions {
    grid-column: 1 / -1;
    min-width: 0;
    grid-template-columns: minmax(240px, 1fr) auto auto;
  }
  .dashboard-command-actions .console-search-trigger { grid-column: 1; }
  .dashboard-command-rail { grid-template-columns: auto minmax(120px, 1.1fr) minmax(80px, .7fr) repeat(5, minmax(88px, 1fr)) auto; }
  .dashboard-command-deck .quant-decision-row { grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr); }
}

@media (max-width: 760px) {
  .dashboard-command-deck::after { display: none; }
  .dashboard-command-head { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding: 13px 11px 10px; }
  .dashboard-command-identity h1 { font-size: 21px; }
  .dashboard-command-health {
    grid-template-columns: minmax(92px, auto) auto minmax(0, 1fr);
    min-height: 40px;
    padding: 7px 0 0;
    border-top: 1px solid #cadbe1;
    border-left: 0;
  }
  .dashboard-command-health b { grid-column: 3; grid-row: 1; }
  .dashboard-command-health p { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-command-actions { grid-column: 1; grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-command-actions .console-search-trigger { grid-column: 1 / -1; }
  .dashboard-command-sync { justify-content: flex-end; }
  .dashboard-command-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dashboard-command-rail::-webkit-scrollbar { display: none; }
  .dashboard-command-rail > span,
  .dashboard-command-rail > a { flex: 0 0 auto; min-height: 34px; padding: 5px 10px; }
  .dashboard-command-deck .quant-decision-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 8px; }
}

@media (max-width: 390px) {
  .dashboard-command-health { grid-template-columns: minmax(90px, auto) auto minmax(0, 1fr); }
  .dashboard-command-health b { grid-column: 3; grid-row: 1; }
  .dashboard-command-health p { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-command-actions { grid-template-columns: 1fr; }
  .dashboard-command-actions .console-freshness,
  .dashboard-command-sync { justify-self: start; justify-content: flex-start; }
}

@media (max-width: 500px) {
  .dashboard-command-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .dashboard-command-rail > span,
  .dashboard-command-rail > a {
    min-width: 0;
    min-height: 38px;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 5px 7px;
    border-right: 1px solid #c7d8df;
    border-bottom: 1px solid #c7d8df;
  }
  .dashboard-command-rail > :nth-child(3n) { border-right: 0; }
  .dashboard-command-rail > :nth-last-child(-n+3) { border-bottom: 0; }
  .command-rail-brand { grid-template-columns: auto auto; justify-content: start; align-items: center; }
  .command-rail-clock { justify-content: stretch; }
}

/* SNPR Quant Console V5.0 - operational typography scale ------------ */
:root {
  --type-micro: 9px;
  --type-label: 10px;
  --type-data: 11px;
  --type-section: 13px;
}

.page-kicker { font-size: var(--type-label); }
.panel-head .muted { font-size: var(--type-data); line-height: 1.35; }
.dashboard-command-health p { font-size: var(--type-label); line-height: 1.45; }
.dashboard-command-health b,
.dashboard-command-sync { font-size: var(--type-micro); }
.dashboard-command-actions .console-search-trigger { font-size: var(--type-label); }
.dashboard-command-rail em { font-size: var(--type-micro); font-weight: 650; }
.dashboard-command-rail strong { font-size: var(--type-data); font-weight: 750; }

.execution-pulse-head em,
.execution-stage-copy em,
.execution-stage-copy small,
.bot-flow-label span,
.bot-flow-stage small,
.topology-node-copy em,
.topology-node-value small,
.capital-flow-head,
.capital-flow-node em,
.capital-flow-node small,
.fund-timeline-item time,
.fund-timeline-item small,
.task-summary-state,
.task-lifecycle-state { font-size: var(--type-micro); }
.topology-node-copy strong { font-size: var(--type-data); }

.research-funnel span,
.research-status-item span { font-size: var(--type-label); }
.research-funnel em,
.history-date-meta b,
.history-x-axis span,
.history-trend-label,
.history-axis-label,
.record-detail-item span,
.miss-diagnostic-card em,
.config-diff-preview span { font-size: var(--type-micro); }
.history-date-meta time,
.history-trend-head span { font-size: var(--type-label); }

.global-search-input > span,
.global-search-result > span,
.global-search-result small { font-size: var(--type-micro); }
.leaderboard-address-text { font-size: var(--type-label); }
.strategy-filter-toolbar button code { font-size: 8px; }

@media (max-width: 640px) {
  .panel-head .muted { font-size: var(--type-label); }
  .task-summary-row time { font-size: var(--type-micro); }
  .wallet-state-badge strong { font-size: var(--type-micro); }
  .wallet-state-badge code { font-size: 8px; }
  .quant-tape-item em,
  .quant-tape-item strong { font-size: var(--type-micro); }
}

/* SNPR Quant Console V5.1 - mobile layout system --------------------- */
@media (max-width: 640px) {
  .topbar {
    height: 52px;
    min-height: 52px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 5px 6px;
  }
  .brand-wrap {
    width: 34px;
    max-width: 34px;
    min-width: 34px;
    flex: 0 0 34px;
    gap: 0;
  }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text,
  .topbar-status { display: none; }
  .nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: visible;
  }
  .nav a {
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    gap: 3px;
    padding: 4px 3px;
    font-size: 10px;
    white-space: nowrap;
  }
  .nav a .icon { width: 13px; height: 13px; }
  .nav .nav-logout span { display: none; }

  .panel { padding: 10px; }
  .panel-head,
  .monitor-leaderboard-panel > .panel-head {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
    margin-bottom: 9px;
    padding: 1px 1px 9px;
    text-align: left;
  }
  .panel-head > div { min-width: 0; }
  .panel-head h2,
  .panel-head > h2 {
    min-width: 0;
    justify-content: flex-start;
    margin: 0;
    text-align: left;
  }
  .panel-head .muted,
  .panel-head > .muted {
    max-width: 100%;
    margin-top: 3px;
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
  }
  .panel-head > .muted { grid-column: 1; grid-row: 2; }
  .panel-head > .panel-link {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
  .panel-head > .data-trust-button {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0;
  }
  .task-summary-panel > .panel-head > .data-trust-button {
    grid-column: 3;
    grid-row: 1;
    width: 22px;
    height: 22px;
  }
  .task-summary-panel > .panel-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 6px;
  }
  .task-summary-panel > .panel-head > div { grid-column: 1; grid-row: 1; }
  .task-summary-panel > .panel-head > .panel-link { font-size: 10px; }

  .monitor-leaderboard-panel > .panel-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 5px 1px;
  }
  .monitor-leaderboard-panel > .panel-head > h2 { grid-column: 1; }
  .monitor-leaderboard-panel > .panel-head > .leaderboard-period-tabs {
    grid-column: 2;
    justify-self: start;
  }
  .monitor-leaderboard-panel > .panel-head > .data-trust-button {
    grid-column: 3;
    grid-row: 1;
  }

  .bot-compare-panel .tag {
    width: auto;
    min-width: 0;
    display: inline;
    justify-self: start;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #087f9b;
    background: transparent !important;
    box-shadow: none !important;
    font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .bot-compare-panel .mobile-record-table tr:nth-child(even) .tag { color: #665bb2; }
  .mobile-record-table td::before { font-size: var(--type-micro); }
  .mobile-record-table td { padding: 6px !important; }

  .diagnostic-toolbar,
  .research-filter-toolbar,
  .tabs { scrollbar-width: none; }
  .diagnostic-toolbar::-webkit-scrollbar,
  .research-filter-toolbar::-webkit-scrollbar,
  .tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 350px) {
  .topbar { padding-right: 4px; padding-left: 4px; }
  .brand-wrap { width: 30px; max-width: 30px; min-width: 30px; flex-basis: 30px; }
  .brand-mark { width: 29px; height: 29px; }
  .nav a { gap: 2px; padding-right: 2px; padding-left: 2px; font-size: 9px; }
  .nav a .icon { width: 12px; height: 12px; }
}

@media (max-width: 900px) {
  .dashboard-command-identity p {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .panel-head,
  .monitor-leaderboard-panel > .panel-head {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 10px;
    padding: 2px 2px 10px;
    text-align: left;
  }
  .panel-head > div { min-width: 0; }
  .panel-head h2,
  .panel-head > h2 {
    min-width: 0;
    justify-content: flex-start;
    margin: 0;
    text-align: left;
  }
  .panel-head .muted,
  .panel-head > .muted {
    max-width: 100%;
    margin-top: 3px;
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
  }
  .panel-head > .muted { grid-column: 1; grid-row: 2; }
  .panel-head > .panel-link,
  .panel-head > .data-trust-button {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0;
  }
  .task-summary-panel > .panel-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .task-summary-panel > .panel-head > div { grid-column: 1; grid-row: 1; }
  .task-summary-panel > .panel-head > .panel-link { grid-column: 2; grid-row: 1; }
  .task-summary-panel > .panel-head > .data-trust-button { grid-column: 3; grid-row: 1; }

  .monitor-leaderboard-panel > .panel-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 6px 2px;
  }
  .monitor-leaderboard-panel > .panel-head > h2 { grid-column: 1; }
  .monitor-leaderboard-panel > .panel-head > .leaderboard-period-tabs {
    grid-column: 2;
    justify-self: start;
  }
  .monitor-leaderboard-panel > .panel-head > .data-trust-button {
    grid-column: 3;
    grid-row: 1;
  }

  .bot-compare-panel .tag {
    width: auto;
    min-width: 0;
    display: inline;
    justify-self: start;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #087f9b;
    background: transparent !important;
    box-shadow: none !important;
    font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .bot-compare-panel .mobile-record-table tr:nth-child(even) .tag { color: #665bb2; }
}

/* SNPR Quant Console V5.3 - global readability and scroll ergonomics -- */
:root {
  --type-micro: 10px;
  --type-label: 11px;
  --type-data: 12px;
  --type-section: 14px;
}

.brand-sub,
.topbar-status,
.login-context span,
.site-footer-pill,
.health,
.tag,
.market-badge,
.fund-role-chip,
.builder-cell,
.miss-reason-badge,
.metric-sub,
.quick-nav-item em,
.quant-tape-item em,
.quant-tape-item strong,
.quant-tape-brand strong,
.quant-tape-sync,
.diagnostic-toolbar-label,
.diagnostic-toolbar-count,
.diagnostic-toolbar button,
.diagnostic-toolbar a[data-miss-category-link],
.diagnostic-toolbar a[data-miss-category-link] span,
.diagnostic-toolbar input,
.research-filter-toolbar select,
.research-filter-toolbar input,
.research-filter-toolbar > span,
.record-detail-item span,
.miss-diagnostic-head em,
.miss-diagnostic-card span,
.miss-diagnostic-card em,
.health-detail-disclosure > summary em,
.fund-timeline-item time,
.fund-timeline-item small,
.fund-timeline-item em,
.research-funnel span,
.research-funnel em,
.research-status-item span,
.config-diff-preview span,
.wallet-state-badge strong,
.wallet-state-badge code,
.strategy-filter-toolbar button code,
.console-search-trigger,
.console-search-trigger kbd,
.global-search-dialog kbd,
.global-search-input > span,
.global-search-result > span,
.global-search-result small,
.task-summary-owner,
.task-summary-state,
.task-lifecycle-state,
.decision-kicker,
.decision-window-text,
.decision-status small,
.decision-funnel span,
.dashboard-command-health b,
.dashboard-command-sync,
.dashboard-command-rail em,
.dashboard-command-rail strong,
.execution-pulse-head em,
.execution-stage-copy em,
.execution-stage-copy small,
.bot-flow-label span,
.bot-flow-stage em,
.bot-flow-stage small,
.topology-node-copy em,
.topology-node-value small,
.capital-flow-head,
.capital-flow-node em,
.capital-flow-node small {
  font-size: var(--type-micro);
}

.page-kicker,
.panel-head .muted,
.leaderboard-address-text,
.research-funnel span,
.research-status-item span,
.history-trend-head span,
.history-date-meta time,
.console-freshness {
  font-size: var(--type-label);
}

.mobile-record-table td::before { font-size: var(--type-micro); }

.table-wrap,
.tabs,
.diagnostic-toolbar,
.research-filter-toolbar,
.quant-tape-track,
.dashboard-command-rail,
.latency-chart-shell {
  scrollbar-width: auto;
  scrollbar-color: #789eae #dce8ed;
}
.table-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.tabs::-webkit-scrollbar,
.diagnostic-toolbar::-webkit-scrollbar,
.research-filter-toolbar::-webkit-scrollbar,
.quant-tape-track::-webkit-scrollbar,
.dashboard-command-rail::-webkit-scrollbar,
.latency-chart-shell::-webkit-scrollbar {
  display: block;
  width: 8px;
  height: 8px;
}
.table-wrap::-webkit-scrollbar-track,
.tabs::-webkit-scrollbar-track,
.diagnostic-toolbar::-webkit-scrollbar-track,
.research-filter-toolbar::-webkit-scrollbar-track,
.quant-tape-track::-webkit-scrollbar-track,
.dashboard-command-rail::-webkit-scrollbar-track,
.latency-chart-shell::-webkit-scrollbar-track {
  background: #dce8ed;
}
.table-wrap::-webkit-scrollbar-thumb,
.tabs::-webkit-scrollbar-thumb,
.diagnostic-toolbar::-webkit-scrollbar-thumb,
.research-filter-toolbar::-webkit-scrollbar-thumb,
.quant-tape-track::-webkit-scrollbar-thumb,
.dashboard-command-rail::-webkit-scrollbar-thumb,
.latency-chart-shell::-webkit-scrollbar-thumb {
  min-width: 42px;
  border: 2px solid #dce8ed;
  border-radius: 7px;
  background: #789eae;
}

@media (max-width: 640px) {
  .nav a { font-size: 10px; }
  .tabs,
  .diagnostic-toolbar,
  .research-filter-toolbar,
  .quant-tape-track { scrollbar-width: auto; }
  .tabs::-webkit-scrollbar,
  .diagnostic-toolbar::-webkit-scrollbar,
  .research-filter-toolbar::-webkit-scrollbar,
  .quant-tape-track::-webkit-scrollbar {
    display: block;
    height: 9px;
  }
  .table-wrap::-webkit-scrollbar { height: 13px; }
  .wallet-state-badge code,
  .strategy-filter-toolbar button code { font-size: var(--type-micro); }
}

@media (max-width: 1280px) {
  .dashboard-command-identity p {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }
}

/* SNPR Quant Console V5.4 - daily history table balance -------------- */
.history-table table { width: 100%; min-width: 1080px; table-layout: fixed; }
.history-table th:nth-child(1),
.history-table td:nth-child(1) { width: 118px; }
.history-table th:nth-child(2),
.history-table td:nth-child(2) { width: 150px; }
.history-table th:nth-child(3),
.history-table td:nth-child(3) { width: 160px; }
.history-table th:nth-child(4),
.history-table td:nth-child(4) { width: 128px; }
.history-table th:nth-child(5),
.history-table td:nth-child(5),
.history-table th:nth-child(7),
.history-table td:nth-child(7),
.history-table th:nth-child(9),
.history-table td:nth-child(9) { width: 78px; text-align: center; }
.history-table th:nth-child(6),
.history-table td:nth-child(6),
.history-table th:nth-child(8),
.history-table td:nth-child(8) { width: 136px; }
/* SNPR Quant Console V7.2 - readable compact table density ----------- */
.table-wrap table th,
.table-wrap table td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  font-size: 11px !important;
  line-height: 1.3;
}

/* SNPR Quant Console V5.7 - unified non-dashboard page headers ------- */
.page-head {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 7px 2px 10px;
}
.page-head > :first-child { min-width: 0; }
.page-head-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) auto;
  align-items: center;
  gap: 8px 10px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid #c5d7df;
}
.page-head-actions.with-meta {
  grid-template-columns: auto minmax(220px, 280px) auto;
}
.page-head-actions > .pager-btn { white-space: nowrap; }
.page-head-meta {
  max-width: 230px;
  overflow: hidden;
  color: #6f8792;
  font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-head-actions .console-search-trigger {
  width: 100%;
  min-width: 0;
  min-height: 34px;
}
.page-head-actions .console-freshness { white-space: nowrap; }

@media (max-width: 900px) {
  .page-head {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }
  .page-head-actions,
  .page-head-actions.with-meta {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 0;
    padding: 8px 0 0;
    border-top: 1px solid #c9dbe2;
    border-left: 0;
  }
  .page-head-actions.with-meta > .page-head-meta,
  .page-head-actions.with-meta > .pager-btn {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-head { padding-top: 3px; }
  .page-head-actions { gap: 7px; }
  .page-head-actions .console-search-trigger kbd { display: none; }
  .page-head-actions .console-freshness { font-size: 10px; }
}

/* Phone login keeps a faint identity signal without restoring the large
   desktop illustration or placing an interactive layer over the form. */
@media (max-width: 640px) {
  .login-shell { position: relative; overflow: hidden; }
  .login-card,
  .login-context { position: relative; z-index: 3; }
  .login-visual {
    position: absolute !important;
    z-index: 4;
    inset: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    opacity: .18;
    pointer-events: none;
  }
  .login-visual::before,
  .login-visual::after,
  .login-visual > img,
  .login-signal-core { display: none !important; }
  .login-signal-field { display: block !important; }
}

/* SNPR Live Operations V2 - data-backed motion hierarchy ------------- */
body[data-motion-system="snpr_live_operations_v2"] {
  --live-cyan: 7, 140, 164;
  --live-green: 8, 145, 112;
  --live-blue: 31, 115, 209;
  --live-violet: 109, 99, 184;
  --live-red: 205, 72, 84;
  --live-amber: 191, 126, 28;
  --motion-fast: 160ms;
  --motion-standard: 320ms;
  --motion-event: 900ms;
  --motion-ambient: 7s;
}
body[data-market-regime="cold"] { --motion-ambient: 12s; }
body[data-market-regime="hot"] { --motion-ambient: 5.2s; }

.metric[data-metric-card] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 24px;
}
.metric-sparkline {
  position: absolute;
  z-index: 0;
  left: 12px;
  right: 12px;
  bottom: 4px;
  width: calc(100% - 24px);
  height: 18px;
  pointer-events: none;
  opacity: .82;
}
.metric[data-metric-card] > :not(.metric-sparkline) { position: relative; z-index: 1; }

.live-operations-console {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid #ccdde4;
  background:
    linear-gradient(rgba(16, 106, 132, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 106, 132, .045) 1px, transparent 1px),
    rgba(241, 249, 251, .88);
  background-size: 24px 24px;
}
.live-operations-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 38%, rgba(var(--live-cyan), .07) 48%, transparent 58% 100%);
  transform: translateX(-80%);
  animation: snprLivePlaneSweep var(--motion-ambient) linear infinite;
}
.live-operations-bar {
  position: relative;
  z-index: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(194, 214, 222, .86);
  font: 750 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.live-operations-bar > span { display: inline-flex; align-items: center; gap: 7px; }
.live-operations-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--live-green));
  box-shadow: 0 0 0 4px rgba(var(--live-green), .09), 0 0 12px rgba(var(--live-green), .42);
  animation: snprLiveHeartbeat 1.8s ease-in-out infinite;
}
.live-operations-bar strong { color: #126d81; letter-spacing: 0; }
.live-operations-bar em,
.live-operations-bar time { color: #6f8792; font-style: normal; font-weight: 600; }

.live-block-viewport {
  position: relative;
  z-index: 1;
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  overflow: hidden;
  border-bottom: 1px solid #cedee4;
}
.live-block-viewport::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--live-blue), .14), rgba(var(--live-cyan), .65), rgba(var(--live-green), .52));
  box-shadow: 0 0 12px rgba(var(--live-cyan), .12);
}
.live-block-viewport::after {
  display: none;
}
.live-block-origin,
.live-block-head {
  position: relative;
  z-index: 2;
  color: #66808c;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.live-block-head { display: grid; gap: 4px; color: #078ca4; }
.live-block-head small { color: #78919c; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-block-track-viewport {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
}
.live-block-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--live-blue), .65), rgba(var(--live-cyan), .92), rgba(var(--live-green), .76));
  box-shadow: 0 0 8px rgba(var(--live-cyan), .24);
  transform: scaleX(.02);
  transform-origin: left center;
  will-change: transform;
}
.live-block-track {
  position: relative;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow: visible;
}
.live-block-track[data-live-block-count="10"] .live-block-node { flex: 0 0 calc((100% - 54px) / 10); }
.live-block-track[data-live-block-count="6"] .live-block-node { flex: 0 0 calc((100% - 30px) / 6); }
.live-block-track[data-live-block-count="5"] .live-block-node { flex: 0 0 calc((100% - 24px) / 5); }
.live-block-track[data-live-block-count="4"] .live-block-node { flex: 0 0 calc((100% - 18px) / 4); }
.live-block-node {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid #c5d9e1;
  background: rgba(249, 252, 253, .95);
  box-shadow: 0 5px 12px rgba(37, 76, 92, .06);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.live-block-node::before { display: none; }
.live-block-node b { color: #244d5e; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-block-node small { color: #8599a2; font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-block-node.sent { border-color: rgba(var(--live-cyan), .58); box-shadow: 0 0 0 2px rgba(var(--live-cyan), .06), 0 6px 15px rgba(var(--live-cyan), .11); }
.live-block-node.accepted { border-color: rgba(var(--live-violet), .60); box-shadow: 0 0 0 2px rgba(var(--live-violet), .06), 0 6px 15px rgba(var(--live-violet), .11); }
.live-block-node.landed { border-color: rgba(var(--live-green), .65); box-shadow: 0 0 0 2px rgba(var(--live-green), .07), 0 6px 15px rgba(var(--live-green), .12); }
.live-block-node.placeholder { opacity: .35; }
.live-block-node.is-head {
  border-color: rgba(var(--live-cyan), .72);
  background: rgba(241, 251, 252, .98);
  box-shadow: 0 0 0 2px rgba(var(--live-cyan), .08), 0 7px 18px rgba(var(--live-cyan), .15);
}
.live-block-lanes { display: inline-flex; align-items: center; gap: 5px; }
.live-block-lanes i {
  width: 6px;
  height: 6px;
  border: 1px solid #aec4cd;
  border-radius: 50%;
  background: #e6eff2;
}
.live-block-lanes .bot1.sent,
.live-block-lanes .bot1.accepted,
.live-block-lanes .bot1.landed { border-color: rgba(var(--live-blue), .7); background: rgb(var(--live-blue)); box-shadow: 0 0 7px rgba(var(--live-blue), .42); }
.live-block-lanes .bot2.sent,
.live-block-lanes .bot2.accepted,
.live-block-lanes .bot2.landed { border-color: rgba(var(--live-violet), .7); background: rgb(var(--live-violet)); box-shadow: 0 0 7px rgba(var(--live-violet), .42); }

.live-operations-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  min-height: 162px;
}
.live-bot-engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 1px solid #ccdde3; }
.live-bot-engine { min-width: 0; padding: 8px 10px; border-right: 1px solid rgba(203, 220, 227, .74); background: rgba(250, 253, 253, .62); }
.live-bot-engine:last-child { border-right: 0; }
.live-bot-engine header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; }
.live-bot-engine header strong { color: #244c5d; font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-bot-engine header span { color: #82959e; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-bot-engine header b { color: #55717e; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-bot-engine.bot1.is-active header span { color: rgb(var(--live-blue)); }
.live-bot-engine.bot2.is-active header span { color: rgb(var(--live-violet)); }
.live-bot-engine canvas { width: 100%; height: 116px; display: block; margin-top: 3px; }

.live-follow-panel { min-width: 0; background: rgba(246, 251, 252, .82); }
.live-follow-panel > header {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(199, 218, 225, .82);
}
.live-follow-panel > header strong { color: #315564; font-size: 10px; }
.live-follow-panel > header span { color: #82969f; font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.live-event-feed {
  min-width: 0;
  min-height: 132px;
  max-height: 132px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: rgba(246, 251, 252, .82);
}
.live-event-item,
.live-event-empty {
  min-height: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 94px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(205, 221, 227, .74);
}
.live-event-item:last-child { border-bottom: 0; }
.live-event-stage { color: #587581; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-event-copy { min-width: 0; display: grid; gap: 2px; }
.live-event-copy strong { overflow: hidden; color: #254958; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.live-event-copy .live-follow-wallet {
  color: #147895;
  font: 750 10px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-shadow: 0 0 9px rgba(18, 151, 181, .14);
}
.live-event-copy small { overflow: hidden; color: #81949d; font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.live-follow-pnl { min-width: 0; display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.live-follow-pnl small { color: #7f929b; font-size: 10px; }
.live-follow-pnl strong { color: #385865; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-follow-item.good .live-follow-pnl strong { color: rgb(var(--live-green)); }
.live-follow-item.bad .live-follow-pnl strong { color: rgb(var(--live-red)); }
.live-event-item.good .live-event-stage { color: rgb(var(--live-green)); }
.live-event-item.bad .live-event-stage { color: rgb(var(--live-red)); }
.live-event-item.warn .live-event-stage { color: rgb(var(--live-amber)); }
.live-event-item.bot1 .live-event-stage { color: rgb(var(--live-blue)); }
.live-event-item.bot2 .live-event-stage { color: rgb(var(--live-violet)); }
.live-event-item.filter .live-event-stage,
.live-event-item.fund .live-event-stage { color: rgb(var(--live-cyan)); }
.live-event-item.is-new { animation: snprEventIngress 900ms cubic-bezier(.2,.8,.2,1) both; }
.live-event-empty { display: grid; grid-template-columns: auto 1fr; color: #82959e; }
.live-event-empty span { font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-event-empty strong { color: #536f7c; font-size: 10px; }

.bot-engine-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d1e0e5;
  background: rgba(243, 249, 251, .72);
}
.bot-engine-lane {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-right: 1px solid #d2e0e6;
}
.bot-engine-lane:last-child { border-right: 0; }
.bot-engine-identity { display: grid; gap: 2px; }
.bot-engine-identity strong { color: #234959; font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.bot-engine-identity span { color: #82959e; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.bot-engine-lane canvas { width: 100%; height: 44px; display: block; }
.bot-engine-facts { display: inline-flex; align-items: center; gap: 10px; color: #78909a; font-size: 10px; white-space: nowrap; }
.bot-engine-facts b { color: #284d5d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.execution-stage.event-pulse,
.bot-flow-stage.event-pulse,
.capital-flow-node.event-pulse {
  z-index: 3;
  animation: snprStageEvent 1.45s ease-out both;
}

[data-live-profit-chart] .history-pnl-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(.04);
  opacity: .18;
}
[data-live-profit-chart].is-revealed .history-pnl-bar {
  transform: scaleY(1);
  opacity: 1;
  transition: transform 460ms cubic-bezier(.2,.75,.2,1), opacity 300ms ease;
  transition-delay: calc(var(--history-order, 0) * 22ms);
}
[data-live-profit-chart] .history-average-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}
[data-live-profit-chart].is-revealed .history-average-line { animation: snprHistoryTrace 1.4s .32s ease-out forwards; }
.leaderboard-rank-shift { animation: snprRankShift 900ms cubic-bezier(.2,.8,.2,1) both; }
.leaderboard-rank { white-space: nowrap; }
.leaderboard-rank-delta { display: block; margin-top: 2px; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.leaderboard-rank-delta.up { color: rgb(var(--live-green)); }
.leaderboard-rank-delta.down { color: rgb(var(--live-red)); }
.leaderboard-profit-rise { box-shadow: inset 2px 0 0 rgba(var(--live-green), .45); }
.leaderboard-profit-fall { box-shadow: inset 2px 0 0 rgba(var(--live-red), .38); }
.leaderboard-follow-hit { animation: snprLeaderboardFollow 1.45s ease-out both; }

.task-alert-enter { animation: snprTaskAlertEnter var(--motion-event) ease-out both; }
.task-alert-recovered { animation: snprTaskRecovered var(--motion-event) ease-out both; }
.task-summary-panel.alerts-entered { box-shadow: inset 3px 0 0 rgba(var(--live-amber), .55); }
.task-summary-panel.alerts-recovered { box-shadow: inset 3px 0 0 rgba(var(--live-green), .55); }

[data-sync-state="syncing"] { cursor: progress; }
[data-sync-state="stale"] { box-shadow: inset 0 0 0 1px rgba(var(--live-amber), .25); }

.latency-chart-legend { align-items: center; }
.latency-live-readout {
  min-width: 68px;
  padding: 3px 6px;
  border-left: 1px solid #cbdde4;
  color: #83969f;
  font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.latency-live-readout.bot1.is-live { color: rgb(var(--live-blue)); }
.latency-live-readout.bot2.is-live { color: rgb(var(--live-violet)); }
.latency-live-cursor {
  position: absolute;
  z-index: 3;
  top: 30px;
  bottom: 20px;
  left: 58px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--live-cyan), .70), transparent);
  box-shadow: 0 0 10px rgba(var(--live-cyan), .24);
  animation: snprLatencyCursor 7s linear infinite;
}
[data-live-latency].telemetry-pulse { box-shadow: inset 0 0 0 1px rgba(var(--live-cyan), .20), 0 8px 22px rgba(var(--live-cyan), .08); }

body[data-signal-level="event"] .topbar-signal-field,
body[data-signal-level="event"] .command-signal-field { opacity: .88; }
body[data-signal-level="run"] .command-signal-field { opacity: .76; }
body[data-signal-level="run"] .live-block-head { text-shadow: 0 0 10px rgba(var(--live-cyan), .38); }
body[data-signal-level="alert"] .topbar { box-shadow: inset 0 -2px 0 rgba(var(--live-amber), .28), 0 5px 14px rgba(31,63,79,.06); }
body[data-signal-level="alert"] .command-signal-field { opacity: .92; }

@keyframes snprLivePlaneSweep { to { transform: translateX(90%); } }
@keyframes snprLiveHeartbeat { 0%,100% { opacity: .5; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.25); } }
@keyframes snprBlockCursor { from { transform: translateX(-90px); } to { transform: translateX(calc(100vw - 180px)); } }
@keyframes snprEventIngress { from { opacity: 0; transform: translateX(12px); background: rgba(var(--live-cyan), .12); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes snprStageEvent { 0% { background: rgba(var(--live-cyan), .16); box-shadow: inset 0 0 0 1px rgba(var(--live-cyan), .42), 0 0 18px rgba(var(--live-cyan), .16); transform: translateY(-1px); } 100% { background: transparent; box-shadow: none; transform: none; } }
@keyframes snprHistoryTrace { to { stroke-dashoffset: 0; } }
@keyframes snprRankShift { 0% { opacity: .35; transform: translateY(7px); background: rgba(var(--live-cyan), .09); } 100% { opacity: 1; transform: none; background: transparent; } }
@keyframes snprLeaderboardFollow { 0% { background: rgba(var(--live-cyan), .18); } 100% { background: transparent; } }
@keyframes snprTaskAlertEnter { 0% { background: rgba(var(--live-amber), .16); transform: translateX(-2px); } 100% { background: transparent; transform: none; } }
@keyframes snprTaskRecovered { 0% { background: rgba(var(--live-green), .14); } 100% { background: transparent; } }
@keyframes snprLatencyCursor { from { transform: translateX(0); } to { transform: translateX(calc(100vw - 145px)); } }

@media (max-width: 900px) {
  .live-operations-grid { grid-template-columns: minmax(0, 1fr); }
  .live-bot-engines { border-right: 0; border-bottom: 1px solid #ccdde3; }
  .bot-engine-comparison { grid-template-columns: minmax(0, 1fr); }
  .bot-engine-lane { border-right: 0; border-bottom: 1px solid #d2e0e6; }
  .bot-engine-lane:last-child { border-bottom: 0; }
  .latency-live-cursor { display: none; }
}

@media (max-width: 640px) {
  .grid.cols-4.dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px; }
  .dashboard-metrics .metric { min-height: 104px; padding: 10px 10px 25px; }
  .dashboard-metrics .metric-value { font-size: 17px; line-height: 1.08; overflow-wrap: anywhere; }
  .dashboard-metrics .metric-label,
  .dashboard-metrics .metric-sub { font-size: 10px; }
  .metric[data-metric-card] { padding-bottom: 25px; }
  .metric-sparkline { height: 17px; }
  .live-operations-bar { padding-inline: 8px; }
  .live-operations-bar em { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-block-viewport { grid-template-columns: 34px minmax(0, 1fr) 34px; padding-inline: 7px; }
  .live-block-viewport::before { left: 38px; right: 38px; }
  .live-block-track { overflow: visible; }
  .live-block-node { min-height: 52px; }
  .live-bot-engine canvas { height: 70px; }
  .live-event-feed { min-height: 132px; max-height: 132px; }
  .live-event-item,
  .live-event-empty { grid-template-columns: 40px minmax(0, 1fr) 82px; padding-inline: 8px; }
  .live-follow-panel > header { padding-inline: 8px; }
  .live-follow-pnl strong { font-size: 10px; }
  .bot-engine-lane { grid-template-columns: 82px minmax(90px, 1fr); gap: 7px; padding: 7px 8px; }
  .bot-engine-facts { grid-column: 1 / -1; justify-content: space-between; }
  .bot-engine-lane canvas { height: 36px; }
  .latency-live-readout { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-operations-console::before,
  .live-operations-bar i,
  .live-block-viewport::after,
  .live-block-node,
  .live-event-item,
  .execution-stage.event-pulse,
  .bot-flow-stage.event-pulse,
  .capital-flow-node.event-pulse,
  [data-live-profit-chart] .history-average-line,
  .leaderboard-rank-shift,
  .leaderboard-follow-hit,
  .task-alert-enter,
  .task-alert-recovered,
  .latency-live-cursor { animation: none !important; transition: none !important; }
  [data-live-profit-chart] .history-pnl-bar { transform: none !important; opacity: 1 !important; }
  [data-live-profit-chart] .history-average-line { stroke-dashoffset: 0 !important; }
}

/* Leaderboard readability: preserve three-column density while making each
   settled-trade row easier to scan on desktop and phone. */
.leaderboard-card-head { min-height: 42px; padding-inline: 12px; }
.leaderboard-card-head h3 { font-size: 14px; font-weight: 800; }
.table-wrap.leaderboard-table table th,
.table-wrap.leaderboard-table table td {
  padding: 7px 7px !important;
  font-size: 11px !important;
  line-height: 1.35;
}
.leaderboard-table tbody td { height: 34px; }
.leaderboard-rank { font-size: 11px !important; }
.leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text,
.leaderboard-address-text {
  font-size: 11px !important;
  font-weight: 700;
}
.leaderboard-sort-head { min-height: 30px; font-size: 11px; font-weight: 800; }
.leaderboard-table [data-leaderboard-win-rate],
.leaderboard-table [data-leaderboard-record] { font-weight: 700; }
.leaderboard-table [data-leaderboard-win-rate] { text-align: center; vertical-align: middle; }
.leaderboard-table [data-leaderboard-win-rate] > strong,
.leaderboard-table [data-leaderboard-win-rate] > small { display: block; margin-inline: auto; }
.leaderboard-table [data-leaderboard-win-rate] > strong { font-size: inherit; line-height: 1.15; }
.leaderboard-sample {
  color: #7d929c;
  font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.leaderboard-sample.single { color: #9b7b43; }

@media (max-width: 640px) {
  .leaderboard-card-head { min-height: 40px; }
  .table-wrap.leaderboard-table table th,
  .table-wrap.leaderboard-table table td { padding: 6px 3px !important; font-size: 10px !important; }
  .leaderboard-table tbody td { height: 33px; }
  .leaderboard-wallet .addr-popover-btn.addr-text-popover.leaderboard-address-text,
  .leaderboard-address-text { font-size: 10px !important; }
  .leaderboard-sort-head { min-height: 30px; font-size: 10px; }
}

/* SNPR Quant Console V7.5 - final small-scope refinement ---------------- */
body {
  --state-data: #147895;
  --state-good: #087f68;
  --state-bad: #c94f5d;
  --state-warn: #9a711e;
  --state-bot1: #2872bd;
  --state-bot2: #6c61ad;
}

/* Execution pulse: compact, aligned and still readable. */
.live-operations-grid { min-height: 150px; }
.live-bot-engine { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.live-bot-engine canvas { height: 96px; align-self: center; }
.live-event-feed { min-height: 120px; max-height: 120px; }
.live-event-item,
.live-event-empty { min-height: 40px; height: 40px; }

/* Leaderboard: one baseline, restrained evidence and continuous rows. */
.leaderboard-table tbody tr { transition: background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
.leaderboard-table tbody td { vertical-align: middle; }
.leaderboard-table .leaderboard-rank,
.leaderboard-table [data-leaderboard-profit],
.leaderboard-table [data-leaderboard-win-rate],
.leaderboard-table [data-leaderboard-record] { font-variant-numeric: tabular-nums; }
.leaderboard-table tbody tr:hover td,
.leaderboard-table tbody tr:focus-within td,
.leaderboard-table tbody tr.row-touch-focus td { background: rgba(20, 120, 149, .055) !important; }
.leaderboard-sample.single { color: #8c794f; font-weight: 650; }

/* Daily PnL: stronger zero axis, quieter grid/bars, cleaner average. */
.history-trend-grid { stroke: #dce8ec; stroke-width: .7; stroke-dasharray: 2 8; opacity: .78; }
.history-trend-zero { stroke: #6f929f; stroke-width: 1.25; stroke-dasharray: none; }
.history-pnl-bar { opacity: .84; filter: saturate(.82); transition: opacity var(--motion-fast) ease, filter var(--motion-fast) ease; }
.history-pnl-bar:hover { opacity: 1; filter: saturate(1); }
.history-trend-svg:has(.history-pnl-bar:hover) .history-pnl-bar:not(:hover) { opacity: .3; }
.history-average-line { stroke: #287b95; stroke-width: 1.7; filter: none; opacity: .92; transition: opacity var(--motion-fast) ease; }
.history-trend-svg:has(.history-pnl-bar:hover) .history-average-line { opacity: .32; }

/* BOT comparison: financial numerals align without adding visual containers. */
.bot-compare-panel table th:nth-child(n+2),
.bot-compare-panel table td:nth-child(n+2) { text-align: right; }
.bot-compare-panel table td,
.bot-engine-facts,
.bot-engine-facts b { font-variant-numeric: tabular-nums; }
.bot-compare-panel tbody tr + tr td { border-top: 1px solid rgba(196, 215, 223, .72); }
.bot-engine-facts b { display: inline-block; min-width: 24px; text-align: right; }

/* Task state: normal stays quiet; only actionable states carry weight. */
.task-summary-row { transition: background-color var(--motion-fast) ease; }
.task-summary-owner { color: #537d8d; }
.task-summary-state,
.task-summary-row time { color: #7c9099; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.task-summary-row .health.ok { color: #4f7f72; background: #eef6f3 !important; border-color: #cde1d9; }
.task-summary-row .health.warn { color: var(--state-warn); background: #fbf4e8 !important; border-color: #e5d1a9; }
.task-summary-row .health.bad { color: var(--state-bad); background: #faecee !important; border-color: #e6bdc3; }

/* Unified row and address interaction. */
.table-wrap tbody tr { transition: background-color var(--motion-fast) ease; }
.table-wrap tbody tr:hover td,
.table-wrap tbody tr:focus-within td,
.table-wrap tbody tr.row-touch-focus td { background: rgba(20, 120, 149, .05) !important; }
.addr-short,
.follow-hash,
.fund-address,
.fund-route-address,
.fund-hash-chip,
.competitor-address,
.addr-popover-btn.addr-text-popover {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
a.follow-hash,
button.addr-popover-btn,
a.addr-popover-btn { cursor: pointer; }
.addr-popover-btn.addr-text-popover:hover,
.addr-popover-btn.addr-text-popover:focus-visible,
a.follow-hash:hover,
a.follow-hash:focus-visible { color: var(--state-data) !important; text-decoration: underline; text-underline-offset: 3px; }

/* One status palette across the console. */
.health.ok { color: var(--state-good); }
.health.warn { color: var(--state-warn); }
.health.bad { color: var(--state-bad); }
.pnl.good,
.good { color: var(--state-good) !important; }
.pnl.bad,
.bad { color: var(--state-bad) !important; }
.live-bot-engine.bot1 header strong,
.bot-engine-lane.bot1 .bot-engine-identity strong { color: var(--state-bot1); }
.live-bot-engine.bot2 header strong,
.bot-engine-lane.bot2 .bot-engine-identity strong { color: var(--state-bot2); }

/* COLD mode remains alive but deliberately quiet. */
body[data-market-regime="cold"] .live-operations-console::before { opacity: .32; }
body[data-market-regime="cold"] .topbar-signal-field,
body[data-market-regime="cold"] .command-signal-field { opacity: .52; }
body[data-market-regime="cold"] .live-block-progress { box-shadow: 0 0 5px rgba(var(--live-cyan), .16); }

@media (max-width: 640px) {
  .section-gap { margin-top: 7px !important; }
  .live-bot-engine canvas { height: 62px; }
  .live-event-feed { min-height: 120px; max-height: 120px; }
  .live-event-item,
  .live-event-empty { min-height: 40px; height: 40px; }
  .panel-head,
  .monitor-leaderboard-panel > .panel-head { padding-top: 7px; padding-bottom: 7px; }
  .task-summary-row { min-height: 37px; }
  .bot-compare-panel table td:nth-child(n+2) { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .history-pnl-bar,
  .history-average-line,
  .table-wrap tbody tr,
  .task-summary-row { transition: none !important; }
}

/* SNPR Quant Console V7.6 - BOT workspace navigation ------------------- */
.bot-module-strip {
  --workspace-accent: 40, 114, 189;
  position: relative;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 0 !important;
  margin: 9px 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #bfd0da !important;
  border-radius: 6px;
  background: linear-gradient(180deg, #fbfdfe, #f2f7f9) !important;
  background-image: linear-gradient(180deg, #fbfdfe, #f2f7f9) !important;
  box-shadow: 0 8px 22px rgba(32, 62, 78, .075) !important;
}
.bot-module-strip.bot2 { --workspace-accent: 108, 97, 173; }
.bot-module-strip::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  display: block !important;
  width: 3px;
  background: rgb(var(--workspace-accent));
  opacity: .86;
}
.bot-module-head {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 13px 15px 13px 17px;
  border: 0;
  border-right: 1px solid #d1e0e6;
  background: linear-gradient(135deg, rgba(var(--workspace-accent), .09), rgba(255, 255, 255, .72)) !important;
}
.bot-module-head span {
  color: rgb(var(--workspace-accent));
  font: 800 10px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.bot-module-head strong {
  color: #18384a;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
}
.bot-module-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}
.bot-module-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 82px;
  padding: 10px 11px;
  border: 0;
  border-right: 1px solid #d7e4e9;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transition: background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.bot-module-item:last-child { border-right: 0; }
.bot-module-item::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: rgb(var(--workspace-accent));
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.bot-module-item:hover,
.bot-module-item:focus-visible {
  outline: 0;
  background: rgba(var(--workspace-accent), .055) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--workspace-accent), .08) !important;
}
.bot-module-item:hover::before,
.bot-module-item:focus-visible::before { opacity: .8; transform: scaleX(1); }
.bot-module-index {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--workspace-accent), .28);
  border-radius: 4px;
  color: rgb(var(--workspace-accent));
  background: rgba(255, 255, 255, .74);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.bot-module-copy { min-width: 0; }
.bot-module-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #718691;
  font: 760 10px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.bot-module-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #18384a;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}
.bot-module-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: #637b88;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .bot-module-strip { grid-template-columns: minmax(0, 1fr); }
  .bot-module-strip::before { inset: 0 0 auto; width: auto; height: 2px; }
  .bot-module-head {
    min-height: 54px;
    padding: 9px 13px;
    border-right: 0;
    border-bottom: 1px solid #d1e0e6;
  }
  .bot-module-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-module-item { min-height: 72px; border-right: 1px solid #d7e4e9; border-bottom: 1px solid #d7e4e9; }
  .bot-module-item:nth-child(2n) { border-right: 0; }
  .bot-module-item:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}

@media (max-width: 640px) {
  .bot-module-strip { margin: 7px 0 !important; }
  .bot-module-head { min-height: 50px; padding: 8px 11px; }
  .bot-module-head strong { font-size: 14px; }
  .bot-module-items { grid-template-columns: minmax(0, 1fr); }
  .bot-module-item,
  .bot-module-item:nth-child(2n),
  .bot-module-item:last-child {
    grid-column: auto;
    min-height: 61px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid #d7e4e9;
  }
  .bot-module-item:last-child { border-bottom: 0; }
  .bot-module-copy strong { margin-bottom: 2px; font-size: 13px; }
  .bot-module-copy em {
    display: block;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-module-item,
  .bot-module-item::before { transition: none !important; }
}

/* SNPR Quant Console V7.7 - unified BOT overview surfaces -------------- */
.bot-execution-flow,
.bot-module-strip,
.bot-overview-record-grid,
.bot-overview-record-panel {
  --bot-overview-accent: 40, 114, 189;
}
.bot-execution-flow.bot2,
.bot-module-strip.bot2,
.bot-overview-record-grid.bot2,
.bot-overview-record-panel.bot2 { --bot-overview-accent: 108, 97, 173; }

.bot-execution-flow {
  border: 1px solid #bfd0da;
  border-left: 3px solid rgb(var(--bot-overview-accent));
  background: linear-gradient(180deg, #fbfdfe, #f2f7f9);
  box-shadow: 0 8px 22px rgba(32, 62, 78, .075);
}
.bot-execution-flow::after { opacity: .055; }
.bot-flow-label {
  padding: 11px 13px;
  border-right-color: #d1e0e6;
  background: linear-gradient(135deg, rgba(var(--bot-overview-accent), .09), rgba(255, 255, 255, .72));
}
.bot-flow-label strong {
  color: #18384a;
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 780;
  line-height: 1.2;
}
.bot-flow-label span {
  color: rgb(var(--bot-overview-accent));
  font: 760 10px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bot-flow-stage { min-height: 67px; border-right-color: #d7e4e9; }
.bot-flow-stage > span { color: rgb(var(--bot-overview-accent)); }
.bot-flow-stage em,
.bot-flow-stage small {
  color: #718691;
  font-size: 10px;
}
.bot-flow-stage strong {
  color: #18384a;
  font-size: 13px;
  font-weight: 760;
}
.bot-flow-grid::before {
  background: linear-gradient(90deg, transparent, rgba(var(--bot-overview-accent), .10), rgba(var(--bot-overview-accent), .24), rgba(var(--bot-overview-accent), .10), transparent);
}

.bot-module-strip { --workspace-accent: var(--bot-overview-accent); }
.bot-module-head strong {
  color: #18384a;
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 780;
  line-height: 1.2;
}
.bot-module-head span { font-weight: 760; }

.bot-overview-record-grid { align-items: stretch; }
.bot-overview-record-panel {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #bfd0da !important;
  border-left: 3px solid rgb(var(--bot-overview-accent)) !important;
  background: linear-gradient(180deg, #fbfdfe, #f2f7f9) !important;
  background-image: linear-gradient(180deg, #fbfdfe, #f2f7f9) !important;
  box-shadow: 0 8px 22px rgba(32, 62, 78, .075) !important;
}
.bot-overview-record-panel::before { display: none !important; }
.bot-overview-record-panel:hover {
  border-color: #a9c1cd !important;
  border-left-color: rgb(var(--bot-overview-accent)) !important;
  box-shadow: 0 10px 26px rgba(32, 62, 78, .095) !important;
}
.bot-overview-record-panel > .panel-head {
  min-height: 45px;
  margin: 0;
  padding: 9px 11px 9px 12px;
  border-bottom: 1px solid #d1e0e6;
  background: linear-gradient(90deg, rgba(var(--bot-overview-accent), .075), rgba(255, 255, 255, .66)) !important;
}
.bot-overview-record-panel > .panel-head h2 {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #18384a;
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 780;
  line-height: 1.2;
}
.bot-overview-record-panel > .panel-head h2 > span { font: inherit; color: inherit; }
.bot-overview-record-panel > .panel-head h2 .icon {
  width: 14px;
  height: 14px;
  color: rgb(var(--bot-overview-accent));
}
.bot-overview-record-panel > .panel-head h2 small {
  color: rgb(var(--bot-overview-accent));
  font: 760 10px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: .78;
}
.bot-overview-record-panel > .panel-head > a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgb(var(--bot-overview-accent));
  font-size: 11px;
  font-weight: 700;
}
.bot-overview-record-panel > .panel-head > a .icon { width: 13px; height: 13px; }
.bot-overview-record-panel > .table-wrap {
  width: calc(100% - 20px);
  margin: 10px;
  border-color: #d2e1e7;
  background: rgba(255, 255, 255, .56) !important;
}
.bot-overview-record-panel > .table-wrap thead th {
  color: #516f7e;
  background: rgba(var(--bot-overview-accent), .055) !important;
  border-bottom-color: #cbdde4;
}
.bot-overview-record-panel > .table-wrap tbody td { color: #405866; }
.bot-overview-record-panel > .empty { padding: 22px 12px; color: #718691; }

@media (max-width: 900px) {
  .bot-flow-label { background: linear-gradient(90deg, rgba(var(--bot-overview-accent), .09), rgba(255, 255, 255, .72)); }
}

@media (max-width: 640px) {
  .bot-execution-flow { border-left-width: 2px; }
  .bot-flow-label { min-height: 42px; padding: 8px 10px; }
  .bot-flow-label strong { font-size: 14px; }
  .bot-flow-stage { min-height: 61px; }
  .bot-overview-record-grid { gap: 7px; }
  .bot-overview-record-panel { border-left-width: 2px !important; }
  .bot-overview-record-panel > .panel-head { min-height: 42px; padding: 8px 9px; }
  .bot-overview-record-panel > .panel-head h2 { font-size: 14px; }
  .bot-overview-record-panel > .panel-head h2 small { font-size: 10px; }
  .bot-overview-record-panel > .table-wrap { width: calc(100% - 16px); margin: 8px; }
}

/* SNPR Quant Console V7.8 - management workbench */
.management-workbench {
  --manage-accent: 40, 114, 189;
  --manage-accent-strong: #286fba;
  --manage-accent-soft: rgba(40, 114, 189, .075);
}
.management-workbench.bot2 {
  --manage-accent: 108, 97, 173;
  --manage-accent-strong: #6659a7;
  --manage-accent-soft: rgba(108, 97, 173, .075);
}
.management-workbench > .page-head {
  margin-bottom: 9px;
}
.management-workbench > .page-head h1 {
  color: #18384a;
}
.manage-subnav {
  display: grid !important;
  grid-template-columns: minmax(180px, .42fr) minmax(360px, 1fr);
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 62px;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #bfd0da !important;
  border-left: 3px solid rgb(var(--manage-accent)) !important;
  border-radius: 5px !important;
  background: linear-gradient(100deg, rgba(var(--manage-accent), .085), rgba(255, 255, 255, .78) 48%, #f3f8fa) !important;
  box-shadow: 0 8px 22px rgba(32, 62, 78, .07);
}
.manage-subnav-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid #cedde4;
}
.manage-subnav-identity span,
.config-section-nav-head span {
  color: rgb(var(--manage-accent));
  font: 760 10px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.manage-subnav-identity strong {
  color: #18384a;
  font-size: 15px;
  font-weight: 790;
}
.manage-subnav .manage-subnav-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.manage-subnav .manage-subnav-tabs a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 50px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #617985;
}
.manage-subnav .manage-subnav-tabs a:hover,
.manage-subnav .manage-subnav-tabs a.active {
  border-color: rgba(var(--manage-accent), .24);
  background: rgba(var(--manage-accent), .07);
  color: var(--manage-accent-strong);
}
.manage-subnav-icon {
  display: inline-flex;
  color: rgb(var(--manage-accent));
}
.manage-subnav-icon .icon {
  width: 17px;
  height: 17px;
}
.manage-subnav-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.manage-subnav-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 790;
}
.manage-subnav-copy small {
  color: #79909b;
  font-size: 10px;
  font-weight: 620;
}
.management-summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid #c3d3db;
  border-radius: 5px;
  background: linear-gradient(180deg, #fbfdfe, #f2f7f9);
}
.management-summary-band > div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  min-height: 68px;
  padding: 10px 13px;
  border-right: 1px solid #d3e0e6;
}
.management-summary-band > div:last-child {
  border-right: 0;
}
.management-summary-band span {
  grid-column: 1 / -1;
  color: #718792;
  font: 740 10px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.management-summary-band strong {
  color: rgb(var(--manage-accent));
  font: 820 23px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.management-summary-band small {
  color: #5f7784;
  font-size: 11px;
  font-weight: 680;
}
.config-toolbar {
  position: sticky;
  top: 6px;
  z-index: 20;
  display: grid !important;
  gap: 7px !important;
  margin-bottom: 9px !important;
  padding: 8px 9px !important;
  border: 1px solid #bfcfd8 !important;
  border-radius: 5px !important;
  background: rgba(248, 251, 252, .96) !important;
  box-shadow: 0 8px 20px rgba(32, 62, 78, .09) !important;
  backdrop-filter: blur(12px);
}
.config-toolbar-main,
.config-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.config-filter-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
}
.config-filter-btn,
.config-tool-btn,
.config-row-reset,
.config-reset-all {
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid #bfd0d9;
  border-radius: 4px;
  color: #5e7784;
  background: #f8fbfc;
  font-size: 11px;
  font-weight: 730;
  cursor: pointer;
}
.config-filter-btn:hover,
.config-filter-btn.active,
.config-tool-btn:hover,
.config-tool-btn.active {
  border-color: rgba(var(--manage-accent), .34);
  color: var(--manage-accent-strong);
  background: rgba(var(--manage-accent), .07);
}
.config-search-shell,
.competitor-search-shell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 285px;
  color: #6d838e;
  font-size: 10px;
  font-weight: 730;
}
.config-search,
.competitor-search-shell input {
  width: 100%;
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 4px !important;
  font-size: 12px;
}
.config-visible-status {
  margin-left: auto;
  color: #6d838e;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-workspace-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}
.config-section-nav-shell {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  overflow: hidden auto;
  border: 1px solid #c3d3db;
  border-radius: 5px;
  background: #f5f9fa;
}
.config-section-nav-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-bottom: 1px solid #d3e0e6;
  background: linear-gradient(90deg, rgba(var(--manage-accent), .08), rgba(255,255,255,.62));
}
.config-section-nav-head strong {
  color: #294958;
  font-size: 13px;
  font-weight: 780;
}
.config-section-nav {
  display: grid;
  gap: 2px;
  padding: 5px;
}
.config-section-select {
  display: none;
}
.config-section-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #5f7784;
  text-align: left;
  cursor: pointer;
}
.config-section-nav-item span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-section-nav-item b {
  min-width: 22px;
  color: #7a909a;
  font: 730 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
}
.config-section-nav-item:hover,
.config-section-nav-item.active {
  border-color: rgba(var(--manage-accent), .22);
  color: var(--manage-accent-strong);
  background: rgba(var(--manage-accent), .07);
}
.config-center-form {
  min-width: 0;
}
.config-center-grid {
  gap: 7px !important;
}
details.config-section {
  scroll-margin-top: 92px;
  margin: 0 !important;
  border: 1px solid #c3d3db !important;
  border-left: 3px solid rgba(var(--manage-accent), .72) !important;
  border-radius: 5px !important;
  background: #f8fbfc !important;
  box-shadow: 0 5px 14px rgba(32, 62, 78, .045);
}
details.config-section[open] {
  border-color: #b3c9d3 !important;
  box-shadow: 0 8px 20px rgba(32, 62, 78, .075);
}
.config-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px !important;
  min-height: 46px;
  padding: 8px 11px !important;
  border: 0 !important;
  background: linear-gradient(90deg, rgba(var(--manage-accent), .065), rgba(255,255,255,.7)) !important;
  cursor: pointer;
  list-style: none;
}
.config-section-head::-webkit-details-marker,
.config-version-audit > summary::-webkit-details-marker {
  display: none;
}
.config-section-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.config-section-title strong {
  color: #244653 !important;
  font-size: 13px !important;
  font-weight: 790;
}
.config-section-title small {
  color: #7a909a;
  font-size: 10px;
}
.config-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.config-section-meta b {
  color: rgb(var(--manage-accent));
  font: 760 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-section-meta i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #74909c;
  border-bottom: 2px solid #74909c;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
details.config-section[open] .config-section-meta i {
  transform: rotate(225deg);
}
details.config-section[open] > .config-section-head {
  border-bottom: 1px solid #d3e0e6 !important;
}
.config-table {
  min-width: 940px !important;
}
.config-table th,
.config-table td {
  padding: 8px 9px !important;
  font-size: 12px !important;
}
.config-table th {
  color: #607986 !important;
  background: #edf4f6 !important;
}
.config-table tbody tr {
  transition: background .15s ease, box-shadow .15s ease;
}
.config-table tbody tr:hover {
  background: rgba(var(--manage-accent), .035);
}
.config-table tbody tr.is-dirty {
  background: rgba(184, 116, 19, .065);
  box-shadow: inset 3px 0 #b87413;
}
.config-param-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.config-param-title strong {
  color: #294958;
  font-size: 12px;
}
.config-risk-badge {
  padding: 2px 5px;
  border: 1px solid rgba(184, 116, 19, .24);
  border-radius: 3px;
  color: #a5650d;
  background: rgba(184, 116, 19, .07);
  font-size: 10px;
  font-weight: 760;
}
.config-current {
  min-height: 26px !important;
  border-radius: 4px !important;
  color: #087a62 !important;
  background: rgba(8, 138, 102, .055) !important;
}
.config-edit-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px;
}
.config-edit-control-textarea {
  grid-template-columns: minmax(0, 1fr);
}
.config-row-reset {
  min-height: 30px;
  padding-inline: 7px;
  opacity: .58;
}
.config-row-reset:hover {
  border-color: rgba(var(--manage-accent), .35);
  color: var(--manage-accent-strong);
  opacity: 1;
}
.config-actions {
  position: sticky;
  bottom: 7px;
  z-index: 19;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px !important;
  margin-top: 8px;
  padding: 9px 10px !important;
  border: 1px solid #b9cbd4 !important;
  border-radius: 5px;
  background: rgba(248, 251, 252, .97) !important;
  box-shadow: 0 8px 24px rgba(32, 62, 78, .13);
  backdrop-filter: blur(12px);
}
.config-change-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.config-change-state > strong {
  color: #294958;
  font-size: 12px;
}
.config-change-state > span {
  font-size: 10px;
}
.config-diff-preview {
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.config-diff-preview span {
  max-width: 250px;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 3px;
  color: #8a5a17;
  background: rgba(184, 116, 19, .07);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-save-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.config-reset-all,
.config-submit {
  min-width: 92px !important;
}
.config-reset-all:disabled,
.config-submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.config-version-audit {
  overflow: hidden;
}
.config-version-audit > summary.panel-head {
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}
.config-version-audit[open] > summary.panel-head {
  border-bottom: 1px solid #d3e0e6;
}
.mixed-gate-card {
  padding: 9px !important;
}
.mixed-gate-panel {
  box-shadow: none !important;
}

.competitor-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #c3d3db;
  border-radius: 5px;
  background: #f7fafb;
}
.competitor-command-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.competitor-command-status strong {
  color: #355563;
  font-size: 11px;
}
.competitor-command-status .live-refresh-line {
  margin: 0;
  font-size: 10px;
}
.competitor-review-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.competitor-review-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 8px;
  min-height: 65px !important;
  padding: 9px 11px !important;
  overflow: hidden;
  border: 1px solid #c3d3db !important;
  border-radius: 5px !important;
  color: #607986;
  background: linear-gradient(180deg, #fbfdfe, #f3f8fa) !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}
.competitor-review-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: transparent;
}
.competitor-review-card:hover,
.competitor-review-card.active {
  border-color: rgba(var(--manage-accent), .40) !important;
  background: linear-gradient(180deg, #fff, rgba(var(--manage-accent), .06)) !important;
}
.competitor-review-card.active::after {
  background: rgb(var(--manage-accent));
}
.competitor-review-card span {
  margin: 0 !important;
  color: #526f7c;
  font-size: 11px !important;
  font-weight: 760;
}
.competitor-review-card strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: rgb(var(--manage-accent)) !important;
  font: 820 23px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.competitor-review-card small {
  color: #81949d;
  font-size: 10px;
}
.competitor-section {
  margin-top: 0 !important;
  border-left: 3px solid rgba(var(--manage-accent), .72) !important;
}
.competitor-section[hidden] {
  display: none !important;
}
.competitor-section > .panel-head {
  min-height: 44px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(var(--manage-accent), .065), rgba(255,255,255,.72)) !important;
}
.competitor-section > .panel-head h2 {
  color: #294958;
  font-size: 14px;
}
.competitor-manager-table table {
  min-width: 1110px !important;
  table-layout: fixed;
}
.competitor-manager-table th,
.competitor-manager-table td {
  padding: 9px 10px !important;
  font-size: 11px;
  vertical-align: middle;
}
.competitor-manager-table th:nth-child(1),
.competitor-manager-table td:nth-child(1) { width: 190px !important; }
.competitor-manager-table th:nth-child(2),
.competitor-manager-table td:nth-child(2) { width: 275px !important; }
.competitor-manager-table th:nth-child(3),
.competitor-manager-table td:nth-child(3) { width: 70px !important; text-align: center; }
.competitor-manager-table th:nth-child(4),
.competitor-manager-table td:nth-child(4) { width: 225px !important; }
.competitor-manager-table th:nth-child(5),
.competitor-manager-table td:nth-child(5) { width: 145px !important; }
.competitor-manager-table th:nth-child(6),
.competitor-manager-table td:nth-child(6) { width: 205px !important; }
.competitor-manager-table th:nth-child(7),
.competitor-manager-table td:nth-child(7) { width: 165px !important; }
.competitor-identity-cell {
  display: table-cell;
}
.competitor-identity-cell .health {
  margin-top: 5px;
}
.competitor-identity-cell .addr-popover-btn {
  color: var(--manage-accent-strong) !important;
  font: 760 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
.competitor-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.competitor-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.competitor-evidence-grid span,
.competitor-cost-grid span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 5px 6px;
  border-left: 2px solid rgba(var(--manage-accent), .24);
  background: rgba(var(--manage-accent), .035);
}
.competitor-evidence-grid em,
.competitor-cost-grid em {
  overflow: hidden;
  color: #81949d;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competitor-evidence-grid strong,
.competitor-cost-grid strong {
  overflow: hidden;
  color: #355563;
  font: 730 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competitor-score {
  min-width: 38px !important;
  border-radius: 4px !important;
  color: var(--manage-accent-strong) !important;
  background: rgba(var(--manage-accent), .075) !important;
}
.competitor-time-cell {
  color: #607986;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: normal;
}
.competitor-source-cell {
  color: #607986 !important;
  font-size: 10px !important;
}

@media (max-width: 1000px) {
  .config-workspace-layout {
    grid-template-columns: 1fr;
  }
  .config-section-nav-shell {
    position: sticky;
    top: 94px;
    z-index: 18;
    max-height: none;
    overflow: hidden;
  }
  .config-section-nav-head {
    display: none;
  }
  .config-section-select {
    display: block;
    width: calc(100% - 10px);
    min-height: 34px;
    margin: 5px;
    font-size: 12px;
  }
  .config-section-nav {
    display: none;
  }
  .config-section-nav-item {
    flex: 1 1 112px;
    min-width: 112px;
  }
}

@media (max-width: 720px) {
  .manage-subnav {
    grid-template-columns: 1fr !important;
  }
  .manage-subnav-identity {
    min-height: 44px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid #cedde4;
  }
  .manage-subnav .manage-subnav-tabs a {
    min-height: 45px;
    padding: 6px 8px;
  }
  .manage-subnav-copy small {
    display: none;
  }
  .management-summary-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .management-summary-band > div:nth-child(2) {
    border-right: 0;
  }
  .management-summary-band > div:nth-child(-n+2) {
    border-bottom: 1px solid #d3e0e6;
  }
  .config-toolbar {
    position: static;
  }
  .config-toolbar-main,
  .config-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .config-filter-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .config-search-shell,
  .competitor-search-shell {
    min-width: 0;
    width: 100%;
  }
  .config-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .config-visible-status {
    grid-column: 1 / -1;
    margin: 0;
    text-align: right;
  }
  .config-section-nav-shell {
    position: static;
  }
  details.config-section {
    scroll-margin-top: 50px;
  }
  .config-section-head {
    flex-direction: row !important;
    min-height: 48px;
  }
  .config-table {
    display: block;
    min-width: 0 !important;
  }
  .config-table thead {
    display: none;
  }
  .config-table tbody {
    display: grid;
  }
  .config-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 9px;
    border-bottom: 1px solid #d7e3e8;
  }
  .config-table tr:last-child {
    border-bottom: 0;
  }
  .config-table td {
    display: block;
    width: auto !important;
    padding: 6px !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .config-table td::before,
  .competitor-manager-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #82949d;
    font-size: 9px;
    font-weight: 720;
  }
  .config-table td:nth-child(1),
  .config-table td:nth-child(5) {
    grid-column: 1 / -1;
  }
  .config-table td:nth-child(4) {
    display: none;
  }
  .config-current,
  .config-input {
    width: 100%;
  }
  .mixed-gate-card {
    grid-template-columns: 1fr !important;
  }
  .config-actions {
    position: static;
    grid-template-columns: 1fr;
  }
  .config-save-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .config-reset-all,
  .config-submit {
    width: 100% !important;
  }
  .competitor-command-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .competitor-command-status {
    align-items: flex-start;
  }
  .competitor-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .competitor-section > .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .competitor-manager-table {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }
  .competitor-manager-table table,
  .competitor-manager-table tbody {
    display: grid;
    min-width: 0 !important;
    gap: 7px;
  }
  .competitor-manager-table thead {
    display: none;
  }
  .competitor-manager-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px;
    border: 1px solid #c7d7de;
    border-left: 3px solid rgba(var(--manage-accent), .55);
    border-radius: 4px;
    background: #f8fbfc;
  }
  .competitor-manager-table td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .competitor-manager-table td:nth-child(1),
  .competitor-manager-table td:nth-child(2),
  .competitor-manager-table td:nth-child(4),
  .competitor-manager-table td:nth-child(5),
  .competitor-manager-table td:nth-child(6),
  .competitor-manager-table td:nth-child(7) {
    grid-column: 1 / -1;
  }
  .competitor-evidence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .competitor-cost-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .competitor-identity-cell .health {
    margin: 4px 0 0;
  }
}

@media (max-width: 420px) {
  .management-summary-band > div {
    min-height: 61px;
    padding: 8px 9px;
  }
  .management-summary-band strong {
    font-size: 20px;
  }
  .config-section-title small {
    display: none;
  }
  .config-section-nav-item {
    min-width: 104px;
  }
  .competitor-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .competitor-review-card {
    min-height: 61px !important;
  }
}

/* SNPR Quant Console V8.0 - management studio rebuilt from first principles */
.management-workbench {
  --studio-accent: 35, 111, 181;
  --studio-ink: #173b4d;
  --studio-muted: #6c8490;
  --studio-line: #c5d6de;
  --studio-surface: #f7fafb;
}
.management-workbench.bot2 {
  --studio-accent: 100, 87, 168;
}
.manage-studio-frame {
  overflow: hidden;
  border: 1px solid #b9ccd5;
  border-top: 3px solid rgb(var(--studio-accent));
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(var(--studio-accent), .035) 1px, transparent 1px),
    linear-gradient(rgba(var(--studio-accent), .03) 1px, transparent 1px),
    #f5f9fa;
  background-size: 28px 28px;
  box-shadow: 0 10px 28px rgba(31, 65, 82, .09);
}
.manage-studio-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(290px, .72fr) minmax(400px, 1.05fr);
  align-items: stretch;
  min-height: 94px;
  border-bottom: 1px solid var(--studio-line);
  background: rgba(250, 252, 253, .9);
}
.manage-studio-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 17px;
  border-right: 1px solid #d0dee5;
}
.manage-studio-identity > span,
.config-domain-rail-head > span,
.config-editor-context > span,
.config-domain-head > div > span,
.config-publish-panel header > span,
.competitor-state-head > div > span,
.competitor-queue-head > span,
.competitor-dossier-head > div > span,
.competitor-dossier-title > span,
.competitor-dossier-actions > div > span {
  color: rgb(var(--studio-accent));
  font: 760 10px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.manage-studio-identity h2 {
  margin: 4px 0 3px;
  color: var(--studio-ink);
  font-size: 19px;
  font-weight: 810;
}
.manage-studio-identity p {
  margin: 0;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.45;
}
.manage-mode-switch {
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #d0dee5;
}
.manage-mode-switch .manage-subnav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}
.manage-mode-switch .manage-subnav-tabs a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #6b818d;
  background: transparent;
}
.manage-mode-switch .manage-subnav-tabs a:hover,
.manage-mode-switch .manage-subnav-tabs a.active {
  color: rgb(var(--studio-accent));
  border-color: rgba(var(--studio-accent), .3);
  background: linear-gradient(145deg, rgba(var(--studio-accent), .10), rgba(255,255,255,.72));
}
.manage-mode-switch .manage-subnav-icon .icon {
  width: 18px;
  height: 18px;
}
.manage-mode-switch .manage-subnav-copy {
  gap: 3px;
}
.manage-mode-switch .manage-subnav-copy small {
  color: #81939c;
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.manage-mode-switch .manage-subnav-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 780;
}
.manage-studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}
.manage-studio-stats > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #d7e3e8;
}
.manage-studio-stats > span:last-child {
  border-right: 0;
}
.manage-studio-stats small {
  color: #78909a;
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.manage-studio-stats strong {
  margin: 5px 0 2px;
  color: rgb(var(--studio-accent));
  font: 820 23px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.manage-studio-stats em {
  color: #5f7884;
  font-size: 10px;
  font-style: normal;
  font-weight: 680;
}
.config-studio-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--studio-line);
  background: rgba(238, 245, 248, .92);
}
.config-studio-search,
.competitor-search-shell {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #718994;
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-studio-search input,
.competitor-search-shell input {
  width: 100%;
  min-height: 35px;
  padding: 6px 10px;
  font-size: 12px;
}
.config-studio-toolbar .config-filter-buttons {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 4px !important;
}
.config-studio-toolbar .config-filter-btn,
.config-changed-toggle {
  min-height: 35px;
  padding: 6px 10px;
  border: 1px solid #bfd1d9;
  border-radius: 4px;
  color: #5d7682;
  background: #f8fbfc;
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
}
.config-studio-toolbar .config-filter-btn:hover,
.config-studio-toolbar .config-filter-btn.active,
.config-changed-toggle:hover,
.config-changed-toggle.active {
  color: rgb(var(--studio-accent));
  border-color: rgba(var(--studio-accent), .38);
  background: rgba(var(--studio-accent), .08);
}
.config-studio-layout {
  display: grid;
  grid-template-columns: 220px minmax(500px, 1fr) 282px;
  align-items: start;
  min-height: 620px;
}
.config-domain-rail {
  position: sticky;
  top: 6px;
  min-width: 0;
  max-height: calc(100vh - 20px);
  overflow: hidden;
  border-right: 1px solid var(--studio-line);
  background: rgba(240, 246, 248, .94);
}
.config-domain-rail-head {
  display: grid;
  gap: 3px;
  padding: 13px;
  border-bottom: 1px solid #d1dfe5;
}
.config-domain-rail-head strong {
  color: var(--studio-ink);
  font-size: 14px;
  font-weight: 790;
}
.config-domain-rail-head small {
  color: #78909a;
  font-size: 10px;
  line-height: 1.35;
}
.config-domain-select {
  display: none;
}
.config-domain-nav {
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 94px);
  overflow-y: auto;
  padding: 6px;
}
.config-domain-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #607985;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.config-domain-nav-item > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.config-domain-nav-item small {
  color: #8a9ba3;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-domain-nav-item strong {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-domain-nav-item b {
  color: #80939c;
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-domain-nav-item:hover,
.config-domain-nav-item.active {
  color: rgb(var(--studio-accent));
  border-color: rgba(var(--studio-accent), .24);
  background: rgba(var(--studio-accent), .075);
}
.config-domain-nav-item.is-filtered-out,
.config-property.is-filtered-out {
  display: none !important;
}
.config-editor-stage {
  min-width: 0;
  padding: 10px;
}
.config-editor-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 0 4px 8px;
}
.config-editor-context strong {
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 780;
}
.config-domain-section {
  overflow: hidden;
  border: 1px solid #bed0d8;
  border-radius: 4px;
  background: rgba(250, 252, 253, .94);
  box-shadow: 0 7px 20px rgba(31, 65, 82, .065);
}
.config-domain-section[hidden] {
  display: none !important;
}
.config-domain-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  border-bottom: 1px solid #cedde4;
  background: linear-gradient(100deg, rgba(var(--studio-accent), .08), rgba(255,255,255,.82));
}
.config-domain-head h2 {
  margin: 3px 0 2px;
  color: var(--studio-ink);
  font-size: 17px;
  font-weight: 810;
}
.config-domain-head p {
  margin: 0;
  color: #728893;
  font-size: 10px;
  line-height: 1.45;
}
.config-domain-facts {
  display: flex;
  align-items: stretch;
}
.config-domain-facts > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 70px;
  padding: 7px 10px;
  border-left: 1px solid #cddce3;
}
.config-domain-facts strong {
  color: rgb(var(--studio-accent));
  font: 800 18px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-domain-facts small {
  margin-top: 4px;
  color: #718994;
  font-size: 10px;
}
.config-property-list {
  display: grid;
}
.config-property {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(150px, .58fr) minmax(230px, .88fr);
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 11px 13px;
  border-bottom: 1px solid #d7e3e8;
  transition: background .15s ease, box-shadow .15s ease;
}
.config-property:last-child {
  border-bottom: 0;
}
.config-property:hover {
  background: rgba(var(--studio-accent), .028);
}
.config-property.is-dirty {
  background: rgba(186, 116, 18, .07);
  box-shadow: inset 3px 0 #b87413;
}
.config-property-copy {
  min-width: 0;
}
.config-param-title strong {
  color: #284a5a;
  font-size: 13px;
  font-weight: 780;
}
.config-property-copy > span {
  display: block;
  margin-top: 3px;
  color: rgb(var(--studio-accent));
  font-size: 10px;
  font-weight: 700;
}
.config-property-copy p {
  margin: 5px 0 0;
  color: #748a95;
  font-size: 10px;
  line-height: 1.45;
}
.config-property-current {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 7px 9px;
  border-left: 2px solid rgba(8, 138, 102, .28);
  background: rgba(8, 138, 102, .045);
}
.config-property-current > span,
.config-property-editor > label,
.config-property-label > span {
  color: #7b909a;
  font-size: 10px;
  font-weight: 700;
}
.config-property-current .config-current {
  display: block;
  max-width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  color: #087a62 !important;
  background: transparent !important;
  font: 770 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
}
.config-property-current small {
  color: #77909a;
  font-size: 10px;
}
.config-property-editor {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.config-property-editor .config-input {
  min-height: 34px;
  font-size: 12px;
}
.config-edit-control {
  grid-template-columns: minmax(0, 1fr) 48px !important;
}
.config-row-reset {
  min-width: 48px;
  min-height: 34px;
  padding: 5px 6px;
  font-size: 10px;
}
.config-address-property {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  min-height: 420px;
  padding: 0;
}
.config-address-current,
.config-address-editor {
  min-width: 0;
  padding: 13px;
}
.config-address-current {
  border-right: 1px solid #d5e2e7;
}
.config-property-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.config-property-label strong {
  color: rgb(var(--studio-accent));
  font-size: 11px;
}
.config-address-current .mixed-gate-chip-grid {
  max-height: 325px;
  padding: 0;
}
.config-address-editor .mixed-gate-textarea {
  min-height: 315px;
}
.config-address-editor .config-edit-control-textarea {
  grid-template-columns: minmax(0, 1fr) !important;
}
.config-address-editor p {
  margin: 8px 0 0;
  color: #748a95;
  font-size: 10px;
  line-height: 1.45;
}
.config-publish-panel {
  position: sticky;
  top: 6px;
  min-height: 620px;
  padding: 14px;
  border-left: 1px solid var(--studio-line);
  background: rgba(238, 245, 247, .94);
}
.config-publish-panel header {
  padding-bottom: 11px;
  border-bottom: 1px solid #ccdbe2;
}
.config-publish-panel h3 {
  margin: 4px 0;
  color: var(--studio-ink);
  font-size: 16px;
  font-weight: 800;
}
.config-publish-panel header p {
  margin: 0;
  color: #728994;
  font-size: 10px;
}
.config-publish-count {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(var(--studio-accent), .22);
  border-radius: 4px;
  background: rgba(var(--studio-accent), .06);
}
.config-publish-count strong {
  color: rgb(var(--studio-accent));
  font: 840 34px/.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-publish-count span {
  color: #728994;
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.config-change-state {
  gap: 5px;
}
.config-change-state strong {
  color: #355767;
  font-size: 12px;
}
.config-change-state small {
  color: #758b96;
  font-size: 10px;
  line-height: 1.45;
}
.config-diff-preview {
  display: grid !important;
  gap: 5px;
  max-height: 315px;
  margin: 12px 0;
  overflow: auto !important;
}
.config-diff-preview > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 7px;
  padding: 7px;
  border-left: 2px solid #b87413;
  background: rgba(184, 116, 19, .065);
}
.config-diff-preview > div strong {
  grid-column: 1 / -1;
  color: #4b6470;
  font-size: 10px;
}
.config-diff-preview > div span,
.config-diff-preview > div b {
  overflow: hidden;
  color: #7c622f;
  font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-diff-preview > div i {
  display: none;
}
.config-diff-preview > div b {
  color: #9c5e08;
}
.config-diff-preview > p {
  margin: 0;
  color: #7a909a;
  font-size: 10px;
  line-height: 1.45;
}
.config-publish-panel .config-save-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: auto;
}
.config-publish-panel .config-reset-all,
.config-publish-panel .config-submit {
  width: 100% !important;
  min-height: 36px;
}
.config-version-audit {
  margin-top: 10px !important;
}

.competitor-studio-frame .manage-studio-header {
  grid-template-columns: minmax(300px, 1fr) minmax(290px, .72fr) minmax(280px, .72fr);
}
.competitor-studio-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 12px 15px;
}
.competitor-studio-meta strong {
  color: var(--studio-ink);
  font-size: 12px;
}
.competitor-studio-meta .live-refresh-line {
  margin: 0;
  font-size: 10px;
  text-align: right;
}
.competitor-command-bar {
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--studio-line) !important;
  border-radius: 0 !important;
  background: rgba(238, 245, 248, .92) !important;
}
.competitor-search-shell {
  width: min(560px, 100%);
}
.competitor-review-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--studio-line);
  background: rgba(248, 251, 252, .94);
}
.competitor-review-card {
  min-height: 72px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-right: 1px solid #d4e1e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.competitor-review-card:last-child {
  border-right: 0 !important;
}
.competitor-review-card:hover,
.competitor-review-card.active {
  background: linear-gradient(180deg, rgba(var(--studio-accent), .075), rgba(255,255,255,.7)) !important;
}
.competitor-review-card::after {
  height: 3px !important;
}
.competitor-review-card span {
  color: #526f7c !important;
  font-size: 12px !important;
}
.competitor-review-card strong {
  color: rgb(var(--studio-accent)) !important;
  font-size: 26px !important;
}
.competitor-review-card small {
  color: #7b909a !important;
  font-size: 10px !important;
}
.competitor-state-workspace[hidden] {
  display: none !important;
}
.competitor-state-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--studio-line);
  background: linear-gradient(100deg, rgba(var(--studio-accent), .065), rgba(255,255,255,.76));
}
.competitor-state-head h2 {
  margin: 3px 0 1px;
  color: var(--studio-ink);
  font-size: 17px;
  font-weight: 810;
}
.competitor-state-head p {
  margin: 0;
  color: #728994;
  font-size: 10px;
}
.competitor-state-head > strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: rgb(var(--studio-accent));
  font: 830 25px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.competitor-state-head > strong small {
  color: #728994;
  font: 680 10px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.competitor-master-detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 590px;
}
.competitor-queue {
  min-width: 0;
  border-right: 1px solid var(--studio-line);
  background: rgba(239, 246, 248, .92);
}
.competitor-queue-head {
  display: grid;
  gap: 3px;
  min-height: 53px;
  padding: 10px 12px;
  border-bottom: 1px solid #d2e0e6;
}
.competitor-queue-head strong {
  color: var(--studio-ink);
  font-size: 13px;
}
.competitor-queue-list {
  display: grid;
  align-content: start;
  max-height: 590px;
  overflow-y: auto;
  padding: 5px;
}
.competitor-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #607985;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.competitor-queue-item:hover,
.competitor-queue-item.active {
  border-color: rgba(var(--studio-accent), .26);
  background: rgba(var(--studio-accent), .075);
}
.competitor-queue-item.is-hidden {
  display: none !important;
}
.competitor-queue-address {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.competitor-queue-address strong {
  overflow: hidden;
  color: rgb(var(--studio-accent));
  font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competitor-queue-address small {
  color: #738b96;
  font-size: 10px;
}
.competitor-queue-samples,
.competitor-queue-score {
  display: grid;
  gap: 3px;
  text-align: right;
}
.competitor-queue-samples small,
.competitor-queue-score small {
  color: #84969f;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.competitor-queue-samples strong,
.competitor-queue-score strong {
  color: #345665;
  font: 770 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.competitor-dossier-stage {
  min-width: 0;
  padding: 12px;
}
.competitor-dossier {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #bfd1d9;
  border-radius: 4px;
  background: rgba(251, 253, 254, .96);
  box-shadow: 0 8px 22px rgba(31, 65, 82, .065);
}
.competitor-dossier[hidden] {
  display: none !important;
}
.competitor-dossier-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 13px 15px;
  border-bottom: 1px solid #cedde4;
  background: linear-gradient(100deg, rgba(var(--studio-accent), .08), rgba(255,255,255,.82));
}
.competitor-dossier-head h2 {
  margin: 5px 0;
}
.competitor-dossier-head h2 .addr-popover-btn {
  color: var(--studio-ink) !important;
  font: 780 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
.competitor-dossier-head > div > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.competitor-dossier-head > div > div small {
  color: #718994;
  font-size: 10px;
}
.competitor-dossier-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgb(var(--studio-accent));
  font: 840 34px/.95 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.competitor-dossier-score small {
  margin-bottom: 5px;
  color: #718994;
  font: 690 10px/1.2 ui-sans-serif, system-ui, sans-serif;
}
.competitor-dossier-block {
  padding: 13px 15px;
  border-bottom: 1px solid #d6e2e7;
}
.competitor-dossier-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.competitor-dossier-title strong {
  color: #365766;
  font-size: 12px;
}
.competitor-dossier-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.competitor-dossier-metrics.cost {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.competitor-dossier-metrics > div {
  display: grid;
  min-height: 64px;
  padding: 9px;
  border-left: 2px solid rgba(var(--studio-accent), .32);
  background: rgba(var(--studio-accent), .045);
}
.competitor-dossier-metrics span {
  color: #778d97;
  font-size: 10px;
}
.competitor-dossier-metrics strong {
  align-self: end;
  overflow: hidden;
  color: #315463;
  font: 780 14px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
}
.competitor-dossier-source dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.competitor-dossier-source dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e0e9ed;
}
.competitor-dossier-source dl > div:last-child {
  border-bottom: 0;
}
.competitor-dossier-source dt {
  color: #778d97;
  font-size: 10px;
}
.competitor-dossier-source dd {
  margin: 0;
  color: #3e5c69;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}
.competitor-dossier-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 11px 15px;
  background: #f1f6f8;
}
.competitor-dossier-actions > div:first-child {
  display: grid;
  gap: 3px;
}
.competitor-dossier-actions > div:first-child strong {
  color: #365766;
  font-size: 12px;
}
.competitor-readonly-state {
  color: #718994;
  font-size: 11px;
  font-weight: 700;
}
.competitor-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  gap: 6px;
  color: #718994;
}
.competitor-empty-state strong {
  color: #365766;
  font-size: 15px;
}
.competitor-empty-state span {
  font-size: 11px;
}

@media (max-width: 1180px) {
  .manage-studio-header {
    grid-template-columns: minmax(260px, 1fr) 310px;
  }
  .manage-studio-stats {
    grid-column: 1 / -1;
    min-height: 72px;
    border-top: 1px solid #d0dee5;
  }
  .config-studio-layout {
    grid-template-columns: 205px minmax(460px, 1fr);
  }
  .config-publish-panel {
    position: static;
    grid-column: 1 / -1;
    min-height: 0;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 220px;
    gap: 12px;
    border-top: 1px solid var(--studio-line);
    border-left: 0;
  }
  .config-publish-panel header,
  .config-publish-count {
    margin: 0;
  }
  .config-publish-panel .config-diff-preview {
    max-height: 180px;
    margin: 0;
  }
  .config-publish-panel .config-change-state {
    display: none;
  }
  .competitor-studio-frame .manage-studio-header {
    grid-template-columns: minmax(300px, 1fr) 310px;
  }
  .competitor-studio-meta {
    grid-column: 1 / -1;
    align-items: flex-start;
    min-height: 58px;
    border-top: 1px solid #d0dee5;
  }
}

@media (max-width: 820px) {
  .manage-studio-header,
  .competitor-studio-frame .manage-studio-header {
    grid-template-columns: 1fr;
  }
  .manage-studio-identity {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid #d0dee5;
  }
  .manage-mode-switch {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid #d0dee5;
  }
  .manage-mode-switch .manage-subnav-tabs a {
    min-height: 48px;
  }
  .manage-studio-stats {
    grid-column: auto;
  }
  .config-studio-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .config-studio-toolbar .config-filter-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .config-studio-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .config-domain-rail {
    position: static;
    max-height: none;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }
  .config-domain-rail-head,
  .config-domain-nav {
    display: none;
  }
  .config-domain-select {
    display: block;
    width: 100%;
    min-height: 36px;
    font-size: 12px;
  }
  .config-editor-stage {
    padding: 8px;
  }
  .config-property {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
  }
  .config-property-editor {
    grid-column: 1 / -1;
  }
  .config-address-property {
    grid-template-columns: 1fr;
  }
  .config-address-current {
    border-right: 0;
    border-bottom: 1px solid #d5e2e7;
  }
  .config-publish-panel {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .config-publish-panel .config-change-state {
    display: grid;
  }
  .competitor-studio-meta {
    grid-column: auto;
  }
  .competitor-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .competitor-review-card:nth-child(2) {
    border-right: 0 !important;
  }
  .competitor-review-card:nth-child(-n+2) {
    border-bottom: 1px solid #d4e1e6 !important;
  }
  .competitor-master-detail {
    grid-template-columns: 1fr;
  }
  .competitor-queue {
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }
  .competitor-queue-list {
    max-height: 280px;
  }
  .competitor-dossier-stage {
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .manage-studio-identity {
    padding: 11px;
  }
  .manage-studio-identity h2 {
    font-size: 17px;
  }
  .manage-studio-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-studio-stats > span:nth-child(2) {
    border-right: 0;
  }
  .manage-studio-stats > span:nth-child(-n+2) {
    border-bottom: 1px solid #d7e3e8;
  }
  .config-studio-toolbar .config-filter-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .config-domain-head {
    grid-template-columns: 1fr;
  }
  .config-domain-facts {
    border-top: 1px solid #d5e2e7;
  }
  .config-domain-facts > span:first-child {
    border-left: 0;
  }
  .config-property {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .config-property-editor {
    grid-column: auto;
  }
  .config-address-property {
    min-height: 0;
  }
  .config-address-editor .mixed-gate-textarea {
    min-height: 250px;
  }
  .competitor-state-head {
    align-items: start;
  }
  .competitor-state-head p {
    max-width: 220px;
  }
  .competitor-queue-item {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }
  .competitor-dossier-head {
    grid-template-columns: 1fr;
  }
  .competitor-dossier-score {
    align-items: flex-start;
  }
  .competitor-dossier-metrics,
  .competitor-dossier-metrics.cost {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .competitor-dossier-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .competitor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .competitor-action-btn {
    width: 100%;
  }
}

/* V8.1 readability gate: no sub-10px labels or hidden filter rails. */
.strategy-workbench small,
.strategy-workbench .strategy-filter-buttons button,
.strategy-workbench .strategy-filter-buttons button span,
.strategy-workbench .strategy-filter-rail > strong,
.strategy-workbench .strategy-search span,
.strategy-workbench .strategy-queue-rank,
.strategy-workbench .strategy-queue-side i,
.strategy-workbench .strategy-dossier-section h3 {
  font-size: 10px;
}
.strategy-workbench .strategy-command-title > small,
.strategy-workbench .strategy-dossier-identity small {
  font-size: 10px;
}

@media (max-width: 820px) {
  .strategy-filter-buttons {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* SNPR Quant Console V9.0 - targeted structure and readability refinement */
.research-server-filter {
  position: sticky;
  top: 58px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 160px)) minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #b7ccd5;
  background: rgba(244, 249, 251, .97);
  box-shadow: 0 9px 22px rgba(31, 63, 79, .10);
  backdrop-filter: blur(12px);
}
.research-server-filter input,
.research-server-filter select { min-width: 0; min-height: 34px; }
.research-server-filter > span { color: #56717e; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
main.layout > section.research-candidate-workbench,
main.layout > section.research-simulation-panel {
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.research-master-detail {
  display: grid;
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  min-height: 540px;
}
.research-candidate-queue {
  min-width: 0;
  border-right: 1px solid #cadbe2;
  background: rgba(239, 246, 248, .86);
}
.research-candidate-queue > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid #cedde4;
}
.research-candidate-queue > header strong { color: #284b5b; font-size: 12px; }
.research-candidate-queue > header small { color: #738894; font-size: 10px; }
.research-candidate-list {
  display: grid;
  align-content: start;
  max-height: 620px;
  overflow-y: auto;
  padding: 5px;
  scrollbar-width: thin;
}
.research-candidate-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 72px 92px auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #526f7c;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.research-candidate-item:hover,
.research-candidate-item.active {
  border-color: rgba(8, 140, 164, .26);
  background: rgba(8, 140, 164, .075);
}
.research-candidate-item.active { box-shadow: inset 3px 0 #078ca4; }
.research-candidate-address,
.research-candidate-quality { display: grid; min-width: 0; gap: 3px; }
.research-candidate-address { overflow: hidden; color: #087f9b; font: 760 11px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.research-candidate-address small,
.research-candidate-quality small { overflow: hidden; color: #7b909a; font: 650 10px/1.15 ui-sans-serif, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.research-candidate-quality { text-align: right; }
.research-candidate-quality strong { color: #345767; font: 770 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.research-candidate-pnl { text-align: right; white-space: nowrap; }
.research-candidate-state { justify-self: end; }
.research-dossier { min-width: 0; background: rgba(250, 253, 254, .96); }
.research-dossier[hidden] { display: none !important; }
.research-dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border-bottom: 1px solid #cedde4;
  background: linear-gradient(100deg, rgba(8, 140, 164, .075), rgba(255,255,255,.8));
}
.research-dossier-head > div { display: grid; gap: 5px; }
.research-dossier-head > div > span { color: #6d63b8; font: 760 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.research-dossier-address { color: #173f51 !important; font: 790 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.research-dossier-head > strong { color: #087f9b; font-size: 12px; }
.research-dossier > section { padding: 12px 14px; border-bottom: 1px solid #d8e4e9; }
.research-dossier h3 { margin: 0 0 8px; color: #385968; font-size: 11px; }
.research-dossier dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.research-dossier dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid #e3ebee; }
.research-dossier dt { color: #7a8f99; font-size: 10px; }
.research-dossier dd { margin: 0; overflow-wrap: anywhere; color: #365766; font-size: 11px; }
.research-dossier-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.research-dossier-metrics > div { display: grid; min-height: 62px; padding: 8px; border-left: 2px solid rgba(8, 140, 164, .34); background: rgba(8, 140, 164, .045); }
.research-dossier-metrics span { color: #7a8f99; font-size: 10px; }
.research-dossier-metrics strong { align-self: end; color: #284e5f; font: 770 12px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.research-dossier > footer { display: grid; gap: 5px; padding: 12px 14px; background: #f1f6f8; }
.research-dossier > footer span { color: #7a8f99; font-size: 10px; }
.research-dossier > footer strong { color: #3a5c6a; font-size: 11px; line-height: 1.45; }
.research-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 45px; padding: 7px 10px; border-top: 1px solid #cfdee4; background: #f3f8fa; }
.research-pagination > span { margin-right: auto; color: #607b88; font-size: 10px; }
.research-pagination .disabled { opacity: .42; pointer-events: none; }
.research-simulation-panel .research-sim-table { max-height: none; }
.bot-overview-record-grid { align-items: start !important; }
.bot-overview-record-panel { min-height: 0 !important; }
.bot-overview-record-panel > .empty { min-height: 92px; display: grid; place-items: center; }
.config-mobile-publish-bar { display: none; }
.history-trend-svg { height: 188px; }
.history-trend-legend .cost-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  border-top: 2px dashed #b57a21;
}
.history-cost-line {
  fill: none;
  stroke: #b57a21;
  stroke-width: 1.35;
  stroke-dasharray: 4 4;
  opacity: .72;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.history-pnl-bar.current { stroke: #0b7f9a; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.panel:not(.bot-overview-record-panel) > .panel-head,
.monitor-leaderboard-panel > .panel-head {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.panel:not(.bot-overview-record-panel) > .panel-head h2,
.monitor-leaderboard-panel > .panel-head h2 {
  color: #173d4f;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
}
.panel:not(.bot-overview-record-panel) > .panel-head .muted { color: #6d838e; line-height: 1.35; }

@media (max-width: 1180px) {
  .research-server-filter { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .research-server-filter input { grid-column: 1 / -3; }
  .research-master-detail { grid-template-columns: 320px minmax(0, 1fr); }
  .research-dossier-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .research-server-filter { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-server-filter input { grid-column: 1 / -1; width: 100%; }
  .research-server-filter > span { align-self: center; }
  .research-master-detail { grid-template-columns: 1fr; min-height: 0; }
  .research-candidate-queue { border-right: 0; border-bottom: 1px solid #cadbe2; }
  .research-candidate-list { max-height: 360px; }
  .research-dossier-head { scroll-margin-top: 62px; }
  .research-dossier dl { grid-template-columns: 1fr; }
  .management-workbench[data-manage-page="config"] { padding-bottom: 58px; }
  .config-mobile-publish-bar {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 7px 8px 7px 12px;
    border: 1px solid #9ebdc9;
    border-radius: 4px;
    background: rgba(244, 250, 252, .97);
    box-shadow: 0 13px 32px rgba(25, 58, 74, .22);
    backdrop-filter: blur(14px);
  }
  .config-mobile-publish-bar span { color: #58727f; font-size: 11px; }
  .config-mobile-publish-bar strong { color: rgb(var(--studio-accent)); font: 820 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
  .config-mobile-publish-bar button { min-width: 112px; min-height: 32px; color: #fff; background: rgb(var(--studio-accent)); }
}

@media (max-width: 520px) {
  .research-candidate-item { grid-template-columns: minmax(0, 1fr) 66px auto; }
  .research-candidate-pnl { grid-column: 1 / 3; text-align: left; }
  .research-candidate-state { grid-row: 1; grid-column: 3; }
  .research-dossier-head { align-items: flex-start; flex-direction: column; }
  .research-dossier-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-pagination { flex-wrap: wrap; }
  .history-trend-svg { height: 176px; }
  .history-trend-legend { flex-wrap: wrap; gap: 7px 10px; }
}

/* source: snpr-v10.css */
/* SNPR Quant Console V10: maintainable interaction and responsive layer. */
:root {
  --type-micro: var(--snpr-type-micro);
  --type-label: var(--snpr-type-label);
  --type-body: var(--snpr-type-body);
  --motion-fast: var(--snpr-motion-fast);
  --motion-standard: var(--snpr-motion-standard);
  --state-good: var(--snpr-color-good);
  --state-warn: var(--snpr-color-warn);
  --state-bad: var(--snpr-color-bad);
}
.command-palette-hint {
  display: flex;
  gap: 14px;
  padding: 6px 11px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  background: #f8fbfc;
  font: 700 var(--type-micro) ui-monospace, SFMono-Regular, Menlo, monospace;
}
.command-palette-dialog .global-search-shell { grid-template-rows: auto auto auto minmax(90px, 1fr); }
.global-search-result[aria-selected="true"] { background: #eaf4f8; box-shadow: inset 2px 0 #168ca4; }
.global-search-result.command-result > span { color: #6c62b1; }

.mobile-workbench-switch { display: none; }
@media (max-width: 820px) {
  .mobile-workbench-switch {
    position: sticky;
    top: 48px;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 5px;
    border-bottom: 1px solid #c9dbe3;
    background: rgba(242, 248, 250, .96);
    backdrop-filter: blur(12px);
  }
  .mobile-workbench-switch button {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: var(--snpr-radius-control);
    color: #647d89;
    background: transparent;
    font-size: var(--type-label);
    font-weight: 760;
  }
  .mobile-workbench-switch button.active {
    border-color: #a9c7d2;
    color: #156d86;
    background: #fff;
  }
  [data-mobile-workbench][data-mobile-stage="queue"] > :is(.strategy-dossier-stage,.research-dossier,.competitor-dossier-stage) { display: none !important; }
  [data-mobile-workbench][data-mobile-stage="detail"] > :is(.strategy-queue,.research-candidate-queue,.competitor-queue) { display: none !important; }
}

.history-chart-controls { display: inline-flex; align-items: center; gap: 3px; }
.history-chart-controls button {
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid #c7d9e1;
  border-radius: 3px;
  color: #667f8a;
  background: #f8fbfc;
  font-size: var(--type-micro);
  cursor: pointer;
}
.history-chart-controls button[aria-pressed="true"] { color: #087f9b; border-color: #8fbecb; background: #eaf5f7; }
.history-trend-shell.hide-history-cost .history-cost-line,
.history-trend-shell.hide-history-average .history-average-line { display: none; }
.history-trend-shell.hide-history-net .history-pnl-bar { opacity: .08; pointer-events: none; }
.history-chart-crosshair { stroke: #5d7f8d; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; vector-effect: non-scaling-stroke; }
.history-chart-tooltip {
  position: absolute;
  z-index: 8;
  min-width: 158px;
  padding: 8px 9px;
  border: 1px solid #a9c4cf;
  border-radius: 4px;
  color: #345664;
  background: rgba(251, 254, 255, .97);
  box-shadow: 0 10px 28px rgba(30, 61, 76, .16);
  font-size: var(--type-micro);
  pointer-events: none;
}
.history-chart-tooltip strong { display: block; margin-bottom: 5px; color: #173e50; font-size: var(--type-label); }
.history-chart-tooltip span { display: flex; justify-content: space-between; gap: 12px; line-height: 1.6; }
.history-chart-tooltip b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.history-chart-plot { position: relative; }
.history-pnl-bar { pointer-events: all; cursor: crosshair; }

.live-value-delta { position: relative; animation: snpr-value-flash var(--snpr-motion-standard) ease; }
.live-value-delta::after {
  content: attr(data-live-delta);
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
  color: #13845d;
  font: 760 var(--type-micro) ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.live-value-delta.delta-down::after { color: #c54350; }
@keyframes snpr-value-flash { from { background: rgba(19,132,93,.14); } to { background: transparent; } }

.task-summary-row[data-alert-evidence],
.health-task-table tr[data-alert-evidence] { cursor: pointer; }
.task-summary-row[data-alert-evidence]:hover,
.health-task-table tr[data-alert-evidence]:hover { background: #eef7fa; }
.alert-evidence-actions { display: flex; justify-content: flex-end; padding-top: 10px; }
.alert-evidence-actions a { color: #087f9b; font-size: var(--type-label); font-weight: 760; }

.empty,
.surface-state {
  color: #708793;
  background: linear-gradient(135deg, rgba(240,247,249,.82), rgba(255,255,255,.7));
}
.empty[data-state-kind="error"], .surface-state.error { color: #a33d48; }
.empty[data-state-kind="waiting"], .surface-state.waiting { color: #8e6b27; }
[data-sync-state="syncing"] { position: relative; }
[data-sync-state="syncing"]::after {
  content: "同步中";
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 6;
  padding: 3px 6px;
  border: 1px solid #b9ced7;
  border-radius: 3px;
  color: #607985;
  background: rgba(250,253,254,.94);
  font-size: var(--type-micro);
}
[data-sync-state="stale"]::after { content: "数据延迟"; color: #946c20; border-color: #dcc799; }

@media (min-width: 1680px) {
  :root { --snpr-layout-max: 1720px; }
  .layout, .site-footer { max-width: var(--snpr-layout-max); }
  .dashboard-command-rail strong, .metric .value { font-size: calc(1em + 1px); }
  .strategy-master-detail, .research-master-detail, .competitor-master-detail { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (min-width: 2300px) {
  :root { --snpr-layout-max: 1960px; }
  .layout, .site-footer { max-width: var(--snpr-layout-max); }
}

@media (prefers-reduced-motion: reduce) {
  .live-value-delta { animation: none; }
}

/* source: snpr-v11.css */
/* SNPR Web V11: operational clarity, accessibility and fund ledger. */

:root {
  --v11-text: #183244;
  --v11-muted: #587180;
  --v11-soft: #78909d;
  --v11-line: rgba(42, 103, 126, 0.20);
  --v11-panel: rgba(249, 253, 255, 0.94);
  --v11-cyan: #087f9b;
  --v11-green: #087f68;
  --v11-red: #bd4454;
  --v11-violet: #6659a8;
}

.brand,
.panel-link {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.layout :is(.panel-head .muted, .page-head .muted, .fund-note, .strategy-command-title p,
  .research-command p, .manage-studio-identity p, .competitor-studio-meta, .live-refresh-line) {
  color: var(--v11-muted) !important;
  font-size: 11px !important;
  line-height: 1.45;
}

.layout :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid rgba(8, 127, 155, 0.72);
  outline-offset: 2px;
}

.panel,
.execution-pulse,
.capital-flow-band,
.manage-studio-frame {
  border-color: var(--v11-line);
}

.dashboard-shell > .panel,
.dashboard-shell > .execution-pulse {
  box-shadow: 0 7px 18px rgba(35, 72, 90, 0.055);
}

.dashboard-shell .panel-head {
  min-height: 42px;
  border-bottom-color: rgba(42, 103, 126, 0.14);
}

.dashboard-section-rail {
  display: none;
}

#dashboard-execution,
#dashboard-attention,
#dashboard-profit,
#dashboard-leaderboard,
#dashboard-network {
  scroll-margin-top: 110px;
}

.history-chart-plot {
  position: relative;
  border-color: rgba(42, 103, 126, 0.16);
  background: rgba(250, 254, 255, 0.82);
}

.history-zone.positive { fill: rgba(14, 150, 123, 0.045); }
.history-zone.negative { fill: rgba(194, 67, 83, 0.040); }
.history-volume-bar { fill: rgba(8, 127, 155, 0.17); }
.history-volume-bar.current { fill: rgba(8, 127, 155, 0.38); }

.history-y-axis {
  position: absolute;
  inset: 10px auto 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.history-y-axis span {
  padding: 1px 4px;
  color: #5e7786;
  background: rgba(249, 253, 255, 0.86);
  font: 600 10px/1.2 var(--font-mono);
}

.history-trend-stats {
  color: var(--v11-muted);
}

.panel.is-empty-compact {
  min-height: 0 !important;
}

.panel.is-empty-compact .empty {
  min-height: 50px !important;
  height: auto !important;
  padding: 16px 18px !important;
}

.latest-record-grid .panel.is-empty-compact {
  align-self: start;
}

.config-impact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.config-impact-summary span {
  padding: 8px;
  border: 1px solid rgba(102, 89, 168, 0.18);
  background: rgba(102, 89, 168, 0.035);
}

.config-impact-summary small,
.config-impact-summary strong {
  display: block;
}

.config-impact-summary small {
  color: var(--v11-muted);
  font-size: 10px;
}

.config-impact-summary strong {
  margin-top: 3px;
  color: var(--v11-violet);
  font: 700 14px/1 var(--font-mono);
}

.fund-ledger-panel .panel-head {
  align-items: end;
}

.fund-ledger-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--v11-line);
}

.fund-ledger-overview > span {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--v11-line);
}

.fund-ledger-overview > span:last-child { border-right: 0; }
.fund-ledger-overview small,
.fund-ledger-overview strong,
.fund-ledger-overview em { display: block; }
.fund-ledger-overview small { color: var(--v11-muted); font-size: 10px; }
.fund-ledger-overview strong { margin-top: 5px; color: var(--v11-text); font: 750 18px/1.1 var(--font-mono); }
.fund-ledger-overview em { margin-top: 3px; color: var(--v11-soft); font: 600 9px/1.2 var(--font-mono); text-transform: uppercase; }

.fund-ledger-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v11-line);
  background: rgba(238, 248, 251, 0.58);
}

.fund-ledger-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--v11-muted);
  border: 1px solid rgba(42, 103, 126, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 10px;
}

.fund-ledger-filters a strong {
  color: var(--v11-text);
  font: 700 10px/1 var(--font-mono);
}

.fund-ledger-filters a.active {
  color: #066c84;
  border-color: rgba(8, 127, 155, 0.42);
  background: rgba(8, 127, 155, 0.08);
}

.fund-ledger-list {
  padding: 0 14px 8px;
}

.fund-ledger-row {
  display: grid;
  grid-template-columns: 48px 210px 150px minmax(250px, 1fr) minmax(210px, 270px) 36px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(42, 103, 126, 0.14);
}

.fund-ledger-row:last-child { border-bottom: 0; }

.fund-ledger-sequence {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 3px;
  color: var(--v11-soft);
}

.fund-ledger-sequence span { font: 650 9px/1 var(--font-mono); }
.fund-ledger-sequence i { font: 750 18px/1 var(--font-mono); font-style: normal; }
.direction-in .fund-ledger-sequence i { color: var(--v11-green); }
.direction-out .fund-ledger-sequence i { color: var(--v11-cyan); }
.direction-internal .fund-ledger-sequence i { color: var(--v11-violet); }

.fund-ledger-identity,
.fund-ledger-amount,
.fund-ledger-proof { min-width: 0; }

.fund-ledger-identity > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fund-ledger-identity strong { color: var(--v11-text); font-size: 12px; }
.fund-ledger-identity small { display: block; margin-top: 6px; color: var(--v11-muted); font: 600 10px/1.25 var(--font-mono); }

.fund-ledger-amount strong {
  display: block;
  color: var(--v11-text);
  font: 760 13px/1.2 var(--font-mono);
  white-space: nowrap;
}

.fund-ledger-amount small { display: block; margin-top: 5px; color: var(--v11-muted); font-size: 10px; }

.fund-ledger-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fund-ledger-route > span { min-width: 0; }
.fund-ledger-route em { display: block; color: var(--v11-soft); font: 650 8px/1 var(--font-mono); }
.fund-ledger-route code { display: block; margin-top: 4px; overflow: hidden; color: #2f6175; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fund-ledger-route b { color: rgba(8, 127, 155, 0.62); text-align: center; }

.fund-ledger-proof span { color: var(--v11-soft); font: 650 8px/1 var(--font-mono); }
.fund-ledger-proof code { display: block; margin-top: 4px; overflow: hidden; color: #2f6175; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fund-ledger-proof small { display: block; margin-top: 5px; overflow: hidden; color: var(--v11-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.fund-ledger-detail {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--v11-cyan);
  border: 1px solid rgba(8, 127, 155, 0.24);
  border-radius: 4px;
  background: rgba(8, 127, 155, 0.05);
  font: 750 13px/1 var(--font-mono);
}

.fund-ledger-empty { margin: 12px 14px; }

.evidence-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.evidence-detail-grid .record-detail-item { min-width: 0; }
.evidence-detail-grid code { overflow-wrap: anywhere; }

@media (min-width: 1720px) {
  .layout { max-width: 1720px; }
  .fund-ledger-row { grid-template-columns: 52px 230px 170px minmax(340px, 1fr) 300px 38px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .fund-ledger-row {
    grid-template-columns: 42px minmax(150px, .85fr) 120px minmax(220px, 1.2fr) minmax(160px, .9fr) 36px;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .fund-ledger-row {
    grid-template-columns: 42px minmax(170px, 1fr) 130px 36px;
  }
  .fund-ledger-route { grid-column: 2 / 4; }
  .fund-ledger-proof { grid-column: 2 / 4; }
  .fund-ledger-detail { grid-column: 4; grid-row: 1 / 4; }
}

@media (max-width: 640px) {
  .dashboard-section-rail {
    position: sticky;
    top: 82px;
    z-index: 32;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    margin: 0 0 7px;
    padding: 4px;
    border: 1px solid rgba(42, 103, 126, 0.20);
    background: rgba(245, 251, 253, 0.96);
    box-shadow: 0 5px 12px rgba(33, 69, 85, 0.08);
  }

  .dashboard-section-rail a {
    min-width: 0;
    padding: 7px 2px;
    color: var(--v11-muted);
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
  }

  .dashboard-section-rail a.active {
    color: #056f88;
    background: rgba(8, 127, 155, 0.10);
  }

  .layout :is(.panel-head .muted, .page-head .muted, .fund-note, .strategy-command-title p,
    .research-command p, .manage-studio-identity p, .competitor-studio-meta, .live-refresh-line) {
    font-size: 10.5px !important;
  }

  .panel-head h2,
  .execution-pulse-head strong,
  .leaderboard-card-head h3 { font-size: 13px !important; }

  .bot-overview-record-panel > .panel-head h2 > span { font-size: 14px !important; }

  .history-trend-head { gap: 8px; }
  .history-trend-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .history-y-axis span { font-size: 10px; }

  .fund-ledger-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-ledger-overview > span:nth-child(2) { border-right: 0; }
  .fund-ledger-overview > span:nth-child(-n+2) { border-bottom: 1px solid var(--v11-line); }
  .fund-ledger-overview strong { font-size: 15px; }
  .fund-ledger-filters { gap: 5px; padding: 8px; }
  .fund-ledger-filters a { min-height: 32px; font-size: 10px; }
  .fund-ledger-list { padding: 0 8px 6px; }

  .fund-ledger-row {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    gap: 8px;
    min-height: 0;
    padding: 11px 2px;
  }

  .fund-ledger-sequence { grid-column: 1; grid-row: 1 / 4; align-self: start; padding-top: 4px; }
  .fund-ledger-identity { grid-column: 2; grid-row: 1; }
  .fund-ledger-amount { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; gap: 8px; }
  .fund-ledger-amount small { margin-top: 0; }
  .fund-ledger-route { grid-column: 2; grid-row: 3; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); }
  .fund-ledger-proof { grid-column: 2; grid-row: 4; }
  .fund-ledger-detail { grid-column: 3; grid-row: 1 / 3; }
  .fund-ledger-proof small { white-space: normal; }
  .evidence-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section-rail,
  .fund-ledger-row { scroll-behavior: auto; transition: none !important; }
}

/* source: snpr-v12.css */
/* SNPR Web V12: task flow, render containment and operational evidence. */

.session-role {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto;
  min-width: 32px;
  max-width: 132px;
  min-height: 32px;
  gap: 5px;
  padding: 0 6px;
  color: #426171;
  border: 0;
  border-radius: 4px;
  background: transparent;
  justify-self: center;
}
.session-role .icon { flex: 0 0 auto; width: 15px; height: 15px; }
.session-role.role-admin { color: #6556a7; }
.session-role.role-operator { color: #087f68; }
.session-role.role-viewer { color: #527180; }
.session-user-name {
  min-width: 0;
  max-width: 92px;
  overflow: hidden;
  color: #4d6674;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-role-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.task-section-rail {
  display: flex;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 4px;
  border: 1px solid rgba(42, 103, 126, .18);
  background: rgba(245, 251, 253, .82);
}
.task-section-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #587180;
  text-decoration: none;
  font-size: 10px;
  font-weight: 680;
}
.task-section-rail a.active { color: #066f89; background: rgba(8, 127, 155, .09); }
.task-section-anchor { scroll-margin-top: 112px; }

.operational-empty {
  display: grid;
  grid-template-columns: 12px minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px !important;
  padding: 16px 18px !important;
  text-align: left !important;
}
.operational-empty-pulse { width: 7px; height: 7px; border-radius: 50%; background: #0b9a84; box-shadow: 0 0 0 4px rgba(11, 154, 132, .10); }
.operational-empty strong { color: #183244; font-size: 12px; }
.operational-empty > div { display: flex; justify-content: flex-end; gap: 14px; color: #6b8290; font-size: 10px; }

.research-comparison-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  border: 1px solid rgba(42, 103, 126, .16);
  background: rgba(42, 103, 126, .12);
}
.research-comparison-strip > span { padding: 8px 10px; background: rgba(250, 253, 255, .94); }
.research-comparison-strip small, .research-comparison-strip strong { display: block; }
.research-comparison-strip small { color: #718794; font-size: 10px; }
.research-comparison-strip strong { margin-top: 3px; color: #087f9b; font: 720 13px/1 var(--font-mono); }

.competitor-recent-share { color: #087f9b !important; }

.deferred-fragment-placeholder {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  color: #718794;
  border: 1px dashed rgba(42, 103, 126, .18);
  background: rgba(245, 251, 253, .62);
  font-size: 10px;
}
.deferred-fragment.is-hydrated > .deferred-fragment-placeholder { display: none; }

.funds-lazy-section,
.research-lazy-section,
.health-lazy-section,
.health-detail-disclosure,
.health-tab-panel,
.config-domain-section,
.config-section,
.config-version-audit {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

body[data-session-role="viewer"] :is(.config-submit,.config-row-reset,.config-reset-all,.config-rollback-btn,.competitor-actions button),
body[data-session-role="operator"] :is(.config-submit,.config-row-reset,.config-reset-all,.config-rollback-btn) {
  cursor: not-allowed !important;
  opacity: .42 !important;
}

@media (max-width: 640px) {
  .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .session-role { width: 100%; min-width: 0; max-width: 100%; min-height: 36px; gap: 3px; padding: 0 2px; }
  .session-user-name { max-width: calc(100% - 18px); font-size: 10px; }
  .history-trend-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-trend-stats > span:last-child { grid-column: 1 / -1; min-width: 0; white-space: normal; }
  .history-trend-stats > span:last-child b { white-space: nowrap; }
  .task-section-rail {
    position: sticky;
    top: 82px;
    z-index: 31;
    display: grid;
    grid-template-columns: repeat(var(--task-section-count, 4), minmax(0, 1fr));
    padding: 4px;
    background: rgba(245, 251, 253, .97);
    box-shadow: 0 5px 12px rgba(33, 69, 85, .08);
  }
  .task-section-rail a { min-width: 0; padding: 6px 2px; }
  .operational-empty { grid-template-columns: 12px 1fr; }
  .operational-empty > div { grid-column: 2; display: grid; justify-content: start; gap: 3px; }
  .research-comparison-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 350px) {
  .nav a > span { display: none; }
  .session-role .icon { width: 12px; height: 12px; }
  .session-user-name { max-width: calc(100% - 15px); font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .task-section-rail { scroll-behavior: auto; }
}
