.ekl-root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel2: #0f1729;
  --text: #e6edf8;
  --muted: #9bb0cf;
  --line: #223253;
  --accent: #4f9cff;
  --accent2: #22d3ee;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% -10%, #1b2f57 0, transparent 55%),
    linear-gradient(160deg, #09101d, #0d1830 55%, #0b1220);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 16px;
}

.ekl-header,
.ekl-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
}

.ekl-header {
  padding: 16px;
  margin-bottom: 14px;
}

.ekl-header h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.ekl-header p {
  margin: 0;
  color: var(--muted);
}

.ekl-layout {
  display: grid;
  grid-template-columns: 300px 1fr 310px;
  gap: 12px;
}

.ekl-card {
  padding: 12px;
}

.ekl-controls,
.ekl-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ekl-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ekl-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.ekl-input {
  width: 100%;
}

select.ekl-input,
input.ekl-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1223;
  color: var(--text);
  padding: 8px;
}

.ekl-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ekl-space-between {
  justify-content: space-between;
}

.ekl-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ekl-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15233f;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.ekl-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #04111f;
  border-color: transparent;
  font-weight: 700;
}

.ekl-chart {
  height: 220px;
}

.ekl-canvas {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b1426;
}

.ekl-metrics {
  display: grid;
  gap: 6px;
}

.ekl-metrics div {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  background: #0b1426;
  border: 1px solid var(--line);
}

.ekl-metrics span {
  color: var(--muted);
}

.ekl-metrics strong {
  color: #8dd7ff;
}

.ekl-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ekl-formula-wrap {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.ekl-formula {
  background: #0b1426;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  min-height: 50px;
}

.ekl-mt12 {
  margin-top: 12px;
}

@media (max-width: 1260px) {
  .ekl-layout {
    grid-template-columns: 1fr;
  }
}
