* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

.container {
  width: min(1100px, 92%);
  margin: 40px auto;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 0 0 6px;
}

h1 {
  margin: 0;
  font-size: 38px;
}

h2 {
  margin-top: 0;
}

.subtitle {
  color: #68727d;
}

.status {
  padding: 9px 13px;
  border-radius: 999px;
  background: #e9eef2;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: white;
  border: 1px solid #e0e5e9;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(20, 30, 40, 0.04);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

input, select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #cbd3da;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #17202a;
  color: white;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary {
  width: 100%;
  margin-top: 20px;
  background: #4c5966;
}

.small {
  padding: 7px 11px;
  font-size: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-heading span {
  color: #68727d;
  font-size: 13px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary div {
  background: #f4f6f8;
  border-radius: 10px;
  padding: 16px;
}

.summary span,
.summary strong {
  display: block;
}

.summary span {
  color: #68727d;
  font-size: 13px;
}

.summary strong {
  margin-top: 5px;
  font-size: 24px;
}

.message {
  min-height: 20px;
  font-size: 13px;
}

.empty {
  padding: 30px 0;
  text-align: center;
  color: #68727d;
}

.table-wrap {
  overflow-x: auto;
}

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

th, td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  font-size: 14px;
}

th {
  color: #68727d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete {
  background: transparent;
  color: #b42318;
  padding: 5px;
}

.infra-card {
  margin-bottom: 20px;
  border-left: 4px solid #0284c7;
}

.infra-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-live {
  display: inline-block;
  padding: 3px 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.secondary-btn {
  background: #4c5966;
}

.secondary-btn:hover {
  background: #364049;
}

.infra-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-top: 14px;
  align-items: flex-start;
}

.infra-item {
  display: flex;
  flex-direction: column;
}

.infra-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #68727d;
  margin-bottom: 8px;
}

.infra-code {
  display: inline-block;
  background: #f4f6f8;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #0f172a;
  word-break: break-all;
  border: 1px solid #e2e8f0;
}

.serving-instance-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instance-label {
  font-size: 13px;
  color: #64748b;
  min-width: 80px;
}

.ip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  align-items: center;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.ip-pill.warning {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  font-family: inherit;
  font-weight: normal;
}

.ip-pill.muted {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
  font-family: inherit;
  font-weight: normal;
}

.infra-note {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #68727d;
  line-height: 1.4;
}

.infra-time {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  padding: 8px 0;
}

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

@media (max-width: 760px) {
  header, .grid {
    display: block;
  }

  .card {
    margin-bottom: 20px;
  }
}

.report-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.report-box.loading {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.report-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.report-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.report-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #374151;
}

.report-download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
}

.report-download-btn:hover {
  background: #15803d;
}


