* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f1419;
  color: #e7ecf3;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

header p {
  margin: 0 0 1rem;
  color: #9aa8b8;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  background: #1a2332;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.muted {
  color: #9aa8b8;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #2a3544;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #2a3544;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #1a2332;
  position: sticky;
  top: 0;
}

tr.value {
  background: rgba(34, 197, 94, 0.08);
}

.slate-table .notes-cell {
  white-space: normal;
  min-width: 18rem;
  max-width: 36rem;
  line-height: 1.35;
  color: #c5d0dc;
}

.empty {
  color: #9aa8b8;
  margin-top: 1rem;
}

.theory {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3544;
}

.theory-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.theory-header p {
  margin: 0 0 1rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: #1a2332;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.roi-table {
  font-size: 0.8rem;
}

.roi-table th,
.roi-table td {
  padding: 0.35rem 0.5rem;
}

.win {
  color: #4ade80;
}

.loss {
  color: #f87171;
}

tr.win-row {
  background: rgba(34, 197, 94, 0.08);
}

tr.loss-row {
  background: rgba(248, 113, 113, 0.08);
}

.theory-table {
  margin-bottom: 0.5rem;
}
