.w01-electrical {
  --w01e-ink: #172033;
  --w01e-muted: #68758a;
  --w01e-line: #dce4ef;
  --w01e-blue: #1459d9;
  --w01e-blue-soft: #eaf1ff;
  --w01e-green: #087a55;
  --w01e-green-soft: #e6f8f0;
  --w01e-amber: #a65f00;
  --w01e-amber-soft: #fff4dd;
  --w01e-red: #a92c35;
  --w01e-red-soft: #fff0f1;
  color: var(--w01e-ink);
  overflow: hidden;
}

.w01e-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--w01e-line);
  background:
    radial-gradient(circle at 96% 0, rgba(20, 89, 217, .13), transparent 35%),
    linear-gradient(135deg, #fbfdff, #f4f8ff);
}

.w01e-header small {
  color: var(--w01e-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
}

.w01e-header h2 {
  margin: 5px 0 8px;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.3;
}

.w01e-header p {
  max-width: 850px;
  margin: 0;
  color: var(--w01e-muted);
  line-height: 1.65;
}

.w01e-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

.w01e-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #b9c9df;
  border-radius: 999px;
  background: #fff;
  color: #45566f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .025em;
  white-space: nowrap;
}

.w01e-chip.safe {
  border-color: #a8dec9;
  background: var(--w01e-green-soft);
  color: var(--w01e-green);
}

.w01e-chip.warn {
  border-color: #f0cc86;
  background: var(--w01e-amber-soft);
  color: var(--w01e-amber);
}

.w01e-chip.blocked {
  border-color: #e7b5b9;
  background: var(--w01e-red-soft);
  color: var(--w01e-red);
}

.w01e-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--w01e-line);
  background: #fff;
  scrollbar-width: thin;
}

.w01e-tabs button {
  appearance: none;
  padding: 9px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5b6880;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.w01e-tabs button:hover {
  color: var(--w01e-blue);
  background: #f6f9fe;
}

.w01e-tabs button.active {
  border-bottom-color: var(--w01e-blue);
  color: var(--w01e-blue);
}

.w01e-body {
  padding: 18px;
  background: #f7f9fc;
}

.w01e-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.w01e-fact {
  padding: 13px 14px;
  border: 1px solid var(--w01e-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 45, 79, .045);
}

.w01e-fact small {
  display: block;
  margin-bottom: 7px;
  color: var(--w01e-muted);
  font-size: 11px;
}

.w01e-fact strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w01e-fact.primary {
  border-color: #b8cdf8;
  background: var(--w01e-blue-soft);
}

.w01e-fact.warn {
  border-color: #edcf93;
  background: var(--w01e-amber-soft);
}

.w01e-fact.blocked {
  border-color: #e8babe;
  background: var(--w01e-red-soft);
}

.w01e-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.w01e-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--w01e-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24, 45, 79, .05);
}

.w01e-card-wide {
  grid-column: 1 / -1;
}

.w01e-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.w01e-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.w01e-card p {
  margin: 8px 0 0;
  color: #536078;
  line-height: 1.65;
}

.w01e-note {
  padding: 10px 12px;
  border-left: 3px solid var(--w01e-blue);
  background: #f3f7ff;
}

.w01e-lineage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  overflow-x: auto;
}

.w01e-lineage span {
  padding: 7px 10px;
  border: 1px solid #c8d5e8;
  border-radius: 8px;
  background: #f9fbff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.w01e-lineage i {
  color: #8391a8;
  font-style: normal;
}

.w01e-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.w01e-metrics strong {
  padding: 12px 8px;
  border-radius: 9px;
  background: #f4f7fb;
  text-align: center;
  font-size: 24px;
}

.w01e-metrics small {
  display: block;
  margin-top: 3px;
  color: var(--w01e-muted);
  font-size: 9px;
  font-weight: 650;
}

.w01e-table-wrap {
  overflow: hidden;
  border: 1px solid var(--w01e-line);
  border-radius: 12px;
  background: #fff;
}

.w01e-table-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--w01e-line);
  color: var(--w01e-muted);
  font-size: 12px;
}

.w01e-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.w01e-table th,
.w01e-table td {
  padding: 10px 12px;
  overflow: hidden;
  border-bottom: 1px solid #e8edf4;
  color: #445169;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w01e-table th {
  background: #f5f8fc;
  color: #2d3c55;
  font-weight: 750;
}

.w01e-table tbody tr:hover {
  background: #f7faff;
}

.w01e-card pre {
  max-height: 360px;
  margin: 10px 0 0;
  padding: 13px;
  overflow: auto;
  border-radius: 9px;
  background: #101827;
  color: #cbd8ed;
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.w01e-loading,
.w01e-error {
  padding: 26px;
  border: 1px dashed #b9c7da;
  border-radius: 12px;
  background: #fff;
  color: var(--w01e-muted);
  text-align: center;
}

.w01e-error {
  border-color: #e5b5ba;
  background: var(--w01e-red-soft);
  color: var(--w01e-red);
}

@media (max-width: 1180px) {
  .w01e-facts {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 820px) {
  .w01e-header {
    flex-direction: column;
  }

  .w01e-status {
    justify-content: flex-start;
    min-width: 0;
  }

  .w01e-facts,
  .w01e-grid {
    grid-template-columns: 1fr;
  }

  .w01e-card-wide {
    grid-column: auto;
  }

  .w01e-table {
    min-width: 840px;
  }

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

@media (min-width: 1720px) {
  .w01e-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .w01e-card-wide {
    grid-column: span 2;
  }
}
