.wiring {
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --border: #d6d3d1;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  max-width: 30rem;
  width: 100%;
}
.wiring__title {
  margin: 0 0 .6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wiring__switches {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.wiring__switch {
  min-width: 7rem;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.wiring__switch[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--brand);
  font-weight: 600;
}
.wiring__switch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.wiring__svg {
  width: 100%;
  height: auto;
  display: block;
  margin: .2rem 0 .6rem;
}
.wiring__panel {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.wiring__panel-line {
  stroke: var(--muted);
  stroke-width: 1.5;
}
.wire,
.node circle,
.node path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  transition: stroke .2s ease;
}
.wiring[data-circuit="lighting"] .wire--lighting,
.wiring[data-circuit="lighting"] .node--lighting circle,
.wiring[data-circuit="lighting"] .node--lighting path,
.wiring[data-circuit="heating"] .wire--heating,
.wiring[data-circuit="heating"] .node--heating circle,
.wiring[data-circuit="heating"] .node--heating path {
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-dasharray: none;
}
.wiring__readout ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .45rem;
  font-size: .92rem;
  line-height: 1.45;
}
.wiring__readout a {
  color: var(--brand);
  font-size: .82rem;
}
@media (prefers-reduced-motion: reduce) {
  .wire, .node circle, .node path { transition: none; }
}

/* Split hero: left-aligned text at the top of the grid, shorter pattern in the side card */
.hero--split {
  align-items: start;
}
.hero--split .hero__body {
  text-align: left;
  align-self: start;
}
.hero--split .hero__body .actions,
.hero--split .hero__body .btn-row,
.hero--split .hero__body .hero__actions {
  justify-content: flex-start;
}
.hero--split [class*="glance"] [class*="art"],
.hero--split [class*="glance"] [class*="pattern"],
.hero--split [class*="glance"] [class*="cover"] {
  height: 2.5rem;
  min-height: 0;
  aspect-ratio: auto;
}

/* Tables: nowrap names, one-line values, equal row heights */
.section lg-table td,
.section lg-table th {
  vertical-align: middle;
  overflow-wrap: normal;
  hyphens: none;
}
.section lg-table td:first-child,
.section lg-table th:first-child {
  white-space: nowrap;
}