:root {
  --bg: #0f1420; --panel: #1a2233; --panel2: #222c42; --line: #2c3850;
  --text: #e6ecf7; --muted: #8b9bb5; --accent: #4f8cff; --green: #34d399; --red: #f87171;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px; line-height: 1.5; font-weight: 700;
}
/* 모든 글씨 굵게 */
body, th, td, p, span, h1, h2, .muted, .label, .value, select, option { font-weight: 700 !important; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background: linear-gradient(180deg, #131a2b, var(--bg)); border-bottom: 1px solid var(--line); padding: 22px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; }
h1 { margin: 0; font-size: 22px; }
h2 { font-size: 15px; margin: 0 0 14px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tag { color: var(--accent); font-size: 12px; }
main { padding: 24px 0 60px; }

.badge { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; background: var(--panel2); }
.badge.on { background: rgba(52,211,153,.15); color: var(--green); }
.badge.off { background: rgba(248,113,113,.15); color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card .label { color: var(--muted); font-size: 12px; }
.card .value { font-size: 24px; font-weight: 700; margin-top: 4px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
tbody tr:hover { background: var(--panel2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }

.barcell { display: flex; align-items: center; gap: 8px; }
.bar { height: 7px; border-radius: 4px; background: var(--accent); }
.cash { background: rgba(79,140,255,.12); color: var(--accent); padding: 12px; border-radius: 10px; }

.sectorrow { display: grid; grid-template-columns: 1fr; gap: 12px; }
.warn { background: rgba(248,113,113,.14); color: var(--red); padding: 11px; border-radius: 10px; font-size: 13px; }
.ok { background: rgba(52,211,153,.12); color: var(--green); padding: 11px; border-radius: 10px; font-size: 13px; }
canvas { max-width: 100%; }
select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13px; }

footer { margin-top: 10px; text-align: center; }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2,1fr); } .grid2 { grid-template-columns: 1fr; } }
