.qj-ops-grid-item {
  z-index: 2;
}

.qj-ops-card {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(109, 171, 224, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, #132535, #0e1d2a);
  color: #f4f8fd;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.qj-ops-header {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(151, 190, 225, 0.18);
}

.qj-ops-title,
.qj-ops-panel-title {
  font-weight: 700;
}

.qj-ops-title {
  font-size: 16px;
}

.qj-ops-updated {
  color: #91a7bf;
  font-size: 12px;
}

.qj-ops-body {
  height: calc(100% - 54px);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(390px, 1.15fr);
  gap: 18px;
  box-sizing: border-box;
}

.qj-ops-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(151, 190, 225, 0.16);
  border-radius: 13px;
  background: rgba(7, 17, 27, 0.42);
}

.qj-ops-panel-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.qj-service-list {
  display: grid;
  gap: 10px;
}

.qj-service-row {
  min-height: 54px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(151, 190, 225, 0.13);
  border-radius: 11px;
  background: #142737;
}

.qj-service-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(22, 140, 255, 0.14);
  color: #59afff;
  font-weight: 800;
}

.qj-service-name {
  font-weight: 600;
}

.qj-service-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a8bfd4;
}

.qj-service-state::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f6d;
  box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.12);
}

.qj-service-state.is-ok {
  color: #dffaf2;
}

.qj-service-state.is-ok::before {
  background: #20d6a0;
  box-shadow: 0 0 0 4px rgba(32, 214, 160, 0.12);
}

.qj-performance {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 12px;
}

.qj-gauge-wrap {
  text-align: center;
}

.qj-gauge {
  --value: 0;
  width: 100px;
  height: 100px;
  margin: 4px auto 10px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#168cff calc(var(--value) * 1%), #21384a 0);
  box-shadow: 0 0 24px rgba(22, 140, 255, 0.13);
}

.qj-gauge.is-warning {
  background: conic-gradient(#ffb33d calc(var(--value) * 1%), #21384a 0);
  box-shadow: 0 0 24px rgba(255, 179, 61, 0.18);
}

.qj-gauge.is-critical {
  background: conic-gradient(#ff5f6d calc(var(--value) * 1%), #21384a 0);
  box-shadow: 0 0 24px rgba(255, 95, 109, 0.2);
}

.qj-gauge::before {
  content: "";
  width: 76px;
  height: 76px;
  position: absolute;
  border-radius: 50%;
  background: #10202e;
  border: 1px solid rgba(151, 190, 225, 0.14);
}

.qj-gauge-value {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
}

.qj-gauge-label {
  color: #a9bdd1;
  font-size: 13px;
}

.qj-host-details {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qj-host-detail {
  padding: 12px;
  border-radius: 10px;
  background: rgba(22, 140, 255, 0.08);
  color: #91a7bf;
  text-align: center;
}

.qj-host-detail strong {
  display: block;
  margin-top: 5px;
  color: #f4f8fd;
  font-size: 14px;
}

.qj-ops-error {
  color: #ff8490 !important;
}

.qj-fault-center {
  position: absolute;
  z-index: 12;
  top: 64px;
  right: 18px;
  width: min(560px, calc(100% - 36px));
  max-height: calc(100% - 82px);
  overflow: auto;
  border: 1px solid rgba(255, 95, 109, 0.48);
  border-radius: 13px;
  background: rgba(13, 28, 40, 0.98);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 95, 109, 0.12);
}

.qj-fault-center[hidden] {
  display: none;
}

.qj-fault-center-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 132, 144, 0.22);
  background: #172635;
}

.qj-fault-center-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qj-fault-center-header strong {
  color: #fff4f5;
  font-size: 15px;
}

.qj-fault-center-header span {
  color: #d5a4aa;
  font-size: 11px;
}

.qj-fault-count {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff5f6d;
  color: white !important;
  font-weight: 800;
}

.qj-fault-list {
  padding: 11px;
  display: grid;
  gap: 9px;
}

.qj-fault-item {
  padding: 11px 12px;
  border: 1px solid rgba(255, 179, 61, 0.3);
  border-left: 4px solid #ffb33d;
  border-radius: 9px;
  background: rgba(255, 179, 61, 0.06);
}

.qj-fault-item.is-critical {
  border-color: rgba(255, 95, 109, 0.3);
  border-left-color: #ff5f6d;
  background: rgba(255, 95, 109, 0.07);
}

.qj-fault-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qj-fault-heading strong {
  color: #fff;
}

.qj-fault-heading span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c5d7e6;
  font-size: 11px;
}

.qj-fault-item p {
  margin: 7px 0 0;
  color: #d8e5ef;
  line-height: 1.5;
}

.qj-fault-item .qj-fault-suggestion {
  color: #a7bfd2;
  font-size: 12px;
}

.qj-fault-meta {
  margin-top: 8px;
  color: #7894aa;
  font-size: 10px;
}

@media (max-width: 1050px) {
  .qj-ops-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}
