:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(16, 24, 38, 0.82);
  --panel-strong: rgba(20, 31, 50, 0.96);
  --line: rgba(120, 156, 210, 0.22);
  --line-strong: rgba(117, 220, 255, 0.42);
  --text: #eaf3ff;
  --muted: #8493a8;
  --soft: #b9c8db;
  --cyan: #4fd7ff;
  --green: #42f0a1;
  --amber: #ffce5c;
  --red: #ff667d;
  --blue: #7da7ff;
  --violet: #b18cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --glow-cyan: 0 0 28px rgba(79, 215, 255, 0.18);
  --glow-green: 0 0 28px rgba(66, 240, 161, 0.16);
  --glow-amber: 0 0 28px rgba(255, 206, 92, 0.18);
  --glow-red: 0 0 30px rgba(255, 102, 125, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, #05080d 0%, #0a1019 44%, #06070b 100%);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  position: relative;
}

body.auth-page {
  display: grid;
  place-items: center;
}

button,
select,
input {
  font: inherit;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background:
    linear-gradient(rgba(79, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 215, 255, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  background-size: 48px 48px, 48px 48px, 100% 8px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  animation: gridDrift 18s linear infinite;
}

.ambient-layer::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(79, 215, 255, 0.08) 48%, transparent 54%);
  transform: translateY(-45%);
  animation: scanSweep 9s ease-in-out infinite;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.agent-debate-nav {
  border-color: rgba(79, 215, 255, 0.34);
  background: linear-gradient(135deg, rgba(79, 215, 255, 0.14), rgba(255, 206, 92, 0.1));
}

.agent-debate-nav span:last-child::after {
  content: "NEW";
  margin-left: 7px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 206, 92, 0.12);
  font-size: 9px;
  font-weight: 900;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(79, 215, 255, 0.18), rgba(66, 240, 161, 0.12));
  color: var(--cyan);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 32px rgba(79, 215, 255, 0.18);
  animation: markGlow 5s ease-in-out infinite;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
}

.brand-subtitle,
.mini-label,
.path-line,
.metric-label,
.metric-meta,
.panel-head span,
.muted {
  color: var(--muted);
}

.brand-subtitle {
  font-size: 11px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  color: rgba(207, 220, 245, 0.72);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 13px;
}

.nav-group-summary::-webkit-details-marker {
  display: none;
}

.nav-group[open] .nav-group-summary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(79, 215, 255, 0.06);
}

.nav-group-items {
  display: grid;
  gap: 6px;
  padding-left: 8px;
}

.nav-group-items .nav-item {
  min-height: 38px;
}

.nav-item,
.icon-button {
  border: 1px solid transparent;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  position: relative;
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background: rgba(79, 215, 255, 0.08);
  color: var(--text);
}

.nav-item.primary-nav {
  color: var(--text);
  background: rgba(117, 220, 255, 0.035);
  border-color: rgba(117, 220, 255, 0.12);
  font-weight: 800;
}

.nav-item:not(.primary-nav):not(.active) {
  color: rgba(207, 220, 245, 0.68);
}

.nav-item.active::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-command {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: rgba(79, 215, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.sidebar-command:hover {
  background: rgba(79, 215, 255, 0.18);
}

.sidebar-command:disabled {
  cursor: wait;
  opacity: 0.62;
}

.sidebar-command svg {
  width: 16px;
  height: 16px;
}

.sidebar-local-fold {
  margin-top: 10px;
}

.sidebar-local-fold summary {
  cursor: pointer;
  list-style: none;
}

.sidebar-local-fold summary::-webkit-details-marker {
  display: none;
}

.sidebar-local-fold .path-line {
  margin-top: 6px;
}

.mini-label {
  font-size: 11px;
  margin-bottom: 6px;
}

.path-line {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.main {
  padding: 26px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.auth-shell {
  width: min(420px, calc(100vw - 32px));
  position: relative;
  z-index: 1;
}

.auth-panel {
  padding: 28px;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.auth-form .input,
.auth-button {
  width: 100%;
  height: 40px;
}

.auth-state {
  min-height: 20px;
  color: var(--amber);
  font-size: 13px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  font-weight: 750;
}

h2 {
  font-size: 15px;
  font-weight: 700;
}

#subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-status-fold {
  position: relative;
}

.top-status-fold summary {
  cursor: pointer;
  list-style: none;
}

.top-status-fold summary::-webkit-details-marker {
  display: none;
}

.top-status-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 15;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.96);
  box-shadow: var(--shadow);
}

.top-status-panel .refresh-pill,
.top-status-panel .sync-pill {
  width: 100%;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
  transform: translateY(-1px);
}

.sync-pill,
.refresh-pill,
.count-badge,
.tag {
  border: 1px solid var(--line);
  background: rgba(79, 215, 255, 0.08);
  color: var(--cyan);
}

.quote-basis-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 170, 66, 0.35);
  background: rgba(245, 170, 66, 0.12);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: middle;
}

.quote-basis-badge.live {
  border-color: rgba(47, 213, 139, 0.35);
  background: rgba(47, 213, 139, 0.12);
  color: var(--green);
}

.quote-basis-badge.manual {
  border-color: rgba(255, 93, 122, 0.35);
  background: rgba(255, 93, 122, 0.11);
  color: var(--red);
}

.sync-pill,
.refresh-pill {
  padding: 10px 12px;
  font-size: 12px;
  text-align: center;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.sync-pill {
  min-width: 78px;
}

.refresh-pill {
  min-width: 112px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.sync-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
}

.sync-pill.is-syncing::after {
  animation: syncSweep 1.2s ease-in-out infinite;
}

.sync-pill.is-live {
  color: var(--green);
  border-color: rgba(66, 240, 161, 0.32);
  background: rgba(66, 240, 161, 0.08);
  box-shadow: var(--glow-green);
}

.sync-pill.is-error {
  color: var(--red);
  border-color: rgba(255, 102, 125, 0.38);
  background: rgba(255, 102, 125, 0.08);
  box-shadow: var(--glow-red);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.operation-brief {
  min-height: 126px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 24, 38, 0.92), rgba(10, 16, 26, 0.86));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.operation-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(117, 220, 255, 0.42);
  background: linear-gradient(90deg, transparent, rgba(79, 215, 255, 0.09), transparent);
  transform: translateX(-80%);
  animation: panelSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.operation-brief.severity-high {
  border-color: rgba(255, 102, 125, 0.68);
  box-shadow: var(--shadow), var(--glow-red);
  animation: alertPulse 1.8s ease-in-out infinite;
}

.operation-brief.severity-medium {
  border-color: rgba(255, 206, 92, 0.58);
  box-shadow: var(--shadow), var(--glow-amber);
}

.operation-brief.severity-low {
  border-color: rgba(79, 215, 255, 0.42);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.operation-main,
.operation-side {
  position: relative;
  z-index: 1;
}

.operation-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.operation-title {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.operation-priority {
  margin-top: 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

.overview-account-strip {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.9fr;
  gap: 10px;
  margin-bottom: 12px;
}

.overview-account-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.overview-account-strip > div.green {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.04);
}

.overview-account-strip > div.amber {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.05);
}

.overview-account-strip > div.red {
  border-color: rgba(255, 102, 125, 0.28);
  background: rgba(255, 102, 125, 0.05);
}

.overview-account-strip span,
.overview-account-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.overview-account-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.overview-metrics-fold {
  margin-bottom: 12px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.overview-metrics-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.overview-metrics-fold summary::-webkit-details-marker {
  display: none;
}

.overview-metrics-fold .metric-grid {
  margin: 0;
  padding: 0 12px 12px;
}

.goal-progress {
  margin-top: 14px;
  max-width: 760px;
  padding: 12px;
  border: 1px solid rgba(117, 220, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.36);
}

.goal-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 12px;
}

.goal-progress-top strong {
  color: var(--green);
  font-size: 16px;
}

.goal-progress-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.goal-score-card {
  min-width: 0;
  min-height: 88px;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.goal-score-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.055);
}

.goal-score-card.amber {
  border-color: rgba(255, 206, 92, 0.26);
  background: rgba(255, 206, 92, 0.06);
}

.goal-score-card.red {
  border-color: rgba(255, 102, 125, 0.28);
  background: rgba(255, 102, 125, 0.055);
}

.goal-score-card span,
.goal-score-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.goal-score-card strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.goal-progress-bar {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(120, 156, 210, 0.18);
}

.goal-progress-bar i {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
  box-shadow: var(--glow-green);
}

.goal-progress-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.goal-progress-action {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(120, 156, 210, 0.16);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.goal-progress-action strong,
.goal-progress-action small,
.goal-progress-action em {
  display: block;
}

.goal-progress-action strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 950;
}

.goal-progress-action small,
.goal-progress-action em {
  margin-top: 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.goal-progress-action small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.goal-progress-action em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.goal-progress-action .broker-command-meta {
  color: var(--accent);
  font-weight: 800;
}

.goal-progress-action .broker-command-detail {
  padding: 8px 10px;
  border-left: 3px solid rgba(248, 113, 113, 0.55);
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.07);
  color: var(--soft);
}

.goal-progress-plan {
  margin-top: 9px;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 206, 92, 0.22);
  border-radius: 8px;
  background: rgba(255, 206, 92, 0.06);
}

.goal-progress-plan span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 206, 92, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.goal-progress-plan strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.goal-progress-plan small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.goal-progress-first {
  margin-top: 9px;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.goal-progress-first span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.goal-progress-first strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.goal-progress-first small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.attack-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.attack-strategy-grid > div {
  padding: 8px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.22);
}

.attack-strategy-grid span {
  display: block;
  width: auto;
  padding: 0;
  margin-bottom: 4px;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.attack-strategy-grid strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
}

.attack-steps {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.attack-steps > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.18);
}

.attack-steps span {
  width: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(79, 215, 255, 0.08);
  font-size: 11px;
  text-align: center;
}

.attack-steps strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
}

.intraday-checks {
  display: grid;
  gap: 6px;
  margin-top: 5px;
  padding: 9px;
  border: 1px solid rgba(79, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.045);
}

.intraday-checks > span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(79, 215, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.intraday-checks > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
}

.intraday-checks strong {
  color: var(--text);
  font-size: 12px;
}

.intraday-checks small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.evidence-refresh-button {
  justify-self: start;
  margin-top: 2px;
  color: var(--cyan);
  border-color: rgba(79, 215, 255, 0.32);
  background: rgba(79, 215, 255, 0.08);
}

