:root {
  --bg: #0a0e13;
  --bg2: #0d1219;
  --panel: #121820;
  --panel2: #171e28;
  --panel3: #1c2430;
  --line: #273141;
  --text: #eef3fa;
  --muted: #8b9aaf;
  --dim: #66758a;
  --green: #22c55e;
  --green2: #16a34a;
  --green-soft: rgba(34,197,94,.12);
  --teal: #2dd4bf;
  --blue: #60a5fa;
  --yellow: #eab308;
  --orange: #f59e0b;
  --red: #f43f5e;
  --purple: #a78bfa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: "SF Pro Display","PingFang SC","Noto Sans SC","Segoe UI",system-ui,sans-serif;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family:var(--font); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.app { display:flex; min-height:100vh; }

/* Sidebar */
.sidebar {
  width: 232px; flex-shrink:0; background: var(--bg2);
  border-right: 1px solid var(--line); padding: 20px 14px;
  display:flex; flex-direction:column; gap:18px;
  position:sticky; top:0; height:100vh; z-index:30;
}
.brand { display:flex; gap:11px; align-items:center; padding: 4px 8px 8px; }
.logo {
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(145deg, #34d399, #22c55e);
  display:grid; place-items:center; box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.brand-title { font-weight:800; letter-spacing:.02em; font-size:16px; }
.brand-sub { font-size:11px; color:var(--muted); margin-top:2px; }
.nav { display:flex; flex-direction:column; gap:4px; }
.nav-item {
  display:flex; align-items:center; gap:10px;
  background:transparent; border:1px solid transparent; border-radius:12px;
  padding:11px 12px; text-align:left; color:var(--muted); font-weight:600; font-size:14px;
}
.nav-item:hover { background:var(--panel); color:var(--text); }
.nav-item.active {
  background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28); color:#bbf7d0;
}
.ni { width:18px; text-align:center; opacity:.9; }
.sidebar-foot { margin-top:auto; display:flex; flex-direction:column; gap:8px; padding:8px; }
.sys-ok { display:flex; align-items:center; gap:8px; font-size:12px; color:#86efac; }
.sys-ok .dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); }
.sys-time { font-size:11px; color:var(--dim); }
.badge-demo {
  display:inline-flex; width:fit-content; align-items:center;
  background: rgba(245,158,11,.12); color: var(--orange);
  border:1px solid rgba(245,158,11,.3); border-radius:999px;
  padding:5px 10px; font-size:11px; font-weight:700;
}
.lang-stub { font-size:11px; color:var(--muted); }
.dim { color: var(--dim); font-weight:500; }

.main { flex:1; min-width:0; padding: 22px 26px 48px; position:relative; }
.menu-btn {
  display:none; position:fixed; top:14px; left:14px; z-index:40;
  width:42px; height:42px; border-radius:12px; background:var(--panel);
  border:1px solid var(--line);
}
.view { display:none; }
.view.active { display:block; animation: fade .18s ease; }
@keyframes fade { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none} }

.page-head {
  display:flex; justify-content:space-between; gap:16px; align-items:flex-start;
  margin-bottom:18px; flex-wrap:wrap;
}
.page-head h1 { margin:0; font-size:28px; font-weight:800; letter-spacing:-.02em; }
.page-head .sub { margin:6px 0 0; color:var(--muted); font-size:13px; }
.head-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.live-pill {
  display:inline-flex; align-items:center; gap:7px; font-size:12px; color:#86efac;
  background: rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.25);
  border-radius:999px; padding:5px 10px;
}
.live-pill i { width:7px; height:7px; border-radius:50%; background:var(--green); }
.filter-pills { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.fpill, .tab {
  background: var(--panel2); border:1px solid var(--line); color:var(--muted);
  border-radius:999px; padding:7px 12px; font-size:12px; font-weight:600;
}
.fpill.active, .tab.active {
  background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); color:#bbf7d0;
}

