:root {
  --bg: #0b0e14;
  --bg-2: #121723;
  --panel: #161c2b;
  --panel-2: #1c2436;
  --border: #243049;
  --text: #e6ebf5;
  --muted: #8a96ad;
  --accent: #4f8cff;
  --green: #2ecc71;
  --green-soft: rgba(46, 204, 113, 0.14);
  --red: #ff5c6c;
  --red-soft: rgba(255, 92, 108, 0.14);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.14);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 232px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; }
.brand-text span { font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  background: transparent; border: none; color: var(--muted);
  font-size: 15px; padding: 11px 13px; border-radius: 10px;
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--panel-2); color: var(--text); font-weight: 600; }
.nav-ico { font-size: 16px; opacity: 0.9; }

.sidebar-foot { margin-top: auto; }
.btn-refresh {
  width: 100%; padding: 10px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.btn-refresh:hover { border-color: var(--accent); }
.disclaimer { font-size: 11px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- 主区 ---------- */
.main { flex: 1; padding: 28px 34px; max-width: 1480px; }
.view-head { margin-bottom: 22px; }
.view-head h1 { font-size: 26px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.muted.small { margin-top: 14px; display: block; }
code { background: var(--panel); padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.hidden { display: none !important; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card .value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.card .sub { font-size: 13px; margin-top: 6px; }

/* ---------- 面板 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.lang-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}
.lang-select:focus { border-color: var(--accent); }

.mood-badge {
  font-size: 13px; padding: 5px 12px; border-radius: 20px; font-weight: 600;
  background: var(--panel-2); color: var(--muted);
}
.mood-bullish { background: var(--green-soft); color: var(--green); }
.mood-neutral { background: rgba(138,150,173,0.18); color: var(--muted); }
.mood-cautious { background: var(--amber-soft); color: var(--amber); }
.mood-fear { background: var(--red-soft); color: var(--red); }

/* 指数 */
.indices { display: flex; flex-direction: column; gap: 12px; }
.index-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.index-row .name { font-size: 14px; }
.index-row .vals { text-align: right; }
.index-row .price { font-size: 15px; font-weight: 600; }
.index-row .chg { font-size: 13px; }

/* 迷你列表 */
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px; border-radius: 8px;
}
.mini-row:hover { background: var(--panel-2); }
.mini-row .t { font-weight: 600; font-size: 14px; }
.mini-row .n { font-size: 12px; color: var(--muted); margin-left: 8px; }
.mini-row .p { font-size: 14px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 12px; text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--border); }
.table td { border-bottom: 1px solid rgba(36,48,73,0.5); }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; }
.table .tk { font-weight: 700; }
.table .nm { font-size: 12px; color: var(--muted); }

.pos { color: var(--green); }
.neg { color: var(--red); }
.flat { color: var(--muted); }

/* ---------- 额度用量 ---------- */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.usage-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.usage-card .uc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.usage-card .uc-name { font-size: 16px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--amber); }
.dot.err { background: var(--red); }
.dot.off { background: var(--muted); }
.uc-status { font-size: 12px; color: var(--muted); }
.uc-main { font-size: 22px; font-weight: 700; margin: 6px 0; }
.uc-detail { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.uc-detail.warn { color: var(--amber); }
.uc-remote { font-size: 13px; color: #8eb6ff; margin-top: 8px; font-weight: 600; }
.bar { height: 8px; background: var(--panel-2); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.bar > span { display: block; height: 100%; border-radius: 6px; }

.loading { color: var(--muted); padding: 20px; text-align: center; }

/* ---------- AI 简报横幅 ---------- */
.briefing {
  display: flex; align-items: flex-start; gap: 16px;
  background: linear-gradient(135deg, rgba(79,140,255,0.12), rgba(123,92,255,0.10));
  border: 1px solid rgba(79,140,255,0.3);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
  position: relative;
}
.briefing-ico { font-size: 26px; line-height: 1; }
.briefing-body { flex: 1; }
.briefing-summary { font-size: 17px; font-weight: 600; line-height: 1.5; }
.briefing-watch { font-size: 13px; color: var(--muted); margin-top: 8px; }
.briefing-watch::before { content: "⚠ 留意："; color: var(--amber); }
.briefing-watch:empty { display: none; }
.briefing-tag {
  position: absolute; top: 14px; right: 16px;
  font-size: 11px; color: var(--accent); background: rgba(79,140,255,0.15);
  padding: 3px 9px; border-radius: 12px;
}

/* ---------- 紧凑指标条 ---------- */
.strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
  min-width: 120px;
}
.chip .k { font-size: 12px; color: var(--muted); }
.chip .v { font-size: 16px; font-weight: 700; }
.chip .v small { font-size: 12px; font-weight: 500; margin-left: 6px; }

/* ---------- 异动聚焦 ---------- */
.movers { display: flex; flex-direction: column; gap: 10px; }
.mover {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; background: var(--panel-2);
}
.mover .badge {
  font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 8px;
  min-width: 74px; text-align: center;
}
.mover .badge.up { background: var(--green-soft); color: var(--green); }
.mover .badge.down { background: var(--red-soft); color: var(--red); }
.mover .m-body { flex: 1; }
.mover .m-tk { font-weight: 700; font-size: 14px; }
.mover .m-reason { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ---------- 要事倒计时 ---------- */
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cal-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: 10px; background: var(--panel-2);
}
.cal-item.warn { border: 1px solid rgba(255,176,32,0.4); }
.cal-left .c-tk { font-weight: 700; }
.cal-left .c-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cal-right { text-align: right; }
.cal-days { font-size: 18px; font-weight: 700; }
.cal-days small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cal-flag { font-size: 11px; color: var(--amber); margin-top: 2px; }

/* ---------- 新闻流 ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; gap: 12px; padding: 12px 8px;
  border-bottom: 1px solid rgba(36,48,73,0.5); text-decoration: none; color: inherit;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--panel-2); border-radius: 8px; }
.news-tk {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(79,140,255,0.12); padding: 3px 8px; border-radius: 6px;
  height: fit-content; white-space: nowrap;
}
.news-body { flex: 1; }
.news-head { font-size: 14px; line-height: 1.4; }
.news-original { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.news-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 左侧自选列表 ---------- */
.wl-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 8px; padding: 0 4px;
  text-transform: none; letter-spacing: 0.3px;
}
.wl-refresh {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px;
}
.wl-refresh:hover { background: var(--panel); color: var(--text); }
.watchlist { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.wl-group { margin-bottom: 14px; }
.wl-sector {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 8px; margin-bottom: 4px;
}
.wl-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; border-radius: 9px; cursor: pointer;
  transition: background 0.12s; border: 1px solid transparent;
}
.wl-item:hover { background: var(--panel); }
.wl-item.active { background: var(--panel-2); border-color: rgba(79,140,255,0.4); }
.wl-logo {
  width: 24px; height: 24px; border-radius: 6px; background: #fff;
  object-fit: contain; flex-shrink: 0;
}
.wl-logo.ph { background: var(--panel-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.wl-mid { flex: 1; min-width: 0; }
.wl-tk { font-size: 14px; font-weight: 700; }
.wl-px { font-size: 12px; color: var(--muted); }
.wl-chg { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }

/* 底部导航 */
.footnav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.footnav-item {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--muted);
  font-size: 14px; padding: 9px 11px; border-radius: 9px; cursor: pointer; text-align: left;
}
.footnav-item span { font-size: 15px; }
.footnav-item:hover { background: var(--panel); color: var(--text); }
.footnav-item.active { background: var(--panel-2); color: var(--text); font-weight: 600; }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 120px 20px; color: var(--muted); }
.empty-ico { font-size: 48px; margin-bottom: 16px; }

/* ---------- 个股头部 + 顶栏布局 ---------- */
.stock-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}
.stock-top-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stock-top-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.sh-identity { display: flex; align-items: center; gap: 14px; }
.sh-logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; object-fit: contain; }
.sh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-ticker { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.sh-sector {
  font-size: 12px; color: var(--accent); background: rgba(79,140,255,0.12);
  padding: 3px 10px; border-radius: 12px;
}
.sh-name { font-size: 14px; color: var(--muted); margin-top: 2px; }

.sh-quote { text-align: right; padding-right: 2px; }
.sh-price { font-size: 28px; font-weight: 800; line-height: 1.1; }
.sh-change { font-size: 15px; font-weight: 600; margin-top: 4px; }

.metrics-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.metrics-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.metrics-head h3 { font-size: 14px; font-weight: 700; margin: 0; }

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.qm-cell {
  background: var(--panel-2);
  border-radius: 9px;
  padding: 8px 10px;
  min-width: 0;
}
.qm-label { font-size: 11px; color: var(--muted); }
.qm-value { font-size: 14px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chart-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px; min-height: 0;
}
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chart-compact { width: 100%; height: 260px; min-height: 220px; }

/* 兼容旧类名（若其他地方引用） */
.stock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 14px; min-width: 90px;
}
.stat .sk { font-size: 11px; color: var(--muted); }
.stat .sv { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  background: transparent; border: none; color: var(--muted);
  font-size: 14px; padding: 11px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- 个股详情：平铺网格 ---------- */
.detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
  align-items: stretch;
}
.detail-row .panel { display: flex; flex-direction: column; }
/* AI 研判主角区 */
.panel-hero {
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(59,130,246,0.07), var(--panel) 120px);
  border: 1px solid rgba(59,130,246,0.22);
}
.hero-head-right { display: flex; align-items: center; gap: 10px; }
/* 重点新闻高亮区 */
.panel-alert {
  margin-bottom: 16px;
  border: 1px solid rgba(255,176,32,0.28);
  background: linear-gradient(180deg, rgba(255,176,32,0.06), var(--panel) 90px);
}

