.pci-panel {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #d8e4f2;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.pci-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fbfd;
}

.pci-head h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.pci-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.pci-copy p {
  margin: 0;
  color: #546179;
  line-height: 1.5;
}

.pci-controls,
.pci-actions,
.pci-flags,
.pci-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pci-controls {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.pci-controls label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pci-controls select,
.pci-controls input {
  min-width: 150px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #0f172a;
  text-transform: none;
  font-weight: 700;
}

.pci-flags label {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px;
  text-transform: none;
  font-size: 13px;
  color: #334155;
}

.pci-flags input {
  min-width: 0;
}

.pci-body {
  padding: 18px 20px 22px;
}

.pci-actions button,
.pci-downloads button,
.pci-detail-toggle,
.pci-reference a {
  border: 1px solid #cbd7e6;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pci-actions .pci-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.pci-actions button:disabled,
.pci-downloads button:disabled {
  opacity: .55;
  cursor: wait;
}

.pci-message,
.pci-progress {
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

.pci-progress {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.pci-message.is-ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.pci-message.is-bad {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.pci-progress[hidden],
.pci-message[hidden],
.pci-reference[hidden] {
  display: none;
}

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

.pci-summary-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.pci-summary-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.pci-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.pci-summary-card.is-pass strong { color: #047857; }
.pci-summary-card.is-warning strong { color: #b45309; }
.pci-summary-card.is-fail strong { color: #be123c; }
.pci-summary-card.is-manual strong { color: #2563eb; }

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

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

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

.pci-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pci-status,
.pci-severity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 1000;
}

.pci-status.is-pass {
  background: #dcfce7;
  color: #047857;
}

.pci-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.pci-status.is-fail {
  background: #ffe4e6;
  color: #be123c;
}

.pci-status.is-manual {
  background: #dbeafe;
  color: #1d4ed8;
}

.pci-severity.is-critical {
  background: #111827;
  color: #fff;
}

.pci-severity.is-high {
  background: #fee2e2;
  color: #991b1b;
}

.pci-severity.is-medium {
  background: #e0f2fe;
  color: #075985;
}

.pci-severity.is-low {
  background: #f1f5f9;
  color: #475569;
}

.pci-circuit-row.is-critical {
  background: #fff7ed;
}

.pci-detail-row[hidden] {
  display: none;
}

.pci-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
}

.pci-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.pci-detail-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  color: #334155;
}

.pci-detail-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.45;
}

.pci-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  color: #64748b;
}

.pci-reference {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

