*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;background:#0d1117;color:#c9d1d9;padding:20px;min-height:100vh;line-height:1.5}
h1{font-size:22px;margin-bottom:6px;color:#58a6ff}
h1 span{color:#8b949e;font-size:13px;font-weight:400}
.subtitle{color:#8b949e;font-size:13px;margin-bottom:20px}

/* Section */
.section{margin-bottom:28px}
.section h2{font-size:15px;color:#c9d1d9;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.section h2 .hint{font-size:11px;color:#8b949e;font-weight:400}
.section-desc{font-size:12px;color:#8b949e;margin-bottom:12px}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:8px}
.card{background:#161b22;border:1px solid #30363d;border-radius:8px;padding:16px;position:relative}
.card .label{font-size:11px;color:#8b949e;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px}
.card .value{font-size:24px;font-weight:700}
.card .desc{font-size:11px;color:#8b949e;margin-top:4px;line-height:1.4}
.up{color:#3fb950}.down{color:#f85149}.warn{color:#d2991d}.neutral{color:#8b949e}

/* Status row */
.status-bar{display:flex;gap:8px;align-items:center;margin-bottom:18px;font-size:12px;flex-wrap:wrap}
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px}
.status-dot.live{background:#3fb950;animation:pulse 2s infinite}
.status-dot.warn{background:#d2991d;animation:pulse 2s infinite}
.status-dot.off{background:#f85149}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}

/* Filters */
.filters{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap;align-items:center}
.filters input,.filters select{background:#161b22;border:1px solid #30363d;color:#c9d1d9;padding:8px 12px;border-radius:6px;font-size:13px}
.filters input:focus,.filters select:focus{border-color:#58a6ff;outline:none}
.filters button{background:#238636;border:none;color:#fff;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500}
.filters button:hover{background:#2ea043}

/* Table */
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;padding:10px 12px;border-bottom:1px solid #30363d;color:#8b949e;font-weight:500;font-size:11px;text-transform:uppercase;letter-spacing:0.5px}
td{padding:8px 12px;border-bottom:1px solid #21262d}
tr:hover{background:#1c2128}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600}
.badge-buy{background:#3fb95022;color:#3fb950}
.badge-sell{background:#f8514922;color:#f85149}
.badge-session{background:#8b949e22;color:#8b949e}
.badge-overlap{background:#3fb95022;color:#3fb950;border:1px solid #3fb95044}

/* Stats summary */
.stats{margin-bottom:16px;padding:12px 16px;background:#161b22;border:1px solid #30363d;border-radius:8px;font-size:13px;display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.stats .stat-item{display:flex;flex-direction:column;gap:2px}
.stats .stat-num{font-size:20px;font-weight:700}
.stats .stat-label{font-size:10px;color:#8b949e;text-transform:uppercase}
.stats .divider{width:1px;height:36px;background:#30363d}

/* Empty state */
.empty{text-align:center;padding:40px;color:#8b949e}
.empty-icon{font-size:40px;margin-bottom:10px}

/* Legend */
.legend{font-size:11px;color:#8b949e;display:flex;gap:16px;flex-wrap:wrap;margin-bottom:20px;padding:10px 14px;background:#161b22;border:1px solid #30363d;border-radius:6px}

/* Footer */
.footer{font-size:11px;color:#484f58;text-align:right;margin-top:12px;display:flex;justify-content:space-between;align-items:center}

/* Guide section */
.guide{margin-top:30px;padding:20px;background:#161b22;border:1px solid #30363d;border-radius:8px}
.guide h3{font-size:14px;color:#c9d1d9;margin-bottom:12px}
.guide dl{display:grid;grid-template-columns:180px 1fr;gap:6px 12px;font-size:12px}
.guide dt{color:#58a6ff;font-weight:500}
.guide dd{color:#8b949e;margin-bottom:4px}

/* Tooltip */
[data-tip]{border-bottom:1px dotted #8b949e;cursor:help}

@media(max-width:768px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .stats{flex-direction:column;gap:8px}
  .stats .divider{display:none}
  .guide dl{grid-template-columns:1fr}
  .guide dt{margin-top:8px}
}
