.es016-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 16px;
}

.es016-span-2 {
  grid-column: 1 / -1;
}

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

.es016-tab {
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface, #fff);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.es016-tab.is-active {
  border-color: var(--accent, #0b57d0);
  color: var(--accent, #0b57d0);
}

.es016-panel {
  display: grid;
  gap: 10px;
}

.es016-field {
  display: grid;
  gap: 6px;
}

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

.es016-inline-2 .input {
  min-width: 0;
}

.es016-fieldset {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.es016-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}

.es016-advanced {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  padding: 8px 10px;
}

.es016-advanced summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

.es016-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.es016-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

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

.es016-status.is-ok {
  color: #0f766e;
}

.es016-status.is-error {
  color: #b91c1c;
}

.es016-error {
  color: #b91c1c;
  min-height: 1.2em;
}

.es016-warning {
  white-space: pre-wrap;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.es016-table {
  width: 100%;
  border-collapse: collapse;
}

.es016-table th,
.es016-table td {
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 8px 6px;
  vertical-align: top;
}

.es016-table th {
  text-align: left;
  width: 44%;
}

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

.es016-chart {
  width: 100%;
  height: auto;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.es016-chart .es016-axis-line {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.45;
}

.es016-chart .es016-grid-line {
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.14;
}

.es016-chart .es016-axis-label {
  fill: currentColor;
  opacity: 0.78;
  font-size: 11px;
}

.es016-chart .es016-axis-title {
  fill: currentColor;
  opacity: 0.88;
  font-size: 12px;
  font-weight: 600;
}

.es016-muted {
  color: var(--muted, #475569);
}

.es016-do-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.6;
}

.es016-do-status.is-normal {
  color: #065f46;
  background: #ecfdf5;
  border-color: #86efac;
}

.es016-do-status.is-warn {
  color: #92400e;
  background: #fffbeb;
  border-color: #f59e0b;
}

.es016-do-status.is-danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.es016-notes {
  display: grid;
  gap: 6px;
}

.button.tiny {
  padding: 6px 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .es016-grid {
    grid-template-columns: 1fr;
  }

  .es016-span-2 {
    grid-column: auto;
  }

  .es016-inline-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .es016-warning {
    background: rgba(161, 98, 7, 0.25);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.5);
  }

  .es016-chart {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  }

  .es016-do-status.is-normal {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
  }

  .es016-do-status.is-warn {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
  }

  .es016-do-status.is-danger {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
  }
}