/* ---------- K线图 ---------- */
.chart-toolbar { display: flex; align-items: center; gap: 12px; }
.interval-group { display: flex; gap: 4px; }
.iv {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; padding: 5px 11px; border-radius: 8px; cursor: pointer;
}
.iv:hover { color: var(--text); }
.iv.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart { width: 100%; }
.chart-compact { height: 260px; min-height: 220px; flex: none; }

/* ---------- 滚动容器（让面板等高、内部滚动） ---------- */
.scroll { max-height: 360px; overflow-y: auto; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---------- AI 综合研判（主角区，平铺陈述式） ---------- */
.research { display: flex; flex-direction: column; gap: 16px; }
.rs-head { display: flex; align-items: center; gap: 12px; }
.rs-stance { font-size: 15px; font-weight: 800; padding: 5px 14px; border-radius: 9px; }
.rs-conf { font-size: 12px; color: var(--muted); }
.rs-headline { font-size: 20px; font-weight: 800; line-height: 1.4; margin-top: 8px; }
.rs-summary { font-size: 14px; color: #c4ccdb; line-height: 1.7; margin-top: 8px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rs-chips span {
  font-size: 12px; color: var(--muted); background: var(--panel-2);
  padding: 3px 10px; border-radius: 12px;
}
.rs-tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px;
  border-radius: 10px; vertical-align: middle;
}
.rs-tag.pos { color: var(--green); background: var(--green-soft); }
.rs-tag.neg { color: var(--red); background: var(--red-soft); }
.rs-tag.flat { color: var(--muted); background: rgba(138,150,173,0.18); }

