/* Cobalt Studio — local assets, edge-to-edge board, measured SVG copper. */
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f0f1e8;
  --pcb: #104b80;
  --mask-lit: #437fa2;
  --mask-recess: #092f51;
  --mask-edge: #0b3455;
  --ink: #f0f1e8;
  --muted: #d0d9d5;
  background: var(--pcb);
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--pcb);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b3ffdd;
  outline-offset: 5px;
}
svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eb-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 12px;
  background: #061a20;
  transform: translateY(-160%);
}
.eb-skip:focus {
  transform: none;
}
.workbench {
  width: 100%;
  min-height: 100svh;
  container-type: inline-size;
}
.board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 28px 20px 27px;
  padding: 28px clamp(20px, 4cqw, 36px) 27px;
  border-top: 1px solid var(--mask-edge);
  border-bottom: 1px solid var(--mask-edge);
  background:
    radial-gradient(ellipse at 18% 2%, #ffffff0b, transparent 62%),
    linear-gradient(112deg, #0000000a, transparent 30%, #00000014), var(--pcb);
  color: var(--ink);
  direction: ltr;
}
.board:before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #b9d4dd36;
  pointer-events: none;
  z-index: -1;
}
.board:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 3px, #a8c4d00d 3px 4px),
    repeating-linear-gradient(0deg, transparent 0 3px, #c6e5f009 3px 4px);
}
.theme-green {
  --pcb: #176b3b;
  --mask-lit: #519668;
  --mask-recess: #0d4528;
  --mask-edge: #10472c;
}
.theme-black {
  --pcb: #1b1d1b;
  --mask-lit: #4d554c;
  --mask-recess: #080b09;
  --mask-edge: #0d100d;
}
.theme-red {
  --pcb: #8c252a;
  --mask-lit: #bd605d;
  --mask-recess: #58181d;
  --mask-edge: #591b20;
}
.theme-purple {
  --pcb: #50306e;
  --mask-lit: #8965a5;
  --mask-recess: #301c45;
  --mask-edge: #34204b;
}
.board > .routing-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.board > :not(.routing-layer):not(.mount) {
  position: relative;
  z-index: 1;
}
.route-recess,
.route-mask {
  fill: none;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}
