.anomaly-page { max-width: 1440px; margin: 0 auto; }
.anomaly-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.anomaly-head h1 { margin:4px 0 6px; font-size:28px; }
.anomaly-head p { max-width:760px; margin:0; color:var(--ws-copy); font-size:14px; line-height:1.7; }
.anomaly-actions { display:flex; align-items:center; gap:12px; color:var(--ws-muted); font-size:12.5px; white-space:nowrap; }
.anomaly-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.anomaly-summary-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.anomaly-summary article { display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 16px; padding:15px 17px; border:1px solid var(--ws-line); border-radius:12px; background:#fff; box-shadow:var(--ws-shadow); }
.anomaly-summary span { color:var(--ws-copy); font-size:13px; font-weight:750; }
.anomaly-summary strong { grid-row:1 / span 2; grid-column:2; color:var(--ws-ink); font-size:30px; line-height:1; font-variant-numeric:tabular-nums; }
.anomaly-summary small { color:var(--ws-muted); font-size:12px; }
.anomaly-tabs { display:flex; gap:2px; padding:0 6px; border-bottom:1px solid var(--ws-line); background:#fff; border-radius:12px 12px 0 0; }
.anomaly-tabs button { position:relative; border:0; padding:15px 18px 14px; color:var(--ws-muted); background:transparent; font:700 14px/1.2 inherit; cursor:pointer; }
.anomaly-tabs button::after { position:absolute; right:16px; bottom:-1px; left:16px; height:3px; border-radius:3px 3px 0 0; background:transparent; content:""; }
.anomaly-tabs button.active { color:var(--ws-ink); }
.anomaly-tabs button.active::after { background:#df4b4b; }
.anomaly-tabs button span { margin-left:5px; color:var(--ws-muted); font-size:11px; }
.anomaly-panel { min-height:320px; border:1px solid var(--ws-line); border-top:0; border-radius:0 0 12px 12px; overflow:hidden; background:#fff; box-shadow:var(--ws-shadow); }
.hotlist-page .anomaly-panel { border-top:1px solid var(--ws-line); border-radius:12px; }
.anomaly-table { width:100%; border-collapse:collapse; }
.anomaly-table th { padding:12px 14px; border-bottom:1px solid var(--ws-line); color:var(--ws-muted); background:#f8fafc; font-size:12px; text-align:left; white-space:nowrap; }
.anomaly-table td { padding:13px 14px; border-bottom:1px solid var(--ws-line-soft); color:var(--ws-ink); font-size:13px; vertical-align:middle; }
.anomaly-table tr:last-child td { border-bottom:0; }
.anomaly-table tbody tr:hover { background:#fbfcfe; }
.stock-name { display:block; font-size:14px; font-weight:800; }
.stock-code { display:block; margin-top:3px; color:var(--ws-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.metric { display:block; font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; }
.metric.up, .trigger { color:#df4b4b; }
.metric.down { color:#15956f; }
.subvalue { display:block; margin-top:3px; color:var(--ws-muted); font-size:12px; }
.subvalue.current-deviation:not(:empty) { color:#df4b4b; font-weight:800; }
.rule { max-width:360px; color:var(--ws-copy); line-height:1.5; }
.status-tag, .scope-tag { display:inline-flex; padding:3px 8px; border-radius:999px; font-size:11.5px; font-weight:750; }
.anomaly-note { margin:0; padding:13px 16px; border-bottom:1px solid var(--ws-line); color:#3f7fe8; background:#f8fbff; font-size:14px; font-weight:800; }
.anomaly-note::before { display:inline-block; width:5px; height:18px; margin-right:10px; border-radius:2px; background:#3f7fe8; vertical-align:-4px; content:""; }
.status-tag { color:#b33a43; background:#fff0f1; }
.scope-tag { color:#53657a; background:#eef2f6; }
.scope-tag.next { color:#9a6200; background:#fff6df; }
.anomaly-state { padding:64px 24px; color:var(--ws-muted); text-align:center; }
.anomaly-state.error { color:#b33a43; }
.hotlist-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:620px; }
.hotlist-card + .hotlist-card { border-left:1px solid var(--ws-line); }
.hotlist-card > header { display:flex; align-items:center; justify-content:space-between; min-height:72px; padding:14px 18px; border-bottom:1px solid var(--ws-line); }
.hotlist-card > header h2 { margin:0; color:var(--ws-ink); font-size:18px; }
.hotlist-card > header p { margin:0; color:var(--ws-muted); font-size:11.5px; }
.hotlist-card > header > span { padding:5px 9px; border-radius:999px; color:#416da9; background:#eef5ff; font-size:12px; font-weight:800; }
.hot-platform-tabs { display:flex; overflow-x:auto; border-bottom:1px solid var(--ws-line); }
.hot-platform-tabs button { flex:1 0 auto; border:0; border-bottom:3px solid transparent; padding:12px 9px 10px; color:var(--ws-muted); background:#fff; font:750 13px/1 inherit; cursor:pointer; }
.hot-platform-tabs button.active { border-bottom-color:#3f7fe8; color:#286fd5; }
.hotlist-rows { max-height:720px; overflow:auto; }
.hot-stock-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; width:100%; gap:10px; align-items:center; border:0; border-bottom:1px solid var(--ws-line-soft); padding:13px 16px; color:var(--ws-ink); background:#fff; text-align:left; cursor:pointer; }
.hot-stock-row:hover { background:#f8fbff; }
.hot-rank { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; color:#fff; background:#f3a514; font-weight:850; }
.hot-rank.top { background:#ff4e55; }
.hot-stock-copy { min-width:0; }
.hot-stock-title { display:flex; align-items:center; gap:7px; min-width:0; }
.hot-stock-title b { overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.hot-stock-title small { color:#929dac; font-size:12px; font-weight:750; }
.hot-stock-title em { border:1px solid #ffb184; border-radius:7px; padding:2px 6px; color:#e34c1b; background:#fff7f1; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }
.hot-tags,.hot-platform-ranks { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.hot-tags span { border:1px solid #8ec8ff; border-radius:6px; padding:2px 6px; color:#1264c7; background:#edf7ff; font-size:10.5px; font-weight:700; }
.hot-platform-ranks span { border:1px solid #f2ca68; border-radius:6px; padding:2px 6px; color:#b86b00; background:#fffaf0; font-size:10.5px; }
.hot-platform-ranks .ths { border-color:#ffc28f; color:#d45a16; }
.hot-platform-ranks .kaipanla { border-color:#ff9f9f; color:#d73535; background:#fff5f5; }
.hot-platform-ranks .tgb { border-color:#d4a2fa; color:#7e35bc; background:#fbf5ff; }
.hot-quote { text-align:right; white-space:nowrap; }
.hot-quote b { display:block; font-size:15px; font-variant-numeric:tabular-nums; }
.hot-quote small { display:block; margin-top:4px; color:var(--ws-copy); font-size:12px; }
@media (max-width:800px) {
  .anomaly-page { padding-right:12px !important; padding-left:12px !important; }
  .anomaly-head { align-items:flex-start; flex-direction:column; gap:12px; }
  .anomaly-actions { width:100%; justify-content:space-between; }
  .anomaly-summary { grid-template-columns:1fr; gap:8px; }
  .anomaly-summary article { padding:12px 14px; }
  .anomaly-summary strong { font-size:25px; }
  .anomaly-tabs { overflow-x:auto; padding:0; }
  .anomaly-tabs button { flex:0 0 auto; padding:13px 14px; }
  .anomaly-panel { overflow-x:auto; }
  .anomaly-table { min-width:760px; }
  .anomaly-table th, .anomaly-table td { padding:11px 10px; }
  .hotlist-grid { grid-template-columns:1fr; }
  .hotlist-card + .hotlist-card { border-top:1px solid var(--ws-line); border-left:0; }
  .hotlist-rows { max-height:640px; }
  .hot-stock-row { padding:11px 12px; }
}
