:root{
  --bg:#0f1720;
  --panel:#0b1220;
  --panel-2:#071226;
  --muted:#9fb8da;
  --accent:#0b6cb0;
  --card-pad:12px;
  --radius:8px;
  --gap:14px;
  --text:#e6eef8;
}

*{box-sizing:border-box}
body{
  font-family:Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  margin:0;
  -webkit-font-smoothing:antialiased;
}

header{
  padding:16px 20px;
  background:var(--panel-2);
  border-bottom:1px solid rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  gap:18px;
}
header h1{ margin:0; font-size:18px; }
header .sub{ color:var(--muted); font-size:13px; }

.app{ padding:18px; display:flex; gap:var(--gap); flex-direction:column; }
.topbar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.tabs{ display:flex; gap:8px; margin-top:6px; }
.tab{
  padding:8px 12px;
  background:transparent;
  color:var(--muted);
  border-radius:6px;
  cursor:pointer;
  border:1px solid transparent;
  user-select:none;
}
.tab:hover{ background: rgba(255,255,255,0.02); }
.tab.active{
  background: rgba(11,108,176,0.12);
  color:var(--text);
  border-color: rgba(11,108,176,0.25);
  box-shadow: 0 4px 18px rgba(4,18,34,0.5);
}

.main{ display:flex; gap:var(--gap); margin-top:12px; align-items:flex-start; }
.col-left{ flex:1; min-width:760px; }
.col-right{ width:420px; }

.panel{
  background:var(--panel);
  border-radius:var(--radius);
  padding:var(--card-pad);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  margin-bottom:var(--gap);
}
.panel .title{ font-weight:700; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.title-controls{ display:flex; gap:8px; align-items:center; }

.controls{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:8px; }
.control-input{ padding:8px; border-radius:6px; border:1px solid rgba(255,255,255,0.04); background:#081323; color:var(--text); }
.small-number{ width:70px; padding:6px; }

.small-btn{ background:var(--accent); border:none; color:white; padding:6px 10px; border-radius:6px; cursor:pointer; }
.small-btn.ghost{ background:transparent; border:1px solid rgba(255,255,255,0.03); color:var(--muted); }

.plot{ background:#061225; border-radius:6px; padding:8px; }

.tab-content{ display:none; }
.tab-content.active{ display:block; }

.list{ max-height:360px; overflow:auto; }
.order-card{ background:#071026; padding:10px; border-radius:6px; display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.order-title{ font-weight:700; }
.order-sub{ color:var(--muted); font-size:13px; margin-top:4px; }

table.table{ width:100%; border-collapse:collapse; color:var(--text); }
.table th, .table td{ padding:8px; border-bottom:1px solid rgba(255,255,255,0.03); text-align:left; font-size:13px; }

.modal{ position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index: 9999; }
.modal .card{ background:#071226; padding:16px; border-radius:8px; width:520px; box-shadow: 0 6px 20px rgba(0,0,0,0.7); }
.form-row{ display:flex; gap:8px; margin-bottom:8px; }
.form-row label{ width:110px; font-size:13px; color:#bcd4ef; }
.form-row input, .form-row select{ flex:1; padding:6px; border-radius:4px; border:1px solid rgba(255,255,255,0.04); background:#081323; color:var(--text); }

.divider{ height:1px; background:rgba(255,255,255,0.03); margin:12px 0; border-radius:2px; }

@media (max-width:1100px){
  .main{ flex-direction:column; }
  .col-right{ width:100%; }
  .col-left{ min-width:unset; }
}