/* A股异动监控：高密度信息，仅在临界风险处用红色。 */
.anomaly-monitor {
  color: #243347;
  font-variant-numeric: tabular-nums;
}
.anomaly-head {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 54px 16px 22px;
  border-bottom: 1px solid #dbe4eb;
  background: #fbfcfd;
}
.anomaly-kicker {
  display: block;
  margin-bottom: 4px;
  color: #b62e37;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.anomaly-head h2 { margin: 0; color: #17263a; font-size: 20px; line-height: 1.35; }
.anomaly-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.anomaly-source {
  display: grid;
  grid-template-columns: 7px auto;
  max-width: 310px;
  align-items: center;
  column-gap: 7px;
  color: #527078;
  font-size: 10px;
  text-align: right;
}
.anomaly-source i {
  grid-row: 1 / 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #148386;
  box-shadow: 0 0 0 4px #e3f2f2;
}
.anomaly-source b { font-size: 11px; }
.anomaly-source small { color: #8b9bab; }
.anomaly-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 22px;
  background: #f3f6f8;
}
.anomaly-summary[hidden] { display: none !important; }
.anomaly-summary > div {
  position: relative;
  min-height: 68px;
  padding: 11px 12px 10px 56px;
  border: 1px solid #dce5ec;
  border-radius: 7px;
  background: #fff;
}
.anomaly-summary span { display: block; color: #6b7e91; font-size: 11px; }
.anomaly-summary b {
  position: absolute;
  top: 13px;
  left: 14px;
  color: #c6333c;
  font-size: 24px;
  line-height: 1;
}
.anomaly-summary small { display: block; margin-top: 6px; color: #8796a6; font-size: 10px; }
.anomaly-main-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 22px 0;
  border-bottom: 1px solid #dbe4eb;
}
.anomaly-main-tabs button,
.anomaly-window-tabs button {
  border: 0;
  background: transparent;
  color: #718397;
  cursor: pointer;
}
.anomaly-main-tabs button {
  position: relative;
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}
.anomaly-main-tabs button.on { color: #17263a; }
.anomaly-main-tabs button.on::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: #c6333c;
  content: "";
}
.anomaly-main-tabs button:focus-visible,
.anomaly-window-tabs button:focus-visible {
  outline: 2px solid #416e99;
  outline-offset: -2px;
}
.anomaly-window-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 22px 8px;
}
.anomaly-window-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d4dee7;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.anomaly-window-tabs button i {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  border-radius: 9px;
  background: #edf1f5;
  font-style: normal;
  font-size: 9px;
}
.anomaly-window-tabs button.on {
  border-color: #273a51;
  background: #273a51;
  color: #fff;
}
.anomaly-window-tabs button.on i { background: rgba(255,255,255,.16); }
.anomaly-assumption,
.anomaly-active-note {
  margin: 0 22px 10px;
  padding: 8px 10px;
  border-left: 3px solid #dda24f;
  background: #fff9ee;
  color: #7d694b;
  font-size: 10px;
}
.anomaly-assumption b,
.anomaly-active-note b { margin-right: 6px; color: #815b22; }
.anomaly-alert-body { min-height: 210px; padding: 0 22px 14px; }
.anomaly-table {
  max-height: 42vh;
  border: 1px solid #dce4eb;
  border-radius: 7px;
}
.anomaly-table table { min-width: 860px; }
.anomaly-table th { position: sticky; top: 0; z-index: 1; background: #f2f5f7; }
.anomaly-table td { vertical-align: middle; }
.anomaly-table td small { display: block; margin-top: 2px; color: #8b99a8; font-size: 9px; }
.anomaly-table .stock-code { margin-left: 5px; font-size: 9px; }
.anomaly-risk,
.anomaly-system-label,
.anomaly-observe-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}
.anomaly-risk.near { background: #fff0f1; color: #b72e37; }
.anomaly-risk.hit { background: #c6333c; color: #fff; }
.anomaly-needed { color: #c6333c; font-size: 12px; }
.anomaly-observe-label { background: #e3f2f0; color: #176d70; }
.anomaly-system-label { background: #fff0d6; color: #8a5d18; }
.anomaly-active-note {
  margin-top: 14px;
  padding: 0;
  border-left: 0;
  background: transparent;
  color: #728397;
}
.anomaly-active-note b { color: #536a81; }
.anomaly-regulatory-table {
  margin: 0 22px 18px;
  border-top: 1px solid #dce5eb;
  border-radius: 0;
}
.anomaly-regulatory-table table { width: 100%; min-width: 780px; border-collapse: collapse; }
.anomaly-regulatory-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #dce5eb;
  background: #f7f9fa;
  color: #718297;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
}
.anomaly-regulatory-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e4eaef;
  color: #34485d;
  vertical-align: middle;
}
.anomaly-regulatory-table tbody tr:last-child td { border-bottom: 0; }
.anomaly-regulatory-table td:first-child { width: 19%; }
.anomaly-regulatory-table .stock-link-btn { font-size: 13px; }
.anomaly-regulatory-table td > small,
.anomaly-reg-note small {
  display: block;
  margin-top: 3px;
  color: #8797a7;
  font-size: 9px;
  line-height: 1.45;
}
.anomaly-reg-date { width: 21%; font-variant-numeric: tabular-nums; }
.anomaly-reg-date b { color: #24384e; font-size: 15px; letter-spacing: .01em; }
.anomaly-reg-end b { color: #bd3039; }
.anomaly-reg-note { width: 39%; font-size: 10px; }
.anomaly-reg-note span { font-weight: 650; }
.anomaly-regulatory-table.is-history .anomaly-reg-end b { color: #5f7387; }
.anomaly-history { margin: 0 22px 18px; border-top: 1px solid #e1e8ed; }
.anomaly-history > summary {
  min-height: 44px;
  padding: 13px 0;
  color: #5c7085;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.anomaly-history > summary i {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e7edf1;
  color: #708296;
  font-style: normal;
  font-size: 9px;
}
.anomaly-history .anomaly-regulatory-table { margin: 0 0 4px; }
.anomaly-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px 13px;
  border-top: 1px solid #e0e7ed;
  background: #fafbfc;
  color: #8a98a7;
  font-size: 9px;
}
.anomaly-loading,
.anomaly-not-ready {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}
.anomaly-loading > span {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border: 2px solid #d9e2e9;
  border-top-color: #2b7081;
  border-radius: 50%;
  animation: anomaly-spin .8s linear infinite;
}
.anomaly-loading b,
.anomaly-not-ready b { color: #24374d; font-size: 14px; }
.anomaly-loading small,
.anomaly-not-ready small { margin-top: 5px; color: #8998a8; font-size: 10px; }
.anomaly-not-ready p { margin: 8px 0 0; color: #687a8d; font-size: 12px; }
.anomaly-panel-empty { min-height: 210px; }
@keyframes anomaly-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .anomaly-head { align-items: flex-start; flex-direction: column; padding: 17px 46px 14px 15px; }
  .anomaly-source { text-align: left; }
  .anomaly-summary { grid-template-columns: 1fr; padding: 10px 15px; }
  .anomaly-summary > div { min-height: 58px; }
  .anomaly-main-tabs,
  .anomaly-window-tabs { padding-left: 15px; padding-right: 15px; overflow-x: auto; }
  .anomaly-assumption,
  .anomaly-active-note { margin-right: 15px; margin-left: 15px; }
  .anomaly-alert-body { padding-right: 15px; padding-left: 15px; }
  .anomaly-history { margin-right: 15px; margin-left: 15px; }
  .anomaly-regulatory-table { margin-right: 15px; margin-left: 15px; overflow: visible; }
  .anomaly-regulatory-table table,
  .anomaly-regulatory-table tbody,
  .anomaly-regulatory-table tr,
  .anomaly-regulatory-table td { display: block; width: 100%; min-width: 0; }
  .anomaly-regulatory-table thead { display: none; }
  .anomaly-regulatory-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 11px 0;
    border-bottom: 1px solid #e1e8ed;
  }
  .anomaly-regulatory-table td { padding: 5px 8px; border: 0; }
  .anomaly-regulatory-table td:first-child,
  .anomaly-regulatory-table .anomaly-reg-note { grid-column: 1 / -1; }
  .anomaly-regulatory-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #8494a5;
    content: attr(data-label);
    font-size: 9px;
  }
  .anomaly-reg-date b { font-size: 14px; }
  .anomaly-foot { align-items: flex-start; flex-direction: column; padding-right: 15px; padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .anomaly-loading > span { animation: none; }
}
.stock-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 6px 16px;
  padding-right: 28px;
}
.stock-modal-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}
.stock-modal-identity h3 { margin: 0; }
.stock-watch-add {
  display: inline-flex;
  align-items: stretch;
  min-height: 30px;
  padding: 0;
  overflow: hidden;
  border-color: #b8c7d4;
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(25, 43, 62, .04);
  white-space: nowrap;
}
.stock-watch-add span,
.stock-watch-add b {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  line-height: 1;
}
.stock-watch-add b {
  border-left: 1px solid var(--line);
  color: var(--teal);
  font-weight: 700;
}
.stock-watch-add:hover {
  border-color: #91a5b6;
  background: var(--surface);
  color: var(--ink);
}
.stock-watch-add:hover b { border-color: #bac7d2; color: var(--teal); }
.stock-watch-add.is-loading { cursor: wait; }
.stock-watch-add.is-added:disabled {
  opacity: 1;
  border-color: #b9d5d5;
  background: var(--teal-bg);
  color: var(--ink-2);
  cursor: default;
}
.stock-watch-add.is-added b {
  border-color: #b9d5d5;
  color: var(--teal);
}
.stock-quote-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
  min-width: 620px;
  margin-top: -1px;
  font-variant-numeric: tabular-nums;
}
.stock-quote-primary,
.stock-quote-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stock-quote-primary > span,
.stock-quote-metrics > span {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}
.stock-quote-strip small {
  color: #8a98a8;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
}
.stock-quote-strip b {
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.2;
}
.stock-quote-primary b { font-size: 15px; }
.stock-quote-strip b.up { color: var(--up); }
.stock-quote-strip b.down { color: var(--down); }
.stock-quote-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid #d4dde5;
  border-radius: 999px;
  background: #f5f7f9;
  color: #708093;
  font-size: 8.5px;
  line-height: 1.15;
  white-space: nowrap;
}
.stock-quote-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a98a8;
}
.stock-quote-status.is-live {
  border-color: #b7ddd6;
  background: #edf8f5;
  color: #176d5e;
}
.stock-quote-status.is-live i { background: #1a8b75; }
.stock-quote-status.is-delayed {
  border-color: #ead4ad;
  background: #fff8e9;
  color: #946321;
}
.stock-quote-status.is-delayed i { background: #c48a2f; }
.stock-modal-head .modal-lu-reason { grid-column: 1 / -1; margin-top: 1px; }
.modal-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.modal-tags { margin-bottom: 6px; }
.modal-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 9px 0; }
.mchart-box { padding: 7px 7px 3px; border: 1px solid var(--line); border-radius: 7px; }
.mchart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin: 0 3px 2px;
}
.mchart-title { margin: 0; color: var(--muted); font-size: 11px; }
.mchart-source {
  max-width: 470px;
  margin-top: 2px;
  color: #95a1ae;
  font-size: 9.5px;
  line-height: 1.25;
}
.mchart-volume-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.2;
}
.mchart-volume-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 3px;
  margin-right: 4px;
  border-radius: 1px;
  vertical-align: 2px;
}
.mchart-volume-legend .buy-unmatched::before { background: var(--up); }
.mchart-volume-legend .sell-unmatched::before { background: var(--down); }
.mchart-volume-legend .matched::before { background: #34495e; }
.mchart-session-legend {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.mchart-session-legend span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: 0;
  background: #24364b;
}
.mchart-session-legend .opening::before {
  background: #6d4cc7;
}
.mchart-session-legend .closing::before {
  background: #167d82;
}
.mchart { width: 100%; height: 315px; }
.chart { width: 100%; height: 260px; }