.goal-progress-first.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.055);
}

.goal-progress-first.green span {
  color: var(--green);
  background: rgba(66, 240, 161, 0.1);
}

.goal-progress-first.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.06);
}

.goal-progress-first.amber span {
  color: var(--amber);
  background: rgba(255, 206, 92, 0.1);
}

.goal-progress-first.red {
  border-color: rgba(255, 102, 125, 0.26);
  background: rgba(255, 102, 125, 0.045);
}

.goal-progress-first.red span {
  color: var(--red);
  background: rgba(255, 102, 125, 0.09);
}

.operation-checklist {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operation-check-item {
  min-width: 0;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid rgba(120, 156, 210, 0.2);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.3);
}

.operation-check-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.operation-check-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.operation-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
}

.operation-chip {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.operation-chip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 215, 255, 0.72), rgba(255, 206, 92, 0.62));
  opacity: 0.72;
}

.operation-chip.mission-chip {
  border-color: rgba(79, 215, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(79, 215, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.028);
}

.operation-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.operation-chip strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.metric {
  min-height: 132px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  animation: panelEnter 360ms ease both;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 215, 255, 0.42), transparent);
}

.metric.primary {
  border-color: rgba(79, 215, 255, 0.42);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.metric.alert {
  border-color: rgba(255, 206, 92, 0.36);
}

.metric.severity-high {
  border-color: rgba(255, 102, 125, 0.64);
  box-shadow: var(--shadow), var(--glow-red);
  animation: panelEnter 360ms ease both, alertPulse 1.9s ease-in-out infinite;
}

.metric.severity-medium {
  border-color: rgba(255, 206, 92, 0.54);
  box-shadow: var(--shadow), var(--glow-amber);
}

.metric.severity-low {
  border-color: rgba(66, 240, 161, 0.34);
}

.metric-label {
  font-size: 12px;
}

.metric-value {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.metric-meta {
  margin-top: 12px;
  font-size: 12px;
}

.layout-two,
.layout-three {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.layout-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.layout-three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.overview-market-fold {
  margin-top: 14px;
}

.overview-chart-fold {
  min-width: 0;
}

.overview-chart-summary {
  cursor: pointer;
  list-style: none;
}

.overview-chart-summary::-webkit-details-marker {
  display: none;
}

.overview-chart-fold > canvas {
  margin-top: 12px;
}

.overview-market-summary {
  cursor: pointer;
  list-style: none;
}

.overview-market-summary::-webkit-details-marker {
  display: none;
}

.overview-market-summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview-market-fold[open] .overview-market-summary::after {
  content: "收起";
}

.overview-market-grid {
  margin-top: 12px;
}

.overview-market-grid .panel {
  background: rgba(255, 255, 255, 0.026);
}

.panel {
  padding: 16px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  animation: panelEnter 380ms ease both;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(117, 220, 255, 0.42);
  background: linear-gradient(90deg, transparent, rgba(79, 215, 255, 0.08), transparent);
  transform: translateX(-80%);
  opacity: 0.7;
  pointer-events: none;
  animation: panelSweep 7s ease-in-out infinite;
}

.panel.compact {
  min-height: 270px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quant-detail-zone {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.quant-detail-head {
  margin-bottom: 0;
  padding: 0 2px;
  cursor: pointer;
  list-style: none;
}

.quant-detail-head::-webkit-details-marker {
  display: none;
}

.quant-detail-zone:not([open]) {
  gap: 0;
}

.quant-fold {
  padding: 0;
}

.quant-fold-summary {
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.quant-fold-summary::-webkit-details-marker {
  display: none;
}

.quant-fold-summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border: 1px solid rgba(79, 215, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(79, 215, 255, 0.06);
  font-weight: 700;
}

.quant-fold[open] .quant-fold-summary {
  border-bottom: 1px solid rgba(120, 156, 210, 0.16);
}

.quant-fold[open] .quant-fold-summary::after {
  content: "-";
}

.quant-fold > :not(summary) {
  margin: 14px 16px 16px;
}

.quant-inline-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.quant-inline-detail summary {
  cursor: pointer;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quant-inline-detail > :not(summary) {
  margin: 0 10px 10px;
}

.simple-action-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.signal-forward-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.live-readiness-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.market-regime-cards,
.risk-unlock-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portfolio-stress-cards {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.guardrail-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.discipline-cards,
.post-trade-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.roadmap-cards,
.repair-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.daily-plan-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.daily-plan-status,
.daily-plan-diagnostics {
  margin-top: 12px;
}

.daily-plan-status > .decision-sub,
.daily-plan-diagnostics > .decision-sub,
.daily-plan-diagnostics > .simple-action-list,
.daily-plan-diagnostics > .module-focus-card {
  margin-bottom: 10px;
}

.intraday-cards,
.opening-recheck-cards,
.live-precheck-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.simple-action-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.simple-action-card.green {
  border-color: rgba(66, 240, 161, 0.3);
  background: rgba(66, 240, 161, 0.055);
}

.simple-action-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.simple-action-card.red {
  border-color: rgba(255, 102, 125, 0.28);
  background: rgba(255, 102, 125, 0.055);
}

.simple-action-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.simple-action-card strong {
  color: var(--text);
  font-size: 14px;
}

.simple-action-card p,
.simple-action-card small {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.simple-action-card small {
  color: var(--muted);
}

.factor-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.factor-source-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.factor-source-github {
  border-color: rgba(255, 206, 92, 0.34);
  background: rgba(255, 206, 92, 0.055);
}

.factor-source-local {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.045);
}

.factor-source-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.factor-source-stats,
.factor-source-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.factor-source-stats span,
.factor-source-top span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--soft);
  background: rgba(5, 9, 16, 0.36);
  font-size: 12px;
}

.command-center-panel {
  margin-top: 16px;
}

.agent-source-panel {
  margin-top: 12px;
}

.action-brief-panel {
  margin-top: 16px;
  border-color: rgba(79, 215, 255, 0.28);
}

.broker-desk-panel {
  margin-top: 16px;
}

.action-brief-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.action-brief-title {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.action-brief-reason {
  margin-top: 8px;
  color: var(--soft);
  line-height: 1.55;
  max-width: 68ch;
}

.action-brief-immediate {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  background: rgba(79, 215, 255, 0.06);
  color: var(--text);
  line-height: 1.5;
}

.action-brief-immediate strong {
  color: var(--cyan);
}

.action-brief-primary {
  border: 1px solid rgba(79, 215, 255, 0.26);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.06);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.action-brief-primary strong {
  color: var(--cyan);
  line-height: 1.5;
  max-width: 24ch;
}

.action-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.action-flow-step {
  min-width: 0;
  border: 1px solid rgba(79, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.34);
  padding: 10px 12px 10px 42px;
  position: relative;
}

.action-flow-step span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(79, 215, 255, 0.34);
  font-size: 12px;
  font-weight: 700;
}

.action-flow-step strong {
  display: block;
  color: var(--text);
}

.action-flow-step em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
  font-size: 12px;
}

.action-done {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 240, 161, 0.22);
  border-radius: 8px;
  background: rgba(66, 240, 161, 0.055);
}

.action-done strong {
  color: var(--green);
  margin-right: 2px;
}

.action-done span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 8px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 999px;
  background: rgba(5, 9, 16, 0.34);
}

.action-brief-orders {
  margin-bottom: 12px;
}

.action-brief-orders .action-brief-block {
  border-color: rgba(79, 215, 255, 0.18);
  background: rgba(79, 215, 255, 0.035);
}

.action-order-detail {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.action-order-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.action-order-detail summary::-webkit-details-marker {
  display: none;
}

.action-order-detail div {
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  color: var(--soft);
  background: rgba(5, 9, 16, 0.28);
  font-size: 12px;
  line-height: 1.45;
}

.action-brief-detail-fold {
  margin-top: 4px;
}

.action-brief-detail-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.action-brief-detail-fold .action-done {
  margin-top: 10px;
}

.agent-evolution-fold {
  margin-top: 10px;
}

.agent-evolution-visible {
  margin: 10px 0 12px;
}

.agent-evolution-brief {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid rgba(79, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.04);
}

.agent-evolution-brief span,
.agent-evolution-brief strong {
  display: block;
}

.agent-evolution-brief span {
  color: var(--muted);
  font-size: 12px;
}

.agent-evolution-brief strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.agent-evolution-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.agent-manager-brief {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.045);
}

.agent-manager-brief strong,
.agent-manager-brief span,
.agent-manager-brief small {
  display: block;
}

.agent-manager-brief strong {
  color: var(--cyan);
}

.agent-manager-brief span {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.agent-manager-brief small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.agent-evolution-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.agent-evolution-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.24);
}

.agent-evolution-item strong,
.agent-evolution-item em,
.agent-evolution-item small {
  display: block;
}

.agent-evolution-item strong {
  margin-top: 6px;
  color: var(--text);
}

.agent-evolution-item em {
  margin-top: 4px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.45;
}

.agent-evolution-item small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.agent-debate-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.22);
}

.agent-debate-panel.green {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.agent-debate-panel.amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.agent-debate-panel.red {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.08);
}

.agent-debate-judge {
  display: grid;
  gap: 6px;
}

.agent-debate-judge strong,
.agent-debate-judge small,
.agent-debate-card strong,
.agent-debate-card span,
.agent-debate-card em {
  display: block;
}

.agent-debate-judge strong {
  font-size: 18px;
  color: var(--text);
  line-height: 1.35;
}

.agent-debate-judge small {
  color: var(--muted);
  line-height: 1.45;
}

.agent-debate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agent-debate-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-debate-card strong {
  font-size: 14px;
  color: var(--text);
}

.agent-debate-card strong small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.agent-debate-card span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
}

.agent-debate-card em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.agent-github-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.agent-github-sources div {
  padding: 9px 10px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.agent-github-sources strong,
.agent-github-sources span {
  display: block;
}

.agent-github-sources strong {
  color: var(--text);
}

.agent-github-sources span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: 12px;
}

.action-brief-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.action-brief-block-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.action-brief-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 156, 210, 0.14);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.action-steps {
  display: grid;
  gap: 10px;
}

.action-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  display: grid;
  gap: 8px;
}

.compact-list li {
  line-height: 1.5;
}

.step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 215, 255, 0.32);
  color: var(--cyan);
  background: rgba(79, 215, 255, 0.08);
  font-weight: 700;
}

.action-step p {
  margin: 6px 0 0;
  color: var(--soft);
  line-height: 1.5;
}