/* 分层论点：自适应多列平铺 */
.rs-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rs-point {
  background: var(--panel-2); border-radius: 12px; padding: 13px 15px;
  border-left: 3px solid var(--border);
}
.rs-point-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.rs-point-title { font-size: 14px; font-weight: 800; }
.rs-weight { font-size: 11px; color: var(--muted); margin-left: auto; }
.rs-point-text { font-size: 13.5px; color: #c8d0df; line-height: 1.65; }

/* 底部：价格研判 + 风险/盯盘 */
.rs-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.rs-foot-side { display: flex; flex-direction: column; gap: 12px; }
.rs-outlook {
  background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.28);
  border-radius: 12px; padding: 14px 16px;
}
.rs-outlook-t { font-size: 14px; font-weight: 800; color: #6ea8ff; margin-bottom: 9px; }
.rs-outlook-bars { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.po-pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 9px;
  background: var(--panel-2); color: #c4ccdb;
}
.po-pill.bull { color: var(--green); background: var(--green-soft); }
.po-pill.bear { color: var(--red); background: var(--red-soft); }
.rs-outlook-b { font-size: 13.5px; color: #d4dceb; line-height: 1.7; }
.rs-risk {
  background: var(--red-soft); border: 1px solid rgba(255,92,108,0.3);
  border-radius: 12px; padding: 12px 14px;
}
.rs-risk-t { font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.rs-risk-i { font-size: 13px; color: #d4ccce; line-height: 1.55; }
.rs-watch {
  background: var(--amber-soft); border: 1px solid rgba(255,176,32,0.3);
  border-radius: 12px; padding: 12px 14px;
}
.rs-watch-t { font-size: 13px; font-weight: 800; color: var(--amber); margin-bottom: 6px; }
.rs-watch-i { font-size: 13px; color: #c4ccdb; line-height: 1.55; }
.rs-disc { font-size: 11px; color: var(--muted); text-align: center; margin-top: 2px; }

/* ---------- 金融数据 / 最新财报 ---------- */
.financials { display: flex; flex-direction: column; gap: 14px; }
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.financials-compact { gap: 10px; }
.financials-compact .fin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.financials-compact .fin-cell { padding: 8px 10px; }
.financials-compact .fin-value { font-size: 15px; }
.financials-compact .fin-sub { margin-top: 8px; }
.financials-compact .fin-chips span { font-size: 11px; padding: 3px 9px; }
.fin-cell { background: var(--panel-2); border-radius: 10px; padding: 12px 13px; }
.fin-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.fin-value { font-size: 18px; font-weight: 800; line-height: 1.2; }
.fin-yoy { display: inline-block; font-size: 11px; font-weight: 700; margin-top: 5px; padding: 1px 7px; border-radius: 8px; }
.fin-yoy.pos { color: var(--green); background: var(--green-soft); }
.fin-yoy.neg { color: var(--red); background: var(--red-soft); }
.fin-sub { font-size: 12px; color: var(--muted); font-weight: 700; }
.fin-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fin-chips span { font-size: 12px; color: #c4ccdb; background: var(--panel-2); padding: 4px 11px; border-radius: 9px; }
.fin-chips b { color: var(--muted); font-weight: 600; margin-right: 3px; }

/* ---------- 重点新闻 ---------- */
.important-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }
.imp-item {
  display: flex; gap: 11px; align-items: flex-start; text-decoration: none;
  background: var(--panel-2); border-radius: 10px; padding: 12px 14px;
  border: 1px solid transparent; transition: border-color .15s;
}
.imp-item:hover { border-color: rgba(255,176,32,0.4); }
.imp-tag {
  flex: none; font-size: 11px; font-weight: 800; color: var(--amber);
  background: var(--amber-soft); padding: 3px 9px; border-radius: 8px; margin-top: 1px;
}
.imp-body { min-width: 0; }
.imp-head { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.45; }

.translate-warn {
  font-size: 12px; color: var(--amber); background: var(--amber-soft);
  border: 1px solid rgba(255,176,32,0.35); border-radius: 9px;
  padding: 8px 12px; margin-bottom: 10px; line-height: 1.45;
}

.sentiment {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.sentiment.hidden { display: none; }
.sent-mood { font-size: 16px; font-weight: 800; padding: 6px 14px; border-radius: 9px; }
.sent-body { flex: 1; min-width: 160px; }
.sent-sum { font-size: 14px; line-height: 1.5; }
.sent-themes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sent-theme { font-size: 12px; color: var(--muted); background: var(--panel); padding: 3px 10px; border-radius: 12px; }

.tweets { display: flex; flex-direction: column; gap: 10px; }
.tweet {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; text-decoration: none; color: inherit; display: block;
}
.tweet:hover { border-color: var(--accent); }
.tweet-author { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.tweet-text { font-size: 13px; line-height: 1.5; }
.tweet-original { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; border-top: 1px solid rgba(36,48,73,0.5); padding-top: 8px; }
.sent-original { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.tweet-meta { font-size: 11px; color: var(--muted); margin-top: 9px; display: flex; gap: 14px; }

/* ---------- 登录页 ---------- */
.login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(79,140,255,0.18), transparent), var(--bg);
  padding: 20px;
}
.login-close-btn {
  position: fixed; top: 20px; right: 24px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 20px; line-height: 1; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 110;
}
.login-close-btn:hover { color: var(--text); border-color: var(--accent); }
.login-card {
  position: relative;
  width: 100%; max-width: 360px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
}
.login-brand strong { display: block; font-size: 16px; }
.login-brand span { font-size: 12px; color: var(--muted); }
.login-card h1 { font-size: 20px; margin-top: 4px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 11px 12px; font-size: 14px; outline: none;
}
.login-card input:focus { border-color: var(--accent); }
.login-btn {
  margin-top: 4px; background: var(--accent); color: #fff; border: none;
  border-radius: 9px; padding: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.login-btn:hover { filter: brightness(1.08); }
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-error {
  background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,92,108,0.4);
  border-radius: 8px; padding: 9px 11px; font-size: 13px;
}
.login-tip { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 侧栏用户条 ---------- */
.userbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; margin-bottom: 14px;
}
.userbar-info { display: flex; flex-direction: column; min-width: 0; }
.userbar-name { font-size: 14px; font-weight: 700; }
.userbar-role { font-size: 11px; color: var(--muted); }
.userbar-logout {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.userbar-logout:hover { border-color: var(--red); color: var(--red); }
.userbar-logout.userbar-login:hover { border-color: var(--accent); color: var(--accent); }

.login-guest-btn {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.login-guest-btn:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 自选添加/移除 ---------- */
.wl-head-actions { display: flex; gap: 2px; }
.wl-add { display: flex; gap: 6px; margin: 0 4px 8px; }
.wl-add input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 6px 8px; font-size: 13px; outline: none;
  text-transform: uppercase;
}
.wl-add input:focus { border-color: var(--accent); }
.wl-add button {
  background: var(--accent); color: #fff; border: none; border-radius: 7px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.wl-remove {
  background: transparent; border: none; color: transparent;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 5px;
  flex-shrink: 0;
}
.wl-item:hover .wl-remove { color: var(--muted); }
.wl-remove:hover { color: var(--red); }

/* ---------- 持仓内联编辑 ---------- */
.hd-input {
  width: 86px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 5px 7px; font-size: 13px;
  text-align: right; outline: none;
}
.hd-input:focus { border-color: var(--accent); }
.hd-del {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer;
}
.hd-del:hover { border-color: var(--red); color: var(--red); }

/* ---------- 持仓工具栏 / 添加 ---------- */
.view-head-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.holdings-toolbar { display: flex; gap: 8px; flex-shrink: 0; }
.btn-secondary {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent); border: none; color: #fff;
  border-radius: 9px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.holdings-add {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px;
}
.holdings-add input {
  flex: 1; min-width: 120px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 8px 10px; font-size: 13px; outline: none;
}
.holdings-add input:first-child { text-transform: uppercase; }
.holdings-add input:focus { border-color: var(--accent); }
.holdings-add button {
  background: var(--accent); color: #fff; border: none; border-radius: 7px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- 截图导入弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62);
}
.modal-card {
  position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: transparent; border: none; color: var(--muted); font-size: 24px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.import-drop {
  margin-top: 14px; border: 2px dashed var(--border); border-radius: 12px;
  background: var(--bg-2); cursor: pointer; transition: all 0.15s; outline: none;
  min-height: 140px; display: flex; align-items: center; justify-content: center;
}
.import-drop:hover, .import-drop:focus { border-color: var(--accent); }
.import-drop-inner { text-align: center; padding: 24px 16px; }
.import-drop-ico { font-size: 32px; margin-bottom: 8px; }
.import-preview-img {
  max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; padding: 10px;
}
.import-status {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.import-status.loading { color: var(--accent); }
.import-status.error { color: var(--red); border-color: rgba(255, 92, 108, 0.35); }
.import-result { margin-top: 14px; }
.import-mode {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; font-size: 13px;
}
.import-mode label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.import-preview-panel { padding: 0; overflow: hidden; }
.import-preview-table { font-size: 13px; }
.import-preview-table .hd-input { width: 72px; }

/* ---------- 组合分析 ---------- */
.pa-panel { margin-bottom: 18px; }
.pa-head-right { display: flex; align-items: center; gap: 12px; }
.pa-changed { color: var(--amber); }
.pa-refresh-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 5px 11px; font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.pa-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
.pa-refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pa-verdict { display: flex; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.pa-score {
  flex-shrink: 0; width: 96px; border-radius: 14px;
  background: color-mix(in srgb, var(--g) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--g) 45%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.pa-score-num { font-size: 38px; font-weight: 800; color: var(--g); line-height: 1; }
.pa-score-grade { font-size: 15px; font-weight: 700; color: var(--g); }
.pa-verdict-main { flex: 1; min-width: 0; }
.pa-verdict-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pa-style { font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.pa-pnl { font-size: 13px; font-weight: 700; }
.pa-verdict-text { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.pa-summary { font-size: 14px; color: var(--muted); line-height: 1.6; }

.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.pa-grid-2 { grid-template-columns: 1fr 1fr; }
.pa-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.pa-card-wide { margin-bottom: 14px; }
.pa-card-t { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.pa-card-text { font-size: 13px; line-height: 1.6; color: var(--text); margin-top: 10px; }

.pa-stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.pa-seg { height: 100%; }
.pa-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pa-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

.pa-sectors { display: flex; flex-direction: column; gap: 7px; }
.pa-sector-row { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 8px; }
.pa-sector-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-sector-track { height: 9px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.pa-sector-track span { display: block; height: 100%; border-radius: 5px; }
.pa-sector-val { font-size: 12px; font-weight: 700; text-align: right; }

.pa-conc { display: flex; align-items: center; gap: 10px; }
.pa-conc-level { font-size: 18px; font-weight: 800; padding: 2px 12px; border-radius: 8px; }
.pa-conc-level.lvl-high { color: var(--red); background: var(--red-soft); }
.pa-conc-level.lvl-mid { color: var(--amber); background: var(--amber-soft); }
.pa-conc-level.lvl-low { color: var(--green); background: var(--green-soft); }

.pa-outlook {
  background: linear-gradient(135deg, rgba(79,140,255,0.1), rgba(123,92,255,0.06));
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.pa-outlook-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.po-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
}
.po-pill.bull { color: var(--green); border-color: rgba(46,204,113,0.4); }
.po-pill.bear { color: var(--red); border-color: rgba(255,92,108,0.4); }

.pa-pos-table { font-size: 13px; }
.pa-pos-table th, .pa-pos-table td { padding: 8px 10px; }
.pa-target { font-weight: 700; color: var(--accent); white-space: nowrap; }
.pa-pos-comment { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pa-role { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pa-role.role-core { color: var(--red); background: var(--red-soft); }
.pa-role.role-sat { color: var(--accent); background: rgba(79,140,255,0.16); }
.pa-role.role-def { color: var(--green); background: var(--green-soft); }
.pa-role.role-spec { color: var(--amber); background: var(--amber-soft); }

.pa-li { font-size: 13px; line-height: 1.7; color: var(--text); }

@media (max-width: 1100px) {
  .pa-grid { grid-template-columns: 1fr; }
  .pa-grid-2 { grid-template-columns: 1fr; }
  .pa-verdict { flex-direction: column; }
  .pa-score { width: 100%; flex-direction: row; gap: 12px; padding: 10px; }
}

/* ---------- 用户管理 ---------- */
.admin-create { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
.admin-create input, .admin-create select {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 14px; outline: none;
}
.admin-create input { flex: 1; min-width: 160px; }
.admin-create input:focus, .admin-create select:focus { border-color: var(--accent); }
.admin-create button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.admin-msg { margin: 0 16px 14px; font-size: 13px; border-radius: 8px; padding: 9px 11px; }
.admin-msg.ok { background: var(--green-soft); color: var(--green); }
.admin-msg.err { background: var(--red-soft); color: var(--red); }
.admin-act {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; margin-left: 6px;
}
.admin-act:hover { border-color: var(--accent); color: var(--text); }
.admin-del:hover { border-color: var(--red); color: var(--red); }

/* ---------- 机构评级条 ---------- */
.rs-rating { margin-top: 12px; }
.rs-rating-head {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  margin-bottom: 6px;
}
.rt-label { font-size: 13.5px; }
.rt-label b { color: var(--text); }
.rt-score { color: var(--muted); font-size: 12px; margin-left: 2px; }
.rt-meta { font-size: 12px; color: var(--muted); }
.rt-bar {
  display: flex; height: 9px; border-radius: 6px; overflow: hidden;
  background: var(--panel-2); gap: 1px;
}
.rt-seg { display: block; min-width: 2px; }
.rt-seg.sb { background: #1e9e63; }
.rt-seg.b { background: var(--green); }
.rt-seg.h { background: var(--amber); }
.rt-seg.s { background: #ff8a5c; }
.rt-seg.ss { background: var(--red); }
.rt-comment {
  margin-top: 8px; font-size: 13px; color: #c8d0df; line-height: 1.65;
  padding-top: 8px; border-top: 1px dashed var(--border);
}
.research-refresh {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; padding: 4px 10px; border-radius: 7px; cursor: pointer; transition: all 0.15s;
}
.research-refresh:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 长线视角 ---------- */
.rs-longterm {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(79,140,255,0.08), rgba(79,140,255,0.02));
  border: 1px solid rgba(79,140,255,0.28); border-radius: 12px;
}
.rs-lt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rs-lt-title { font-size: 14.5px; font-weight: 700; }
.rs-lt-thesis { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.rs-lt-svl {
  margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--text);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.rs-lt-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
  background: rgba(79,140,255,0.16); padding: 2px 8px; border-radius: 6px;
}
.rs-lt-drivers { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rs-lt-drivers > span { font-weight: 600; }
.rs-lt-drivers ul { margin: 4px 0 0; padding-left: 18px; }
.rs-lt-drivers li { line-height: 1.6; color: var(--text); }

/* ---------- AI 二次校验 ---------- */
.rs-checked.ok { color: var(--green); }
.rs-checked.warn { color: var(--amber); }
.rs-check {
  margin-top: 12px; padding: 11px 13px;
  background: var(--amber-soft); border: 1px solid rgba(255,176,32,0.35);
  border-radius: 10px;
}
.rs-check-t { font-size: 13px; font-weight: 700; color: var(--amber); margin-bottom: 6px; }
.rs-check-i { font-size: 12.5px; color: var(--text); line-height: 1.6; opacity: 0.92; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; }
  .stock-top { grid-template-columns: 1fr; }
  .quote-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-foot { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 宏观大盘页 ===== */
.macro-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 18px;
}
.macro-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.macro-title { font-size: 15px; font-weight: 700; color: var(--text); }
.macro-liq {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(138,150,173,0.18); color: var(--muted);
}
.macro-liq.good { background: var(--green-soft); color: var(--green); }
.macro-liq.bad { background: var(--red-soft); color: var(--red); }
.macro-liq.warn { background: rgba(255,176,32,0.16); color: #ffb020; }
.macro-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.macro-tile {
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 3px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.macro-tile.good { border-left-color: var(--green); }
.macro-tile.bad { border-left-color: var(--red); }
.macro-tile.warn { border-left-color: #ffb020; }
.macro-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.macro-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1; }
.macro-tile.good .macro-value { color: var(--green); }
.macro-tile.bad .macro-value { color: var(--red); }
.macro-tile.warn .macro-value { color: #ffb020; }
.macro-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.macro-narrative {
  margin-top: 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.macro-oneline {
  font-size: 14px; font-weight: 700; color: var(--text);
  padding-bottom: 8px; border-bottom: 1px dashed var(--border);
}
.macro-oneline.good { color: var(--green); }
.macro-oneline.bad { color: var(--red); }
.macro-oneline.warn { color: #ffb020; }
.macro-nrow { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.6; }
.macro-nico { flex: 0 0 auto; }
.macro-nlabel { flex: 0 0 auto; color: var(--muted); font-size: 12px; min-width: 62px; }
.macro-ntext { color: #c8d0df; }

/* 行业热度 + 涨跌幅榜 */
.macro-mkt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg-btn {
  background: transparent; border: none; color: var(--muted);
  font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.seg-btn.active { background: var(--accent); color: #fff; font-weight: 600; }
.sectors { display: flex; flex-direction: column; gap: 8px; }
.sector-row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 10px; }
.sector-name { font-size: 13px; color: var(--text); }
.sector-etf { font-size: 10px; color: var(--muted); }
.sector-bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.sector-fill { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.sector-fill.pos { background: var(--green); }
.sector-fill.neg { background: var(--red); }
.sector-val { font-size: 13px; font-weight: 700; text-align: right; }
.macro-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mv-col { display: flex; flex-direction: column; gap: 5px; }
.mv-col-h { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.mv-col-h.up { color: var(--green); }
.mv-col-h.down { color: var(--red); }
.mv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; cursor: pointer; text-align: left; transition: all 0.15s;
}
.mv-item:hover { border-color: var(--accent); }
.mv-sym { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--text); min-width: 0; }
.mv-sym small { font-size: 10.5px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-val { font-size: 13px; font-weight: 700; white-space: nowrap; }
.mv-val.pos { color: var(--green); }
.mv-val.neg { color: var(--red); }
@media (max-width: 1100px) {
  .macro-mkt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .macro-tiles { grid-template-columns: repeat(2, 1fr); }
  .rs-points { grid-template-columns: 1fr; }
}
