  :root {
    --bg: #0b1220;
    --panel: #111a2c;
    --panel-2: #16223a;
    --panel-hover: #1c2b48;
    --line: rgba(148, 173, 214, 0.14);
    --text: #e8eefb;
    --text-dim: #8fa3c3;
    --text-faint: #5f7396;
    --up: #ff5d5d;
    --down: #17c98f;
    --accent: #f5a623;
    --accent-soft: rgba(245, 166, 35, 0.14);
    --ok: #2fd189;
    --danger: #ff4757;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    background: radial-gradient(1200px 500px at 50% -10%, #14203a 0%, var(--bg) 55%);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    padding: 20px clamp(12px, 3vw, 32px) 40px;
  }
  .num { font-variant-numeric: tabular-nums; font-family: Bahnschrift, "DIN Alternate", Consolas, "Segoe UI", sans-serif; }
  .wrap { max-width: 1120px; margin: 0 auto; }

  /* 顶部导航与设置工具条 */
  .head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand .logo { width: 30px; height: 30px; flex: 0 0 30px; }
  .brand h1 { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
  .brand small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 400; margin-top: 1px; }
  .head-actions { display: flex; align-items: center; gap: 10px; }

  /* 设置入口与气泡浮层 */
  .settings-wrap { position: relative; }
  .settings-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px; font-size: 12px;
    border-radius: 8px; transition: background .15s, border-color .15s, color .15s;
  }
  .settings-trigger.active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.45);
    color: var(--accent);
  }
  .settings-popover {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px;
    background: #111a2d;
    border: 1px solid rgba(148, 173, 214, 0.18);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 100;
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    gap: 14px;
  }
  .settings-popover.open {
    display: flex;
    animation: popover-drop .15s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes popover-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .popover-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .popover-title {
    font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.3px;
  }
  .popover-close {
    background: transparent; border: none; color: var(--text-faint);
    cursor: pointer; padding: 2px 6px; font-size: 14px; line-height: 1; border-radius: 4px;
    transition: color .15s, background .15s;
  }
  .popover-close:hover { color: var(--text); background: rgba(148, 173, 214, 0.1); }
  .popover-section { display: flex; flex-direction: column; gap: 10px; }
  .popover-section-label {
    font-size: 11px; font-weight: 600; color: var(--text-faint);
    letter-spacing: 0.5px;
  }
  .popover-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .popover-row .row-label { font-size: 12px; color: var(--text); }
  .popover-row .row-desc { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
  .popover-select {
    background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
    border-radius: 6px; padding: 5px 8px; font-size: 12px; outline: none; cursor: pointer;
    min-width: 110px;
  }
  .popover-select:focus { border-color: rgba(245, 166, 35, 0.5); }
  .popover-range {
    width: 80px; height: 5px; accent-color: var(--accent); cursor: pointer;
  }
  .volume-ctrl { display: flex; align-items: center; gap: 8px; }
  .btn-xs { height: 26px; padding: 0 8px; font-size: 11px; border-radius: 5px; }

  /* 现代滑动开关 Toggle Switch */
  .switch-toggle {
    position: relative; display: inline-block; width: 36px; height: 20px;
    cursor: pointer; flex-shrink: 0;
  }
  .switch-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
  .switch-slider {
    position: absolute; inset: 0; background-color: var(--panel-2);
    border: 1px solid var(--line); border-radius: 20px;
    transition: background-color .2s, border-color .2s;
  }
  .switch-slider:before {
    position: absolute; content: ""; height: 14px; width: 14px;
    left: 2px; bottom: 2px; background-color: var(--text-dim);
    border-radius: 50%; transition: transform .2s, background-color .2s;
  }
  .switch-toggle input:checked + .switch-slider {
    background-color: var(--accent-soft);
    border-color: rgba(245, 166, 35, 0.5);
  }
  .switch-toggle input:checked + .switch-slider:before {
    transform: translateX(16px);
    background-color: var(--accent);
  }

  .popover-footer {
    padding-top: 10px; border-top: 1px solid var(--line);
  }
  .popover-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .popover-btns .btn { width: 100%; }

  @media (max-width: 600px) {
    .settings-popover {
      position: fixed;
      top: 62px;
      left: 14px;
      right: 14px;
      width: auto;
      max-width: 380px;
      margin-left: auto;
    }
  }

  .status-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px; font-size: 12px;
    border: 1px solid var(--line); color: var(--text-dim); background: rgba(148,173,214,.06);
    user-select: none; transition: all .2s;
  }
  .status-pill.clickable { cursor: pointer; }
  .status-pill.clickable:hover { border-color: rgba(245,166,35,.5); }
  .status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
  .status-pill.on .dot { background: var(--ok); box-shadow: 0 0 8px rgba(47,209,137,.8); }
  .status-pill.on { color: #bfe8d6; border-color: rgba(47,209,137,.4); }
  .status-pill.backup .dot { background: var(--accent); box-shadow: 0 0 8px rgba(245,166,35,.8); }
  .status-pill.backup { color: #ffe6b0; border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.08); }
  .status-pill.error .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
  .status-pill.error { color: #ff9f9f; border-color: rgba(255,71,87,.5); background: rgba(255,71,87,.12); animation: pill-pulse 1s infinite alternate; }
  .status-pill.triggered .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
  .status-pill.triggered { color: #ff9f9f; border-color: rgba(255,71,87,.5); background: rgba(255,71,87,.1); animation: pill-pulse 1s infinite alternate; }
  .status-pill.throttled .dot { background: #8fa3c3; box-shadow: 0 0 6px rgba(148,173,214,.4); }
  .status-pill.throttled { color: #8fa3c3; border-color: rgba(148,173,214,.3); background: rgba(148,173,214,.08); }
  @keyframes pill-pulse { 0% { opacity: 0.85; } 100% { opacity: 1; } }

  /* 数据时效性过期 */
  tr.row-stale td { opacity: 0.65; }
  .stale-tag { font-size: 10px; color: #ff9f9f; background: rgba(255,71,87,.15); padding: 1px 4px; border-radius: 3px; margin-left: 4px; font-weight: normal; }

  /* 价格跳动微光动画 */
  @keyframes tick-up {
    0% { background-color: rgba(255, 93, 93, 0.32); }
    100% { background-color: transparent; }
  }
  @keyframes tick-down {
    0% { background-color: rgba(23, 201, 143, 0.32); }
    100% { background-color: transparent; }
  }
  .tick-flash-up {
    animation: tick-up 0.75s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 4px;
    padding: 1px 3px;
  }
  .tick-flash-down {
    animation: tick-down 0.75s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 4px;
    padding: 1px 3px;
  }

  /* 通用卡片容器 */
  .card {
    background: linear-gradient(180deg, var(--panel) 0%, rgba(17,26,44,.7) 100%);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px; margin-bottom: 16px;
  }

  /* 添加表单 */
  .add-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 12px; align-items: end; }
  .field { position: relative; }
  .field label { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 6px; letter-spacing: 0.3px; white-space: nowrap; }
  .field-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; min-height: 20px; gap: 6px; }
  .field-head-row label { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
  .code-preview-badge {
    font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 999px;
    background: rgba(17, 26, 44, 0.85); border: 1px solid rgba(148, 173, 214, 0.22);
    display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  }
  .quick-target-tags { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
  .target-tag-btn {
    background: rgba(255, 93, 93, 0.08); color: #ff7b7b; border: 1px solid rgba(255, 93, 93, 0.22);
    border-radius: 999px; font-size: 10px; font-weight: 600; padding: 1px 5px; cursor: pointer;
    font-family: var(--font-num, ui-monospace, monospace); line-height: 1.2;
    transition: all 0.15s ease;
  }
  .target-tag-btn:hover {
    background: rgba(255, 93, 93, 0.22); border-color: rgba(255, 93, 93, 0.5); color: #fff;
    transform: translateY(-1px); box-shadow: 0 2px 6px rgba(255, 93, 93, 0.25);
  }
  .target-tag-btn.down {
    background: rgba(23, 201, 143, 0.08); color: #4ade80; border: 1px solid rgba(23, 201, 143, 0.22);
  }
  .target-tag-btn.down:hover {
    background: rgba(23, 201, 143, 0.22); border-color: rgba(23, 201, 143, 0.5); color: #fff;
    box-shadow: 0 2px 6px rgba(23, 201, 143, 0.25);
  }
  .field input, .field select {
    width: 100%; height: 38px; padding: 0 12px;
    background: var(--panel-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
    outline: none; transition: border-color .15s;
  }
  .field input:focus, .field select:focus { border-color: rgba(245,166,35,.55); }
  .field input::placeholder { color: var(--text-faint); }
  /* 隐藏浏览器原生 number 箭头，消除遮挡并保持专业质感 */
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }
  .suggest {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
    background: #0e1830; border: 1px solid var(--line); border-radius: 8px;
    max-height: 240px; overflow-y: auto; display: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.5);
  }
  .suggest.open { display: block; }
  .suggest .it { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; cursor: pointer; }
  .suggest .it:hover { background: rgba(245,166,35,.14); }
  .suggest .it .nm { font-weight: 600; color: var(--text); }
  .suggest .it .meta { display: flex; align-items: center; gap: 6px; }
  .suggest .it .cd { color: var(--text-faint); font-size: 12px; }
  .suggest .it .mk { font-size: 10px; color: var(--accent); border: 1px solid rgba(245,166,35,.4); border-radius: 3px; padding: 1px 4px; }
  .btn {
    height: 38px; padding: 0 18px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: all .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  }
  .btn-primary { background: var(--accent); color: #201503; }
  .btn-primary:hover { filter: brightness(1.1); }
  .btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
  .btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
  .btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }
  .btn-danger { background: var(--danger); color: #fff; }
  .btn-danger:hover { filter: brightness(1.12); }
  .btn-warn { background: rgba(245,166,35,.2); color: #ffd384; border: 1px solid rgba(245,166,35,.4); }
  .btn-warn:hover { background: rgba(245,166,35,.3); }

  /* 提示条与极简要点 */
  .sound-tip {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tip-compact-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-faint);
    font-size: 11px;
    user-select: none;
  }
  .tip-tag-item {
    color: var(--text-dim);
    font-weight: 500;
  }
  .tip-sep {
    color: rgba(148, 173, 214, 0.25);
    font-size: 10px;
  }
  
  /* Apple 风格状态指示灯 */
  .audio-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(148, 173, 214, 0.05);
    border: 1px solid rgba(148, 173, 214, 0.12);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
  }
  .audio-status-pill:hover {
    background: rgba(148, 173, 214, 0.1);
    border-color: rgba(148, 173, 214, 0.25);
    transform: translateY(-0.5px);
  }
  .audio-led {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #5f7396;
    position: relative;
    transition: all .25s ease;
    flex-shrink: 0;
  }
  .audio-status-pill.ready .audio-led {
    background: #30d158;
    box-shadow: 0 0 6px rgba(48, 209, 88, 0.75);
  }
  .audio-status-pill.ready .audio-label {
    color: var(--text-dim);
  }
  .audio-status-pill.pending .audio-led {
    background: #ff9f0a;
    box-shadow: 0 0 6px rgba(255, 159, 10, 0.75);
    animation: audioLedPulse 1.8s infinite ease-in-out;
  }
  .audio-status-pill.pending .audio-label {
    color: #ff9f0a;
  }
  .audio-status-pill.muted .audio-led {
    background: #636366;
    box-shadow: none;
  }
  .audio-status-pill.muted .audio-label {
    color: var(--text-faint);
  }
  @keyframes audioLedPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
  }
  .audio-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.2px;
  }

  /* 监控列表表格 */
  .table-card { padding: 0; overflow: hidden; }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 173, 214, 0.2) transparent;
  }
  .table-responsive::-webkit-scrollbar {
    height: 4px;
  }
  .table-responsive::-webkit-scrollbar-track {
    background: transparent;
  }
  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(148, 173, 214, 0.2);
    border-radius: 4px;
  }
  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 173, 214, 0.35);
  }
  table { width: 100%; border-collapse: collapse; text-align: left; }
  thead th {
    background: rgba(148, 173, 214, 0.04);
    color: var(--text-faint); font-weight: 500; font-size: 11px;
    padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
    user-select: none;
  }
  thead th.text-right { text-align: right; }
  thead th.text-center { text-align: center; }

  tbody tr {
    border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s;
    position: relative;
  }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: var(--panel-hover); }
  tbody tr.selected {
    background: rgba(245, 166, 35, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--accent);
  }
  tbody tr.row-triggered {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.18), rgba(245, 166, 35, 0.16)) !important;
    animation: flash-row 1.2s infinite ease-in-out;
  }
  tbody tr.row-triggered-danger {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.22), rgba(255, 71, 87, 0.08)) !important;
    animation: flash-row-danger 1.2s infinite ease-in-out;
  }
  tbody tr.row-triggered-warn {
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0.08)) !important;
    animation: flash-row-warn 1.2s infinite ease-in-out;
  }
  tbody tr.row-triggered-info {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.06)) !important;
    animation: flash-row-info 1.2s infinite ease-in-out;
  }
  @keyframes flash-row {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 71, 87, 0); }
    50% { box-shadow: inset 0 0 16px rgba(255, 71, 87, 0.35); }
  }
  @keyframes flash-row-danger {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 71, 87, 0); }
    50% { box-shadow: inset 0 0 18px rgba(255, 71, 87, 0.45); }
  }
  @keyframes flash-row-warn {
    0%, 100% { box-shadow: inset 0 0 0 rgba(245, 166, 35, 0); }
    50% { box-shadow: inset 0 0 16px rgba(245, 166, 35, 0.45); }
  }
  @keyframes flash-row-info {
    0%, 100% { box-shadow: inset 0 0 0 rgba(56, 189, 248, 0); }
    50% { box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.4); }
  }

  /* 行内原因胶囊 */
  .row-cause-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
    user-select: none;
    margin-left: 6px;
  }
  .row-cause-pill.cause-danger {
    background: rgba(255, 71, 87, 0.2);
    color: #ff7b8b;
    border: 1px solid rgba(255, 71, 87, 0.55);
    animation: pill-pulse-danger 1s infinite alternate;
  }
  .row-cause-pill.cause-warn {
    background: rgba(245, 166, 35, 0.18);
    color: #ffa502;
    border: 1px solid rgba(245, 166, 35, 0.5);
  }
  .row-cause-pill.cause-info {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
  }
  @keyframes pill-pulse-danger {
    0% { opacity: 0.85; }
    100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 71, 87, 0.45); }
  }
  .badge-triggered.badge-danger {
    color: #ff9f9f;
    background: rgba(255, 71, 87, 0.22);
    border-color: rgba(255, 71, 87, 0.6);
  }
  .badge-triggered.badge-warn {
    color: #ffd180;
    background: rgba(245, 166, 35, 0.22);
    border-color: rgba(245, 166, 35, 0.6);
  }
  .badge-triggered.badge-info {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.6);
  }
  td { padding: 9px 12px; vertical-align: middle; white-space: nowrap; font-size: 13px; }
  td.text-right { text-align: right; }
  td.text-center { text-align: center; }

  /* 单元格元素与排版 */
  .col-asset { min-width: 170px; }
  .asset-primary { display: flex; align-items: center; gap: 6px; }
  .asset-name { font-weight: 600; color: var(--text); font-size: 13.5px; }
  .asset-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; }
  .asset-code { color: var(--text-faint); font-weight: 500; }
  .mk-tag { font-size: 10px; border-radius: 3px; padding: 1px 5px; font-weight: 500; }
  .mk-tag.a { color: #8fa3c3; background: rgba(148,173,214,.1); border: 1px solid rgba(148,173,214,.2); }
  .mk-tag.hk { color: var(--accent); background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3); }

  .col-quote { min-width: 115px; }
  .quote-price { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
  .quote-chg { font-size: 11px; margin-top: 2px; line-height: 1.2; font-weight: 500; }

  .col-target { min-width: 165px; }
  .target-item-line {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    font-size: 11.5px; line-height: 1.35;
  }
  .target-lbl { color: var(--text-faint); font-weight: 500; }
  .target-diff-num { min-width: 58px; text-align: right; font-weight: 600; }
  .target-diff-num.diff-safe { color: var(--text-dim); }
  .target-diff-num.diff-near { color: var(--accent); font-weight: 700; text-shadow: 0 0 6px rgba(245,166,35,0.4); }
  .target-diff-num.diff-hit-up { color: var(--up); font-weight: 700; text-shadow: 0 0 6px rgba(255,93,93,0.4); }
  .target-diff-num.diff-hit-down { color: var(--down); font-weight: 700; text-shadow: 0 0 6px rgba(23,201,143,0.4); }
  .target-none { font-size: 11px; color: var(--text-faint); }

  .col-vol-amt { min-width: 105px; }
  .amt-primary { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25; }
  .vol-ratio-secondary { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.2; }

  .col-morph { min-width: 90px; }
  .vol-morph-pill {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
    line-height: 1.3; white-space: nowrap; user-select: none;
  }
  .vol-morph-pill.neutral { color: var(--text-dim); background: rgba(148,173,214,.08); border: 1px solid var(--line); }

  .col-status { min-width: 85px; }
  .col-actions { min-width: 120px; }

  .up { color: var(--up); }
  .down { color: var(--down); }
  .flat { color: var(--text-dim); }

  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  }
  .badge-watching { color: #8ff0c4; background: rgba(47,209,137,.12); border: 1px solid rgba(47,209,137,.3); }
  .badge-dot-live {
    width: 5px; height: 5px; border-radius: 50%; background: #2fd189;
    box-shadow: 0 0 6px rgba(47,209,137,.8);
  }
  .badge-triggered { color: #ff9f9f; background: rgba(255,71,87,.2); border: 1px solid rgba(255,71,87,.45); font-weight: 600; }
  .badge-paused { color: var(--text-faint); background: rgba(148,173,214,.08); border: 1px solid var(--line); }

  .actions-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .btn-primary-soft {
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.35);
  }
  .btn-primary-soft:hover {
    background: rgba(245, 166, 35, 0.22);
    border-color: var(--accent);
    color: #fff;
  }
  .btn-del-icon {
    width: 26px; height: 26px; padding: 0; border-radius: 5px;
    background: transparent; color: var(--text-faint);
    border: 1px solid transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; transition: all .15s;
  }
  .btn-del-icon:hover {
    color: #ff5d5d; background: rgba(255, 93, 93, 0.12);
    border-color: rgba(255, 93, 93, 0.3);
  }
  .empty-box {
    text-align: center; padding: 48px 16px; color: var(--text-faint); font-size: 13px;
  }
  .empty-box p { margin-top: 6px; font-size: 12px; color: var(--text-dim); }

  /* 分时图卡片 */
  .chart-card { display: none; margin-top: 16px; position: relative; }
  .chart-card.show { display: block; }
  .chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
  .chart-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
  .chart-container { height: 260px; width: 100%; }
  .chart-error { height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-faint); border: 1px dashed var(--line); border-radius: 8px; }

  /* 修改目标价模态框 */
  .modal-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 8, 16, 0.7); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 100;
  }
  .modal-mask.open { display: flex; }
  .modal {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    width: 90%; max-width: 380px; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
  }
  .modal h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
  .modal .form-row { margin-bottom: 12px; }
  .modal .modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

  /* 数据同步模态框及二维码 */
  .sync-modal-content { width: 90%; max-width: 400px; }
  .sync-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .sync-modal-header h3 { margin-bottom: 0; }
  .sync-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
  .sync-tab {
    background: transparent; border: none; border-bottom: 2px solid transparent;
    color: var(--text-dim); padding: 8px 12px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all .15s;
  }
  .sync-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
  .sync-panel { display: none; }
  .sync-panel.active { display: block; }
  
  .qr-box-wrap {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  }
  .qrcode-box {
    background: #ffffff; padding: 12px; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    min-width: 184px; min-height: 184px;
    display: flex; align-items: center; justify-content: center;
  }
  .qrcode-box canvas, .qrcode-box img { display: block; margin: 0 auto; }
  .qr-loading { color: #5f7396; font-size: 12px; }
  .qr-stat { font-size: 13px; font-weight: 600; color: var(--text); }
  .qr-hint { font-size: 11px; color: var(--text-faint); max-width: 320px; line-height: 1.5; }
  
  .sync-textarea {
    width: 100%; padding: 10px; background: var(--panel-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px; font-size: 12px;
    font-family: Consolas, monospace; resize: vertical; outline: none; box-sizing: border-box;
  }
  .sync-textarea:focus { border-color: rgba(245, 166, 35, 0.55); }
  .sync-import-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .sync-actions-row { display: flex; gap: 10px; margin-top: 14px; width: 100%; }

  /* 吐司提示 */
  .toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: #1c2945; border: 1px solid var(--line); color: var(--text);
    padding: 9px 18px; border-radius: 8px; font-size: 13px; z-index: 120;
    opacity: 0; transition: opacity .25s; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .toast.show { opacity: 1; }

  footer { margin-top: 24px; color: var(--text-faint); font-size: 11px; text-align: center; }

  @media (max-width: 820px) {
    .add-bar { grid-template-columns: 1fr 1fr; }
    .add-bar .field:first-child { grid-column: 1 / -1; }
    .add-bar .btn { grid-column: 1 / -1; }
    .chart-container { height: 210px; }
  }

  /* 监控列表催化状态徽标（极简微胶囊） */
  .cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: 0.2px;
  }
  .cat-pill-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 5px currentColor;
    flex-shrink: 0;
  }
  .cat-pill:hover {
    filter: brightness(1.2);
    transform: translateY(-0.5px);
  }
  .cat-pill-bullish {
    background: rgba(255, 93, 93, 0.12);
    color: var(--up);
    border: 1px solid rgba(255, 93, 93, 0.3);
  }
  .cat-pill-bearish {
    background: rgba(23, 201, 143, 0.12);
    color: var(--down);
    border: 1px solid rgba(23, 201, 143, 0.3);
  }
  .cat-pill-neutral {
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.3);
  }
  .cat-pill-muted {
    background: rgba(148, 173, 214, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(148, 173, 214, 0.18);
  }
  .cat-pill-loading {
    background: rgba(148, 173, 214, 0.05);
    color: var(--text-faint);
    border: 1px dashed rgba(148, 173, 214, 0.2);
    cursor: wait;
  }

  /* 走势图下方一体化操盘催化看板 */
  .chart-catalyst-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .cc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .cc-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(245, 166, 35, 0.14);
    color: var(--accent);
    font-size: 12px;
  }

  .cc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
  }

  .cc-status-tag {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.28);
  }

  .cc-metrics {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(148, 173, 214, 0.05);
    border: 1px solid var(--line);
    padding: 3px 10px;
    border-radius: 6px;
  }

  .cc-metric.bullish strong { color: var(--up); }
  .cc-metric.bearish strong { color: var(--down); }
  .cc-metric.neutral strong { color: var(--accent); }
  .cc-metric.total strong { color: var(--text); }
  .cc-metric-sep { color: var(--text-faint); font-size: 10px; }

  .cc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cc-tabs {
    display: flex;
    gap: 4px;
    background: var(--panel-2);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }

  .cc-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
  }

  .cc-tab:hover {
    color: var(--text);
  }

  .cc-tab:active {
    transform: translateY(1px);
  }

  .cc-tab.active {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent);
    font-weight: 600;
  }

  .cc-refresh-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .cc-refresh-btn:active {
    transform: translateY(1px);
  }

  /* 能量条 */
  .cc-sentiment-bar {
    height: 4px;
    background: rgba(148, 173, 214, 0.1);
    border-radius: 999px;
    display: flex;
    overflow: hidden;
    gap: 2px;
  }

  .cc-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
  }

  .cc-bar-segment.bullish { background: var(--up); }
  .cc-bar-segment.neutral { background: var(--accent); }
  .cc-bar-segment.bearish { background: var(--down); }

  /* 资讯主体流 */
  .cc-body {
    min-height: 90px;
    position: relative;
  }

  .cc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    gap: 10px;
    color: var(--text-faint);
    font-size: 12px;
  }

  .cc-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(245, 166, 35, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
  }

  @keyframes cc-spin {
    to { transform: rotate(360deg); }
  }

  .cc-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-faint);
  }

  .cc-empty-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.6;
  }

  .cc-empty-text {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
  }

  .cc-empty-sub {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
  }

  /* 资讯响应式双栏网格 */
  .cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
  }

  .cc-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }

  .cc-card:hover {
    border-color: rgba(245, 166, 35, 0.38);
    background: var(--panel-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }

  .cc-card:active {
    transform: translateY(0);
  }

  .cc-card.is-today {
    border-left: 3px solid var(--accent);
  }

  .cc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }

  .cc-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cc-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.4;
  }

  .cc-tag.bullish {
    background: rgba(255, 93, 93, 0.14);
    color: var(--up);
    border: 1px solid rgba(255, 93, 93, 0.3);
  }

  .cc-tag.bearish {
    background: rgba(23, 201, 143, 0.14);
    color: var(--down);
    border: 1px solid rgba(23, 201, 143, 0.3);
  }

  .cc-tag.neutral {
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.28);
  }

  .cc-type-badge {
    color: var(--text-faint);
    background: rgba(148, 173, 214, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
  }

  .cc-time-wrap {
    color: var(--text-dim);
    font-family: Consolas, Bahnschrift, monospace;
    font-size: 11px;
  }

  .cc-today-mark {
    color: var(--accent);
    font-weight: 600;
    margin-right: 4px;
  }

  .cc-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .cc-card-title:hover {
    color: var(--accent);
  }

  .cc-card-summary {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    word-break: break-word;
    flex: 1;
  }

  .cc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-faint);
    border-top: 1px solid rgba(148, 173, 214, 0.08);
    padding-top: 6px;
    margin-top: 2px;
  }

  .cc-source {
    color: var(--text-dim);
  }

  .cc-link-btn {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
  }

  .cc-link-btn:hover {
    text-decoration: underline;
  }

  /* 底部状态条 */
  .cc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-faint);
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 173, 214, 0.1);
  }

  .cc-footer-info {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cc-cache-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
  }

  .cc-source-note {
    color: var(--text-faint);
    font-size: 11px;
  }

  /* ================= 盘口声呐 · Sonar (全局异动与攻防告警中枢) ================= */
  .global-pulse-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(17, 26, 44, 0.96) 15%, rgba(17, 26, 44, 0.96) 85%, rgba(245, 166, 35, 0.12) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    min-height: 42px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition: all .25s ease;
  }
  .global-pulse-hud:hover {
    border-color: rgba(56, 189, 248, 0.5);
  }
  .global-pulse-hud.is-alerting {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.25) 0%, rgba(23, 31, 51, 0.98) 15%, rgba(23, 31, 51, 0.98) 85%, rgba(255, 71, 87, 0.25) 100%);
    border-color: rgba(255, 71, 87, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 71, 87, 0.3);
    animation: sonar-alert-pulse 1.6s infinite ease-in-out;
  }
  .global-pulse-hud.is-alerting.warn-only {
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.25) 0%, rgba(23, 31, 51, 0.98) 15%, rgba(23, 31, 51, 0.98) 85%, rgba(245, 166, 35, 0.25) 100%);
    border-color: rgba(245, 166, 35, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 166, 35, 0.3);
  }
  @keyframes sonar-alert-pulse {
    0%, 100% { border-color: rgba(255, 71, 87, 0.55); box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 10px rgba(255, 71, 87, 0.2); }
    50% { border-color: rgba(255, 71, 87, 0.95); box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 20px rgba(255, 71, 87, 0.45); }
  }
  .gph-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .gph-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    user-select: none;
    transition: all .2s;
  }
  .global-pulse-hud.is-alerting .gph-badge {
    color: #fff;
    background: rgba(255, 71, 87, 0.35);
    border-color: rgba(255, 71, 87, 0.7);
    animation: gph-badge-shake 0.8s infinite ease-in-out;
  }
  @keyframes gph-badge-shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
  }
  .gph-count-pill {
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(148, 173, 214, 0.1);
    color: var(--text-dim);
    border: 1px solid var(--line);
    white-space: nowrap;
    transition: all .2s;
  }
  .gph-count-pill.alerting {
    background: rgba(255, 71, 87, 0.25);
    color: #ff8b99;
    border-color: rgba(255, 71, 87, 0.6);
  }
  .gph-count-pill.calm {
    background: rgba(148, 173, 214, 0.1);
    color: var(--text-dim);
    border-color: var(--line);
  }
  .sonar-mute-btn {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .15s;
    white-space: nowrap;
  }
  .sonar-mute-btn:hover {
    color: var(--text);
    border-color: rgba(148, 173, 214, 0.35);
  }
  .sonar-mute-btn.active {
    background: rgba(255, 71, 87, 0.2);
    color: #ff9f9f;
    border-color: rgba(255, 71, 87, 0.5);
  }
  .sonar-alert-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 71, 87, 0.45);
    color: #ff9da8;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
    user-select: none;
  }
  .sonar-alert-card:hover {
    background: rgba(255, 71, 87, 0.32);
    border-color: rgba(255, 71, 87, 0.85);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.35);
  }
  .sonar-alert-card.warn {
    background: rgba(245, 166, 35, 0.18);
    border-color: rgba(245, 166, 35, 0.45);
    color: #ffd285;
  }
  .sonar-alert-card.warn:hover {
    background: rgba(245, 166, 35, 0.32);
    border-color: rgba(245, 166, 35, 0.85);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
  }
  .sonar-card-name {
    font-weight: 700;
    color: #fff;
  }
  .sonar-card-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.2;
  }
  .sonar-alert-card.danger .sonar-card-badge {
    background: rgba(255, 71, 87, 0.4);
    color: #fff;
  }
  .sonar-alert-card.warn .sonar-card-badge {
    background: rgba(245, 166, 35, 0.4);
    color: #fff;
  }
  .sonar-card-detail {
    font-family: Bahnschrift, "DIN Alternate", monospace;
    font-size: 11px;
    opacity: 0.92;
  }
  .gph-body {
    flex: 1;
    overflow: hidden;
    margin: 0 10px;
    min-width: 0;
  }
  .gph-stream {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .gph-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background .15s, transform .15s;
    user-select: none;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: gph-fade .25s ease-out;
  }
  @keyframes gph-fade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .gph-item:hover {
    background: rgba(148, 173, 214, 0.12);
  }
  .gph-item.bull { color: var(--up); }
  .gph-item.bear { color: var(--down); }
  .gph-item.warn { color: var(--accent); }
  .gph-item.gph-standby {
    color: var(--text-dim);
    cursor: default;
  }
  .gph-item.gph-standby:hover {
    background: transparent;
  }
  .gph-type-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
  }
  .gph-type-tag.bull { background: rgba(255, 93, 93, 0.2); color: var(--up); border: 1px solid rgba(255, 93, 93, 0.4); }
  .gph-type-tag.bear { background: rgba(23, 201, 143, 0.2); color: var(--down); border: 1px solid rgba(23, 201, 143, 0.4); }
  .gph-type-tag.warn { background: rgba(245, 166, 35, 0.2); color: var(--accent); border: 1px solid rgba(245, 166, 35, 0.4); }
  .gph-stock-name {
    font-weight: 700;
    color: var(--text);
  }
  .gph-stock-code {
    color: var(--text-faint);
    font-size: 11px;
    margin-right: 4px;
  }
  .gph-msg-text {
    color: var(--text);
    font-weight: 400;
  }
  .gph-action-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    white-space: nowrap;
    margin-left: 6px;
    transition: all .15s;
  }
  .gph-item:hover .gph-action-tag {
    background: var(--accent);
    color: #16223a;
  }
  .gph-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    user-select: none;
  }
  .gph-ctrl-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(148, 173, 214, 0.2);
    background: rgba(148, 173, 214, 0.06);
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
  }
  .gph-ctrl-btn:hover {
    background: rgba(245, 166, 35, 0.18);
    border-color: var(--accent);
    color: var(--accent);
  }
  .gph-pagination {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-faint);
    font-family: Consolas, monospace;
    min-width: 32px;
    text-align: center;
  }

  /* ================= 监控列表五维微雷达极简图标 ================= */
  .micro-radar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    background: rgba(148, 173, 214, 0.08);
    border: 1px solid rgba(148, 173, 214, 0.2);
    border-radius: 4px;
    vertical-align: middle;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--text-dim);
  }
  .micro-radar:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.45);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
  .micro-radar.radar-bull {
    color: var(--up);
    border-color: rgba(255, 93, 93, 0.35);
    background: rgba(255, 93, 93, 0.1);
  }
  .micro-radar.radar-bull:hover {
    background: rgba(255, 93, 93, 0.2);
    border-color: rgba(255, 93, 93, 0.55);
    box-shadow: 0 0 10px rgba(255, 93, 93, 0.35);
  }
  .micro-radar.radar-bear {
    color: var(--down);
    border-color: rgba(23, 201, 143, 0.35);
    background: rgba(23, 201, 143, 0.1);
  }
  .micro-radar.radar-bear:hover {
    background: rgba(23, 201, 143, 0.2);
    border-color: rgba(23, 201, 143, 0.55);
    box-shadow: 0 0 10px rgba(23, 201, 143, 0.35);
  }
  .micro-radar.radar-neutral {
    color: var(--accent);
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.08);
  }
  .micro-radar .mr-radar-icon {
    display: block;
  }
  .mr-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    line-height: 13px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    font-family: Bahnschrift, Consolas, sans-serif;
    border-radius: 2px;
  }
  .mr-dot.mr-up { background: rgba(255, 93, 93, 0.25); color: var(--up); }
  .mr-dot.mr-down { background: rgba(23, 201, 143, 0.25); color: var(--down); }
  .mr-dot.mr-warn { background: rgba(245, 166, 35, 0.25); color: var(--accent); }
  .mr-dot.mr-neutral { background: rgba(148, 173, 214, 0.08); color: var(--text-faint); }

  /* 四维量化微雷达即时悬浮解释面板 (Apple / Bloomberg 质感) */
  .mr-popover-card {
    position: fixed;
    z-index: 9999;
    width: 280px;
    background: rgba(17, 26, 44, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 173, 214, 0.25);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
  }
  .mr-popover-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .mr-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(148, 173, 214, 0.12);
    margin-bottom: 7px;
  }
  .mr-pop-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .mr-pop-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
  }
  .mr-pop-badge.bull { background: rgba(255, 93, 93, 0.18); color: var(--up); }
  .mr-pop-badge.bear { background: rgba(23, 201, 143, 0.18); color: var(--down); }
  .mr-pop-badge.neutral { background: rgba(148, 173, 214, 0.12); color: var(--text-dim); }
  .mr-pop-matrix {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .mr-pop-row {
    display: grid;
    grid-template-columns: 18px 62px 58px 1fr;
    align-items: center;
    font-size: 10.5px;
    gap: 4px;
    padding: 2.5px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
  }
  .mr-pop-dot {
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    border-radius: 2px;
    font-weight: 700;
    font-size: 9px;
    font-family: Consolas, monospace;
  }
  .mr-pop-dot.up { background: rgba(255, 93, 93, 0.25); color: var(--up); }
  .mr-pop-dot.down { background: rgba(23, 201, 143, 0.25); color: var(--down); }
  .mr-pop-dot.neutral { background: rgba(148, 173, 214, 0.1); color: var(--text-faint); }
  .mr-pop-name {
    font-weight: 600;
    color: var(--text);
  }
  .mr-pop-val {
    font-family: Consolas, monospace;
    font-weight: 600;
    text-align: right;
  }
  .mr-pop-val.up { color: var(--up); }
  .mr-pop-val.down { color: var(--down); }
  .mr-pop-val.neutral { color: var(--text-dim); }
  .mr-pop-hint {
    color: var(--text-dim);
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mr-pop-foot {
    margin-top: 7px;
    padding-top: 5px;
    border-top: 1px dashed rgba(148, 173, 214, 0.1);
    font-size: 9.5px;
    color: var(--accent);
    text-align: center;
  }

  /* ================= 走势图下方双模态切换条 ================= */
  .deck-mode-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .deck-mode-tab {
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text-dim);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .deck-mode-tab:hover {
    color: var(--text);
    border-color: rgba(148, 173, 214, 0.3);
  }
  .deck-mode-tab.active {
    background: rgba(245, 166, 35, 0.14);
    border-color: rgba(245, 166, 35, 0.45);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
  }

  /* ================= 量化博弈罗盘 (Quant Compass Panel) ================= */
  .chart-quant-panel {
    margin-top: 14px;
  }
  .qp-deck-grid {
    display: grid;
    grid-template-columns: 290px 1fr 310px;
    gap: 14px;
  }
  @media (max-width: 980px) {
    .qp-deck-grid {
      grid-template-columns: 1fr;
    }
  }
  .qp-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    height: 100%;
    box-sizing: border-box;
  }
  .qp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 173, 214, 0.08);
  }
  .qp-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .qp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
  }
  .qp-badge.bull { background: rgba(255, 93, 93, 0.16); color: var(--up); border: 1px solid rgba(255, 93, 93, 0.3); }
  .qp-badge.bear { background: rgba(23, 201, 143, 0.16); color: var(--down); border: 1px solid rgba(23, 201, 143, 0.3); }
  .qp-badge.warn { background: rgba(245, 166, 35, 0.16); color: var(--accent); border: 1px solid rgba(245, 166, 35, 0.3); }
  .qp-badge.neutral { background: rgba(148, 173, 214, 0.1); color: var(--text-dim); }

  /* 左栏：雷达力道仪表 */
  .qp-meter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .qp-meter-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 4px;
    transition: all .2s ease;
    cursor: default;
  }
  .qp-meter-item:hover {
    background: rgba(148, 173, 214, 0.08);
  }
  .qp-meter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
  }
  .qp-meter-bar-bg {
    height: 6px;
    background: rgba(148, 173, 214, 0.08);
    border-radius: 3px;
    overflow: hidden;
  }
  .qp-meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .qp-meter-fill.vp { background: linear-gradient(90deg, #f5a623, #ff5d5d); }
  .qp-meter-fill.shape { background: linear-gradient(90deg, #38bdf8, #818cf8); }
  .qp-meter-fill.depth { background: linear-gradient(90deg, #2dd4bf, #10b981); }
  .qp-meter-fill.tick { background: linear-gradient(90deg, #fbbf24, #f43f5e); }
  .qp-meter-fill.trend { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

  .qp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 173, 214, 0.1);
  }
  .qp-meter-state {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(148, 173, 214, 0.08);
    color: var(--text-faint);
    font-weight: 500;
  }
  .qp-meter-state.up { background: rgba(255, 93, 93, 0.15); color: var(--up); }
  .qp-meter-state.down { background: rgba(23, 201, 143, 0.15); color: var(--down); }
  .qp-meter-state.warn { background: rgba(245, 166, 35, 0.15); color: var(--accent); }
  .qp-stat-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3px 5px;
    border-radius: 4px;
    transition: all .2s ease;
    cursor: default;
  }
  .qp-stat-cell:hover {
    background: rgba(148, 173, 214, 0.08);
  }
  .qp-stat-label {
    font-size: 10px;
    color: var(--text-faint);
    line-height: 1.2;
  }
  .qp-stat-val {
    font-size: 13px;
    font-weight: 600;
    margin-top: 1px;
  }
  .qp-stat-hint {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 中栏：实战执行决策卡 */
  .qp-decision-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
  }
  .qp-directive-hero {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 173, 214, 0.14);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .qp-directive-hero.buy {
    border-color: rgba(255, 93, 93, 0.4);
    background: linear-gradient(135deg, rgba(255, 93, 93, 0.12) 0%, rgba(17, 26, 44, 0.6) 100%);
  }
  .qp-directive-hero.trim {
    border-color: rgba(245, 166, 35, 0.4);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, rgba(17, 26, 44, 0.6) 100%);
  }
  .qp-directive-hero.stop {
    border-color: rgba(23, 201, 143, 0.4);
    background: linear-gradient(135deg, rgba(23, 201, 143, 0.12) 0%, rgba(17, 26, 44, 0.6) 100%);
  }
  .qp-action-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  .qp-action-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
  }
  .qp-action-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }
  /* 一体化攻防价格轨道 (去AI味高质感设计) */
  .qp-levels-rail {
    display: flex;
    align-items: stretch;
    background: rgba(14, 24, 44, 0.65);
    border: 1px solid rgba(148, 173, 214, 0.12);
    border-radius: 8px;
    padding: 2px;
    position: relative;
    backdrop-filter: blur(8px);
  }
  .qp-rail-cell {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: background .2s;
    border-radius: 6px;
  }
  .qp-rail-cell:not(:last-child) {
    border-right: 1px solid rgba(148, 173, 214, 0.08);
  }
  .qp-rail-cell:hover {
    background: rgba(148, 173, 214, 0.05);
  }
  .qp-rail-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
  }
  .qp-rail-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .qp-rail-led.support {
    background: #17c98f;
    box-shadow: 0 0 6px rgba(23, 201, 143, 0.8);
  }
  .qp-rail-led.vwap {
    background: #f5a623;
    box-shadow: 0 0 6px rgba(245, 166, 35, 0.8);
  }
  .qp-rail-led.resist {
    background: #ff5d5d;
    box-shadow: 0 0 6px rgba(255, 93, 93, 0.8);
  }
  .qp-rail-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
  }
  .qp-rail-tag {
    font-size: 9px;
    color: var(--text-faint);
    background: rgba(148, 173, 214, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: auto;
    font-family: Consolas, monospace;
  }
  .qp-rail-price {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: Bahnschrift, "SF Pro Display", Consolas, sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .qp-rail-dist {
    font-size: 10px;
    font-family: Bahnschrift, Consolas, sans-serif;
    color: var(--text-dim);
  }
  .qp-rail-dist.down { color: var(--down); }
  .qp-rail-dist.up { color: var(--up); }

  /* 操盘对策双视角分流 */
  .qp-tactics-split {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
  }
  .qp-tactic-panel {
    background: rgba(148, 173, 214, 0.04);
    border: 1px solid rgba(148, 173, 214, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    transition: all .2s;
  }
  .qp-tactic-panel:hover {
    background: rgba(148, 173, 214, 0.08);
  }
  .qp-tactic-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }
  .qp-tactic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }
  .qp-tactic-dot.holder {
    background: #17c98f;
    box-shadow: 0 0 5px rgba(23, 201, 143, 0.6);
  }
  .qp-tactic-dot.watcher {
    background: #38bdf8;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.6);
  }
  .qp-tactic-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
  }
  .qp-tactic-content {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.55;
  }

  /* 快捷预警动作条 */
  .qp-action-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
  }
  .qp-preset-btn {
    flex: 1;
    font-size: 11px;
    padding: 6px 8px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(148, 173, 214, 0.06);
    border: 1px solid rgba(148, 173, 214, 0.18);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
  }
  .qp-preset-btn:hover {
    background: rgba(148, 173, 214, 0.14);
    border-color: var(--accent);
    color: var(--accent);
  }

  /* 右栏：逐笔大单瀑布流 */
  .qp-tick-filter-bar {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .qp-tick-filter-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-faint);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all .15s;
  }
  .qp-tick-filter-btn.active {
    background: rgba(148, 173, 214, 0.14);
    border-color: rgba(148, 173, 214, 0.35);
    color: var(--text);
  }
  .qp-tick-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0;
    min-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 173, 214, 0.25) transparent;
  }
  .qp-tick-list::-webkit-scrollbar {
    width: 4px;
  }
  .qp-tick-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .qp-tick-list::-webkit-scrollbar-thumb {
    background: rgba(148, 173, 214, 0.2);
    border-radius: 4px;
  }
  .qp-tick-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 173, 214, 0.4);
  }
  .qp-tick-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 28px;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(148, 173, 214, 0.03);
    transition: background .15s;
  }
  .qp-tick-row:hover {
    background: rgba(148, 173, 214, 0.08);
  }
  .qp-tick-time {
    color: var(--text-faint);
    font-family: Consolas, monospace;
    font-size: 10px;
  }
  .qp-tick-price {
    font-weight: 600;
  }
  .qp-tick-vol {
    color: var(--text-dim);
    text-align: right;
  }
  .qp-tick-dir {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
  }
  .qp-tick-dir.b { background: rgba(255, 93, 93, 0.18); color: var(--up); }
  .qp-tick-dir.s { background: rgba(23, 201, 143, 0.18); color: var(--down); }
  .qp-tick-dir.m { background: rgba(148, 173, 214, 0.1); color: var(--text-faint); }

  /* ================= 量能周期监控增强样式 ================= */
  .col-vol {
    min-width: 110px;
  }
  @media (max-width: 980px) {
    .col-vol {
      display: none !important;
    }
  }

  .vol-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
  }
  .vol-badge-normal {
    color: var(--text-dim);
    background: rgba(148, 173, 214, 0.08);
    border: 1px solid var(--line);
  }
  .vol-badge-low {
    color: var(--text-faint);
    background: rgba(148, 173, 214, 0.06);
    border: 1px solid rgba(148, 173, 214, 0.12);
  }
  .vol-badge-warm {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
  }
  .vol-badge-pressure {
    color: var(--down);
    background: rgba(23, 201, 143, 0.12);
    border: 1px solid rgba(23, 201, 143, 0.3);
  }
  .vol-badge-attack {
    color: var(--up);
    background: rgba(255, 93, 93, 0.14);
    border: 1px solid rgba(255, 93, 93, 0.3);
    font-weight: 700;
  }
  .vol-badge-dump {
    color: #fff;
    background: var(--danger);
    font-weight: 700;
  }
  .vol-badge-surge {
    color: #ffd166;
    background: rgba(255, 93, 93, 0.25);
    border: 1px solid var(--up);
    font-weight: 700;
  }
  .vol-badge-panic {
    color: #fff;
    background: #b91c1c;
    animation: pill-pulse 1s infinite alternate;
    font-weight: 700;
  }

  .chart-tab-btn.active {
    background: var(--panel) !important;
    color: var(--accent) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