.action-status-list {
  display: grid;
  gap: 9px;
}

.action-status-row {
  display: grid;
  grid-template-columns: 70px max-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
}

.action-status-row em {
  font-style: normal;
  line-height: 1.45;
}

.broker-summary-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 12px;
}

.broker-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.broker-desk-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.broker-desk-card .metric-value {
  min-height: auto;
  font-size: 22px;
}

.broker-final-command {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(120, 156, 210, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.broker-final-command.green {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(74, 222, 128, 0.075);
}

.broker-final-command.amber {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.075);
}

.broker-final-command.red {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.08);
}

.broker-final-command strong {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.broker-final-command strong small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.trade-console-panel {
  border-color: rgba(74, 222, 128, 0.28);
}

.agent-decision {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.agent-decision.green {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.agent-decision.amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.agent-decision.red {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.05);
}

.agent-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-decision-head strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.agent-decision-head span {
  color: var(--muted);
  font-size: 13px;
}

.agent-decision-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.agent-detail-fold {
  margin-top: 10px;
}

.agent-detail-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.agent-detail-fold .agent-decision-grid {
  margin-top: 8px;
}

.agent-decision-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.22);
}

.agent-decision-card.green {
  border-color: rgba(74, 222, 128, 0.26);
}

.agent-decision-card.amber {
  border-color: rgba(245, 158, 11, 0.26);
}

.agent-decision-card.red {
  border-color: rgba(248, 113, 113, 0.3);
}

.agent-decision-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agent-decision-card strong {
  color: var(--text);
}

.agent-decision-card p {
  margin: 8px 0 4px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.agent-decision-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.agent-decision-orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.agent-execution-contract {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.agent-execution-contract > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.agent-execution-contract span,
.agent-execution-contract strong {
  display: block;
}

.agent-execution-contract span {
  color: var(--muted);
  font-size: 12px;
}

.agent-execution-contract strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.agent-decision-orders > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.agent-decision-orders b,
.agent-decision-orders strong,
.agent-decision-orders span {
  display: block;
}

.agent-decision-orders b {
  color: var(--accent);
  font-size: 12px;
}

.agent-decision-orders strong {
  margin: 3px 0;
  color: var(--text);
}

.agent-decision-orders span {
  color: var(--soft);
  font-size: 13px;
}

.agent-decision-orders em {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.agent-decision-orders em.green {
  color: var(--green);
}

.agent-decision-orders em.amber {
  color: var(--amber);
}

.agent-decision-orders em.red {
  color: var(--red);
}

.agent-decision-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.agent-decision-steps span {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.agent-learning-loop {
  margin-top: 10px;
}

.agent-learning-loop summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.agent-decision-method-source {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.agent-decision-method-source span,
.agent-decision-method-source strong,
.agent-decision-method-source small {
  display: block;
}

.agent-decision-method-source span {
  color: var(--muted);
  font-size: 12px;
}

.agent-decision-method-source strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}

.agent-decision-method-source small {
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.agent-learning-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.agent-funnel-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agent-learning-grid > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.agent-learning-grid strong,
.agent-learning-grid span {
  display: block;
}

.agent-learning-grid strong {
  color: var(--text);
  font-size: 12px;
}

.agent-learning-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.agent-learning-title {
  margin: 12px 0 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

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

.agent-playbook-list > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.22);
}

.agent-playbook-list strong,
.agent-playbook-list span,
.agent-playbook-list small {
  display: block;
}

.agent-playbook-list strong {
  color: var(--text);
  font-size: 12px;
}

.agent-playbook-list span {
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.agent-playbook-list small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trade-console-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(88px, 120px));
  gap: 10px;
  margin-bottom: 14px;
}

.trade-console-summary > div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.trade-console-summary > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-console-summary strong {
  color: var(--text);
  font-size: 22px;
}

.trade-console-summary b {
  display: block;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.trade-console-summary span {
  color: var(--muted);
  font-size: 13px;
}

.trade-console-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.trade-console-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.trade-console-card.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.045);
}

.trade-console-card.amber {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.045);
}

.trade-console-card.red {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.045);
}

.trade-console-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-console-card-head strong {
  color: var(--text);
}

.trade-console-command {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(79, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.055);
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.trade-console-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trade-console-card-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.26);
}

.trade-console-card-grid span,
.trade-console-card-grid b {
  display: block;
}

.trade-console-card-grid span {
  color: var(--muted);
  font-size: 12px;
}

.trade-console-card-grid b {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.trade-console-card p {
  margin: 10px 0;
  color: var(--soft);
  line-height: 1.45;
  font-size: 13px;
}

.trade-console-detail {
  margin-top: 2px;
}

.trade-console-empty {
  margin-bottom: 10px;
}

.trade-console-candidate-fold {
  margin: 2px 0 10px;
}

.processed-trade-console-fold {
  margin: 2px 0 10px;
}

.trade-console-candidate-fold summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.processed-trade-console-fold summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.trade-console-candidate-fold summary::-webkit-details-marker {
  display: none;
}

.processed-trade-console-fold summary::-webkit-details-marker {
  display: none;
}

.trade-console-candidate-fold .candidate-cards {
  margin-top: 10px;
  opacity: 0.82;
}

.processed-trade-console-fold .table-wrap {
  margin-top: 8px;
  opacity: 0.88;
}

.trade-console-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.trade-console-detail .table-wrap {
  margin-top: 8px;
}

.trade-console-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.trade-console-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-order-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.manual-order-history-summary strong {
  color: var(--text);
  font-size: 16px;
}

.manual-order-history-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-order-history-table td:nth-child(4) strong,
.manual-order-history-table td:nth-child(5) strong {
  color: var(--text);
  font-size: 16px;
}

.trade-console-table th,
.trade-console-table td {
  vertical-align: top;
}

.trade-console-table td:nth-child(3) strong,
.trade-console-table td:nth-child(4) strong {
  color: var(--text);
  font-size: 18px;
}

.trade-console-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.broker-order-cards,
.manual-order-cards,
.holding-action-cards,
.quant-signal-cards,
.quant-backtest-cards,
.quant-robust-cards,
.quant-factor-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.broker-order-card,
.manual-order-card,
.holding-action-card,
.quant-signal-card,
.quant-backtest-card,
.quant-robust-card,
.quant-factor-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.broker-order-card.green,
.manual-order-card.green,
.holding-action-card.green,
.quant-signal-card.green,
.quant-backtest-card.green,
.quant-robust-card.green,
.quant-factor-card.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.045);
}

.broker-order-card.red,
.manual-order-card.red,
.holding-action-card.red,
.quant-signal-card.red,
.quant-backtest-card.red,
.quant-robust-card.red,
.quant-factor-card.red {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.045);
}

.holding-action-card.amber,
.quant-signal-card.amber,
.quant-backtest-card.amber,
.quant-robust-card.amber,
.quant-factor-card.amber {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.045);
}

.broker-order-card-head,
.manual-order-card-head,
.holding-action-card-head,
.quant-signal-card-head,
.quant-backtest-card-head,
.quant-robust-card-head,
.quant-factor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.broker-order-card-head strong,
.manual-order-card-head strong,
.holding-action-card-head strong,
.quant-signal-card-head strong,
.quant-backtest-card-head strong,
.quant-robust-card-head strong,
.quant-factor-card-head strong {
  color: var(--text);
}

.manual-order-command {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 215, 255, 0.18);
  background: rgba(79, 215, 255, 0.055);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

.broker-order-card-grid,
.manual-order-card-grid,
.holding-action-card-grid,
.quant-signal-card-grid,
.quant-backtest-card-grid,
.quant-robust-card-grid,
.quant-factor-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quant-signal-main-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-order-main-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.holding-action-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.broker-order-card-grid div,
.manual-order-card-grid div,
.holding-action-card-grid div,
.quant-signal-card-grid div,
.quant-backtest-card-grid div,
.quant-robust-card-grid div,
.quant-factor-card-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.26);
}

.broker-order-card-grid span,
.broker-order-card-grid b,
.manual-order-card-grid span,
.manual-order-card-grid b,
.holding-action-card-grid span,
.holding-action-card-grid b,
.quant-signal-card-grid span,
.quant-signal-card-grid b,
.quant-backtest-card-grid span,
.quant-backtest-card-grid b,
.quant-robust-card-grid span,
.quant-robust-card-grid b,
.quant-factor-card-grid span,
.quant-factor-card-grid b {
  display: block;
}

.broker-order-card-grid span,
.manual-order-card-grid span,
.holding-action-card-grid span,
.quant-signal-card-grid span,
.quant-backtest-card-grid span,
.quant-robust-card-grid span,
.quant-factor-card-grid span {
  color: var(--muted);
  font-size: 12px;
}

.broker-order-card-grid b,
.manual-order-card-grid b,
.holding-action-card-grid b,
.quant-signal-card-grid b,
.quant-backtest-card-grid b,
.quant-robust-card-grid b,
.quant-factor-card-grid b {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.manual-order-card p,
.holding-action-card p,
.quant-signal-card p,
.quant-backtest-card p,
.quant-robust-card p,
.quant-factor-card p,
.quant-signal-card small {
  margin: 10px 0;
  color: var(--soft);
  line-height: 1.45;
  font-size: 13px;
}

.quant-signal-next {
  padding: 9px 10px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.2);
}

.quant-signal-card-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.24);
}

.manual-order-card-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.24);
}

.holding-action-card-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.12);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.24);
}

.quant-signal-card-detail summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.manual-order-card-detail summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.holding-action-card-detail summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.quant-signal-evidence {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.manual-order-evidence {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.holding-action-evidence {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.quant-signal-evidence div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.42;
}

.manual-order-evidence div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.42;
}

.holding-action-evidence div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.42;
}

.quant-signal-evidence span {
  color: var(--muted);
}

.manual-order-evidence span {
  color: var(--muted);
}

.holding-action-evidence span {
  color: var(--muted);
}