.route-recess {
  stroke: var(--mask-recess);
  stroke-width: 3;
  opacity: 0.6;
}
.route-mask {
  stroke: var(--mask-lit);
  stroke-width: 1.45;
  opacity: 0.8;
}
.route-recess.power-route {
  stroke-width: 3.5;
}
.route-mask.power-route {
  stroke-width: 1.9;
  opacity: 0.72;
}
.route-via {
  fill: #0b1513;
  stroke: #cbb07a;
  stroke-width: 1;
}
.mount {
  position: absolute;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c5ad73;
  z-index: 3;
  background: radial-gradient(circle at 38% 28%, #30362c, #0b100c 70%);
  box-shadow:
    0 0 0 3px #8aa9b533,
    0 0 0 4px var(--mask-recess),
    0 1px 2px #051726 inset;
}
.m1 {
  top: 17px;
  left: 17px;
}
.m2 {
  top: 17px;
  right: 17px;
}
.m3 {
  bottom: 17px;
  left: 17px;
}
.m4 {
  bottom: 17px;
  right: 17px;
}
.board-top.identity {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 13px 4px 23px;
}
.profile-heading {
  min-width: 0;
  max-width: 55%;
  max-width: 55cqw;
}
.board-top h1 {
  font-size: 28px;
  font-size: clamp(22px, 6cqw, 32px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.board-top .eyebrow {
  margin: 0 0 7px;
  font-size: 6px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.profile-description {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 18px;
  text-align: right;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.profile-description > span {
  display: block;
  width: max-content;
  margin-left: auto;
  white-space: nowrap;
}
.bio-stacked .profile-description {
  grid-column: 1/-1;
}
.bio-overflow .profile-description > span {
  width: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
.display-assembly {
  position: relative;
  margin: 0 4px;
  padding: 9px 10px 10px;
  border: 1px solid #071c2b;
  border-radius: 7px;
  background: linear-gradient(145deg, #091b2a, #0b253b);
  box-shadow:
    0 1px 0 #7893a677,
    0 4px 6px #071b3270,
    0 0 0 2px #082c4d66;
}
.display-assembly:before,
.display-assembly:after {
  content: "";
  position: absolute;
  top: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bdc4c6;
  box-shadow: 0 0 0 2px #050d16;
}
.display-assembly:before {
  left: 4px;
}
.display-assembly:after {
  right: 4px;
}
.oled {
  padding: 16px 17px 14px;
  border: 1px solid #43607377;
  border-radius: 3px;
  min-height: 111px;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, #73f5cc06 2px 3px),
    #061a20;
  box-shadow: 0 0 12px #0009 inset;
  color: #bbf5dc;
}
.oled-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #8cb8aa;
}
.oled-domain {
  overflow-wrap: anywhere;
  min-width: 0;
}
.oled-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 55%;
  flex-shrink: 0;
}
.oled-language {
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #b3e6cf;
  overflow-wrap: anywhere;
}
.oled-word {
  margin: 13px 0 8px;
  font-size: 21px;
  font-size: clamp(17px, 5cqw, 23px);
  line-height: 1.12;
  letter-spacing: 0.025em;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-shadow: 0 0 8px #7ae3be30;
}
.oled-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #82b9a8;
}
.tiny-square {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  background: #b1efd3;
  box-shadow: 0 0 5px #70e1b566;
}
.signal {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 9px;
  flex-shrink: 0;
}
.signal i {
  display: block;
  width: 3px;
  background: #8edebc;
  opacity: 0.16;
  transition: opacity 0.3s ease;
}
.signal i:nth-child(1) {
  height: 3px;
}
.signal i:nth-child(2) {
  height: 5px;
}
.signal i:nth-child(3) {
  height: 7px;
}
.signal i:nth-child(4) {
  height: 9px;
}
.signal:not([data-level]) i,
.signal[data-level="1"] i:nth-child(-n + 1),
.signal[data-level="2"] i:nth-child(-n + 2),
.signal[data-level="3"] i:nth-child(-n + 3),
.signal[data-level="4"] i {
  opacity: 1;
}
.header-pins {
  display: flex;
  justify-content: center;
  gap: 11px;
  height: 15px;
}
.header-pins i {
  display: block;
  position: relative;
  width: 7px;
  height: 11px;
  border-radius: 0 0 1px 1px;
  background: linear-gradient(
    90deg,
    #9d8c64,
    #e1d6af 25%,
    #eee8c9 42%,
    #a9ae9d 66%,
    #9b8b5a
  );
  box-shadow:
    0 0 0 1px #8f7d4d55,
    0 2px 2px #081b3255;
}
.pins-legend {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 6px 0 0;
  left: 7px;
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.02em;
}
.pins-legend span {
  width: 11px;
  text-align: center;
}
.hardware-deck {
  display: grid;
  grid-template-columns: 76px minmax(72px, 1fr) 108px;
  align-items: center;
  column-gap: 24px;
  margin: 24px 4px 0;
  padding: 8px 0 10px;
  min-width: 0;
}
.controller-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-left: 12px;
}
.controller {
  position: relative;
  flex: 0 0 56px;
  height: 64px;
  margin: 0;
  border-radius: 2px;
  border: 1px solid #0a1721;
  background: linear-gradient(140deg, #35434a, #202d35 62%, #1b2931);
  box-shadow:
    0 1px 0 #75818366 inset,
    0 4px 5px #081c3577,
    0 0 0 1px #163453;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.controller > i {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #0e1c25;
  box-shadow: 0 1px 0 #52636a;
}
.controller b {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.controller b span {
  color: #cbb580;
}
.controller small {
  margin-top: 4px;
  color: #a1b1ba;
  font-size: 5px;
  letter-spacing: 0.1em;
}
.controller .ic-lot {
  font-size: 4px;
  letter-spacing: 0.1em;
  color: #718792;
  margin-top: 4px;
}
.part-ref {
  position: absolute;
  top: -14px;
  left: -1px;
  color: #ccdce2;
  font-size: 5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pin-bank {
  position: absolute;
  top: 9px;
  width: 10px;
  display: grid;
  grid-template-rows: repeat(8, 3px);
  gap: 3px;
  z-index: -1;
}
.pins-left {
  left: -10px;
}
.pins-right {
  right: -10px;
}
.pin-bank i,
.expansion-inputs i,
.expansion-outputs i {
  position: relative;
  display: block;
  width: 10px;
  height: 3px;
  background: linear-gradient(0deg, #86968e, #d5dace 45%, #c2c8b9 60%, #667e79);
  border-radius: 1px;
  box-shadow:
    0 0 0 1px #c1a56d,
    0 1px 2px #071b3266;
}
.pin-bank i:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  right: 3px;
  border-top: 1px solid #edf0d955;
  border-bottom: 1px solid #7f9b9788;
}
.component-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
}
.part-cell {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
.part-code {
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.part-cell > small {
  font-size: 5px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.crystal-cell {
  translate: 6px 4px;
}
.capacitor-cell:nth-child(3) {
  translate: 8px 0;
}
.sot23 {
  position: relative;
  display: grid;
  place-items: center;
  width: 17px;
  height: 18px;
  border-radius: 1px;
  background: linear-gradient(145deg, #31464f, #152a39);
  border: 1px solid #102b3c;
  box-shadow:
    0 1px 0 #6a7b7d88 inset,
    0 2px 3px #08234388;
}
.sot23 b {
  font:
    4px/1 Consolas,
    monospace;
  color: #aebbb6;
  transform: rotate(-90deg);
  font-weight: 400;
}
.reg-leg {
  position: absolute;
  width: 5px;
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(0deg, #8a9f97, #e4e8d2, #8b9b91);
  box-shadow:
    0 0 0 1px #bfa775,
    0 1px 2px #0b294766;
}
.leg-in {
  left: -5px;
  top: 3px;
}
.leg-gnd {
  left: -5px;
  bottom: 3px;
}
.leg-out {
  right: -5px;
  top: 8px;
}
.crystal {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 17px;
  border: 1px solid #81968f;
  border-radius: 2px 4px 4px 2px;
  background: linear-gradient(
    145deg,
    #a7bab4,
    #e8ecd8 32%,
    #c5d1c3 62%,
    #8ba29b
  );
  box-shadow:
    0 0 0 1px #0c335655,
    0 2px 3px #08264366,
    0 1px 0 #f1f3e5 inset;
}
.crystal:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 2px;
  background: #526b65;
  border-right: 1px solid #e9eadd99;
  z-index: 1;
}
.crystal:after {
  position: absolute;
  content: "";
  inset: 2px;
  border: 1px solid #d9e1d680;
  border-radius: 1px;
}
.crystal b {
  font-size: 5px;
  line-height: 1;
  color: #3b5150;
  font-weight: 400;
  letter-spacing: 0;
}
.crystal-pad {
  position: absolute;
  left: -7px;
  width: 8px;
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(180deg, #a0afa2, #e4e5ce 45%, #94a49b);
  box-shadow:
    0 0 0 1px #c2a975,
    0 1px 1px #0c2a4977;
  z-index: -1;
}
.crystal-pad-a {
  top: 3px;
}
.crystal-pad-b {
  top: 10px;
}
.mlcc {
  position: relative;
  display: block;
  width: 21px;
  height: 9px;
  margin: 3px 0;
  border-radius: 1px;
}
.mlcc > b {
  position: absolute;
  display: block;
  inset: 0 4px;
  background: linear-gradient(180deg, #c6af7d, #dac897 45%, #b99966);
  border-top: 1px solid #ecdcb088;
  border-bottom: 1px solid #927750;
  border-radius: 1px;
  box-shadow: 0 1px 2px #09244277;
  z-index: 1;
}
.cap-pad {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, #90a198, #e6e6cc 45%, #9baba2);
  box-shadow:
    0 0 0 1px #b8a16f,
    0 1px 2px #09234366;
}
.cap-pad-a {
  left: 0;
}
.cap-pad-b {
  right: 0;
}
.selector-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.system-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 0 0 12px;
  font-size: 6px;
  letter-spacing: 0.03em;
  color: #c4d5df;
}
.system-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.status-led {
  position: relative;
  width: 6px;
  height: 5px;
  border-radius: 2px;
  border: 1px solid #a8d4b9;
  background: #89efb4;
  box-shadow:
    0 0 0 1px #b0a77c99,
    0 0 7px #7cd8a34d;
}
.status-led.link {
  animation: link-heartbeat 1.6s ease-in-out infinite;
}
.status-led.act {
  background: #314956;
  border-color: #a2b6c0;
  box-shadow: 0 0 0 1px #8e9c8b66;
}
.status-led:before,
.status-led:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#97a59c, #e2dfbd, #8e9f99);
  border-radius: 1px;
}
.status-led:before {
  left: -2px;
}
.status-led:after {
  right: -2px;
}
.system-leds-active .act {
  animation: status-pulse 0.4s ease-in-out infinite;
  background: #9bf1d0;
  border-color: #ceffe9;
  box-shadow: 0 0 8px #a0f4d3;
}
.language-form {
  margin: 0;
}
.language-selector {
  --selector-angle: -48deg;
  position: relative;
  display: block;
  width: 108px;
  min-height: 104px;
  padding: 6px 4px 8px;
  border: 1px solid #91b4c366;
  border-radius: 4px;
  background: transparent;
  color: #e9e7d5;
  cursor: pointer;
}
.language-selector:disabled {
  cursor: default;
}
.selector-part {
  display: block;
  text-align: center;
  font-size: 7px;
  letter-spacing: 0.05em;
}
.selector-mechanism {
  position: relative;
  display: block;
  width: 92px;
  height: 73px;
  margin: 4px auto 0;
}
.selector-position {
  position: absolute;
  display: block;
  width: 22px;
  text-align: center;
  font:
    6px/1.25 Consolas,
    monospace;
  overflow-wrap: anywhere;
  color: #b5c9d2;
}
.selector-position i {
  display: block;
  width: 4px;
  height: 4px;
  margin: 0 auto 3px;
  border: 1px solid #859b9c;
  border-radius: 50%;
  background: #284d59;
  box-shadow: 0 0 0 1px #143448;
}
.selector-position.is-current {
  color: #edffe6;
}
.selector-position.is-current i {
  background: #b9efba;
  border-color: #efffe3;
  box-shadow: 0 0 6px #93efa266;
}
.detent-0 {
  left: 0;
  top: 22px;
}
.detent-1 {
  left: 35px;
  top: 0;
}
.detent-2 {
  right: 0;
  top: 22px;
}
.selector-mechanism[data-count="1"] .detent-0 {
  left: 35px;
  top: 0;
}
.selector-mechanism[data-count="2"] .detent-1 {
  left: auto;
  right: 0;
  top: 22px;
}
.selector-mechanism[data-count="4"] .detent-0,
.selector-mechanism[data-count="5"] .detent-0 {
  top: 31px;
}
.selector-mechanism[data-count="4"] .detent-1 {
  left: 21px;
  top: 2px;
}
.selector-mechanism[data-count="4"] .detent-2 {
  left: 49px;
  top: 2px;
}
.selector-mechanism[data-count="4"] .detent-3 {
  right: 0;
  top: 31px;
}
.selector-mechanism[data-count="5"] .detent-1 {
  left: 13px;
  top: 7px;
}
.selector-mechanism[data-count="5"] .detent-2 {
  left: 35px;
  top: 0;
}
.selector-mechanism[data-count="5"] .detent-3 {
  left: 57px;
  top: 7px;
}
.selector-mechanism[data-count="5"] .detent-4 {
  right: 0;
  top: 31px;
}
.selector-washer {
  position: absolute;
  display: block;
  left: 25px;
  top: 27px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 3deg,
    #bec9c6 0 8deg,
    #7e9398 8deg 16deg
  );
  border: 1px solid #bfd0c9;
  box-shadow:
    0 0 0 2px #142f45,
    0 0 0 3px #718b94,
    0 4px 5px #081c3577;
}
.selector-washer:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid #c8d6cf55;
  pointer-events: none;
}
.selector-knob {
  position: absolute;
  display: block;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4a5d60, #152d39 75%);
  border: 1px solid #102638;
  box-shadow:
    0 2px 1px #b0bfb655 inset,
    0 -2px 2px #071624 inset,
    0 2px 3px #0005;
  transform: rotate(var(--selector-angle));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.selector-pointer {
  position: absolute;
  display: block;
  top: 3px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: linear-gradient(90deg, #b9bf9e, #fff3ca, #b9bf9e);
  box-shadow: 0 0 0 1px #182d36;
}
.knob-slot {
  position: absolute;
  top: 16px;
  left: 13px;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: #10222d;
  box-shadow: 0 1px 0 #8da09b66;
  transform: rotate(90deg);
}
.language-selector:hover .selector-knob {
  filter: brightness(1.1);
}
.language-selector:active .selector-knob {
  translate: 0 1px;
}
.selector-terminals {
  position: absolute;
  bottom: 0;
  left: 35px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.selector-terminals i {
  display: block;
  width: 7px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    #99824f,
    #ded3aa 45%,
    #a6ab92 70%,
    #8f7950
  );
  box-shadow:
    0 0 0 1px #a58f6080,
    0 1px 1px #08254188;
}
.supply-readout {
  display: block;
  font-size: 5px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #b6ccda;
  margin-top: 14px;
  text-align: center;
}
.language-selector[data-angle="-24"] {
  --selector-angle: -24deg;
}
.language-selector[data-angle="-16"] {
  --selector-angle: -16deg;
}
.language-selector[data-angle="0"] {
  --selector-angle: 0deg;
}
.language-selector[data-angle="16"] {
  --selector-angle: 16deg;
}
.language-selector[data-angle="24"] {
  --selector-angle: 24deg;
}
.language-selector[data-angle="48"] {
  --selector-angle: 48deg;
}
.section-label {
  margin: 40px 4px 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #bfd0da;
  font-size: 8px;
  letter-spacing: 0.16em;
}
.section-label span:last-child {
  opacity: 0.65;
  white-space: nowrap;
}
.connections {
  position: relative;
}
.connection {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 36px 12px 4px;
  min-height: 82px;
  padding: 12px 14px 12px 12px;
  text-decoration: none;
  border: 1px solid #12334c;
  border-radius: 7px;
  background: linear-gradient(145deg, #263e51, #172e41);
  box-shadow:
    0 1px 0 #a7becb38 inset,
    0 4px 5px #06192d45;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.connection:last-child {
  margin-bottom: 0;
}
.connection > .via {
  position: absolute;
  right: -23px;
  top: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    #071a2a 0 48%,
    #8e804d 49% 55%,
    #d3b87a 56% 100%
  );
  border: 1px solid #b29a60;
  box-shadow:
    0 0 0 3px #6185a12b,
    0 1px 1px #071b32 inset;
}
.switch {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  color: #d9c18e;
  border: 1px solid #708595;
  border-radius: 5px;
  background: linear-gradient(135deg, #586b76, #1f3547);
  box-shadow:
    0 2px 0 #7c919d66 inset,
    0 3px 0 #0b1c2b,
    0 4px 5px #071a2b99;
}
.switch:after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #aab9bd38;
  border-radius: 3px;
  background: linear-gradient(135deg, #050b1110, #0002);
}
.switch svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
}
.connection-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.connection-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: #f2f0e7;
  overflow-wrap: anywhere;
}
.connection-detail {
  font-size: 11px;
  line-height: 1.5;
  color: #bacbd7;
  overflow-wrap: anywhere;
}
.connection-copy img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
  margin-top: 8px;
}
.module-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 0 0 18px;
}
.module-led {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  border: 1px solid #a3a883;
  background: radial-gradient(ellipse at 45% 35%, #507c69, #264e46 66%);
  box-shadow:
    0 0 0 1px #e0d5ae66,
    0 1px 2px #071b3266;
}
.resistor {
  display: block;
  position: relative;
  width: 17px;
  height: 7px;
  background: linear-gradient(180deg, #bfc3bb, #f0efdb 50%, #9baba9);
  border-radius: 1px;
  box-shadow:
    0 0 0 1px #b89a5d,
    0 1px 2px #051c3280;
}
.resistor:after {
  position: absolute;
  content: "";
  inset: 0 4px;
  border-radius: 1px;
  background: linear-gradient(180deg, #343c43, #151f27);
  box-shadow: 0 1px 0 #74808466 inset;
}
.module-ref {
  color: #a8bfcf;
  font-size: 6px;
  letter-spacing: 0.04em;
}
.connection.featured {
  min-height: 96px;
  margin-bottom: 18px;
  border-color: #a8c9ba9c;
  background: linear-gradient(120deg, #b7cec0, #d2ddca);
  box-shadow:
    0 1px 0 #f0f5e8b3 inset,
    0 4px 5px #071b3240;
}
.featured .connection-title {
  color: #123746;
  font-size: 19px;
}
.featured .connection-detail {
  color: #3d5f65;
}
.featured .switch {
  background: linear-gradient(135deg, #315768, #153646);
  color: #d6eddd;
  border-color: #577a81;
}
.featured .module-ref {
  color: #3a6168;
}
.featured .module-led {
  background: #9ebba9;
  border-color: #5c8a79;
}
.connection:hover,
.connection:focus-visible,
.connection.is-active {
  border-color: #b8dfd0;
  background: linear-gradient(135deg, #294a61, #1d3d51);
  box-shadow:
    0 1px 0 #8bbeb86b inset,
    0 4px 8px #071c354d;
}
.connection:hover .module-led,
.connection:focus-visible .module-led,
.connection.is-active .module-led {
  background: radial-gradient(
    ellipse at 40% 35%,
    #f0ffe2,
    #8ee8ae 55%,
    #4fab7c
  );
  border-color: #dbf3c4;
  box-shadow: 0 0 8px #a9eac670;
}
.featured:hover,
.featured:focus-visible,
.featured.is-active {
  background: linear-gradient(125deg, #cae2d3, #e0e7d7);
  border-color: #e6f8e8;
}
.connection:active .switch {
  box-shadow:
    0 0 0 #061726,
    0 1px 2px #071a2b88;
  transform: translateY(1px);
}
.expansion-bank {
  position: relative;
  height: 72px;
  margin: 22px 4px 38px;
  padding: 9px 0 0 18px;
}
.expansion-ic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 54px;
  border: 1px solid #0a1721;
  border-radius: 2px;
  background: linear-gradient(140deg, #35434a, #1b2931);
  box-shadow:
    0 1px 0 #75818366 inset,
    0 4px 5px #081c3577;
}
.expansion-ic b {
  font-size: 17px;
  font-weight: 500;
}
.expansion-ic b span {
  color: #cbb580;
}
.expansion-ic small {
  font-size: 4px;
  letter-spacing: 0.08em;
  color: #a1b1ba;
}
.expansion-inputs,
.expansion-outputs {
  position: absolute;
  top: 9px;
  display: grid;
  gap: 5px;
}
.expansion-inputs {
  left: -10px;
}
.expansion-outputs {
  right: -10px;
}
.text-block {
  margin: 16px 36px 18px 4px;
  padding: 14px 0;
  border-top: 1px solid #a5c2cb44;
}
.text-block h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.text-block p {
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.type-divider {
  margin-top: 20px;
  border-color: #aec8c955;
}
.empty-board {
  font-size: 12px;
  margin: 20px 4px 28px;
  color: var(--muted);
}
.bottom-rule {
  position: relative;
  height: 22px;
  margin: 19px 4px 0;
  border-bottom: 1px solid #b2c8d033;
}
.testpoints {
  display: flex;
  gap: 7px;
  align-items: center;
  position: absolute;
  bottom: -3px;
  left: 0;
  background: var(--pcb);
  padding-right: 9px;
}
.testpoints i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #d0bc8a;
  background: #0b1513;
}
.testpoints small {
  margin-right: 3px;
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.08em;
}
.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 22px 5px 0;
  gap: 12px;
  font-size: 8px;
  color: var(--muted);
}
.board-footer strong {
  color: #e7e8db;
  font-weight: 500;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}
.board-footer span {
  font-size: 6px;
  letter-spacing: 0.09em;
  color: #aac1d1;
  overflow-wrap: anywhere;
}
.edge-fingers {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 17px;
  margin: 17px 0 -27px;
  overflow: hidden;
}
.edge-fingers i {
  display: block;
  width: 10px;
  height: 20px;
  background: linear-gradient(
    90deg,
    #9e7d43,
    #d2b97e 40%,
    #c0a66b 70%,
    #8d6c38
  );
  border-radius: 3px 3px 0 0;
  box-shadow: 1px 0 0 #e0c59555 inset;
}
.preview-note {
  margin: 0;
  padding: 12px 20px;
  background: #092b40;
  font-size: 11px;
  line-height: 1.5;
  color: #d8eee4;
}
.eb-status {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #102d45;
}
.eb-status main {
  max-width: 600px;
}
.eb-status p {
  line-height: 1.6;
}
.eb-status .eyebrow {
  font:
    11px/1.5 Consolas,
    monospace;
  color: #cbb580;
}
html[dir="rtl"] .profile-heading,
html[dir="rtl"] .profile-description,
html[dir="rtl"] .connection-copy,
html[dir="rtl"] .text-block,
html[dir="rtl"] .oled-word,
html[dir="rtl"] .oled-language {
  direction: rtl;
  unicode-bidi: plaintext;
}
html[dir="rtl"] .connection-copy {
  text-align: right;
}
@keyframes link-heartbeat {
  0%,
  35%,
  100% {
    background: #f0c875;
    box-shadow:
      0 0 0 1px #b0a77c99,
      0 0 9px #efbd6a77;
  }
  55%,
  80% {
    background: #3e4944;
    box-shadow: 0 0 0 1px #8e9c8b66;
  }
}
@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@container (min-width: 700px) {
  .hardware-deck {
    grid-template-columns: 88px minmax(72px, 180px) minmax(112px, 1fr);
    column-gap: 28px;
  }
  .selector-cluster {
    width: 112px;
    justify-self: end;
  }
  .language-selector {
    width: 112px;
  }
  .component-shelf {
    gap: 12px 25px;
  }
}
@media (max-width: 380px) {
  .m1 {
    left: 13px;
    top: 13px;
  }
  .m2 {
    right: 13px;
    top: 13px;
  }
  .m3 {
    left: 13px;
    bottom: 13px;
  }
  .m4 {
    right: 13px;
    bottom: 13px;
  }
  .board-top.identity {
    gap: 12px;
    margin: 12px 4px 20px;
  }
  .board-top h1 {
    font-size: 22px;
  }
  .board-top .eyebrow {
    font-size: 5.5px;
    margin-bottom: 6px;
  }
  .oled {
    padding: 14px 12px;
    min-height: 104px;
  }
  .oled-tools {
    gap: 8px;
  }
  .oled-language {
    font-size: 7px;
  }
  .hardware-deck {
    grid-template-columns: 64px minmax(56px, 1fr) 100px;
    column-gap: 20px;
  }
  .controller {
    flex-basis: 48px;
  }
  .controller b {
    font-size: 18px;
  }
  .controller .part-ref {
    font-size: 4.5px;
  }
  .component-shelf {
    gap: 10px;
  }
  .crystal {
    width: 30px;
  }
  .mlcc {
    width: 20px;
  }
  .sot23 {
    width: 16px;
  }
  .language-selector {
    width: 100px;
    padding-left: 0;
    padding-right: 0;
  }
  .selector-terminals {
    left: 32px;
  }
  .system-strip {
    font-size: 5.5px;
    gap: 5px;
  }
  .section-label {
    font-size: 7px;
    margin-top: 39px;
  }
  .connection {
    padding: 11px 9px;
    gap: 10px;
    min-height: 78px;
  }
  .connection-title {
    font-size: 14px;
  }
  .switch {
    flex-basis: 37px;
    height: 39px;
  }
  .featured .connection-title {
    font-size: 17px;
  }
  .module-end {
    flex-basis: 17px;
  }
  .board-footer {
    font-size: 7px;
  }
  .board-footer span {
    font-size: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Compact five-port social daughterboard. Each port has its own routed net. */
.social-panel {
  position: relative;
  margin: 25px 4px 0;
  padding: 13px 11px 12px;
  border: 1px solid #b5cfdd40;
  border-radius: 5px;
  background: linear-gradient(120deg, #ffffff05, #00000009);
  box-shadow: 0 1px 0 #8ab0cf0c inset;
}
.social-panel:before,
.social-panel:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pcb);
  border: 1px solid #c2a879;
  top: 7px;
}
.social-panel:before {
  left: 7px;
}
.social-panel:after {
  right: 7px;
}
.social-inner {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.social-routing {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.social-header {
  position: relative;
  z-index: 1;
  height: 29px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.social-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.silk-reference {
  font-size: 5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.social-caption strong {
  font-size: 7px;
  letter-spacing: 0.1em;
  font-weight: 400;
  white-space: nowrap;
  color: #d6e0df;
}
.social-count {
  text-align: right;
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.social-ic {
  position: relative;
  display: block;
  width: 46px;
  justify-self: center;
  align-self: start;
  margin-top: 1px;
}
.social-ic-body {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 21px;
  border-radius: 2px;
  border: 1px solid #071b2a;
  background: linear-gradient(140deg, #33414b, #182832);
  box-shadow:
    0 1px 0 #798c995c inset,
    0 2px 3px #05223b88;
  color: #d8e0db;
  font-size: 6px;
  letter-spacing: 0.08em;
}
.social-ic-body > i {
  position: absolute;
  width: 2px;
  height: 2px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #0b1d28;
}
.social-ic-pins {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 6px;
}
.social-ic-pins > i {
  display: block;
  width: 3px;
  height: 6px;
  background: linear-gradient(90deg, #8d805b, #e1d2a4, #a69873);
  border-radius: 0 0 1px 1px;
}
.social-ic-input {
  position: absolute;
  left: -4px;
  width: 4px;
  height: 3px;
  background: linear-gradient(#b3b49e, #e2d0a4, #8a9d99);
}
.input-a {
  top: 5px;
}
.input-b {
  top: 13px;
}
.social-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 20px;
}
.social-port {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 64px;
  text-decoration: none;
  touch-action: manipulation;
}
.social-pad {
  position: absolute;
  top: -15px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: 1px solid #cbb078;
  border-radius: 50%;
  background: #0b1513;
  box-shadow: 0 0 0 1px #0c345477;
}
.social-pad:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 1.5px;
  width: 1px;
  height: 9px;
  background: var(--mask-lit);
  box-shadow: 0 0 0 1px #13365b55;
}
.social-key {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #728d9a;
  background: linear-gradient(142deg, #3f596b, #152f42 78%);
  color: #dbc58d;
  box-shadow:
    0 1px 0 #b0c4c75c inset,
    0 3px 0 #092138,
    0 4px 6px #08243b99;
  transition:
    transform 0.16s,
    background 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
}
.social-key:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #a7c0c13b;
  border-radius: 4px;
  pointer-events: none;
}
.social-key svg {
  width: 22px;
  height: 22px;
  position: relative;
  stroke-width: 1.65;
}
.social-led {
  position: absolute;
  bottom: 4px;
  right: 5px;
  width: 3px;
  height: 2px;
  border-radius: 1px;
  background: #5b847a;
  box-shadow: 0 0 0 1px #93a18e55;
}
.social-label {
  font-size: 8px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.social-port:hover .social-key,
.social-port:focus-visible .social-key,
.social-port.is-selected .social-key {
  color: #e8dab2;
  border-color: #c7dbca;
  background: linear-gradient(135deg, #496879, #1c4053);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 #cfdfcf66 inset,
    0 4px 0 #092138,
    0 6px 10px #08243b77;
}
.social-port:hover .social-led,
.social-port:focus-visible .social-led,
.social-port.is-selected .social-led {
  background: #c1ffce;
  box-shadow: 0 0 5px #9df7bd;
}
.social-port:active .social-key {
  transform: translateY(2px);
  box-shadow: 0 1px 2px #08243b88;
}
.social-port:focus-visible {
  outline: 2px solid #b4f1d2;
  outline-offset: 4px;
  border-radius: 7px;
}
.social-routing .social-track-recess {
  stroke: var(--mask-recess);
  stroke-width: 3.1;
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.social-routing .social-track {
  stroke: var(--mask-lit);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.social-routing circle {
  fill: #0b1513;
  stroke: #c9af77;
  stroke-width: 1;
}
@media (max-width: 380px) {
  .social-grid {
    gap: 4px;
  }
  .social-label {
    font-size: 7px;
  }
  .social-panel {
    padding-left: 9px;
    padding-right: 9px;
  }
  .social-caption strong {
    font-size: 6px;
    letter-spacing: 0.03em;
  }
  .social-count {
    font-size: 5px;
  }
  .social-header {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .social-key {
    transition: none !important;
    transform: none !important;
  }
}

.social-grid[data-count="1"] {
  grid-template-columns: 1fr;
}
.social-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.social-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.social-grid[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.social-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.social-port.is-active .social-led {
  background: #c1ffce;
  box-shadow: 0 0 5px #9df7bd;
}

/* Fine-pointer desktops retain the phone-width board. Touch tablets stay full-width. */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    background: #0b1110;
    background: color-mix(in srgb, var(--pcb) 18%, #080c0b);
  }
  .workbench {
    max-width: 480px;
    margin-inline: auto;
    box-shadow: 0 0 48px #0000004d;
  }
}
