* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg:#0b0e14; --panel:#141a24; --panel2:#1b2330; --line:#26303f;
  --txt:#e6edf3; --muted:#8b98a9; --green:#2ec27e; --red:#f0616d;
  --accent:#5b8cff; --amber:#f5b54a;
}
body{ background:var(--bg); color:var(--txt); font:14px/1.5 -apple-system,Segoe UI,Roboto,"Noto Sans KR",sans-serif; padding:16px; }
h1{ font-size:18px; } h2{ font-size:14px; color:var(--muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:.04em; }
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.badge{ padding:2px 8px; border-radius:6px; font-size:12px; font-weight:600; }
.badge.paper{ background:#1d3a2e; color:var(--green); }
.badge.testnet{ background:#3a2e1d; color:var(--amber); }
.meta{ color:var(--muted); font-size:13px; }
.price{ font-size:22px; font-weight:700; }
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.card{ background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px; }
.card .k{ color:var(--muted); font-size:12px; }
.card .v{ font-size:20px; font-weight:700; margin-top:4px; }
.cols{ display:grid; grid-template-columns:2fr 1fr; gap:12px; margin-bottom:16px; }
@media(max-width:900px){ .cols{ grid-template-columns:1fr; } }
canvas{ width:100%; display:block; }
#priceChart{ height:260px; } #equityChart{ height:200px; }
#improveBanner{ position:fixed; top:0; left:0; right:0; z-index:50; background:linear-gradient(90deg,#2a2a55,#1b2330); color:var(--accent); padding:10px 16px; text-align:center; font-weight:700; border-bottom:1px solid var(--accent); display:none; }
#improveBanner.show{ display:block; }
body.banner-on{ padding-top:52px; }
.pos-long{ color:var(--green); } .pos-short{ color:var(--red); }
.pos-none{ color:var(--muted); }
.pnl-pos{ color:var(--green); } .pnl-neg{ color:var(--red); }
table{ width:100%; border-collapse:collapse; font-size:13px; }
th,td{ text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); }
th{ color:var(--muted); font-weight:600; }
button{ background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 16px; font-weight:700; cursor:pointer; font-size:14px; }
button:disabled{ opacity:.5; cursor:not-allowed; }
button.ghost{ background:var(--panel2); color:var(--txt); border:1px solid var(--line); }
.switch{ display:flex; align-items:center; gap:8px; }
input[type=number]{ width:64px; background:var(--panel2); border:1px solid var(--line); color:var(--txt); border-radius:6px; padding:6px; }
.status{ padding:3px 10px; border-radius:6px; font-size:12px; font-weight:700; }
.status.idle{ background:var(--panel2); color:var(--muted); }
.status.running{ background:#2a2a55; color:var(--accent); }
.status.success{ background:#1d3a2e; color:var(--green); }
.status.error{ background:#3a1d22; color:var(--red); }
pre{ background:#0d1117; border:1px solid var(--line); border-radius:8px; padding:12px; overflow:auto; max-height:300px; font-size:12px; color:#c8d3e0; white-space:pre-wrap; }
.diff-add{ color:var(--green); } .diff-del{ color:var(--red); }
details{ margin-top:8px; } summary{ cursor:pointer; color:var(--muted); }
.ind{ display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--line); }
.ind:last-child{ border:0; }
.spin{ display:inline-block; width:12px; height:12px; border:2px solid var(--accent); border-top-color:transparent; border-radius:50%; animation:s .8s linear infinite; vertical-align:middle; }
@keyframes s{ to{ transform:rotate(360deg); } }
.muted{ color:var(--muted); }