.quant-signal-evidence b {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.manual-order-evidence b {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.holding-action-evidence b {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quant-signal-card small {
  display: block;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.broker-order-actions,
.manual-order-actions {
  margin-top: 10px;
}

.broker-desk-detail,
.manual-order-detail,
.holding-action-detail,
.quant-signal-detail,
.quant-backtest-detail,
.quant-robust-detail,
.quant-factor-detail {
  margin-top: 8px;
}

.broker-desk-detail summary,
.manual-order-detail summary,
.holding-action-detail summary,
.quant-signal-detail summary,
.quant-backtest-detail summary,
.quant-robust-detail summary,
.quant-factor-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.broker-desk-detail .table-wrap,
.manual-order-detail .table-wrap,
.holding-action-detail .table-wrap,
.quant-signal-detail .table-wrap,
.quant-backtest-detail .table-wrap,
.quant-robust-detail .table-wrap,
.quant-factor-detail .table-wrap {
  margin-top: 8px;
}

.overview-agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.overview-agent-detail {
  margin-top: 10px;
}

.overview-agent-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview-agent-detail > :not(summary) {
  margin-top: 8px;
}

.overview-agent-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.2);
}

.overview-agent-card.green {
  border-color: rgba(74, 222, 128, 0.28);
}

.overview-agent-card.amber {
  border-color: rgba(245, 158, 11, 0.28);
}

.overview-agent-card.red {
  border-color: rgba(248, 113, 113, 0.32);
}

.overview-agent-card span,
.overview-agent-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.overview-agent-card strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 15px;
}

.overview-agent-orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.overview-agent-orders div {
  padding: 8px;
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.4;
}

.candidate-agent-decision {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.candidate-agent-decision.green {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.candidate-agent-decision.amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.candidate-agent-decision.red {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.05);
}

.candidate-agent-decision span:not(.tag),
.candidate-agent-decision small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.candidate-agent-decision small {
  color: var(--muted);
}

.module-focus {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(79, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.045);
}

.module-focus.compact {
  padding: 10px 12px;
  background: rgba(5, 9, 16, 0.24);
  border-color: rgba(120, 156, 210, 0.16);
}

.module-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.module-focus-head strong {
  color: var(--text);
}

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

.module-focus-item {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.module-focus-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.module-focus-item em {
  display: block;
  color: var(--soft);
  font-style: normal;
  line-height: 1.45;
}

.module-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.module-focus-meta span {
  padding-right: 8px;
  border-right: 1px solid rgba(120, 156, 210, 0.18);
}

.module-focus-meta span:last-child {
  border-right: 0;
}

.module-focus-stop,
.broker-action-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--soft);
  line-height: 1.45;
}

.module-focus-stop span,
.broker-action-guide span {
  border: 1px solid rgba(120, 156, 210, 0.15);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(5, 9, 16, 0.32);
  font-size: 12px;
}

.broker-action-guide {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 206, 92, 0.24);
  border-radius: 8px;
  background: rgba(255, 206, 92, 0.055);
}

.command-center-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.command-center-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.command-center-command {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.command-center-command.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.045);
}

.command-center-command.amber {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.045);
}

.command-center-command.red {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.045);
}

.command-center-command span,
.command-center-command strong,
.command-center-command small {
  display: block;
}

.command-center-command span {
  color: var(--muted);
  font-size: 12px;
}

.command-center-command strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.command-center-command small {
  margin-top: 6px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.command-center-detail {
  margin-top: 6px;
}

.command-center-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
  list-style: none;
}

.command-center-detail summary::-webkit-details-marker {
  display: none;
}

.command-center-detail .command-center-grid {
  margin-top: 8px;
}

.command-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.command-center-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.command-center-value {
  min-height: 26px;
}

.select {
  min-width: 132px;
  height: 34px;
  border: 1px solid var(--line);
  background: #0d1522;
  color: var(--text);
  padding: 0 10px;
}

.input {
  min-width: 150px;
  height: 34px;
  border: 1px solid var(--line);
  background: #0d1522;
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.textarea {
  min-height: 72px;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  background: #0d1522;
  color: var(--text);
  padding: 10px;
  outline: none;
}

.textarea:focus {
  border-color: var(--line-strong);
}

.person-input {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.input:focus,
.select:focus {
  border-color: var(--line-strong);
}

.input.wide {
  min-width: 320px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.command-button,
.mini-button {
  border: 1px solid var(--line-strong);
  background: rgba(79, 215, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
}

.command-button {
  height: 34px;
  padding: 0 14px;
}

.mini-button {
  min-height: 28px;
  padding: 0 10px;
}

a.mini-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.command-button:hover,
.mini-button:hover {
  background: rgba(79, 215, 255, 0.18);
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mini-button.is-disabled-soft {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mini-button.is-disabled-soft:hover {
  background: rgba(255, 201, 107, 0.12);
  border-color: rgba(255, 201, 107, 0.38);
}

.danger-button {
  color: var(--red);
  border-color: rgba(255, 102, 125, 0.42);
  background: rgba(255, 102, 125, 0.08);
}

.danger-button:hover {
  background: rgba(255, 102, 125, 0.16);
}

canvas {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 12px rgba(79, 215, 255, 0.08));
}

.signal-list,
.theme-list,
.coverage-list,
.module-health-grid,
.decision-history,
.timeline {
  display: grid;
  gap: 10px;
}

.module-health-grid {
  display: block;
  margin-top: 12px;
}

.module-data-command {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.module-data-command.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.055);
}

.module-data-command.amber {
  border-color: rgba(255, 206, 92, 0.3);
  background: rgba(255, 206, 92, 0.06);
}

.module-data-command.red {
  border-color: rgba(255, 102, 125, 0.32);
  background: rgba(255, 102, 125, 0.065);
}

.module-data-command > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.module-data-command span:not(.tag),
.module-data-command small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.module-data-command strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.module-health-summary-cards,
.module-health-card-list {
  display: grid;
  gap: 10px;
}

.module-health-summary-cards {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.module-health-card-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-health-source-detail {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.module-health-source-detail .buy-gate-row {
  margin: 0;
}

.module-health-summary-card {
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 11px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.module-health-summary-card.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.05);
}

.module-health-summary-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.05);
}

.module-health-summary-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.06);
}

.module-health-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-health-summary-card p,
.module-health-summary-card small {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.module-health-summary-card small {
  color: var(--muted);
}

.module-health-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.module-health-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-health-detail .module-health-card-list {
  margin: 0 10px 10px;
}

.module-health-detail .module-health-summary-cards {
  margin: 0 10px 10px;
}

.buy-gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.buy-gate-row:empty {
  display: none;
  margin: 0;
}

#sourceOverview {
  margin-top: 10px;
}

.signal,
.theme-row,
.coverage-row,
.decision-row,
.timeline-row,
.candidate-card {
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.signal::before,
.theme-row::before,
.candidate-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(79, 215, 255, 0.46);
}

.signal:hover,
.theme-row:hover,
.candidate-card:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 220, 255, 0.36);
}

.signal.severity-high,
.candidate-card.severity-high,
.theme-row.severity-high,
.module-health-card.severity-high {
  border-color: rgba(255, 102, 125, 0.52);
  background: linear-gradient(90deg, rgba(255, 102, 125, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: var(--glow-red);
  animation: alertPulse 1.9s ease-in-out infinite;
}

.signal.severity-high::before,
.candidate-card.severity-high::before,
.theme-row.severity-high::before {
  background: var(--red);
  box-shadow: var(--glow-red);
}

.signal.severity-medium,
.candidate-card.severity-medium,
.theme-row.severity-medium,
.module-health-card.severity-medium {
  border-color: rgba(255, 206, 92, 0.38);
  background: linear-gradient(90deg, rgba(255, 206, 92, 0.08), rgba(255, 255, 255, 0.035));
  animation: mediumBreathe 3.8s ease-in-out infinite;
}

.review-candidate-card {
  background: linear-gradient(90deg, rgba(255, 206, 92, 0.12), rgba(66, 240, 161, 0.05), rgba(255, 255, 255, 0.035));
}

.action-discipline {
  background: rgba(255, 206, 92, 0.06);
}

.score-guide-card {
  background: rgba(66, 240, 161, 0.045);
}

.action-signal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.action-signal-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.action-signal-card.green {
  border-color: rgba(66, 240, 161, 0.3);
  background: rgba(66, 240, 161, 0.055);
}

.action-signal-card.amber {
  border-color: rgba(255, 206, 92, 0.3);
  background: rgba(255, 206, 92, 0.055);
}

.action-signal-card.red {
  border-color: rgba(255, 102, 125, 0.34);
  background: rgba(255, 102, 125, 0.07);
}

.action-signal-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-signal-card p,
.action-signal-card small {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.action-signal-card small {
  color: var(--muted);
}

.today-tomorrow-ops {
  margin: 12px 0;
  padding: 18px;
  border: 1px solid rgba(117, 220, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 215, 255, 0.1), rgba(8, 14, 26, 0.88));
  box-shadow: var(--shadow), var(--glow-cyan);
}

.today-tomorrow-ops.amber {
  border-color: rgba(255, 206, 92, 0.58);
  background: linear-gradient(135deg, rgba(255, 206, 92, 0.13), rgba(8, 14, 26, 0.88));
  box-shadow: var(--shadow), var(--glow-amber);
}

.today-tomorrow-ops.red {
  border-color: rgba(255, 102, 125, 0.68);
  background: linear-gradient(135deg, rgba(255, 102, 125, 0.14), rgba(8, 14, 26, 0.9));
  box-shadow: var(--shadow), var(--glow-red);
}

.today-tomorrow-kicker {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.today-tomorrow-ops.amber .today-tomorrow-kicker {
  color: var(--amber);
}

.today-tomorrow-ops.red .today-tomorrow-kicker {
  color: var(--red);
}

.today-tomorrow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.today-tomorrow-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.34);
}

.today-tomorrow-label {
  display: block;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.today-tomorrow-command {
  display: block;
  color: var(--text);
  font-size: 42px;
  line-height: 1.04;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.today-tomorrow-card em {
  color: var(--soft);
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.today-tomorrow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.today-tomorrow-metrics > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.today-tomorrow-metrics span,
.today-tomorrow-metrics b,
.today-tomorrow-card small {
  display: block;
}

.today-tomorrow-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.today-tomorrow-metrics b {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.today-tomorrow-discipline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 206, 92, 0.22);
  border-radius: 7px;
  background: rgba(255, 206, 92, 0.055);
}

.today-tomorrow-discipline span,
.today-tomorrow-discipline b {
  display: block;
}

.today-tomorrow-discipline span {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.today-tomorrow-discipline b {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.today-tomorrow-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.evolution-locator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 215, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 215, 255, 0.06), rgba(255, 206, 92, 0.04)),
    rgba(5, 9, 16, 0.28);
}

.evolution-locator span,
.evolution-locator strong,
.evolution-locator small {
  display: block;
}

.evolution-locator span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.evolution-locator strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evolution-locator small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evolution-locator-agents,
.evolution-locator-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.evolution-locator-agents b {
  padding: 4px 7px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  white-space: nowrap;
}

.overview-debate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.24);
}

