/* codexproxy node gateway */
.node-gateway-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.node-card-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.node-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.node-summary {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.node-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.node-summary strong {
  color: var(--text-main);
  font-size: 26px;
}

.node-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.node-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.node-section-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.node-section-head span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.node-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.node-table {
  min-width: 1180px;
}

.node-name {
  font-weight: 650;
  color: var(--text-main);
}

.node-url,
.node-error {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-modal {
  width: 560px;
}

.node-modal-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  margin: 2px 0 18px;
}

.node-switch-line input {
  width: 16px;
  height: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .node-summary-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .node-summary-grid {
    grid-template-columns: 1fr;
  }

  .node-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .node-modal {
    width: min(92vw, 560px);
  }
}
