.es018-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.es018-span-2 {
  grid-column: span 2;
}

.es018-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.es018-field {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
}

.es018-field > span {
  font-size: 0.93rem;
  color: var(--text-muted, #475569);
}

.es018-inline-2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.es018-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.es018-advanced {
  margin-top: 10px;
}

.es018-note {
  color: var(--text-muted, #64748b);
}

.es018-status {
  min-height: 1.4em;
}

.es018-status.is-ok {
  color: var(--ok-700, #166534);
}

.es018-status.is-warn {
  color: var(--warn-700, #92400e);
}

.es018-status.is-error {
  color: var(--danger-700, #b91c1c);
}

.es018-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.es018-tab {
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--panel-bg, #fff);
  color: var(--text-color, #0f172a);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.es018-tab.is-active {
  border-color: var(--brand-color, #2563eb);
  background: #e7efff;
  background: color-mix(in oklab, var(--brand-color, #2563eb) 15%, var(--panel-bg, #fff));
}

.es018-warning,
.es018-error {
  white-space: pre-wrap;
}

.es018-warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px;
}

.es018-error {
  color: #b91c1c;
}

.es018-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.es018-kpi-item {
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
  background: color-mix(in oklab, var(--panel-bg, #fff) 90%, #e2e8f0 10%);
}

.es018-kpi-label {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
}

.es018-kpi-value {
  font-size: 1.42rem;
  font-weight: 700;
  margin-top: 4px;
  word-break: break-word;
}

.es018-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.es018-table th,
.es018-table td {
  border: 1px solid var(--border-color, #cbd5e1);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.es018-table th {
  background: #f1f5f9;
  background: color-mix(in oklab, var(--panel-bg, #fff) 85%, #e2e8f0 15%);
  width: 34%;
}

.es018-chart-wrap {
  margin-top: 10px;
}

.es018-chart {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  background: #f8fafc;
  background: color-mix(in oklab, var(--panel-bg, #fff) 97%, #0f172a 3%);
}

.es018-axis-line {
  stroke: rgba(15, 23, 42, 0.65);
  stroke: color-mix(in oklab, var(--text-color, #0f172a) 65%, transparent);
  stroke-width: 1;
}

.es018-grid-line {
  stroke: rgba(15, 23, 42, 0.16);
  stroke: color-mix(in oklab, var(--text-color, #0f172a) 16%, transparent);
  stroke-width: 1;
}

.es018-axis-label,
.es018-axis-title {
  fill: var(--text-color, #0f172a);
  font-size: 12px;
}

.es018-series {
  fill: none;
  stroke: var(--brand-color, #2563eb);
  stroke-width: 2;
}

.es018-point {
  fill: #3b82f6;
  fill: color-mix(in oklab, var(--brand-color, #2563eb) 80%, #ffffff 20%);
  stroke: #fff;
  stroke-width: 1.2;
}

.es018-heat-wrap {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.es018-heat-canvas {
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  background: #fff;
}

.es018-heat-legend {
  display: grid;
  gap: 6px;
}

.es018-heat-bar {
  width: min(560px, 100%);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a 0%, #0ea5e9 25%, #10b981 50%, #f59e0b 75%, #dc2626 100%);
  border: 1px solid rgba(15, 23, 42, 0.2);
  border: 1px solid color-mix(in oklab, #0f172a 20%, transparent);
}

.es018-heat-ticks {
  width: min(560px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.es018-heat-ticks span:nth-child(2) {
  text-align: center;
  flex: 1;
}

.es018-subtle {
  color: var(--text-muted, #64748b);
}

@media (max-width: 960px) {
  .es018-grid,
  .es018-grid-2,
  .es018-kpi-grid {
    grid-template-columns: 1fr;
  }

  .es018-span-2 {
    grid-column: span 1;
  }

  .es018-field {
    min-width: 100%;
  }

  .es018-chart {
    min-height: 260px;
  }
}