.overview-debate-hero.green {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.overview-debate-hero.amber {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.overview-debate-hero.red {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.08);
}

.overview-debate-main,
.overview-debate-grid > div {
  min-width: 0;
}

.overview-debate-main strong,
.overview-debate-main span,
.overview-debate-main small,
.overview-debate-grid b,
.overview-debate-grid span {
  display: block;
}

.overview-debate-main strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.overview-debate-main span {
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.overview-debate-main .overview-debate-action {
  padding: 8px 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.overview-debate-main .overview-debate-evolution {
  padding: 7px 9px;
  border: 1px solid rgba(79, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(79, 215, 255, 0.07);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.overview-debate-main small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.overview-debate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-debate-grid > div {
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.overview-debate-grid b {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.overview-debate-grid span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.overview-debate-link {
  align-self: center;
  white-space: nowrap;
}

.action-signal-detail {
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.action-signal-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.action-signal-detail > .signal {
  margin: 0 10px 10px;
}

.records-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.record-summary-card {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 11px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.record-summary-card.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.05);
}

.record-summary-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.06);
}

.record-summary-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.05);
}

.record-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.record-summary-card p,
.record-summary-card small {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.record-summary-card small {
  color: var(--muted);
}

.record-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.record-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.record-detail > table,
.record-detail > .empty-state,
.record-detail > .coverage-row {
  margin: 0 10px 10px;
}

.exit-quality-cards {
  margin-bottom: 10px;
}

.exit-quality-detail > .note-row {
  margin: 0 10px 10px;
}

.record-detail > .coverage-row:first-of-type {
  margin-top: 0;
}

.data-coverage-cards {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.coverage-section-title {
  margin: 10px 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-summary-card {
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 11px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
  position: relative;
  overflow: hidden;
}

.market-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(66, 240, 161, 0.58);
}

.market-summary-card.severity-medium {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.05);
}

.market-summary-card.severity-medium::before {
  background: var(--amber);
}

.market-summary-card.severity-high {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.06);
}

.market-summary-card.severity-high::before {
  background: var(--red);
}

.market-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-summary-card p,
.market-summary-card small {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.market-summary-card small {
  color: var(--muted);
}

.market-detail {
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.market-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-detail > .theme-row,
.market-detail > .empty-state {
  margin: 0 10px 10px;
}

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

.decision-summary-grid > div {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.24);
}

.decision-summary-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.decision-summary-grid strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.compact-summary-grid > div {
  min-height: 48px;
}

.signal.severity-medium::before,
.candidate-card.severity-medium::before,
.theme-row.severity-medium::before {
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.signal.severity-low::before,
.candidate-card.severity-low::before,
.theme-row.severity-low::before {
  background: rgba(66, 240, 161, 0.58);
}

.person-row {
  background:
    radial-gradient(circle at 100% 0%, rgba(66, 240, 161, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.signal,
.theme-row,
.coverage-row,
.module-health-card,
.decision-row,
.timeline-row {
  padding: 12px;
}

.signal-title,
.theme-main,
.coverage-main,
.module-health-top,
.timeline-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.decision-main {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.signal-reason,
.theme-sub,
.coverage-sub,
.module-health-meta,
.module-health-error,
.timeline-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.module-health-card {
  min-height: 112px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.module-health-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(66, 240, 161, 0.58);
}

.module-health-card.severity-medium::before {
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.module-health-card.severity-high::before {
  background: var(--red);
  box-shadow: var(--glow-red);
}

.module-health-top strong {
  font-size: 14px;
}

.module-health-error {
  color: var(--red);
}

.decision-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.precheck-banner {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.42);
  box-shadow: var(--shadow);
}

.precheck-banner.red,
.precheck-banner.amber,
.precheck-banner.green {
  display: block;
}

.precheck-banner.red {
  border-color: rgba(255, 102, 125, 0.5);
  background: rgba(255, 102, 125, 0.08);
}

.precheck-banner.amber {
  border-color: rgba(255, 206, 92, 0.45);
  background: rgba(255, 206, 92, 0.07);
}

.precheck-banner.green {
  border-color: rgba(66, 240, 161, 0.34);
  background: rgba(66, 240, 161, 0.06);
}

.precheck-banner-head,
.precheck-banner-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.precheck-banner-head {
  color: var(--soft);
  margin-bottom: 10px;
}

.precheck-banner-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.precheck-banner-item {
  padding: 8px 0;
  border-top: 1px solid rgba(120, 156, 210, 0.14);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.precheck-banner-item span:nth-child(2) {
  min-width: 120px;
  color: var(--soft);
}

.precheck-banner-item span:last-child {
  flex: 1;
}

.health-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.health-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.health-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.health-summary-card.green {
  border-color: rgba(48, 211, 127, 0.22);
  background: rgba(48, 211, 127, 0.06);
}

.health-summary-card.amber {
  border-color: rgba(255, 210, 77, 0.24);
  background: rgba(255, 210, 77, 0.06);
}

.health-summary-card.red {
  border-color: rgba(255, 93, 93, 0.24);
  background: rgba(255, 93, 93, 0.06);
}

.health-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.health-summary-card strong {
  color: var(--text);
  font-size: 13px;
}

.health-summary-card p {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.health-detail {
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.2);
}

.health-detail summary {
  padding: 9px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.health-row-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.health-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--soft);
}

.health-row span:last-child {
  color: var(--muted);
}

.pretrade-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.pretrade-summary-cards,
.pretrade-order-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pretrade-order-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pretrade-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pretrade-summary-card.green {
  border-color: rgba(48, 211, 127, 0.22);
  background: rgba(48, 211, 127, 0.06);
}

.pretrade-summary-card.amber {
  border-color: rgba(255, 210, 77, 0.24);
  background: rgba(255, 210, 77, 0.06);
}

.pretrade-summary-card.red {
  border-color: rgba(255, 93, 93, 0.24);
  background: rgba(255, 93, 93, 0.06);
}

.pretrade-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pretrade-summary-card strong {
  color: var(--text);
  font-size: 13px;
}

.pretrade-summary-card p,
.pretrade-card p,
.pretrade-card small {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pretrade-card small {
  display: block;
  color: var(--muted);
}

.pretrade-card,
.check-item {
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.pretrade-card {
  padding: 12px;
}

.pretrade-card.is-blocked,
.check-item.is-blocked {
  border-color: rgba(255, 102, 125, 0.34);
}

.pretrade-head,
.check-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pretrade-head {
  margin-bottom: 8px;
}

.pretrade-card-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.13);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.22);
}

.pretrade-card-detail summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.pretrade-card-detail .check-grid {
  padding: 0 8px 8px;
}

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

.check-item {
  padding: 8px;
}

.check-title {
  color: var(--soft);
  font-size: 12px;
}

.smoke-result {
  display: none;
  margin: 0 0 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.smoke-result:not(:empty) {
  display: block;
}

.smoke-result.is-error {
  border-color: rgba(255, 102, 125, 0.42);
  color: var(--red);
}

.history-status-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.history-status-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-status-strip span,
.history-status-strip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.history-status-strip strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.history-workbench {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  margin-top: 12px;
}

.history-command-panel {
  display: grid;
  gap: 12px;
}

.history-summary-cards {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.9fr;
  gap: 12px;
}

.history-summary-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.history-summary-card.primary {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.055);
}

.history-summary-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-summary-card strong {
  color: var(--text);
  font-size: 15px;
}

.history-summary-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.48;
}

.history-summary-card small {
  color: var(--muted);
  line-height: 1.45;
}

.history-detail-fold {
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 10px 12px;
}

.history-detail-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-weight: 750;
}

.history-detail-fold summary::-webkit-details-marker {
  display: none;
}

.history-chart-fold {
  margin-top: 14px;
}

.history-chart-fold > .layout-two {
  margin-top: 12px;
}

.detail-box {
  min-height: 520px;
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(0, 0, 0, 0.24);
  color: #c8d8ec;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.history-table {
  min-width: 760px;
}

.history-table td:nth-child(3) {
  max-width: 420px;
  overflow-wrap: anywhere;
  color: var(--soft);
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.param-grid label,
.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.param-grid .input {
  width: 100%;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.settings-grid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.settings-command-panel {
  margin-bottom: 14px;
}

.config-status-strip {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 10px;
}

.config-status-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.config-status-strip span,
.config-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.config-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.config-summary-detail {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.config-summary-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.config-summary-detail summary::-webkit-details-marker {
  display: none;
}

.config-summary-detail .config-summary-cards {
  padding: 0 12px 12px;
}

.config-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.config-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.config-summary-card.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.05);
}

.config-summary-card.amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

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

.config-summary-card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.config-summary-card p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.config-summary-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-fold {
  margin-top: 12px;
}

.settings-fold-summary {
  cursor: pointer;
}

.settings-fold-summary::-webkit-details-marker {
  display: none;
}

.settings-fold > .form-grid,
.settings-fold > .button-row,
.settings-fold > .table-wrap {
  margin-top: 12px;
}

.user-management-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.user-management-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.user-management-card.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.045);
}

.user-management-card.amber {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.045);
}

.user-management-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.user-management-card-head strong {
  color: var(--text);
}

.user-management-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.user-management-detail {
  margin-top: 8px;
}

.user-management-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.user-management-detail .table-wrap {
  margin-top: 8px;
}

.form-grid .input,
.form-grid .select {
  width: 100%;
  min-width: 0;
}

.readonly-input {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.trade-plan-notice {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.45;
}

.trade-plan-notice.is-plan {
  color: var(--amber);
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.07);
}

.records-command-panel {
  margin-bottom: 14px;
}

.records-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.records-status-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.records-status-strip span,
.records-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.records-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.records-metrics-fold {
  margin-bottom: 12px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.records-metrics-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.records-metrics-fold summary::-webkit-details-marker {
  display: none;
}

.records-metrics-fold .metric-grid {
  margin: 0;
  padding: 0 12px 12px;
}

.records-review-fold {
  margin-bottom: 14px;
}

.records-review-summary {
  cursor: pointer;
  list-style: none;
}

.records-review-summary::-webkit-details-marker {
  display: none;
}

.records-review-fold > .note-list {
  margin-top: 10px;
}

.records-command-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.records-command-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.records-command-card.green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.05);
}

.records-command-card.amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.records-command-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.records-command-card strong {
  color: var(--text);
}

.records-command-card p {
  margin: 8px 0 10px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.records-command-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.record-form-fold {
  min-width: 0;
}

.records-forms-fold {
  display: block;
  margin-top: 12px;
}

.records-forms-summary {
  cursor: pointer;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  list-style: none;
}

.records-forms-summary::-webkit-details-marker {
  display: none;
}

.records-forms-grid {
  margin-top: 12px;
}

.record-form-summary {
  cursor: pointer;
}

.record-form-summary::-webkit-details-marker {
  display: none;
}

.record-form-fold > .form-grid,
.record-form-fold > .trade-plan-notice,
.record-form-fold > .button-row {
  margin-top: 12px;
}

.records-history-fold {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.records-history-summary {
  cursor: pointer;
  list-style: none;
}

.records-history-summary::-webkit-details-marker {
  display: none;
}

.records-history-summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.records-history-fold[open] .records-history-summary::after {
  content: "收起";
}

.records-history-fold > .layout-two,
.records-history-fold > .panel {
  margin-top: 12px;
}

.position-command-panel {
  margin-bottom: 14px;
}

.position-status-strip {
  display: grid;
  grid-template-columns: 1fr 0.95fr 0.85fr;
  gap: 10px;
  margin-top: 10px;
}

.position-status-strip > div {
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.position-status-strip > div.green {
  border-color: rgba(66, 240, 161, 0.22);
  background: rgba(66, 240, 161, 0.045);
}

.position-status-strip > div.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.position-status-strip > div.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.position-status-strip span,
.position-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.position-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.position-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.position-command-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.position-command-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.position-command-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.position-command-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.position-command-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.position-command-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.position-command-card.muted {
  opacity: 0.74;
}

.position-command-card strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.position-command-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(120, 156, 210, 0.22);
  background: rgba(5, 9, 16, 0.36);
  font-size: 12px;
}

.position-command-card p {
  margin: 8px 0 6px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.position-command-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.position-command-detail {
  margin-top: 8px;
}

.position-command-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.position-command-detail summary::-webkit-details-marker {
  display: none;
}

.position-command-detail div {
  margin-top: 7px;
  padding: 8px;
  border-radius: 8px;
  color: var(--soft);
  background: rgba(5, 9, 16, 0.28);
  font-size: 12px;
  line-height: 1.45;
}

.position-action-fold {
  margin-top: 12px;
}

.position-action-summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.position-action-summary::-webkit-details-marker {
  display: none;
}

.position-risk-fold {
  margin-bottom: 14px;
}

.position-risk-summary,
.positions-detail-summary {
  cursor: pointer;
}

.position-risk-summary::-webkit-details-marker,
.positions-detail-summary::-webkit-details-marker {
  display: none;
}

.position-risk-fold > .form-grid,
.position-risk-fold > .decision-sub,
.position-risk-fold > .button-row {
  margin-top: 12px;
}

.positions-detail-fold > .table-wrap {
  margin-top: 12px;
}

.position-action-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.position-action-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.position-action-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.06);
}

.position-action-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.position-action-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.position-action-head strong {
  font-size: 14px;
}

.position-action-head span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(79, 215, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.position-action-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.position-card-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.position-action-body > div {
  padding: 8px;
  border: 1px solid rgba(120, 156, 210, 0.15);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.18);
}

.position-action-body span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.position-action-body strong,
.position-action-next {
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.position-card-detail {
  border: 1px solid rgba(120, 156, 210, 0.13);
  border-radius: 8px;
  background: rgba(7, 15, 32, 0.28);
}

.position-card-detail summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.position-card-detail .position-action-body {
  padding: 0 8px 8px;
}

.wide-field {
  grid-column: span 2;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.compact-actions {
  justify-content: flex-start;
  margin: 8px 0;
}

.signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-row {
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.quant-mode-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.07);
}

.quant-mode-strip strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.quant-maintenance-fold,
.quant-discipline-fold {
  margin-top: 8px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.quant-maintenance-fold summary,
.quant-discipline-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.quant-maintenance-fold summary::-webkit-details-marker,
.quant-discipline-fold summary::-webkit-details-marker {
  display: none;
}

.quant-maintenance-toolbar {
  padding: 0 12px 12px;
  justify-content: flex-start;
}

.quant-discipline-fold .note-list {
  padding: 0 12px 12px;
}

#quant .table-wrap table {
  min-width: 960px;
}

.quant-plan-table {
  font-size: 12px;
}

.quant-plan-table th,
.quant-plan-table td {
  padding: 8px 9px;
  vertical-align: top;
}

.quant-plan-table .signal-actions {
  min-width: 76px;
  margin: 0;
}

.quant-plan-table .mini-button {
  min-height: 24px;
  padding: 0 8px;
  white-space: nowrap;
}

#quant .metric-value {
  overflow-wrap: anywhere;
}

.count-badge {
  min-width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.tag {
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  border-radius: 999px;
  position: relative;
}

.tag.green {
  color: var(--green);
  border-color: rgba(66, 240, 161, 0.32);
  background: rgba(66, 240, 161, 0.08);
}

.tag.amber {
  color: var(--amber);
  border-color: rgba(255, 206, 92, 0.32);
  background: rgba(255, 206, 92, 0.08);
  box-shadow: 0 0 16px rgba(255, 206, 92, 0.1);
}

.tag.red {
  color: var(--red);
  border-color: rgba(255, 102, 125, 0.34);
  background: rgba(255, 102, 125, 0.08);
  box-shadow: 0 0 18px rgba(255, 102, 125, 0.18);
}

.tag.amber {
  color: var(--amber);
  border-color: rgba(255, 206, 92, 0.32);
  background: rgba(255, 206, 92, 0.08);
  box-shadow: 0 0 16px rgba(255, 206, 92, 0.1);
}

.tag.severity-high {
  animation: tagFlash 1.7s ease-in-out infinite;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(120, 156, 210, 0.15);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.watch-status-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr 1.15fr;
  gap: 10px;
  margin-bottom: 14px;
}

.watch-status-strip > div {
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.watch-status-strip > div.green {
  border-color: rgba(66, 240, 161, 0.22);
  background: rgba(66, 240, 161, 0.045);
}

.watch-status-strip > div.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.watch-status-strip > div.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.watch-status-strip span,
.watch-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.watch-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.watch-command-authority strong {
  color: var(--cyan);
}

.watchlist-columns {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.watch-detail-fold {
  margin-top: 10px;
}

.watch-detail-fold[open] .watchlist-columns {
  margin-top: 12px;
}

.watch-detail-summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.watch-detail-summary::-webkit-details-marker {
  display: none;
}

.watchlist-secondary-lanes {
  display: grid;
  gap: 14px;
  align-self: start;
}

.watch-command-panel {
  margin-bottom: 14px;
}

.watch-command-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.watch-command-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.watch-command-card.green {
  border-color: rgba(66, 240, 161, 0.26);
  background: rgba(66, 240, 161, 0.05);
}

.watch-command-card.amber {
  border-color: rgba(255, 206, 92, 0.3);
  background: rgba(255, 206, 92, 0.055);
}

.watch-command-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.watch-command-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.watch-command-card.muted {
  opacity: 0.74;
}

.watch-command-card strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.watch-command-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(120, 156, 210, 0.22);
  background: rgba(5, 9, 16, 0.36);
  font-size: 12px;
}

.watch-command-card p {
  margin: 8px 0 6px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.watch-command-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.watch-command-detail {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(120, 156, 210, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.watch-command-detail summary {
  cursor: pointer;
  font-weight: 750;
}

.watch-command-detail summary::-webkit-details-marker {
  display: none;
}

.watch-command-detail div {
  margin-top: 6px;
  line-height: 1.45;
}

.physical-ai-hero {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  border-color: rgba(66, 240, 161, 0.24);
  background:
    linear-gradient(135deg, rgba(66, 240, 161, 0.08), rgba(79, 215, 255, 0.04)),
    var(--panel);
}

.physical-ai-hero h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  color: var(--text);
}

.physical-ai-command-panel {
  margin-bottom: 14px;
}

.physical-ai-command-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.physical-ai-command-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.physical-ai-command-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.physical-ai-command-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.physical-ai-command-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.physical-ai-command-card.muted {
  opacity: 0.74;
}

.physical-ai-command-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.physical-ai-command-card strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.physical-ai-command-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(120, 156, 210, 0.22);
  background: rgba(5, 9, 16, 0.36);
  font-size: 12px;
}

.physical-ai-command-card p,
.physical-ai-command-card small {
  color: var(--soft);
  line-height: 1.45;
  font-size: 13px;
}

.physical-ai-command-card p {
  margin: 8px 0 6px;
}

.physical-ai-command-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.physical-ai-status-strip,
.physical-ai-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.physical-ai-status-strip > div,
.physical-ai-hero-metrics > div,
.physical-ai-rule,
.physical-ai-plan > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.32);
}

.physical-ai-status-strip > div.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.physical-ai-status-strip > div.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.physical-ai-status-strip > div.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.physical-ai-status-strip span,
.physical-ai-status-strip small,
.physical-ai-hero-metrics span,
.physical-ai-rule span,
.physical-ai-plan span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.physical-ai-status-strip small {
  margin-top: 4px;
  line-height: 1.45;
}

.physical-ai-status-strip strong,
.physical-ai-hero-metrics strong,
.physical-ai-rule strong,
.physical-ai-plan strong {
  display: block;
  color: var(--text);
  line-height: 1.45;
}

.physical-ai-status-strip b {
  font-weight: inherit;
}

.physical-ai-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.physical-ai-rules-fold {
  margin-bottom: 14px;
}

.physical-ai-rules-summary {
  cursor: pointer;
  list-style: none;
}

.physical-ai-rules-summary::-webkit-details-marker {
  display: none;
}

.physical-ai-rules-summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.physical-ai-rules-fold[open] .physical-ai-rules-summary::after {
  content: "收起";
}

.physical-ai-rules-fold:not([open]) {
  padding-bottom: 12px;
}

.physical-ai-rules-fold .physical-ai-rules {
  margin-top: 12px;
}

.physical-ai-leaders-fold {
  margin-top: 12px;
}

.physical-ai-leaders-summary {
  cursor: pointer;
  list-style: none;
}

.physical-ai-leaders-summary::-webkit-details-marker {
  display: none;
}

.physical-ai-leaders-fold > .physical-ai-grid {
  margin-top: 12px;
}

.physical-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.physical-ai-card {
  min-width: 0;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.physical-ai-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.physical-ai-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 17px;
}

.physical-ai-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
  font-size: 13px;
}

.physical-ai-category-detail {
  margin: 0 0 10px;
}

.physical-ai-category-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 12px;
}

.physical-ai-category-detail p {
  margin-top: 8px;
}

.physical-ai-category-detail .physical-ai-plan {
  margin-top: 8px;
}

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

.physical-ai-plan strong {
  font-size: 12px;
}

.physical-ai-leaders {
  display: grid;
  gap: 9px;
}

.physical-ai-leader {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.24);
}

.physical-ai-leader.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.045);
}

