html.agk-monitoring-page .agk-cdse-card {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

html.agk-monitoring-page .agk-cdse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e6edf5;
}

html.agk-monitoring-page .agk-cdse-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

html.agk-monitoring-page .agk-cdse-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

html.agk-monitoring-page .agk-cdse-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

html.agk-monitoring-page .agk-cdse-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

html.agk-monitoring-page .agk-cdse-head button,
html.agk-monitoring-page .agk-cdse-controls button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

html.agk-monitoring-page .agk-cdse-controls button {
  color: #fff;
  background: #166534;
  border-color: #166534;
}

html.agk-monitoring-page .agk-cdse-controls button:disabled {
  color: #94a3b8;
  background: #e5e7eb;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

html.agk-monitoring-page .agk-cdse-body {
  padding: 22px 24px 24px;
}

html.agk-monitoring-page .agk-cdse-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #f0fdf4, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

html.agk-monitoring-page .agk-cdse-field span,
html.agk-monitoring-page .agk-cdse-field em {
  color: #64748b;
  font-size: 14px;
  font-style: normal;
}

html.agk-monitoring-page .agk-cdse-field strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
}

html.agk-monitoring-page .agk-cdse-controls {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(170px, 0.9fr);
  gap: 12px;
  align-items: end;
}

html.agk-monitoring-page .agk-cdse-controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

html.agk-monitoring-page .agk-cdse-controls select,
html.agk-monitoring-page .agk-cdse-controls input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

html.agk-monitoring-page .agk-cdse-controls select:focus,
html.agk-monitoring-page .agk-cdse-controls input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

html.agk-monitoring-page .agk-cdse-alert {
  margin-top: 14px;
  padding: 12px 14px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 14px;
}

html.agk-monitoring-page .agk-cdse-alert-warn {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

html.agk-monitoring-page .agk-cdse-alert-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

html.agk-monitoring-page .agk-cdse-result {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

html.agk-monitoring-page .agk-cdse-image-wrap {
  min-height: 260px;
  background: #eef2f7;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  overflow: hidden;
}

html.agk-monitoring-page .agk-cdse-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

html.agk-monitoring-page .agk-cdse-empty-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  color: #64748b;
}

html.agk-monitoring-page .agk-cdse-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html.agk-monitoring-page .agk-cdse-metrics div {
  min-height: 96px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

html.agk-monitoring-page .agk-cdse-metrics span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

html.agk-monitoring-page .agk-cdse-metrics strong {
  color: #166534;
  font-size: 26px;
  font-weight: 750;
}

html.agk-monitoring-page .agk-cdse-result-foot {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-self: end;
  color: #64748b;
  font-size: 13px;
}

html.agk-monitoring-page .agk-cdse-result-foot b {
  color: #166534;
  font-weight: 750;
}

@media (max-width: 1280px) {
  html.agk-monitoring-page .agk-cdse-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.agk-monitoring-page .agk-cdse-controls button {
    grid-column: 1 / -1;
  }

  html.agk-monitoring-page .agk-cdse-result {
    grid-template-columns: 1fr;
  }

  html.agk-monitoring-page .agk-cdse-result-foot {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  html.agk-monitoring-page .agk-cdse-head,
  html.agk-monitoring-page .agk-cdse-field {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  html.agk-monitoring-page .agk-cdse-body,
  html.agk-monitoring-page .agk-cdse-head {
    padding: 16px;
  }

  html.agk-monitoring-page .agk-cdse-controls,
  html.agk-monitoring-page .agk-cdse-metrics {
    grid-template-columns: 1fr;
  }
}
