:root {
  --bg: #080b10;
  --bg2: #0d1218;
  --panel: #111820;
  --border: #1f2833;
  --border2: #2a3542;
  --text: #e8eef6;
  --muted: #7e8a9b;
  --green: #0ecb81;
  --red: #f6465d;
  --accent: #f0b90b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; padding-bottom: 30px; }
button { font-family: inherit; cursor: pointer; }
.live-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(8, 11, 16, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.live-brand { font-weight: 900; font-size: 13px; letter-spacing: .5px; }
.live-brand span { color: var(--accent); }
.live-price-wrap { margin-left: auto; display: flex; align-items: baseline; gap: 7px; }
.live-price-wrap b { font-size: 17px; font-variant-numeric: tabular-nums; }
.live-price-wrap span { font-size: 11px; }
.live-price-wrap span.up { color: var(--green); }
.live-price-wrap span.down { color: var(--red); }
.live-feed { font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.live-feed i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.live-symbols, .live-tfs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.live-symbols::-webkit-scrollbar, .live-tfs::-webkit-scrollbar { display: none; }
.live-symbols button, .live-tfs button { flex: none; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg2); color: var(--muted); font-size: 11px; font-weight: 600; }
.live-symbols button.active { color: #17130a; background: var(--accent); border-color: var(--accent); }
.live-tfs { padding-top: 7px; }
.live-tfs button.active { color: var(--accent); border-color: rgba(240, 185, 11, .55); background: rgba(240, 185, 11, .08); }
.live-chart-wrap { position: relative; margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
#live-chart { width: 100%; height: 46vh; min-height: 300px; max-height: 430px; }
.live-legend { position: absolute; left: 10px; top: 8px; display: flex; gap: 10px; font-size: 9px; color: var(--muted); pointer-events: none; background: rgba(8, 11, 16, .65); padding: 2px 5px; border-radius: 3px; }
.live-legend .ma5 { color: #f0b90b; }
.live-legend .ma10 { color: #3fa9f5; }
.live-legend .ma20 { color: #ff7d8d; }
.live-card { margin: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.live-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.live-card-head .muted { font-size: 9px; color: var(--muted); }
.live-skeleton { color: var(--muted); font-size: 11px; }
.live-skeleton.error { color: var(--red); }
.rec-top { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.rec-top .score { margin-left: auto; font-size: 24px; font-variant-numeric: tabular-nums; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rec-tag { padding: 3px 8px; border-radius: 4px; font-size: 10px; background: var(--bg2); border: 1px solid var(--border); color: var(--muted); }
.rec-tag.up { color: var(--green); border-color: rgba(14, 203, 129, .35); }
.rec-tag.down { color: var(--red); border-color: rgba(246, 70, 93, .35); }
.rec-tag.warn { color: var(--accent); border-color: rgba(240, 185, 11, .35); }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.rec-grid b { color: var(--text); font-variant-numeric: tabular-nums; }
.rec-grid .up { color: var(--green); }
.rec-grid .down { color: var(--red); }
.rec-advice { margin-top: 10px; font-size: 10.5px; line-height: 1.8; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; }
.rec-plans { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.rec-plan { display: flex; gap: 8px; align-items: center; }
.rec-plan b { width: 26px; }
.rec-plan.long b { color: var(--green); }
.rec-plan.short b { color: var(--red); }
.rec-plan .lev { color: var(--accent); border: 1px solid rgba(240, 185, 11, .3); border-radius: 3px; padding: 0 4px; font-size: 9px; }
.now-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.now-dir { font-size: 13px; font-weight: 800; }
.now-dir.up { color: var(--green); }
.now-dir.down { color: var(--red); }
.now-range { font-size: 9.5px; color: var(--muted); }
.reason-list { margin: 0; padding-left: 16px; font-size: 10.5px; line-height: 1.8; color: var(--muted); }
.live-foot { text-align: center; color: #5d6775; font-size: 9px; margin-top: 14px; }
@media (min-width: 700px) {
  .live-body { max-width: 760px; margin: 0 auto; }
  #live-chart { height: 380px; }
  .rec-grid { grid-template-columns: repeat(3, 1fr); }
}