.physical-ai-leader.amber {
  border-color: rgba(255, 206, 92, 0.26);
  background: rgba(255, 206, 92, 0.045);
}

.physical-ai-leader.red {
  border-color: rgba(255, 102, 125, 0.24);
  background: rgba(255, 102, 125, 0.035);
}

.physical-ai-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  border: 1px solid rgba(79, 215, 255, 0.3);
  background: rgba(79, 215, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.physical-ai-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.physical-ai-name strong {
  color: var(--text);
  font-size: 14px;
}

.physical-ai-role,
.physical-ai-metrics,
.physical-ai-readiness {
  margin-top: 6px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.physical-ai-readiness {
  padding: 7px 8px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.22);
}

.physical-ai-detail {
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 16, 0.2);
}

.physical-ai-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.physical-ai-detail summary::-webkit-details-marker {
  display: none;
}

.physical-ai-detail .physical-ai-readiness {
  margin-top: 7px;
}

.physical-ai-readiness strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--cyan);
}

.physical-ai-readiness.muted strong {
  color: var(--muted);
}

.physical-ai-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.physical-ai-metrics span {
  padding: 3px 7px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 999px;
  background: rgba(5, 9, 16, 0.32);
}

.physical-ai-analyze {
  align-self: center;
  color: var(--cyan);
}

