@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  font-family: 'DM Sans', sans-serif;
  color: #243c3c;
  background: #f4f6f5;
  font-size: 16px;
  --ink: #102f2e;
  --muted: #748584;
  --line: #dfe6e3;
  --green: #1e755d;
  --mint: #d9f1e6;
  --orange: #bb671e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 800;
}
h3 {
  font-size: 16px;
}
input,
select {
  width: 100%;
  border: 1px solid #d8e2de;
  background: white;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  min-width: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #697c78;
}
label input,
label select {
  margin-top: 7px;
}
button:hover {
  filter: brightness(0.96);
}
.sidebar {
  background: var(--ink);
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  color: #d4e2dc;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brandmark {
  font-size: 34px;
  color: #a9ebc6;
}
.brand .light {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 48px 0 15px;
  color: #8baba1;
}
.project-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 5px 24px;
  border-bottom: 1px solid #35524b;
}
.project-card strong {
  font-size: 14px;
}
.project-card small {
  display: block;
  font-size: 12px;
  color: #93b0a6;
  margin-top: 4px;
}
.project-icon {
  border: 1px solid #557368;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 15px;
  color: #b9ddc8;
}
.sidebar nav {
  margin: 26px -10px;
}
.nav {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 10px;
  font-size: 14px;
  text-align: left;
  border-radius: 6px;
  margin-bottom: 8px;
}
.nav.active {
  background: #275046;
  color: #d8fbe4;
}
.nav-icon {
  font-size: 22px;
  width: 22px;
  color: #a8c9b6;
}
.sidebar-bottom {
  margin-top: auto;
}
.version {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #759d8d;
}
.sidebar-bottom p {
  font-family: Manrope;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  color: #96bdac;
  margin: 15px 0 24px;
}
.save-state {
  font-size: 12px;
  color: #9cbaaf;
}
.subtle {
  font-size: 12px;
  padding: 12px 4px;
  color: #d9e5df;
}
main {
  margin-left: 238px;
  padding: 0 34px;
  max-width: 1900px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 13px;
  color: #6e807b;
}
.crumb span {
  padding: 0 14px;
  color: #acb9b3;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.notification-center {
  margin-top: 18px;
  border: 1px solid #b9d8ca;
  border-radius: 9px;
  background: #f4faf7;
  overflow: hidden;
}
.notification-center.has-critical {
  border-color: #dfb5ae;
  background: #fff8f6;
}
.notification-summary {
  width: 100%;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.notification-symbol {
  width: 24px;
  height: 24px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.has-critical .notification-symbol {
  color: #a83f32;
  border-color: #b95c50;
}
.notification-summary strong,
.notification-summary small {
  display: block;
}
.notification-summary strong {
  font-size: 13px;
}
.notification-summary small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.notification-toggle {
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.notification-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  background: #fff;
}
.notification-groups > section {
  padding: 15px;
  border-right: 1px solid var(--line);
}
.notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.notification-heading h2 {
  font-size: 13px;
}
.notification-heading h2 span {
  margin-left: 4px;
  color: var(--muted);
}
.notification-item {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #edf0eb;
}
.notification-item > span {
  color: var(--orange);
  font-weight: 700;
}
.notification-item.critical > span {
  color: #a83f32;
}
.notification-item.info > span {
  color: var(--green);
}
.notification-item strong {
  font-size: 12px;
}
.notification-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}
.local-label {
  font-size: 12px;
  color: #7b8e84;
}
.btn {
  border: 1px solid #d2ddd7;
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: var(--ink);
  color: #e7f6ed;
  border-color: var(--ink);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 28px;
}
.eyebrow {
  color: #749285;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-bottom: 9px;
}
.page-head p {
  font-size: 14px;
  color: #798781;
  margin-top: 8px;
}
.project-summary {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  margin-bottom: 28px;
}
.project-summary > summary {
  padding: 14px 20px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.project-summary > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
  border-radius: 9px;
}
.summary-key {
  margin: 0;
  padding: 0 20px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}
.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 21px 0;
}
.summary > div {
  padding: 16px 25px 0;
  border-right: 1px solid var(--line);
}
.summary > div:nth-child(4n + 1) {
  box-shadow: inset 0 4px #78a98b;
}
.summary > div:nth-child(4n + 2) {
  box-shadow: inset 0 4px #d4a65b;
}
.summary > div:nth-child(4n + 3) {
  box-shadow: inset 0 4px #7f9eb3;
}
.summary > div:nth-child(4n) {
  box-shadow: inset 0 4px #a68bb5;
}
.summary > div:last-child {
  border: 0;
}
.summary span {
  display: block;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.summary strong {
  display: block;
  font-family: Manrope;
  font-size: 25px;
  letter-spacing: -0.8px;
}
.summary small {
  display: block;
  font: 12px 'DM Sans';
  letter-spacing: 0;
  color: var(--ink);
  margin: 6px 0 0;
}
.amber {
  color: var(--orange) !important;
}
.workspace-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.segmented {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eaf0ec;
  padding: 4px;
  display: flex;
}
.segmented button {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: #728176;
}
.segmented .selected {
  background: white;
  color: #214a3c;
  box-shadow: 0 1px 4px #122c2215;
}
.brightness {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.brightness input {
  width: 120px;
  accent-color: #287855;
}
.brightness strong {
  font-size: 13px;
  min-width: 36px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.panel {
  border: 2px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 10px rgb(35 74 53 / 7%);
}
.canvas {
  background-color: #fbfcfb;
  background-image: radial-gradient(#c8d7ce 1px, transparent 1px);
  background-size: 18px 18px;
  min-height: 400px;
  position: relative;
}
.canvas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #6c8275;
  background: linear-gradient(#fcfdfc, transparent);
}
.legend {
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0;
  gap: 7px;
}
.line {
  width: 16px;
  height: 2px;
  display: inline-block;
  margin-left: 9px;
}
.green {
  background: #568b6d;
}
.orange {
  background: #d3965e;
}
.board-map {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 40px;
  align-items: center;
  padding: 35px 25px 45px;
  min-height: 310px;
}
.controller-node {
  padding: 22px 18px;
  background: #133e32;
  border: 3px solid #527a68;
  border-radius: 10px;
  color: #eaf9ee;
  box-shadow: 0 8px 16px #0b302114;
  position: relative;
}
.controller-node:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  right: -43px;
  top: 50%;
  background: #82a18b;
}
.node-kicker {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #90baa4;
  margin-bottom: 10px;
}
.controller-node h3 {
  font-size: 16px;
  line-height: 1.5;
}
.controller-node p {
  font-size: 11px;
  color: #b4d0bb;
  margin: 7px 0 24px;
}
.port-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.port-dots span {
  background: #255341;
  text-align: center;
  padding: 6px 0;
  border-radius: 3px;
  font-size: 10px;
  color: #84a28e;
}
.port-dots .used {
  background: #b0e3c2;
  color: #194b32;
}
.chain-stack {
  display: grid;
  gap: 13px;
}
.chain-node {
  border: 1px solid #cfded1;
  background: white;
  border-radius: 7px;
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 6px;
  text-align: left;
  padding: 13px 12px;
  box-shadow: 0 3px 5px #112c1710;
}
.chain-node:before {
  content: '';
  position: absolute;
  height: 2px;
  width: 30px;
  background: #82a18b;
  left: -30px;
  top: 50%;
}
.chain-node.selected {
  border: 1.5px solid #438869;
  box-shadow: 0 0 0 3px #bce3cd35;
}
.chain-node strong {
  font-size: 12px;
}
.chain-node small {
  font-size: 10px;
  color: #89988c;
}
.pixel-glyph {
  grid-row: 1/4;
  align-self: center;
  font-size: 16px;
  color: #67a87d;
}
.port-tag {
  position: absolute;
  left: -36px;
  top: -7px;
  background: #f5f8f5;
  font-size: 9px;
  color: #6d8473;
  padding: 2px;
}
.chain-status {
  font-size: 10px;
  color: #4b9872;
  margin-top: 4px;
}
.canvas-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #849789;
  border-top: 1px solid #e4ebe5;
  padding: 13px 20px;
  background: #fafdfa;
}
.canvas-foot span {
  font-family: monospace;
}
.power-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.psu-mini {
  padding: 16px;
}
.psu-mini > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.psu-mini strong {
  font-size: 12px;
}
.psu-mini > div > span:last-child {
  font-size: 11px;
  color: #7b8c7f;
  margin-left: auto;
}
.power-icon {
  color: #a17031;
  font-size: 19px;
}
.meter {
  height: 6px;
  background: #eaf0e9;
  margin: 14px 0 9px;
  border-radius: 3px;
  position: relative;
}
.meter i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #5a9d75;
}
.meter b {
  position: absolute;
  top: -3px;
  height: 12px;
  width: 1px;
  background: #9cac9e;
}
.psu-mini small {
  font-size: 10px;
  color: #8e9b90;
}
.inspector-title {
  border-bottom: 2px solid #cfe3d7;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f8f3;
}
.inspector-title h3 {
  font-size: 14px;
}
.pill {
  font-size: 9px;
  letter-spacing: 1px;
  background: #e8f4ea;
  color: #45856a;
  border-radius: 4px;
  padding: 4px 7px;
}
.inspector-body {
  padding: 20px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #87988b;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.voltage-result {
  padding: 17px;
  background: #f2f6ef;
  border: 1px solid #e5ecdf;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  gap: 6px;
}
.voltage-result > span {
  font-size: 11px;
  color: #788771;
}
.voltage-result strong {
  font-family: Manrope;
  font-size: 27px;
  font-weight: 700;
}
.voltage-result strong small {
  font-size: 15px;
  color: #8f9e87;
}
.voltage-result > small {
  font-size: 10px;
  color: #95a18b;
}
.micro {
  font-size: 11px;
  line-height: 1.6;
  color: #8a978c;
  margin-top: 15px;
}
.checks {
  margin-top: 20px;
  border-top-color: #d4a65b;
}
.checks-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ead9bd;
  padding: 17px 21px;
  cursor: pointer;
  list-style-position: inside;
  background: #fbf7ef;
}
.checks-title h3 {
  font-size: 14px;
}
.checks-title h3 span {
  font-size: 10px;
  background: #f6e9d7;
  padding: 3px 6px;
  margin-left: 5px;
  border-radius: 4px;
  color: #a27336;
}
.checks-title small {
  font-size: 10px;
  color: #8b988d;
}
.check {
  padding: 14px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #edf0eb;
}
.check:last-child {
  border: 0;
}
.scroll-list {
  max-height: min(26rem, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.check-icon {
  border-radius: 50%;
  border: 1px solid #c5924c;
  color: #b37b2d;
  min-width: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}
.check-icon.info {
  color: #678275;
  border-color: #91a99b;
}
.check-icon.error {
  color: #b44031;
  border-color: #b44031;
}
.check strong {
  font-size: 12px;
  font-weight: 500;
}
.check p {
  font-size: 11px;
  line-height: 1.5;
  color: #8c978b;
  margin-top: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #8b998e;
  font-size: 10px;
  padding: 25px 0;
  gap: 15px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #6eaa85;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.coming {
  padding: 40px;
}
#toast {
  pointer-events: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  background: #163e31;
  color: #fff;
  padding: 14px 22px;
  border-radius: 7px;
  display: none;
  z-index: 100;
}
.toast-show {
  display: block !important;
}
@media (min-width: 1600px) {
  main {
    padding: 0 50px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .board-map {
    padding-left: 55px;
    padding-right: 55px;
    gap: 70px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }
  main {
    margin-left: 200px;
    padding: 0 22px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .inspector-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .board-map {
    grid-template-columns: 220px 1fr;
  }
  .summary > div {
    padding: 16px 15px 0;
  }
  .local-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .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: flex;
    overflow: auto;
  }
  .nav {
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 9px;
    font-size: 12px;
  }
  .nav-icon {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  .topbar {
    height: 58px;
  }
  .notification-center {
    margin-top: 12px;
  }
  .notification-groups {
    grid-template-columns: 1fr;
  }
  .crumb {
    font-size: 12px;
  }
  .page-head {
    margin: 24px 0;
    gap: 12px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head p {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-head .btn {
    font-size: 11px;
    padding: 9px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  .summary > div:nth-child(2) {
    border: 0;
  }
  .summary span {
    font-size: 9px;
  }
  .summary strong {
    font-size: 22px;
  }
  .workspace-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .brightness {
    margin: 0;
  }
  .brightness input {
    width: 85px;
  }
  .workspace-bar > .btn {
    margin-left: auto;
  }
  .board-map {
    grid-template-columns: 145px 1fr;
    gap: 25px;
    padding: 25px 12px;
  }
  .controller-node {
    padding: 18px 10px;
  }
  .controller-node h3 {
    font-size: 13px;
  }
  .controller-node:after {
    width: 25px;
    right: -28px;
  }
  .chain-node {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .pixel-glyph {
    display: none;
  }
  .chain-node:before {
    width: 25px;
    left: -25px;
  }
  .port-tag {
    left: -25px;
  }
  .chain-node strong {
    font-size: 11px;
  }
  .legend {
    display: none;
  }
  .inspector-body {
    display: block;
  }
  .power-strip {
    grid-template-columns: 1fr;
  }
  .top-actions .btn {
    font-size: 11px;
  }
  .summary small {
    font-size: 11px;
  }
  footer {
    font-size: 10px;
    flex-direction: column;
  }
}
