.pci-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.pci-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #dbe2ea);
  border-radius: 18px;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.3);
}

.pci-header,
.pci-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface, #fff);
}

.pci-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.pci-footer {
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--border, #e2e8f0);
}

.pci-title {
  margin: 0;
  font-size: 1.25rem;
}

.pci-subtitle {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
}

.pci-close {
  border: 0;
  background: transparent;
  color: var(--muted, #475569);
  cursor: pointer;
  font: inherit;
}

.pci-body {
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.pci-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.pci-summary-card {
  padding: 12px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--surface-soft, #f8fafc);
}

.pci-summary-label,
.pci-summary-value {
  display: block;
}

.pci-summary-label {
  color: var(--muted, #64748b);
  font-size: 0.78rem;
}

.pci-summary-value {
  margin-top: 3px;
  font-size: 1.15rem;
}

.pci-info-box,
.pci-error-box,
.pci-loading {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-soft, #f1f5f9);
}

.pci-error-box {
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.pci-error-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.pci-table-wrap {
  overflow: auto;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
}

.pci-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.pci-table th,
.pci-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}

.pci-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-soft, #f8fafc);
}

.pci-table tbody tr:last-child td {
  border-bottom: 0;
}

.pci-strong {
  font-weight: 700;
}

.pci-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pci-detail {
  min-width: 260px;
  color: var(--muted, #475569);
}

.pci-note {
  margin: 10px 4px 0;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .pci-overlay {
    padding: 0;
    place-items: end stretch;
  }

  .pci-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .pci-header,
  .pci-body,
  .pci-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pci-footer > button {
    flex: 1 1 140px;
  }
}