.stocklab-search-panel {
  margin-bottom: 14px;
}

.stocklab-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.stocklab-run-row {
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}

.stocklab-advanced-fold {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
}

.stocklab-advanced-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.stocklab-advanced-fold summary::-webkit-details-marker {
  display: none;
}

.stocklab-advanced-fold .stocklab-grid {
  padding: 0 12px 12px;
}

.stocklab-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.stocklab-grid .wide-field {
  grid-column: 1 / -1;
}

.stocklab-status-strip {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.9fr;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.stocklab-status-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.stocklab-status-strip span,
.stocklab-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stocklab-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.stocklab-metrics-fold {
  margin-bottom: 12px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.stocklab-metrics-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.stocklab-metrics-fold summary::-webkit-details-marker {
  display: none;
}

.stocklab-metrics-fold .metric-grid {
  margin: 0;
  padding: 0 12px 12px;
}

.backtest-command-panel {
  display: grid;
  gap: 12px;
}

.backtest-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.backtest-primary-row .input {
  min-width: 0;
}

.backtest-status-strip {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.backtest-status-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.backtest-status-strip span,
.backtest-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.backtest-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.backtest-metrics-fold {
  margin-bottom: 12px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.backtest-metrics-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.backtest-metrics-fold summary::-webkit-details-marker {
  display: none;
}

.backtest-metrics-fold .metric-grid {
  margin: 0;
  padding: 0 12px 12px;
}

.backtest-advanced-fold {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
}

.backtest-advanced-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.backtest-advanced-fold summary::-webkit-details-marker {
  display: none;
}

.backtest-advanced-fold .toolbar {
  padding: 0 12px 12px;
}

.backtest-details-zone {
  display: block;
  margin-top: 12px;
}

.backtest-details-summary {
  cursor: pointer;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  list-style: none;
}

.backtest-details-summary::-webkit-details-marker {
  display: none;
}

.backtest-details-zone[open] > .backtest-fold {
  margin-top: 12px;
}

.backtest-decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 12px;
}

.backtest-decision-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 126px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.backtest-decision-card.primary {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.055);
}

.backtest-decision-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.backtest-decision-card strong {
  font-size: 15px;
  color: var(--text);
}

.backtest-decision-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.48;
}

.backtest-decision-card small {
  color: var(--muted);
  line-height: 1.45;
}

.backtest-detail,
.backtest-fold {
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.backtest-detail {
  padding: 10px 12px;
}

.backtest-detail summary,
.backtest-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-weight: 750;
}

.backtest-detail .note-list {
  margin-top: 12px;
}

.backtest-fold {
  padding: 0;
}

.backtest-fold-summary {
  list-style: none;
}

.backtest-fold-summary::-webkit-details-marker,
.backtest-detail summary::-webkit-details-marker {
  display: none;
}

.backtest-fold > .table-wrap,
.backtest-fold > .note-list,
.backtest-chart-fold > canvas,
.backtest-trade-toolbar {
  margin: 0 14px 14px;
}

.backtest-trade-toolbar {
  display: flex;
  justify-content: flex-end;
}

.backtest-result-cards,
.backtest-trade-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 14px 12px;
}

.backtest-trade-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backtest-result-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.backtest-result-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.backtest-result-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.backtest-result-card.red {
  border-color: rgba(255, 102, 125, 0.3);
  background: rgba(255, 102, 125, 0.055);
}

.backtest-result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.backtest-result-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.backtest-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.backtest-result-grid > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 24, 0.18);
}

.backtest-result-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.backtest-result-grid b {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.backtest-result-card p,
.backtest-result-card small {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.backtest-result-card small {
  color: var(--muted);
}

.backtest-result-detail {
  margin: 0 14px 14px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.backtest-result-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backtest-result-detail .table-wrap {
  margin: 0 10px 10px;
}

.factorlab-primary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.factorlab-command-cards {
  margin-top: 12px;
}

.factorlab-advanced-fold {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
}

.factorlab-advanced-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.factorlab-advanced-fold summary::-webkit-details-marker {
  display: none;
}

.factorlab-advanced-fold .toolbar {
  padding: 0 12px 12px;
}

.factorlab-discipline-fold {
  margin-top: 10px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.factorlab-discipline-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.factorlab-discipline-fold summary::-webkit-details-marker {
  display: none;
}

.factorlab-discipline-fold .note-list {
  padding: 0 12px 12px;
}

.factorlab-status-strip {
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.9fr;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.factorlab-status-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.factorlab-status-strip span,
.factorlab-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.factorlab-status-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.factorlab-metrics-fold {
  margin-bottom: 12px;
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.factorlab-metrics-fold summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.factorlab-metrics-fold summary::-webkit-details-marker {
  display: none;
}

.factorlab-metrics-fold .metric-grid {
  margin: 0;
  padding: 0 12px 12px;
}

.factorlab-workbench-fold {
  margin-top: 12px;
}

.factorlab-workbench-summary {
  cursor: pointer;
  list-style: none;
}

.factorlab-workbench-summary::-webkit-details-marker {
  display: none;
}

.factorlab-workbench-fold > .table-wrap {
  margin-top: 10px;
}

.factor-lab-decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 12px;
}

.factor-lab-decision-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 126px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.factor-lab-decision-card.primary {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.055);
}

.factor-lab-decision-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.factor-lab-decision-card strong {
  font-size: 15px;
  color: var(--text);
}

.factor-lab-decision-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.48;
}

.factor-lab-decision-card small {
  color: var(--muted);
  line-height: 1.45;
}

.factor-lab-detail {
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 10px 12px;
}

.factor-lab-detail summary {
  cursor: pointer;
  color: var(--soft);
  font-weight: 750;
}

.factor-lab-detail summary::-webkit-details-marker {
  display: none;
}

.factor-lab-detail > .factor-section {
  margin-top: 12px;
}

.stocklab-command-panel {
  display: grid;
  gap: 12px;
}

.stocklab-decision-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  gap: 12px;
}

.stocklab-decision-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.stocklab-decision-card.primary {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.055);
}

.stocklab-decision-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stocklab-decision-card strong {
  font-size: 15px;
  color: var(--text);
}

.stocklab-decision-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.48;
}

.stocklab-decision-card small {
  color: var(--muted);
  line-height: 1.45;
}

