* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: #0f1115;
  color: #d8dde3;
}
header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #2a2f38;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #aab2bc;
}
.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.status-bar .sep { color: #444; }
.badge {
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-on  { background: #1f3a1f; color: #6cd06c; }
.badge-off { background: #3a1f1f; color: #d06c6c; }
.inline { display: inline; }
button, input, select {
  background: #1c2128;
  color: #d8dde3;
  border: 1px solid #2a2f38;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}
button:hover { background: #2a2f38; }
input[type=text], input[type=number] { width: 7rem; }

main {
  padding: 1rem 1.5rem;
  max-width: 1200px;
}
section { margin-bottom: 2rem; }
section h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a929d;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #1f242b;
}
th {
  font-weight: 600;
  color: #8a929d;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: 'SF Mono', Menlo, monospace; font-size: 0.78rem; color: #8a929d; }
td.empty { text-align: center; color: #4a525d; padding: 1.5rem; }
td.reason { color: #c87878; font-size: 0.75rem; }

.side-buy, .side-long           { color: #6cd06c; }
.side-sell, .side-short         { color: #d06c6c; }
.side-buy_close, .side-sell_close { color: #c8a86c; }

.status-executed { color: #6cd06c; }
.status-denied   { color: #c8a86c; }
.status-failed, .status-rejected { color: #d06c6c; }
.status-received, .status-submitted { color: #8a929d; }
