.sidebar {
  overflow: hidden;
}
.project-card strong {
  overflow-wrap: anywhere;
}
.editor-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 330px;
}
.inspector {
  position: sticky;
  top: 16px;
}
.inspector-body > label {
  margin-top: 14px;
}
.inspector-body > label:first-child {
  margin-top: 0;
}
.inspector-body .two {
  margin: 14px 0;
}
.inspector-title h3 {
  font-size: 16px;
}
.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
label {
  font-size: 14px;
}
input,
select {
  font-size: 14px;
  padding: 10px 9px;
  min-height: 40px;
}
.btn,
.text-btn {
  font-size: 14px;
}
.text-btn {
  color: #377257;
  padding: 6px 0;
  text-align: left;
}
.danger {
  color: #a74934;
}
.text-btn:hover {
  text-decoration: underline;
}
.summary span,
.eyebrow,
.workspace-label,
.version {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.summary small {
  font-size: 12px;
}
.summary > div {
  padding: 16px 20px 0;
}
.topbar .btn {
  font-size: 13px;
}
.local-label,
.crumb,
.save-state,
.subtle,
.project-card small {
  font-size: 12px;
}
.workspace-bar label,
.workspace-bar strong,
.segmented button {
  font-size: 14px;
}
.canvas-heading {
  font-size: 12px;
  letter-spacing: 0.5px;
}
.legend {
  font-size: 12px;
}
.canvas-foot {
  font-size: 12px;
}
.controller-node h3 {
  font-size: 16px;
}
.controller-node p {
  font-size: 12px;
}
.node-kicker {
  font-size: 12px;
  letter-spacing: 0.8px;
}
.bank-caption {
  font-size: 12px;
  line-height: 1.8;
  color: #b3d5c0;
  margin: -10px 0 16px;
  overflow-wrap: anywhere;
}
.port-dots button {
  border-radius: 3px;
  background: #285441;
  color: #a2c3ae;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
}
.port-dots .used {
  background: #b0e3c2;
  color: #194b32;
}
.chain-node strong {
  font-size: 14px;
}
.chain-node small,
.chain-status,
.port-tag {
  font-size: 12px;
}
.board-map {
  grid-template-columns: minmax(170px, 205px) minmax(145px, 1fr);
  padding: 25px;
  gap: 40px;
}
.chain-stack {
  min-width: 0;
}
.chain-node strong {
  overflow-wrap: anywhere;
}
.chain-node {
  padding: 14px 12px;
}
.power-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.psu-mini {
  display: block;
  text-align: left;
}
.psu-mini > div:first-child {
  flex-wrap: wrap;
}
.psu-mini strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.psu-mini > div > span:last-child {
  font-size: 12px;
}
.psu-mini small {
  font-size: 12px;
}
.meter.over i {
  background: #c47b39;
}
.checks-title h3 {
  font-size: 16px;
}
.checks-title small,
.checks-title h3 span {
  font-size: 12px;
}
.check strong {
  font-size: 14px;
}
.check p {
  font-size: 14px;
}
.check > div {
  flex: 1;
}
.check .text-btn {
  font-size: 13px;
}
.check-icon {
  line-height: 19px;
  min-width: 21px;
  font-size: 13px;
}
.micro {
  font-size: 12px;
  line-height: 1.7;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.4px;
  margin-top: 20px;
  padding-top: 16px;
}
.voltage-result > span,
.voltage-result > small {
  font-size: 13px;
}
.voltage-result strong small {
  font-size: 16px;
}
.pill {
  font-size: 12px;
}
.empty {
  padding: 28px;
  color: #778c7c;
  line-height: 1.6;
  font-size: 14px;
}
.segment-select {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 22px 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.segment-select > span {
  font-size: 12px;
  color: #718774;
}
.segment-select > div {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.segment-select button {
  min-width: 28px;
  min-height: 28px;
  background: #eff4ef;
  border-radius: 4px;
  font-size: 13px;
}
.segment-select .selected {
  background: #246a4d;
  color: #fff;
}
.source-note {
  font-size: 13px;
  background: #f1f6f1;
  padding: 12px;
  margin-top: 12px;
  border-radius: 5px;
  line-height: 1.5;
}
.wire-note {
  font-size: 13px;
  line-height: 1.6;
  border-left: 3px solid #db9d5e;
  padding: 10px 12px;
  background: #fff7eb;
  margin-top: 16px;
  color: #875526;
}
.chain-detail {
  margin-top: 16px;
  border-left: 4px solid #78a98b;
}
.metadata {
  font-size: 12px;
  color: #839381;
}
.segment-flow {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 30px 20px 22px;
  min-height: 170px;
}
.flow-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  gap: 9px;
}
.flow-source > span {
  background: #20503b;
  color: #daefe0;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
}
.flow-source small {
  font-size: 12px;
  color: #7d927e;
}
.flow-link {
  min-width: 65px;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #619071;
  gap: 5px;
}
.flow-link span {
  font-size: 12px;
  line-height: 1.5;
  color: #78907a;
}
.flow-link b {
  font-weight: 400;
  font-size: 22px;
}
.segment-block {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  gap: 8px;
  align-items: center;
  position: relative;
  border: 1px solid #d6e1d4;
  border-radius: 7px;
  padding: 18px 14px;
  background: #fafcf9;
}
.segment-block.selected {
  border-color: #5b9473;
  box-shadow: 0 0 0 2px #deecdf;
}
.segment-type {
  color: #75a57d;
  font-size: 17px;
  letter-spacing: 2px;
}
.segment-block strong {
  font-size: 14px;
}
.segment-block small {
  font-size: 12px;
  color: #869880;
}
.injection-label {
  border-bottom: 1px solid #e7d0af;
  color: #a36d32;
  font-size: 12px;
  padding: 0 0 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.flow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}
.flow-actions .btn,
.flow-actions .text-btn {
  font-size: 13px;
}
.method {
  margin-top: 20px;
}
.method summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 14px;
  color: #52795c;
}
.method-copy {
  padding: 5px 22px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #6d806f;
}
.method-copy p {
  margin: 12px 0;
}
.method-copy a {
  color: #2b7957;
}
.table-panel {
  max-height: min(34rem, 65vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.panel.table-panel {
  border-top: 4px solid #7f9eb3;
}
.table-panel thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.hardware-card:nth-child(3n + 1),
.standard-card:nth-child(3n + 1) {
  border-top: 4px solid #78a98b;
  background: linear-gradient(180deg, #f7fbf8 0, #fff 80px);
}
.hardware-card:nth-child(3n + 2),
.standard-card:nth-child(3n + 2) {
  border-top: 4px solid #d4a65b;
  background: linear-gradient(180deg, #fffaf1 0, #fff 80px);
}
.hardware-card:nth-child(3n),
.standard-card:nth-child(3n) {
  border-top: 4px solid #7f9eb3;
  background: linear-gradient(180deg, #f5f9fc 0, #fff 80px);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #81907f;
  background: #f8faf7;
  font-weight: 500;
  padding: 15px 16px;
}
td {
  border-top: 1px solid #e4eae1;
  padding: 15px 16px;
  vertical-align: top;
}
td small {
  font-size: 12px;
  display: block;
  color: #7c907d;
  line-height: 1.5;
}
.row-selected {
  background: #f0f7ee;
}
.port-button {
  background: #e3eddf;
  border-radius: 4px;
  font-size: 13px;
  padding: 6px 8px;
}
.settings {
  padding: 24px;
  border-top: 4px solid #7f9eb3;
}
.settings h2,
.section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
.section-heading {
  border-left: 4px solid #78a98b;
  padding-left: 12px;
}
.section-heading:nth-of-type(even) {
  border-left-color: #d4a65b;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 0 16px;
}
.section-heading h2 span {
  font-size: 14px;
  color: #91a08b;
  margin-left: 6px;
}
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hardware-card {
  padding: 22px;
  margin-bottom: 0;
}
.hardware-card > label {
  margin-top: 16px;
}
.hardware-card .two {
  margin: 16px 0;
}
.hardware-card > h3 {
  margin-top: 22px;
}
.hardware-card .text-btn {
  font-size: 13px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-heading h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.card-heading a {
  font-size: 13px;
  color: #568060;
}
.readout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.readout span {
  font-size: 14px;
  color: #81907d;
}
.readout strong {
  font-size: 16px;
  font-weight: 500;
}
.distro-ports {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.distro-ports span {
  background: #edf1e9;
  color: #8c9d87;
  font-size: 12px;
  border: 1px solid #dbe4d3;
  border-radius: 4px;
  min-width: 27px;
  padding: 6px;
  text-align: center;
}
.distro-ports .used {
  background: #cfe7cf;
  color: #326240;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.bank-card {
  background: #f7faf4;
  border: 1px solid #e1e8dc;
  padding: 18px;
  border-radius: 7px;
}
.bank-card > label {
  margin-top: 15px;
}
.bank-card h3 {
  font-size: 15px;
}
.bank-card h3 small {
  font-size: 12px;
  font-weight: 400;
  color: #809076;
  margin-left: 7px;
}
.hardware-card + .hardware-card {
  margin-top: 0;
}
.section-heading ~ .hardware-card {
  margin-bottom: 18px;
}
.io-heading {
  font-size: 16px;
}
.io-caption {
  font-size: 12px;
  line-height: 1.7;
  color: #afcfb6;
  margin-top: 18px;
  border-top: 1px solid #45705a;
  padding-top: 12px;
}
.aux-map {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 25px 25px;
}
.aux-node {
  border: 1px solid #aac3bd;
  border-radius: 7px;
  background: #e7f0eb;
  padding: 15px;
  min-width: 160px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.aux-node span,
.aux-node small {
  font-size: 12px;
  color: #729383;
}
.aux-node strong {
  font-size: 14px;
}
.notice {
  font-size: 14px;
  color: #856339;
  border: 1px solid #ead7ba;
  border-left: 3px solid #cb9253;
  background: #fdf8ee;
  border-radius: 6px;
  padding: 17px 20px;
  line-height: 1.7;
}
.preset-icon {
  color: #609775;
  font-size: 25px;
}
.preset-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.preset-footer span {
  font-size: 13px;
  color: #82967b;
}
.guide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.guide {
  padding: 32px;
}
.guide-title h2 {
  font-size: 27px;
}
.guide p {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7b67;
  margin: 15px 0;
}
.guide > .notice {
  margin: 20px 0;
}
.guide > h3 {
  font-size: 17px;
  margin: 30px 0 14px;
}
.guide-chain {
  border: 1px solid #dce6d5;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 18px 0;
}
.guide-chain h4 {
  font-size: 15px;
  margin: 0;
  color: #2d5938;
}
.guide-chain h4 span {
  display: block;
  font-size: 12px;
  color: #7c9075;
  font-weight: 400;
  margin-top: 8px;
}
.guide-chain ol {
  padding-left: 22px;
}
.guide-chain li {
  font-size: 14px;
  line-height: 1.8;
  padding: 10px 0;
}
.guide .method-copy {
  padding: 0;
}
.guide .check .text-btn {
  display: none;
}
dialog {
  border: 1px solid #b7cdb9;
  border-radius: 10px;
  box-shadow: 0 20px 80px #09211150;
  width: min(500px, calc(100% - 32px));
  padding: 26px;
  color: #294634;
}
dialog::backdrop {
  background: #082b2560;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 21px;
}
.close {
  font-size: 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
dialog label {
  margin-top: 18px;
}
dialog p {
  font-size: 15px;
  line-height: 1.7;
  color: #73806c;
}
footer {
  font-size: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ce983f;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid #679579;
}
h1 {
  line-height: 1.3;
}
.settings input {
  min-width: 0;
}
.top-actions {
  gap: 10px;
}
.summary strong {
  font-size: 25px;
}
.summary small {
  display: block;
  margin-left: 0;
  margin-top: 5px;
}
@media (min-width: 1600px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .board-map {
    grid-template-columns: 250px minmax(230px, 1fr);
    gap: 75px;
    padding: 40px 55px;
  }
  .power-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1250px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .board-map {
    grid-template-columns: minmax(150px, 180px) minmax(130px, 1fr);
    padding: 22px 15px;
    gap: 28px;
  }
  .chain-node {
    grid-template-columns: 1fr;
  }
  .pixel-glyph {
    display: none;
  }
  .controller-node:after {
    width: 28px;
    right: -31px;
  }
  .chain-node:before {
    width: 28px;
    left: -28px;
  }
  .port-tag {
    left: -27px;
  }
  .controller-node {
    padding: 18px 12px;
  }
  .power-strip {
    grid-template-columns: 1fr;
  }
  .top-actions .btn {
    font-size: 12px;
  }
  .hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    position: static;
  }
  .inspector-body {
    display: block;
  }
  .board-map {
    grid-template-columns: 240px minmax(180px, 1fr);
    gap: 55px;
    padding: 28px 35px;
  }
  .power-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inspector-body > .two {
    grid-template-columns: 1fr 1fr;
  }
  .top-actions .btn:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  .nav {
    font-size: 13px;
  }
  .summary > div {
    padding: 16px 13px 0;
  }
  .summary span {
    font-size: 11px;
  }
  .summary strong {
    font-size: 23px;
  }
  .board-map {
    grid-template-columns: minmax(120px, 145px) minmax(120px, 1fr);
    gap: 25px;
    padding: 25px 12px;
  }
  .chain-node {
    grid-template-columns: 1fr;
  }
  .controller-node h3 {
    font-size: 14px;
  }
  .controller-node p {
    font-size: 12px;
  }
  .node-kicker {
    font-size: 10px;
  }
  .bank-caption {
    font-size: 11px;
  }
  .chain-node strong {
    font-size: 13px;
  }
  .chain-node small,
  .chain-status {
    font-size: 12px;
  }
  .power-strip,
  .hardware-grid {
    grid-template-columns: 1fr;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .btn {
    padding: 7px;
    font-size: 12px;
  }
  .crumb {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-summary {
    margin-bottom: 20px;
  }
  .workspace-bar > .btn {
    font-size: 13px;
  }
  .canvas-heading {
    font-size: 11px;
  }
  .canvas-foot {
    font-size: 11px;
    gap: 10px;
  }
  .settings,
  .hardware-card {
    padding: 20px;
  }
  .guide {
    padding: 20px;
  }
  .guide-chain {
    padding: 15px;
  }
  .guide-actions .btn {
    font-size: 13px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .bank-grid {
    grid-template-columns: 1fr;
  }
  .check {
    padding: 16px;
  }
  .check p {
    font-size: 13px;
  }
  .check strong {
    font-size: 14px;
  }
  .canvas {
    min-height: 0;
  }
  .page-head > .btn {
    font-size: 12px;
  }
  th,
  td {
    padding: 12px;
  }
  .segment-flow {
    padding-left: 12px;
  }
  .method-copy {
    padding-left: 17px;
    padding-right: 17px;
  }
  .sidebar nav {
    gap: 3px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    gap: 10px;
  }
}
.editor-layout > div {
  min-width: 0;
}
.inspector-body {
  min-width: 0;
}
.workspace-bar {
  flex-wrap: wrap;
}
.board-map > div {
  min-width: 0;
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 14px 18px;
  }
  .brand .light {
    display: inline;
    font-size: 20px;
    letter-spacing: -0.5px;
    margin-left: 5px;
  }
  .brandmark {
    font-size: 25px;
  }
  .workspace-label,
  .project-card,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin: 14px -5px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 3px;
    overflow: visible;
  }
  .nav {
    width: 100%;
    white-space: normal;
    margin: 0;
    padding: 9px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
  }
  .nav-icon {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-map {
    grid-template-columns: minmax(130px, 205px) minmax(130px, 1fr);
    gap: 30px;
    padding: 25px 20px;
  }
  .brightness {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
  }
  .summary strong {
    font-size: 24px;
  }
  .summary > div {
    padding: 16px 14px 0;
  }
  .page-head {
    margin: 25px 0;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .summary > div:last-child {
    overflow-wrap: normal;
  }
  .top-actions .btn {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .board-map {
    grid-template-columns: minmax(115px, 135px) minmax(115px, 1fr);
    gap: 25px;
    padding: 22px 12px;
  }
  .controller-node {
    padding: 15px 9px;
  }
  .bank-caption {
    font-size: 11px;
  }
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .power-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .check .text-btn {
    align-self: center;
  }
  .flow-actions {
    padding: 12px;
    gap: 8px;
  }
  .flow-actions .btn {
    font-size: 12px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head > .btn {
    padding: 9px;
    font-size: 12px;
  }
}
@media (max-height: 850px) and (min-width: 901px) {
  .sidebar {
    padding: 12px 14px;
  }
  .workspace-label,
  .project-card {
    display: none;
  }
  .sidebar nav {
    margin: 8px -10px;
  }
  .nav {
    padding: 5px 10px;
    margin-bottom: 0;
  }
}
@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  .sidebar,
  .topbar,
  .page-head,
  .project-summary,
  .guide-actions,
  footer,
  #toast,
  dialog,
  .check .text-btn {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .guide {
    border: 0;
    padding: 0;
    overflow: visible;
  }
  .guide h2 {
    font-size: 22pt;
  }
  .guide p,
  .guide li,
  .guide table,
  .check p,
  .check strong,
  .method-copy {
    font-size: 10pt !important;
    color: #222;
  }
  .guide-chain {
    break-inside: avoid;
  }
  .guide h3 {
    break-after: avoid;
  }
  .guide .checks {
    overflow: visible;
  }
  .scroll-list,
  .hardware-defs {
    max-height: none;
    overflow: visible;
  }
  .check {
    break-inside: avoid;
  }
  .notice {
    background: none;
  }
  .table-panel {
    overflow: visible;
  }
  a {
    color: #222;
    text-decoration: none;
  }
  .meter {
    print-color-adjust: exact;
  }
  .guide-title .eyebrow {
    display: block;
  }
  @page {
    margin: 16mm;
    size: A4;
  }
}
