:root { color-scheme: dark; --bg:#080b12; --panel:#101621; --line:#222c3e; --text:#eef3ff; --muted:#8f9bb3; --green:#57e5a7; --red:#ff6f7d; --blue:#6da7ff; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 20% -10%,#172237 0,transparent 35%),var(--bg); color:var(--text); font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
button,input { font:inherit; }
button { border:1px solid var(--line); border-radius:9px; padding:10px 14px; color:var(--text); background:#182132; cursor:pointer; }
button:hover { border-color:#3d4c69; }
button.primary { background:var(--blue); border-color:var(--blue); color:#07101f; font-weight:750; }
button.danger { color:#ffdce0; border-color:#65323a; background:#32171d; }
button.wide { width:100%; }
input { width:100%; border:1px solid var(--line); border-radius:8px; color:var(--text); background:#0b1019; padding:10px 12px; outline:none; }
input:focus { border-color:var(--blue); box-shadow:0 0 0 3px #6da7ff22; }
label { display:block; margin:12px 0 6px; color:#c8d1e2; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px max(24px,calc((100vw - 1500px)/2)); border-bottom:1px solid var(--line); background:#080b12cc; backdrop-filter:blur(12px); position:sticky; top:0; z-index:5; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:0; font-size:24px; letter-spacing:-.03em; }
h2 { margin:0; font-size:16px; }
h3 { font-size:14px; }
.eyebrow { margin:0 0 4px; color:var(--green); font-size:11px; letter-spacing:.16em; font-weight:800; }
.status-line,.actions,.switches { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.badge { display:inline-flex; border:1px solid #2f6b51; background:#102b22; color:var(--green); border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; }
.badge.neutral { color:#aebbd1; background:#141b28; border-color:var(--line); }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.muted,.hint { color:var(--muted); }
.hint { font-size:12px; }
.error,.negative { color:var(--red)!important; }
.positive { color:var(--green)!important; }
.dashboard { width:min(1500px,calc(100% - 32px)); margin:24px auto 48px; display:grid; gap:16px; }
.metrics { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; }
.metrics article,.panel { border:1px solid var(--line); background:linear-gradient(145deg,#111824,#0d121c); border-radius:13px; box-shadow:0 16px 40px #0004; }
.metrics article { padding:14px 16px; }
.metrics span { display:block; color:var(--muted); font-size:11px; margin-bottom:7px; }
.metrics strong { font-size:16px; }
.grid.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.panel { padding:18px; overflow:hidden; }
.panel-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.detail-list { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; margin:16px 0 0; }
.detail-list div { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding:9px 0; min-width:0; }
.detail-list dt { color:var(--muted); }
.detail-list dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.fields.two-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.switch { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:9px 12px; margin:0; }
.switch input { width:auto; }
.strategy-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.strategy-grid article { border:1px solid var(--line); background:#0b1019; border-radius:10px; padding:14px; }
.strategy-grid p:last-child { margin-bottom:0; }
.table-wrap { overflow:auto; max-height:520px; }
table { border-collapse:collapse; width:100%; min-width:1400px; font-size:12px; }
th,td { padding:10px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
th { position:sticky; top:0; background:#101621; color:var(--muted); z-index:1; }
#pnlChart { width:100%; height:260px; display:block; }
.period-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:8px; }
.period-stats article { display:grid; gap:3px; padding:10px; border:1px solid var(--line); border-radius:9px; background:#0b1019; }
.period-stats span,.period-stats small { color:var(--muted); font-size:11px; }
.batch-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.batch-grid article { display:grid; gap:5px; padding:12px; border:1px solid var(--line); border-radius:9px; background:#0b1019; }
.batch-grid span,.batch-grid small { color:var(--muted); }
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(420px,100%); border:1px solid var(--line); border-radius:16px; background:var(--panel); padding:28px; box-shadow:0 30px 80px #0008; }
code { color:var(--green); }
@media (max-width:1050px) { .metrics { grid-template-columns:repeat(3,1fr); } .grid.two { grid-template-columns:1fr; } }
@media (max-width:700px) { .topbar { align-items:flex-start; padding:16px; flex-direction:column; } .dashboard { width:calc(100% - 20px); margin-top:10px; } .metrics { grid-template-columns:repeat(2,1fr); } .detail-list,.strategy-grid,.fields.two-fields { grid-template-columns:1fr; } .period-stats { grid-template-columns:1fr; } .batch-grid { grid-template-columns:repeat(2,1fr); } .actions button { flex:1 1 45%; } }