.stocklab-detail,
.stocklab-fold {
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.stocklab-detail {
  padding: 10px 12px;
}

.stocklab-detail summary,
.stocklab-fold summary {
  cursor: pointer;
  color: var(--soft);
  font-weight: 750;
}

.stocklab-detail-grid {
  margin-top: 12px;
}

.stocklab-detail-grid > section {
  display: grid;
  gap: 10px;
}

.stocklab-details-zone {
  display: block;
  margin-top: 12px;
}

.stocklab-details-summary {
  cursor: pointer;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  list-style: none;
}

.stocklab-details-summary::-webkit-details-marker {
  display: none;
}

.stocklab-details-zone[open] > .stocklab-fold {
  margin-top: 12px;
}

.stocklab-fold {
  padding: 0;
}

.stocklab-fold-summary {
  list-style: none;
}

.stocklab-fold-summary::-webkit-details-marker,
.stocklab-detail summary::-webkit-details-marker {
  display: none;
}

.stocklab-fold > .table-wrap,
.stocklab-fold > .research-grid,
.stocklab-fold > .note-list,
.stocklab-chart-fold > canvas {
  margin: 0 14px 14px;
}

.stocklab-evidence-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stocklab-evidence-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.stocklab-evidence-card.green {
  border-color: rgba(66, 240, 161, 0.24);
  background: rgba(66, 240, 161, 0.045);
}

.stocklab-evidence-card.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.stocklab-evidence-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.stocklab-evidence-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stocklab-evidence-card p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stocklab-evidence-detail {
  border: 1px solid rgba(120, 156, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.stocklab-evidence-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stocklab-evidence-detail .table-wrap {
  margin: 0 10px 10px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.research-card {
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  min-height: 168px;
}

.research-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.research-body {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.watchlist-lane {
  align-self: start;
  min-height: 520px;
}

.watch-rules-fold {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.watch-rules-fold summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.watch-rules-fold summary::-webkit-details-marker {
  display: none;
}

.watch-rules-fold .note-list {
  margin-top: 8px;
}

.watchlist-fold {
  min-height: 0;
}

.watchlist-fold-summary {
  cursor: pointer;
  list-style: none;
}

.watchlist-fold-summary::-webkit-details-marker {
  display: none;
}

.watchlist-fold-summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.watchlist-fold[open] .watchlist-fold-summary::after {
  content: "收起";
}

.watchlist-fold:not([open]) {
  padding-bottom: 12px;
}

.watchlist-fold:not([open]) .decision-sub,
.watchlist-fold:not([open]) .lane-grid {
  display: none;
}

.lane-grid {
  grid-template-columns: 1fr;
}

.muted-lane {
  opacity: 0.84;
}

.muted-lane .candidate-card {
  background: rgba(255, 255, 255, 0.026);
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(120, 156, 210, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1180px) {
  .physical-ai-hero,
  .physical-ai-grid {
    grid-template-columns: 1fr;
  }

  .physical-ai-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stocklab-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stocklab-primary-row {
    grid-template-columns: 1fr;
  }

  .stocklab-run-row {
    justify-content: flex-start;
  }

  .backtest-primary-row {
    grid-template-columns: 1fr;
  }

  .factorlab-primary-row {
    grid-template-columns: 1fr;
  }

  .stocklab-grid .wide-field {
    grid-column: 1 / -1;
  }

  .stocklab-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .physical-ai-command-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stocklab-evidence-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stocklab-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backtest-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backtest-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factor-lab-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-account-strip,
  .position-status-strip,
  .watch-status-strip,
  .config-status-strip,
  .factorlab-status-strip,
  .history-status-strip,
  .records-status-strip,
  .records-command-cards,
  .history-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .physical-ai-status-strip,
  .physical-ai-hero-metrics,
  .physical-ai-command-cards,
  .physical-ai-rules,
  .physical-ai-plan {
    grid-template-columns: 1fr;
  }

  .physical-ai-card-head {
    display: grid;
  }

  .physical-ai-leader {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .physical-ai-analyze {
    grid-column: 2;
    justify-self: start;
  }

  .stocklab-grid {
    grid-template-columns: 1fr;
  }

  .stocklab-decision-grid {
    grid-template-columns: 1fr;
  }

  .stocklab-evidence-cards {
    grid-template-columns: 1fr;
  }

  .stocklab-status-strip {
    grid-template-columns: 1fr;
  }

  .backtest-decision-grid {
    grid-template-columns: 1fr;
  }

  .backtest-status-strip {
    grid-template-columns: 1fr;
  }

  .factor-lab-decision-grid {
    grid-template-columns: 1fr;
  }

  .overview-account-strip,
  .position-status-strip,
  .watch-status-strip,
  .config-status-strip,
  .factorlab-status-strip,
  .history-status-strip,
  .records-status-strip,
  .records-command-cards,
  .history-summary-cards {
    grid-template-columns: 1fr;
  }

  .decision-summary-grid {
    grid-template-columns: 1fr;
  }

  .attack-strategy-grid {
    grid-template-columns: 1fr;
  }

  .attack-steps > div {
    grid-template-columns: 1fr;
  }

  .attack-steps span {
    width: fit-content;
  }

  .intraday-checks > div {
    grid-template-columns: 1fr;
  }

  .position-action-body {
    grid-template-columns: 1fr;
  }

  .candidate-action-summary {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .today-tomorrow-grid {
    grid-template-columns: 1fr;
  }

  .today-tomorrow-command {
    font-size: 30px;
  }

  .today-tomorrow-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-tomorrow-discipline {
    display: grid;
    justify-content: stretch;
  }

  .today-tomorrow-discipline b {
    text-align: left;
  }
}

.candidate-card {
  padding: 14px;
  animation: cardRise 420ms ease both;
}

.candidate-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.candidate-name {
  font-weight: 700;
}

.candidate-code {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.score {
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(79, 215, 255, 0.24);
}

.score-stack {
  display: grid;
  justify-items: end;
  line-height: 1.05;
  min-width: 72px;
}

.score-stack small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-shadow: none;
}

.candidate-final-status {
  min-width: 96px;
  display: grid;
  justify-items: end;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: right;
}

.candidate-final-status span,
.candidate-final-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.candidate-final-status strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
}

.candidate-final-status.green {
  border-color: rgba(66, 240, 161, 0.32);
  background: rgba(66, 240, 161, 0.06);
}

.candidate-final-status.green strong {
  color: var(--green);
}

.candidate-final-status.amber {
  border-color: rgba(255, 206, 92, 0.32);
  background: rgba(255, 206, 92, 0.065);
}

.candidate-final-status.amber strong {
  color: var(--amber);
}

.candidate-final-status.red {
  border-color: rgba(255, 102, 125, 0.32);
  background: rgba(255, 102, 125, 0.06);
}

.candidate-final-status.red strong {
  color: var(--red);
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  margin-right: 7px;
  border-radius: 6px;
  background: rgba(117, 220, 255, 0.12);
  border: 1px solid rgba(117, 220, 255, 0.28);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.candidate-meta {
  margin-top: 12px;
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
}

.candidate-command-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.candidate-command-card.green {
  border-color: rgba(66, 240, 161, 0.3);
  background: rgba(66, 240, 161, 0.055);
}

.candidate-command-card.amber {
  border-color: rgba(255, 206, 92, 0.3);
  background: rgba(255, 206, 92, 0.06);
}

.candidate-command-card.red {
  border-color: rgba(255, 102, 125, 0.28);
  background: rgba(255, 102, 125, 0.045);
}

.candidate-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.candidate-command-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.candidate-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.candidate-command-grid div {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(5, 9, 16, 0.2);
}

.candidate-command-grid span,
.candidate-command-grid b,
.candidate-command-card small {
  display: block;
}

.candidate-command-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.candidate-command-grid b {
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.candidate-command-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.candidate-action-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.candidate-action-summary > div {
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.candidate-action-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.candidate-action-summary strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.candidate-next-step {
  padding: 8px 9px;
  border: 1px solid rgba(66, 240, 161, 0.18);
  border-radius: 8px;
  background: rgba(66, 240, 161, 0.045);
  color: var(--soft);
  line-height: 1.45;
}

.candidate-full-detail {
  margin-top: 2px;
}

.candidate-attack-readiness {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.candidate-attack-readiness span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.candidate-attack-readiness strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.candidate-attack-readiness.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.055);
}

.candidate-attack-readiness.green span {
  color: var(--green);
  background: rgba(66, 240, 161, 0.1);
}

.candidate-attack-readiness.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.06);
}

.candidate-attack-readiness.amber span {
  color: var(--amber);
  background: rgba(255, 206, 92, 0.1);
}

.candidate-attack-readiness.red {
  border-color: rgba(255, 102, 125, 0.26);
  background: rgba(255, 102, 125, 0.045);
}

.candidate-attack-readiness.red span {
  color: var(--red);
  background: rgba(255, 102, 125, 0.09);
}

.candidate-evidence {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(120, 156, 210, 0.18);
  background: rgba(255, 255, 255, 0.032);
  border-radius: 8px;
}

.candidate-evidence small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.candidate-evidence.green {
  border-color: rgba(66, 240, 161, 0.28);
  background: rgba(66, 240, 161, 0.055);
}

.candidate-evidence.amber {
  border-color: rgba(255, 206, 92, 0.28);
  background: rgba(255, 206, 92, 0.055);
}

.candidate-evidence.red {
  border-color: rgba(255, 102, 125, 0.38);
  background: rgba(255, 102, 125, 0.075);
}

.candidate-detail {
  padding: 8px 9px;
  border: 1px solid rgba(120, 156, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.candidate-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.candidate-detail div {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

[data-icon] {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px, 0 80px; }
}

@keyframes scanSweep {
  0%, 28% { transform: translateY(-55%); opacity: 0; }
  45% { opacity: 0.9; }
  72%, 100% { transform: translateY(55%); opacity: 0; }
}

@keyframes panelSweep {
  0%, 70% { transform: translateX(-90%); opacity: 0; }
  82% { opacity: 0.8; }
  100% { transform: translateX(90%); opacity: 0; }
}

@keyframes panelEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes markGlow {
  0%, 100% { box-shadow: 0 0 26px rgba(79, 215, 255, 0.16); }
  50% { box-shadow: 0 0 32px rgba(66, 240, 161, 0.2); }
}

@keyframes alertPulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 18px rgba(255, 102, 125, 0.16); }
  50% { box-shadow: var(--shadow), 0 0 34px rgba(255, 102, 125, 0.3); }
}

@keyframes mediumBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 206, 92, 0); }
  50% { box-shadow: 0 0 22px rgba(255, 206, 92, 0.13); }
}

@keyframes tagFlash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}

@keyframes syncSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

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

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .sidebar-foot {
    min-width: 132px;
    padding: 0;
    border: 0;
    background: transparent;
    margin-top: 0;
    margin-left: auto;
  }

  .sidebar-foot .mini-label,
  .sidebar-foot .path-line {
    display: none;
  }

  .sidebar-command {
    margin-top: 0;
    min-height: 38px;
    white-space: nowrap;
  }

  .metric-grid,
  .module-data-command,
  .module-health-card-list,
  .overview-account-strip,
  .position-status-strip,
  .watch-status-strip,
  .operation-checklist,
  .action-brief-head,
  .action-flow,
  .action-brief-grid,
  .agent-decision-grid,
  .agent-learning-grid,
  .agent-playbook-list,
  .agent-execution-contract,
  .agent-decision-orders,
  .health-summary-cards,
  .config-summary-cards,
  .records-status-strip,
  .records-command-cards,
  .module-focus-grid,
  .command-center-command-grid,
  .command-center-grid,
  .broker-desk-grid,
  .pretrade-summary-cards,
  .pretrade-order-cards,
  .broker-order-cards,
  .broker-order-card-grid,
  .manual-order-cards,
  .manual-order-card-grid,
  .holding-action-cards,
  .holding-action-card-grid,
  .quant-signal-cards,
  .quant-signal-card-grid,
  .quant-backtest-cards,
  .quant-backtest-card-grid,
  .quant-robust-cards,
  .quant-robust-card-grid,
  .quant-factor-cards,
  .quant-factor-card-grid,
  .trade-console-summary,
  .trade-console-cards,
  .trade-console-card-grid,
  .backtest-result-cards,
  .backtest-trade-summary,
  .user-management-cards,
  .layout-two,
  .layout-three,
  .factor-source-grid,
  .history-workbench,
  .watchlist-columns,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .input.wide {
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-value {
    font-size: 26px;
  }

  .agent-debate-grid {
    grid-template-columns: 1fr;
  }

  .overview-debate-hero,
  .overview-debate-grid,
  .goal-progress-scoreboard,
  .evolution-locator {
    grid-template-columns: 1fr;
  }

  .evolution-locator-actions {
    justify-content: flex-start;
  }

  .overview-debate-link {
    justify-self: start;
  }
}