.kpi-row { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-bottom:16px; }
.kpi {
  background: linear-gradient(180deg, var(--panel), #10161f);
  border:1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; box-shadow: var(--shadow);
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
}
.kpi .label { font-size:12px; color:var(--muted); font-weight:600; }
.kpi .value { font-size:28px; font-weight:800; margin-top:6px; letter-spacing:-.03em; }
.kpi .ico {
  width:36px; height:36px; border-radius:12px; display:grid; place-items:center;
  background: var(--green-soft); color: var(--green); font-size:16px;
}
.kpi.warn .ico { background: rgba(245,158,11,.12); color: var(--orange); }
.kpi.alert .ico { background: rgba(244,63,94,.12); color: var(--red); }

.block {
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; margin-bottom:14px; box-shadow: var(--shadow);
}
.block-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.block-h h2 { margin:0; font-size:15px; font-weight:700; }

.sector-grid {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap:10px;
}
.sector-card {
  background: var(--panel2); border:1px solid var(--line); border-radius:14px;
  padding: 12px 12px 11px; cursor:pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
  position:relative; overflow:hidden;
}
.sector-card:hover { border-color: rgba(34,197,94,.45); transform: translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.25); }
.sector-card.active { border-color: rgba(34,197,94,.55); box-shadow: inset 0 0 0 1px rgba(34,197,94,.25); }
.sc-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.sc-icon {
  width:28px; height:28px; border-radius:9px; display:grid; place-items:center;
  font-size:13px; color:#041018; font-weight:800;
}
.sc-name { font-weight:700; font-size:13px; }
.sc-mult { font-size:22px; font-weight:800; letter-spacing:-.03em; margin: 2px 0 4px; color: #86efac; }
.sc-row { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.sc-flow { margin-top:8px; font-size:12px; font-weight:700; }
.flow-in { color: var(--green); }
.flow-out { color: var(--red); }
.flow-flat { color: var(--yellow); }
.spark { width:54px; height:22px; opacity:.85; }

.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tbl { width:100%; border-collapse:collapse; font-size:13px; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; vertical-align:middle; }
.tbl th { color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:none; }
.tbl tbody tr { cursor:pointer; transition: background .12s; }
.tbl tbody tr:hover { background: rgba(34,197,94,.05); }
.tok {
  display:flex; align-items:center; gap:10px;
}
.tok img { width:28px; height:28px; border-radius:50%; background:#0b1016; }
.tok .sym { font-weight:800; line-height:1.1; }
.tok .nm { font-size:11px; color:var(--muted); margin-top:2px; }
.pill {
  display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px;
  font-size:11px; font-weight:700; border:1px solid transparent;
}
.pill-sec { background: rgba(255,255,255,.04); border-color: var(--line); }
.mult { font-size:16px; font-weight:800; color:#4ade80; }
.up { color:#4ade80; } .down { color:#fb7185; }
.liq-ok { color:#4ade80; font-weight:700; font-size:12px; }
.liq-mid { color:#fbbf24; font-weight:700; font-size:12px; }
.liq-low { color:#fb7185; font-weight:700; font-size:12px; }
.tag {
  display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:999px;
  font-size:11px; font-weight:700;
}
.tag-cand { background: rgba(34,197,94,.14); color:#86efac; border:1px solid rgba(34,197,94,.3); }
.tag-watch { background: rgba(96,165,250,.12); color:#93c5fd; border:1px solid rgba(96,165,250,.25); }
.tag-warn { background: rgba(244,63,94,.12); color:#fda4af; border:1px solid rgba(244,63,94,.28); }

/* Alerts */
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.tab.active { border-bottom: none; }
.alert-list { display:grid; gap:10px; }
.alert-card {
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center;
  background: var(--panel); border:1px solid var(--line); border-radius:14px;
  padding: 14px 14px 14px 16px; cursor:pointer; position:relative; overflow:hidden;
  box-shadow: var(--shadow);
}
.alert-card::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--green);
}
.alert-card.yellow::before { background: var(--yellow); }
.alert-card.red::before { background: var(--red); }
.alert-card.blue::before { background: var(--blue); }
.alert-card:hover { border-color: rgba(34,197,94,.35); }
.ac-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:6px; }
.ac-tok { display:flex; align-items:center; gap:8px; font-weight:800; }
.ac-tok img { width:22px; height:22px; border-radius:50%; }
.ac-rule {
  font-size:11px; font-weight:800; padding:3px 8px; border-radius:999px;
  background: rgba(34,197,94,.14); color:#86efac;
}
.alert-card.yellow .ac-rule { background: rgba(234,179,8,.14); color:#fde047; }
.alert-card.red .ac-rule { background: rgba(244,63,94,.14); color:#fda4af; }
.alert-card.blue .ac-rule { background: rgba(96,165,250,.14); color:#93c5fd; }
.ac-reason { color:var(--muted); font-size:13px; margin-bottom:8px; line-height:1.45; }
.ac-metrics { display:flex; flex-wrap:wrap; gap:6px; }
.metric {
  font-size:11px; color:var(--muted); background:var(--panel2);
  border:1px solid var(--line); border-radius:999px; padding:4px 8px;
}
.ac-right { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.ac-ago { font-size:11px; color:var(--dim); }
.btn {
  border:none; border-radius:10px; padding:9px 12px; font-weight:700; font-size:12px;
}
.btn.primary { background: var(--green); color:#04120c; }
.btn.primary:hover { filter:brightness(1.05); }
.btn.ghost { background: var(--panel2); color:var(--text); border:1px solid var(--line); }
.btn.soft { background: rgba(34,197,94,.12); color:#86efac; border:1px solid rgba(34,197,94,.28); }
.btn.yellow { background: rgba(234,179,8,.14); color:#fde047; border:1px solid rgba(234,179,8,.3); }
.btn.red { background: rgba(244,63,94,.14); color:#fda4af; border:1px solid rgba(244,63,94,.3); }
.btn.blue { background: rgba(96,165,250,.14); color:#93c5fd; border:1px solid rgba(96,165,250,.3); }

/* Detail */
.detail-hero {
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom:12px; box-shadow: var(--shadow);
}
.dh-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
.dh-top img { width:40px; height:40px; border-radius:50%; }
.dh-top h1 { margin:0; font-size:26px; font-weight:800; }
.dh-kpis {
  display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px;
}
.dh-kpis .box {
  background: var(--panel2); border:1px solid var(--line); border-radius:12px; padding:10px 12px;
}
.dh-kpis .l { font-size:11px; color:var(--muted); }
.dh-kpis .v { font-size:16px; font-weight:800; margin-top:4px; }
.detail-grid {
  display:grid; grid-template-columns: 1.15fr .95fr; gap:12px; margin-bottom:12px;
}
.chart-panel, .rules-panel, .plan-col {
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.chart-fake {
  height: 260px; border-radius:12px; background:
    linear-gradient(180deg, rgba(34,197,94,.05), transparent 40%),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.03) 40px),
    var(--panel2);
  border:1px solid var(--line); position:relative; overflow:hidden;
}
.chart-fake svg { width:100%; height:100%; display:block; }
.chart-caption { display:flex; justify-content:space-between; margin-top:8px; font-size:12px; color:var(--muted); }
.rules-panel h3, .plan-col h3, .chart-panel h3 { margin:0 0 12px; font-size:14px; }
.rule-item {
  display:grid; grid-template-columns: 22px 1fr; gap:8px; padding:10px 0;
  border-bottom:1px dashed var(--line); font-size:13px;
}
.rule-item:last-child { border-bottom:none; }
.rule-item .mark { font-weight:800; }
.rule-item.ok .mark { color: var(--green); }
.rule-item.bad .mark { color: var(--red); }
.rule-item .rt { font-weight:700; }
.rule-item .rd { color:var(--muted); font-size:12px; margin-top:3px; line-height:1.4; }

.plan-grid { display:grid; grid-template-columns: 1fr 1.05fr 1fr; gap:12px; margin-bottom:12px; }
.plan-col .scoreline {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:12px; color:var(--muted);
}
.check li {
  list-style:none; padding:8px 0; border-bottom:1px dashed var(--line); font-size:13px; color:var(--muted);
  display:grid; grid-template-columns: 18px 1fr; gap:8px;
}
.check { margin:0; padding:0; }
.check li.ok { color:#bbf7d0; }
.check li .t { font-weight:700; color:var(--text); }
.check li .d { font-size:12px; color:var(--muted); margin-top:2px; }
.zone-box {
  background: var(--panel2); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:8px;
}
.zone-box .t { font-size:11px; font-weight:800; color: var(--teal); letter-spacing:.02em; }
.zone-box .d { font-size:14px; font-weight:700; margin-top:4px; }
.zone-box.warn .t { color: #fb7185; }
.zone-box.demo { border-style: dashed; }
.exit-item { background: var(--panel2); border-radius:12px; padding:10px 12px; margin-bottom:8px; border:1px solid var(--line); }
.exit-item .t { font-size:12px; font-weight:800; }
.exit-item .t.s { color:#86efac; }
.exit-item .t.m { color:#fbbf24; }
.exit-item .t.l { color:#93c5fd; }
.exit-item .d { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.45; }

.detail-bar {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center;
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.veto-ok { display:flex; align-items:center; gap:8px; color:#86efac; font-weight:700; font-size:13px; }
.veto-bad { display:flex; align-items:center; gap:8px; color:#fda4af; font-weight:700; font-size:13px; }
.detail-actions { display:flex; flex-wrap:wrap; gap:8px; }
.conf-wrap { display:flex; align-items:center; gap:8px; font-size:13px; }
.conf-bar { width:90px; height:8px; border-radius:99px; background:#243041; overflow:hidden; }
.conf-bar > i { display:block; height:100%; background: linear-gradient(90deg, #22c55e, #f59e0b); }

.empty { text-align:center; color:var(--muted); padding:36px 12px; }
.settings-card p { color:var(--muted); line-height:1.6; }
.footer { margin-top:18px; color:var(--dim); font-size:12px; line-height:1.65; }
.footer .disclaimer { color: var(--orange); }

.toast {
  position:fixed; bottom:24px; right:24px; z-index:80;
  background:#14532d; color:#dcfce7; border:1px solid #22c55e;
  padding:10px 14px; border-radius:12px; font-size:13px; font-weight:700;
  box-shadow: var(--shadow); display:none;
}
.toast.show { display:block; animation: fade .2s ease; }

@media (max-width: 1100px) {
  .dh-kpis { grid-template-columns: repeat(3,1fr); }
  .detail-grid, .plan-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .sidebar { position:fixed; left:-250px; transition:left .2s; }
  .sidebar.open { left:0; }
  .menu-btn { display:inline-flex; align-items:center; justify-content:center; }
  .main { padding: 56px 12px 36px; }
  .page-head h1 { font-size:22px; }
  .head-right { align-items:flex-start; width:100%; }
  .filter-pills { justify-content:flex-start; }
  .alert-card { grid-template-columns: 1fr; }
  .ac-right { align-items:flex-start; flex-direction:row; justify-content:space-between; width:100%; }
}

/* Sortable headers */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: #bbf7d0; }
th.sortable.primary { color: #86efac; }
th.sortable.secondary { color: #93c5fd; }
.sort-mark { font-size: 10px; margin-left: 2px; opacity: .9; }
.sort-hint { font-size: 12px; color: var(--dim); margin: 0 0 10px; }

/* Podium */
.podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end;
  padding: 8px 4px 4px;
}
.pod {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 14px; text-align: center; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pod:hover { transform: translateY(-2px); border-color: rgba(34,197,94,.45); }
.pod-1 {
  padding-top: 22px; padding-bottom: 22px;
  background: linear-gradient(180deg, rgba(34,197,94,.16), var(--panel2));
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 12px 32px rgba(34,197,94,.12);
}
.pod-2 { border-color: rgba(148,163,184,.35); }
.pod-3 { border-color: rgba(180,120,60,.35); }
.pod-rank { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.pod-1 .pod-rank { color: #86efac; font-size: 13px; }
.pod-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  margin: 0 auto 8px; color: #041018; font-weight: 800;
}
.pod-1 .pod-icon { width: 48px; height: 48px; font-size: 18px; }
.pod-name { font-weight: 800; font-size: 15px; }
.pod-1 .pod-name { font-size: 18px; }
.pod-vs { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.03em; }
.pod-1 .pod-vs { font-size: 32px; }
.pod-sub { font-size: 11px; color: var(--muted); }
.pod-mult { font-size: 12px; color: #86efac; margin-top: 6px; font-weight: 700; }

.sc-icon.sm {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; color: #041018; font-weight: 800; flex-shrink: 0;
}
.row-active { background: rgba(34,197,94,.08) !important; }

/* Alert share row */
.ac-share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn.sm { padding: 7px 10px; font-size: 11px; border-radius: 8px; }

/* Plain strategy */
.plain-box {
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(14,165,233,.08));
  border: 1px solid rgba(34,197,94,.35); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.plain-h { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.badge-demo.inline {
  display: inline-flex; font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(245,158,11,.14); color: var(--orange); border: 1px solid rgba(245,158,11,.3);
}
.plain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plain-grid .pk { font-size: 11px; color: #86efac; font-weight: 800; letter-spacing: .04em; margin-bottom: 6px; }
.plain-grid .pv { font-size: 14px; line-height: 1.55; color: var(--text); font-weight: 600; }

/* Backtest */
.backtest-block { margin-bottom: 12px; }
.bt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bt-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.bt-name { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.bt-ret { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.bt-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 0; border-top: 1px dashed var(--line); }
.bt-row b { color: var(--text); }

@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; }
  .pod-1 { order: -1; }
  .plain-grid, .bt-grid { grid-template-columns: 1fr; }
}

/* Daily recommend */
.daily-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-box { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rule-box h3 { margin: 0 0 8px; font-size: 14px; }
.rule-box.spot h3 { color: #86efac; }
.rule-box.fut h3 { color: #fbbf24; }
.rule-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rec-list { display: grid; gap: 10px; }
.rec-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; cursor: pointer; transition: border-color .15s;
}
.rec-card:hover { border-color: rgba(34,197,94,.4); }
.rec-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.rec-line { font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.45; }
.daily-home { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.daily-home-col { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dh-label { font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.dh-label.spot { color: #86efac; }
.dh-label.fut { color: #fbbf24; }
.home-rec {
  display: block; width: 100%; text-align: left; background: transparent;
  border: 1px solid transparent; border-radius: 8px; padding: 8px; margin-bottom: 4px;
  color: var(--text); cursor: pointer;
}
.home-rec:hover { background: rgba(34,197,94,.08); border-color: var(--line); }
.home-rec .dim { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; }

/* Backtest timeline */
.bt-narrative { font-size: 14px; font-weight: 600; line-height: 1.55; margin-bottom: 10px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bt-horizon-tag { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bt-timeline { position: relative; padding-left: 8px; }
.bt-timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #22c55e, #334155);
}
.bt-node { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-bottom: 14px; position: relative; }
.bt-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #22c55e; margin-top: 4px; margin-left: 4px;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15); z-index: 1;
}
.bt-dot.up { background: #22c55e; }
.bt-dot.down { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244,63,94,.15); }
.bt-node.signal .bt-dot { background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.18); }
.bt-node-h { font-weight: 800; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bt-node-p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.bt-table th, .bt-table td { font-size: 12px; }

@media (max-width: 900px) {
  .daily-cols, .rules-two, .daily-home { grid-template-columns: 1fr; }
}

/* Trader-first density */
.now-banner {
  grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #bbf7d0;
  padding: 8px 10px; border-radius: 10px; background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25); margin-bottom: 4px;
}
.daily-home-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-rec .hr-top { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.home-rec .hr-mid { font-size:12px; color:var(--muted); margin:4px 0; line-height:1.4; }
.home-rec .hr-bot { display:flex; flex-wrap:wrap; gap:8px; font-size:11px; color:#86efac; }
.rec-trade {
  display:grid; grid-template-columns:1fr; gap:4px; font-size:12px;
  background:rgba(0,0,0,.2); border-radius:8px; padding:8px 10px; margin-bottom:8px;
}
.plain-summary {
  font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0 0 12px;
  padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.22);
}
.plain-grid.compact .pv { font-size: 13px; font-weight: 500; }
.empty.sm { padding: 16px 8px; font-size: 13px; }

@media (max-width: 900px) {
  .daily-home-wrap { grid-template-columns: 1fr; }
  .plain-grid.compact { grid-template-columns: 1fr; }
  .dh-kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .page-head { gap: 10px; }
  .ac-share { width: 100%; }
  .bt-node-h { font-size: 12px; }
  .tbl th, .tbl td { padding: 8px 6px; font-size: 12px; }
}
