.eji {
  --eji-bg: #0f1419;
  --eji-card: #1a222c;
  --eji-ink: #e8eef4;
  --eji-muted: #9aa8b5;
  --eji-mayor: #f0c14b;
  --eji-ipc: #6ec9ff;
  --eji-money: #7dcea0;
  --eji-rate: #e07a5f;
  --eji-go: #2f6f4e;
  --eji-btn: #2c3a48;
  --eji-well: #10161c;
  box-sizing: border-box;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px 20px;
  background: var(--eji-bg);
  color: var(--eji-ink);
  border-radius: 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.eji *,
.eji *::before,
.eji *::after {
  box-sizing: border-box;
}

.eji-lede {
  color: var(--eji-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 14px;
}

.eji-panel {
  background: var(--eji-card);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
}

.eji-sliders label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 8px 0 2px;
}

.eji-sliders input[type="range"] {
  width: 100%;
}

.eji-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.eji-nums div {
  background: var(--eji-well);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.eji-nums b {
  display: block;
  font-size: 1.15rem;
}

.eji-nums span {
  color: var(--eji-muted);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .eji-nums {
    grid-template-columns: repeat(2, 1fr);
  }
}

.eji-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.eji-presets button,
.eji-actions button,
.eji-go {
  background: var(--eji-btn);
  color: var(--eji-ink);
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.eji-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

.eji-presets .eji-go,
.eji-actions .eji-go,
.eji-go {
  background: var(--eji-go);
  font-weight: 600;
}

.eji-actions .eji-go.eji-stop {
  background: var(--eji-rate);
}

.eji canvas {
  width: 100%;
  height: 220px;
  display: block;
  margin-top: 10px;
}

.eji-pipe {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.eji-pipe i {
  flex: 0 0 28px;
  height: 44px;
  border-radius: 4px;
  background: var(--eji-well);
  position: relative;
  font-style: normal;
  font-size: 9px;
  color: #6a7784;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eji-pipe i.on {
  background: linear-gradient(180deg, #3d4a2a, #1a222c);
  color: var(--eji-mayor);
}

.eji-pipe i.cpi {
  background: linear-gradient(180deg, #1d3a52, #1a222c);
  color: var(--eji-ipc);
}

.eji-legend {
  font-size: 0.8rem;
  color: var(--eji-muted);
  margin-top: 6px;
}

.eji-swatch-mayor {
  color: var(--eji-mayor);
}

.eji-swatch-ipc {
  color: var(--eji-ipc);
}

.eji-swatch-money {
  color: var(--eji-money);
}

.eji-warn {
  color: #e8b86d;
  font-size: 0.8rem;
  min-height: 1.2em;
}
