.pl {
  --ink: #f3ebda;
  --muted: #b2b6ac;
  --line: #424940;
  --panel: #222823;
  --gold: #f1c674;
  --branch: #efaa76;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  min-width: 0;
  position: relative;
}
.pl * {
  box-sizing: border-box;
}
.pl button,
.pl a {
  font: inherit;
}
.pl button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.1;
  margin: 0;
}
.pl :focus-visible {
  outline: 2px solid #ffdf88 !important;
  outline-offset: 3px;
}
.pl button:hover {
  filter: brightness(1.18);
}
.pl button[hidden] {
  display: none;
}
.pl h2,
.pl h3,
.pl p {
  margin: 0;
  letter-spacing: normal;
}
.pl .pl-presets {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
  align-items: stretch;
}
.pl-pre-label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-right: 10px;
  color: #cccabd;
  font: 600 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pl .pl-preset {
  min-height: 64px;
  padding: 9px 15px;
  gap: 13px;
  border: 1px solid #4e5449;
  background: linear-gradient(115deg, #30352f, #242923);
  text-align: left;
  justify-content: flex-start;
  position: relative;
  box-shadow: inset 0 1px #ffffff0b;
}
.pl .pl-preset:hover,
.pl .pl-preset[aria-pressed="true"] {
  border-color: var(--tape);
  background: #333a30;
}

.pl-preset-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pl-preset-text strong {
  font: 650 1.15rem/0.98 var(--heading);
}
.pl-preset-text small {
  font: 400 0.65rem var(--mono);
  color: #c0c0b4;
}
.pl-preset-text small i {
  font-style: normal;
  color: #747d71;
}
.pl-preset-arrow {
  margin-left: auto;
  color: var(--tape);
}
.pl-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(255px, 26%);
  gap: 12px;
  align-items: stretch;
}
.pl-board,
.pl-summary {
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px #0002;
}
.pl-toolbar,
.pl-summary-head {
  min-height: 51px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  background: #282e27;
}
.pl-toolbar h2,
.pl-summary-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  font: 650 1.3rem var(--heading);
  white-space: nowrap;
}
.pl-toolbar h2 svg {
  color: #d4c6a8;
}
.pl-tabs {
  display: flex;
  gap: 3px;
}
.pl-tabs button,
.pl-mobile-switch {
  color: #c7c9be;
  font:
    550 0.81rem/1 system-ui,
    sans-serif;
  padding: 8px;
  border-radius: 2px;
}
.pl-tabs button[aria-pressed="true"],
.pl-mobile-switch {
  background: #3a3e33;
  border-color: #62604d;
  color: var(--branch);
}
.pl-tabs button svg {
  color: var(--branch);
}
.pl .pl-mobile-switch {
  display: none;
}
.pl-board {
  container-type: inline-size;
}
.pl-canvas {
  --fit-scale: 1;
  --zoom: 1;
  --vertical: 1;
  --diagram-height: 302px;
  position: relative;
  overflow: auto;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  scrollbar-width: none;
  background-color: #181f1b;
  background-image:
    radial-gradient(circle at 15% 50%, #a68d4e15, transparent 45%),
    linear-gradient(90deg, #9ba88d0b 1px, transparent 1px),
    linear-gradient(0deg, #9ba88d0b 1px, transparent 1px),
    radial-gradient(#aaad8a34 0.8px, transparent 0.8px);
  background-size:
    auto,
    42px 42px,
    42px 42px,
    7px 7px;
  height: calc(var(--diagram-height) * var(--fit-scale));
  cursor: grab;
}
.pl-canvas:active {
  cursor: grabbing;
}
.pl-map-size {
  position: relative;
  overflow: hidden;
  width: calc(840px * var(--fit-scale) * var(--zoom));
  height: calc(var(--diagram-height) * var(--fit-scale) * var(--zoom));
}
.pl-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 840px;
  height: var(--diagram-height);
  transform: scale(calc(var(--fit-scale) * var(--zoom)));
  transform-origin: top left;
}
.pl-wires {
  position: absolute;
  width: 840px;
  height: 302px;
  inset: 0;
  overflow: visible;
}
.pl-traces {
  transform: scaleY(var(--vertical));
  transform-origin: 0 0;
}
/* Each logical route has a machined trough, an energy core and a directional packet. */
.pl-duct {
  fill: none;
  stroke-linecap: round;
  transition: opacity 0.16s ease;
}
.pl-conduit {
  stroke: #24303a;
  stroke-width: 4.8;
  filter: drop-shadow(0 1px 0 #8695a225);
}
.pl-energy {
  stroke: #82909c;
  stroke-width: 1.15;
  stroke-dasharray: 2 5;
  opacity: 0.78;
}
.pl-duct.ready .pl-energy {
  stroke: var(--branch);
  stroke-width: 1.75;
  stroke-dasharray: 5 4;
  animation: pl-breathe 2.6s ease-in-out infinite alternate;
}
.pl-duct.live .pl-energy {
  stroke: var(--branch);
  stroke-width: 2;
  stroke-dasharray: none;
  opacity: 0.96;
  filter: drop-shadow(0 0 3px var(--branch));
}
.pl-packet,
.pl-flash {
  stroke: #f6fffb;
  stroke-width: 2.6;
  stroke-dasharray: 8 112;
  filter: drop-shadow(0 0 3px var(--branch));
  animation: pl-packet 3.8s linear var(--phase) infinite;
}
.pl-flash {
  stroke-dasharray: 16 104;
  animation: pl-fire 0.26s ease-out both;
}
@keyframes pl-packet {
  0%,
  14% {
    stroke-dashoffset: 13;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  85%,
  100% {
    stroke-dashoffset: -104;
    opacity: 0;
  }
}
@keyframes pl-fire {
  from {
    stroke-dashoffset: 18;
  }
  to {
    stroke-dashoffset: -101;
  }
}
@keyframes pl-breathe {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 1;
  }
}
.pl button.pl-node {
  position: absolute;
  display: flex;
  width: 102px;
  min-height: 46px;
  transform: translate(-50%, -23px);
  flex-flow: column;
  justify-content: flex-start;
  gap: 3px;
  font-size: 12px;
  padding: 0;
  border: 0;
  color: #b9c6d0;
  background: transparent;
  transition: opacity 0.16s;
}
.pl-node-plate {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  color: #a6b6bf;
  background: radial-gradient(
    ellipse at 35% 14%,
    #3a4750,
    #1d2a34 56%,
    #101823
  );
  border-radius: 50%;
  box-shadow: 0 3px 8px #000b;
}
.pl-ring {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  fill: none;
  overflow: visible;
}
.pl-rim {
  stroke: #607481;
  stroke-width: 0.8;
}
.pl-rank-arc {
  stroke: #788691;
  stroke-width: 2.7;
  opacity: 0.63;
}
.pl-rank-arc[data-filled="true"] {
  stroke: var(--branch);
  opacity: 1;
  filter: drop-shadow(0 0 2px var(--branch));
}
.pl-socket {
  display: grid;
  place-items: center;
  width: 70%;
  height: 70%;
  background: linear-gradient(155deg, #44515a, #1c2831 45%, #273742);
  border: 1px solid #5b707b8c;
  clip-path: polygon(
    26% 0,
    74% 0,
    100% 26%,
    100% 74%,
    74% 100%,
    26% 100%,
    0 74%,
    0 26%
  );
}
.pl-node-plate small {
  position: absolute;
  right: -3px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font: 700 10px/1 var(--mono);
  background: #17222a;
  color: var(--branch);
  border: 1px solid #667780;
}
.pl-node.locked .pl-node-plate small {
  font-size: 0;
}
.pl-node.locked .pl-node-plate small:before {
  content: "";
  width: 4px;
  height: 3px;
  border: 1px solid #a1b0bb;
  border-radius: 3px 3px 0 0;
}
.pl-node.locked .pl-node-plate small:after {
  content: "";
  width: 5px;
  height: 4px;
  position: absolute;
  top: 6px;
  background: #a1b0bb;
}
.pl-node[data-shape="root"] .pl-node-plate {
  box-shadow:
    0 0 0 3px #111a23,
    0 0 0 4px var(--branch),
    0 0 0 6px #1b2934,
    0 0 18px var(--branch-glow);
}
.pl-node[data-shape="root"] .pl-socket {
  width: 77%;
  height: 77%;
  border-radius: 50%;
  clip-path: none;
}
.pl-node[data-shape="junction"] .pl-socket {
  transform: rotate(45deg);
  border-radius: 2px;
  clip-path: none;
  width: 56%;
  height: 56%;
}
.pl-node[data-shape="junction"] .pl-socket svg {
  transform: rotate(-45deg);
}
.pl-node[data-shape="core"] .pl-node-plate:before {
  content: "✦";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1;
  color: #bdcbd5;
  text-shadow: 0 0 4px #12202a;
}
.pl-node[data-shape="core"] .pl-socket {
  background: radial-gradient(#687b87, #23323f 60%);
  border-radius: 50%;
  clip-path: none;
}
.pl-node.available .pl-socket,
.pl-node.invested .pl-socket,
.pl-node.selected .pl-socket {
  color: var(--branch);
  background: radial-gradient(
    ellipse at top,
    color-mix(in srgb, var(--branch) 25%, #1a2028),
    #19232d
  );
  border-color: var(--branch);
}
.pl-node.available .pl-rim,
.pl-node.selected .pl-rim,
.pl-node.invested .pl-rim {
  stroke: var(--branch);
  stroke-width: 1.4;
}
.pl-node.invested .pl-node-plate {
  box-shadow:
    0 0 15px var(--branch-glow),
    inset 0 0 12px var(--branch-glow);
}
.pl-node.invested .pl-node-plate small {
  background: var(--branch);
  color: #0b1820;
  border-color: var(--branch);
}
.pl-node-label {
  color: #c3d0d8;
  max-width: 101px;
  line-height: 1.08;
  font-family: Barlow, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 2px;
  text-wrap: balance;
  text-shadow:
    0 1px 4px #050c12,
    0 0 4px #050c12;
}
.pl-node.selected .pl-node-label,
.pl-node.invested .pl-node-label {
  color: var(--branch);
}
.pl-node.is-path .pl-rim {
  stroke: var(--branch);
}
.pl-duct.is-path .pl-energy {
  stroke: var(--branch);
  opacity: 0.88;
}
.pl .pl-node.is-dim,
.pl-duct.is-dim {
  opacity: 0.42;
}
.pl-node.pulse .pl-node-plate:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--branch);
  border-radius: 50%;
  pointer-events: none;
  animation: pl-ripple 0.46s ease-out both;
}
@keyframes pl-ripple {
  from {
    transform: scale(0.78);
    opacity: 1;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}
.pl-node.rejected .pl-node-plate {
  animation: pl-shake 0.28s ease-in-out;
}
@keyframes pl-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  65% {
    transform: translateX(-4px);
  }
  40%,
  82% {
    transform: translateX(4px);
  }
}
.pl-stage.cascading .invested .pl-node-plate {
  animation: pl-cascade 0.16s ease-out var(--delay) backwards;
}
@keyframes pl-cascade {
  from {
    opacity: 0.26;
    transform: scale(0.83);
    filter: saturate(0.25);
  }
  68% {
    transform: scale(1.09);
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pl-canvas-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  color: #b4bdaf;
  background: #1b221c;
  border-top: 1px solid #313a31;
  border-bottom: 1px solid var(--line);
}
.pl-legend,
.pl-zoom {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 0.63rem var(--mono);
}
.pl-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #8a9385;
}
.pl-legend i:not(:first-child) {
  margin-left: 6px;
}
.pl-legend i.available {
  border-color: var(--branch);
}
.pl-legend i.invested {
  background: var(--branch);
  border-color: var(--branch);
}
.pl-zoom button {
  padding: 3px;
  min-width: 25px;
  min-height: 25px;
  font: 500 16px var(--mono);
}
.pl-inspect {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 100px;
  padding: 14px 16px;
}
.pl-selected-icon {
  width: 49px;
  height: 49px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid #69644b;
  background: #33382c;
  color: var(--branch);
  border-radius: 8px 2px;
}
.pl-kicker,
.pl-rank {
  font: 500 0.64rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c1beaa;
}
.pl-readout {
  flex: 1;
}
.pl-readout h3 {
  font: 650 1.36rem/1.08 var(--heading);
  margin: 3px 0;
}
.pl-readout p,
.pl-readout #require {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #d0d2c4;
}
.pl-readout #require {
  font-size: 0.72rem;
  color: #b4bbab;
}
.pl-readout #choices {
  padding: 4px 0;
  text-decoration: underline;
  color: var(--gold);
}
.pl-rank {
  text-align: right;
  margin-bottom: 5px;
}
.pl-rank b {
  color: #ece8d2;
  font-weight: 500;
}
.pl-step {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pl-step button {
  height: 34px;
  border: 1px solid #596052;
  border-radius: 2px;
  min-width: 31px;
  font:
    600 14px Barlow,
    system-ui,
    sans-serif;
}
.pl-step #plus,
.pl-sharing #share,
.pl-actions button:first-child,
.pl-actions a {
  background: var(--gold);
  color: #25281d;
  border-color: transparent;
  font-weight: 650;
}
.pl-step #plus {
  padding: 0 10px;
}
.pl-step button[aria-disabled="true"] {
  background: #2c342c;
  color: #a2a999;
  border-color: #535b4f;
}
.pl-summary {
  display: flex;
  flex-flow: column;
}
.pl-summary-head button {
  width: 35px;
  height: 35px;
  color: #c2c6b8;
}
.pl-budget {
  position: relative;
  padding: 16px 17px 9px;
}
.pl-budget strong {
  display: block;
  letter-spacing: -0.04em;
  font: 500 1.68rem/1 var(--heading);
  color: #9fa696;
}
.pl-budget strong b {
  font: 650 2.9rem/1.05 var(--heading);
  color: var(--ink);
}
.pl-left {
  position: absolute;
  bottom: 11px;
  right: 16px;
  font: 400 0.68rem var(--mono);
  color: var(--muted);
}
.pl-left b {
  color: var(--gold);
}
.pl-meter {
  margin: 0 17px 12px;
  display: flex;
  overflow: hidden;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #4a5246 0 8px,
    transparent 8px 10px
  );
}
.pl-meter i {
  height: 100%;
  display: block;
}
.pl-breakdown {
  margin: 0 17px;
  border-block: 1px solid var(--line);
}
.pl-breakdown > div {
  padding: 7px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pl-breakdown > div + div {
  border-top: 1px solid #373f35;
}
.pl-breakdown span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.pl-breakdown svg,
.pl-breakdown b {
  color: var(--branch);
}
.pl-breakdown b {
  font: 500 0.87rem var(--mono);
}
.pl .pl-effects-btn {
  justify-content: flex-start;
  min-height: 36px;
  padding: 5px 17px;
  margin-bottom: 4px;
  color: #d4d5c9;
  font-size: 0.8rem;
}
.pl-effects-btn b {
  font: 400 0.67rem var(--mono);
  background: #343c32;
  padding: 3px 6px;
}
.pl-effects-btn svg {
  margin-left: auto;
}
.pl-sharing {
  display: grid;
  gap: 6px;
  grid-template-columns: 1.6fr 1fr;
  padding: 11px 15px 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.pl-sharing button {
  min-height: 34px;
  border: 1px solid #57604f;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pl-sharing #export {
  grid-column: span 2;
}
.pl-status {
  font:
    500 0.84rem/1.3 Barlow,
    system-ui,
    sans-serif;
  color: #f6deb1;
  min-height: 1.5em;
  padding-top: 5px;
}
.pl-dialog {
  background: #242b25;
  color: #f3ebda;
  border: 1px solid #808570;
  border-top: 3px solid var(--gold);
  padding: 20px;
  width: min(460px, calc(100% - 24px));
  max-height: 85dvh;
  overflow-y: auto;
  margin: auto;
  box-shadow: 0 20px 60px #0008;
}
.pl-dialog::backdrop {
  background: #101710c9;
}
.pl-dlg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.pl-dlg-head h2 {
  font: 650 1.8rem var(--heading);
}
.pl .pl-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  font-size: 24px;
}
.pl-dialog p,
.pl-dialog label {
  font-size: 1rem;
  line-height: 1.5;
  color: #d1d4c8;
  margin: 0 0 12px;
}
.pl-dialog label {
  display: block;
}
.pl-dialog input,
.pl-dialog textarea {
  background: #151c16;
  color: #f3ebda;
  border: 1px solid #687160;
  padding: 11px;
  width: 100%;
  font: 400 1rem/1.45 var(--mono);
  border-radius: 1px;
  resize: vertical;
}
.pl-dialog .pl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.pl-actions button,
.pl-actions a,
.pl-branch-list button,
#choiceList button {
  min-height: 44px;
  border: 1px solid #69715e;
  padding: 8px 14px;
  font-size: 0.9rem;
}
.pl-branch-list,
#choiceList {
  display: grid;
  gap: 8px;
}
.pl-branch-list button {
  justify-content: flex-start;
  color: var(--branch);
}
#choiceList button {
  display: block;
  text-align: left;
}
#choiceList button small {
  display: block;
  font-size: 0.82rem;
  color: #c2c8ba;
  margin-top: 4px;
  line-height: 1.4;
}
#effects .pl-effect {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
#effects .pl-effect p {
  font-size: 0.9rem;
  margin: 3px 0;
}
#cardPreview {
  display: block;
  width: 100%;
  height: auto;
}
#cardPreview:not([src]) {
  display: none;
}
@media (max-width: 1000px) {
  .pl-pre-label {
    margin: 0 2px 0 0;
  }
  .pl-cassette {
    width: 40px;
    height: 29px;
  }
  .pl-preset-arrow {
    display: none;
  }
  .pl-work {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .pl-tabs button {
    font-size: 0.73rem;
    padding: 7px 4px;
  }
  .pl-toolbar {
    padding: 0 9px;
  }
  .pl-inspect {
    padding: 12px 9px;
    gap: 9px;
  }
  .pl-selected-icon {
    display: none;
  }
}
@media (max-width: 820px) {
  .pl .pl-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .pl-pre-label {
    display: none;
  }
  .pl .pl-preset {
    padding: 8px;
    gap: 7px;
  }
  .pl-preset-text strong {
    font-size: 1.03rem;
  }
  .pl-preset-text small {
    font-size: 0.6rem;
  }
  .pl-tabs {
    display: none;
  }
  .pl .pl-mobile-switch {
    display: flex;
  }
  .pl-work {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .pl-board {
    display: flex;
    flex-direction: column;
  }
  .pl-inspect {
    flex: 1;
  }
}
@media (max-width: 660px) {
  .pl .pl-presets {
    margin-bottom: 7px;
  }
  .pl .pl-preset {
    min-height: 53px;
    padding: 7px 4px;
    gap: 4px;
    flex-flow: column;
    text-align: center;
    border-top: 2px solid var(--tape);
  }
  .pl-cassette {
    display: none;
  }
  .pl-preset-text {
    gap: 4px;
  }
  .pl-preset-text strong {
    font-size: 1rem;
  }
  .pl-preset-text small {
    font-size: 0.59rem;
  }
  .pl-preset-text small i {
    display: none;
  }
  .pl-work {
    display: flex;
    flex-flow: column;
    gap: 7px;
  }
  .pl-toolbar,
  .pl-summary-head {
    min-height: 44px;
    padding: 0 10px;
  }
  .pl-toolbar h2,
  .pl-summary-head h2 {
    font-size: 1.2rem;
  }
  .pl .pl-mobile-switch {
    min-height: 44px;
    border-block: 0;
  }
  .pl-canvas {
    height: 207px;
    --diagram-height: 215px;
    --vertical: 0.69;
  }
  .pl-stage .pl-node-plate {
    width: 44px;
    height: 44px;
  }
  .pl-canvas-footer {
    padding: 0 7px;
    min-height: 35px;
  }
  .pl-legend,
  .pl-zoom {
    font-size: 0.6rem;
    gap: 4px;
  }
  .pl-zoom button {
    min-width: 39px;
    min-height: 44px;
  }
  .pl-inspect {
    padding: 8px 9px;
    min-height: 79px;
    gap: 6px;
    align-items: center;
  }
  .pl-kicker,
  .pl-rank {
    font-size: 0.57rem;
  }
  .pl-readout h3 {
    font-size: 1.1rem;
  }
  .pl-readout p {
    font-size: 0.75rem;
  }
  .pl-readout #require {
    font-size: 0.67rem;
  }
  .pl-step {
    gap: 3px;
  }
  .pl-step button {
    height: 44px;
    min-width: 44px;
  }
  .pl-step #plus {
    padding: 0 8px;
  }
  .pl-step #plus span {
    display: none;
  }
  .pl-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 7px 9px;
    gap: 4px 8px;
  }
  .pl-summary-head {
    border: 0;
    background: none;
    min-height: 0;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
    gap: 0;
    justify-content: flex-end;
  }
  .pl-summary-head h2 {
    display: none;
  }
  .pl-summary-head button {
    min-height: 44px;
    width: 44px;
  }
  .pl-budget {
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 1;
  }
  .pl-budget strong {
    font-size: 1.1rem;
  }
  .pl-budget strong b {
    font-size: 1.5rem;
  }
  .pl-left {
    position: static;
    font-size: 0.61rem;
  }
  .pl-budget .pl-kicker {
    order: 1;
    display: none;
  }
  .pl-meter {
    grid-column: span 2;
    height: 4px;
    margin: 0;
  }
  .pl-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    grid-column: span 2;
    margin: 0;
    border: 0;
  }
  .pl-breakdown > div {
    gap: 4px;
    padding: 3px 0;
  }
  .pl-breakdown > div + div {
    border: 0;
  }
  .pl-breakdown span {
    font-size: 0.71rem;
    gap: 3px;
  }
  .pl-breakdown svg {
    width: 13px;
  }
  .pl-breakdown b {
    font-size: 0.69rem;
  }
  .pl-sharing {
    display: flex;
    grid-row: 4;
    grid-column: span 2;
    justify-content: flex-start;
    margin: 0;
    padding: 3px 0 0;
    gap: 5px;
  }
  .pl-sharing button {
    min-height: 44px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  .pl .pl-effects-btn {
    grid-column: span 2;
    grid-row: 5;
    min-height: 44px;
    margin: 0;
    padding: 3px 0;
  }
  .pl-status {
    font-size: 0.78rem;
  }
  .pl-dialog#drawer {
    width: 100%;
    max-width: none;
    max-height: 65dvh;
    margin: auto 0 0;
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl *,
  .pl *:before,
  .pl *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.pl.low-motion * {
  animation: none !important;
}
@media (max-width: 660px) {
  .pl-zoom button,
  .pl .pl-close {
    min-width: 44px;
    min-height: 44px;
  }
  .pl .pl-readout #choices {
    min-height: 44px;
  }
}
@media (max-width: 350px) {
  .pl-legend {
    gap: 3px;
  }
  .pl-legend i:not(:first-child) {
    margin-left: 1px;
  }
  .pl-zoom {
    gap: 0;
  }
  .pl-canvas-footer {
    padding: 0 3px;
  }
}
.pl-effect-preview {
  margin: 0 17px 12px;
  padding: 9px 11px;
  border-left: 2px solid #787963;
  background: linear-gradient(90deg, #353c30, transparent);
  color: #bac3b4;
  font-size: 0.8rem;
  line-height: 1.4;
}
.pl-effect-preview b,
.pl-effect-preview span,
.pl-effect-preview small {
  display: block;
}
.pl-effect-preview b {
  color: #e6e5d6;
}
.pl-effect-preview small {
  color: #c1c3ab;
}
@media (max-width: 660px) {
  .pl-effect-preview {
    display: none;
  }
}
.pl #skillNotes {
  padding: 0;
  border: 0;
  text-align: left;
  gap: 7px;
  justify-content: flex-start;
  color: inherit;
  font: inherit;
}
.pl #skillNotes small {
  font: 500 13px/1 var(--mono);
  color: #bcc0a9;
}
.pl #noteContent a {
  color: var(--gold);
  text-underline-offset: 3px;
}
@supports (transform: scale(calc(1cqw / 1px))) {
  @media (min-width: 661px) {
    .pl-canvas {
      --fit-scale: clamp(0.72, calc(100cqw / 840px), 1.35);
    }
  }
}
@media (max-width: 660px) {
  .pl #skillNotes {
    min-height: 44px;
  }
  .pl-readout h3 {
    margin: -3px 0 -2px;
  }
}
@media (max-width: 660px) {
  .pl-preset-purpose {
    display: none;
  }
}
@media (max-width: 660px) and (max-height: 820px) {
  .pl-canvas {
    height: 172px;
  }
}
@media (max-width: 350px) {
  .pl-canvas {
    height: 175px;
  }
}
@media (min-width: 821px) and (max-height: 820px) {
  .pl-canvas {
    --diagram-height: 215px;
    --vertical: 0.69;
  }
  .pl .pl-preset {
    min-height: 54px;
  }
  .pl-inspect {
    min-height: 85px;
    padding-block: 9px;
  }
  .pl-budget {
    padding-top: 9px;
  }
  .pl-breakdown > div {
    padding-block: 5px;
  }
  .pl-effect-preview {
    margin-bottom: 6px;
    padding-block: 5px;
  }
}

/* The console floats over the same night scene as the deck header. */
@property --branch {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffb020;
}
@property --lamp-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 18%;
}
.pl {
  --ink: #edf4f8;
  --muted: #acbac8;
  --panel: #111b25;
  --line: #354957;
  --gold: #ffc266;
  --branch: #ffb020;
  --branch-glow: color-mix(in srgb, var(--branch) 32%, transparent);
  --hud: rgba(13, 18, 26, 0.76);
  transition:
    --branch 0.42s ease,
    --lamp-x 0.44s ease;
  --reticle: linear-gradient(#9fb8c2, #9fb8c2);
}
.pl button:hover {
  filter: brightness(1.13);
}
.pl .pl-presets {
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.pl-pre-label {
  color: #bbd0dc;
  font-weight: 500;
}
.pl .pl-preset {
  isolation: isolate;
  overflow: hidden;
  min-height: 64px;
  border: 0;
  border-radius: 9px 3px 9px 3px;
  padding: 8px 17px 10px;
  box-shadow:
    inset 0 1px #e5f2ff38,
    inset 0 -2px #080c12,
    0 7px 18px #03060a4d;
  background: linear-gradient(
    115deg,
    rgba(63, 74, 82, 0.91),
    rgba(29, 40, 50, 0.94) 49%,
    rgba(22, 31, 41, 0.95)
  );
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.18s;
}
.pl .pl-preset:hover,
.pl .pl-preset:focus-visible,
.pl .pl-preset[aria-pressed="true"] {
  background: linear-gradient(115deg, #43545b, #243541 62%, #1d2e3b);
  box-shadow:
    inset 0 1px #d2e6ee5c,
    0 0 14px #9dc7cd19;
}
.pl-preset:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 11px;
  width: 58px;
  opacity: 0.83;
  background: linear-gradient(
    45deg,
    transparent 22%,
    #ff3b30 22% 30%,
    transparent 30% 33%,
    #ff9500 33% 41%,
    transparent 41% 44%,
    #ffcc00 44% 52%,
    transparent 52% 55%,
    #00d09c 55% 63%,
    transparent 63%
  );
}
.pl-cassette {
  position: relative;
  display: block;
  flex: none;
  width: 86px;
  height: 47px;
  transform: rotate(-4deg);
  filter: drop-shadow(1px 4px 2px #03080aa8);
}
.pl-cassette svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pl-preset:hover .pl-reel,
.pl-preset:focus-visible .pl-reel {
  animation: pl-reel 2.4s linear infinite;
  transform-origin: 0 0;
}

@keyframes pl-reel {
  to {
    transform: rotate(360deg);
  }
}
.pl-preset-text strong {
  font-size: 1.2rem;
}
.pl-preset-text small {
  color: #bdc9cd;
}
.pl-split {
  display: flex;
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 17px;
  right: 18px;
  gap: 2px;
  opacity: 0.93;
}
.pl-split i {
  min-width: 1px;
}
.pl-work {
  gap: 15px;
}
.pl-board,
.pl-summary {
  position: relative;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
}
.pl-summary,
.pl-toolbar,
.pl-inspect,
.pl-canvas-footer,
.pl-dialog {
  background: var(--hud);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pl-summary,
.pl-toolbar,
.pl-inspect {
  box-shadow:
    inset 0 1px #aabfc229,
    inset 0 -1px #bdddf519;
}
.pl-summary:before,
.pl-summary:after,
.pl-board:before,
.pl-board:after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  height: 10px;
  width: calc(100% - 2px);
  left: 1px;
  background:
    var(--reticle) left top/10px 1px,
    var(--reticle) left top/1px 10px,
    var(--reticle) right top/10px 1px,
    var(--reticle) right top/1px 10px;
  background-repeat: no-repeat;
  opacity: 0.72;
}
.pl-summary:before,
.pl-board:before {
  top: 0;
}
.pl-summary:after,
.pl-board:after {
  bottom: 0;
  transform: scaleY(-1);
}
.pl-board,
.pl-summary {
  border-radius: 0;
  overflow: visible;
}
.pl-board {
  background: linear-gradient(110deg, #0e1721c4, #101d2bb0);
  box-shadow: inset 0 0 50px #0c15205c;
}
.pl-toolbar,
.pl-summary-head {
  border: 0;
  padding-inline: 17px;
}
.pl-toolbar h2,
.pl-summary-head h2 {
  font-size: 1.38rem;
}
.pl-toolbar h2 svg {
  color: var(--branch);
}
.pl-summary-head {
  background: linear-gradient(90deg, #1a2832be, #15212a24);
  box-shadow: inset 0 -1px #b1d7e11a;
}
.pl-tabs {
  gap: 5px;
}
.pl-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #c5d0d9;
  padding: 9px 10px;
}
.pl-tabs button[aria-pressed="true"],
.pl .pl-mobile-switch {
  color: var(--branch);
  background: color-mix(in srgb, var(--branch) 13%, #101b24);
  box-shadow: inset 0 -2px color-mix(in srgb, var(--branch) 68%, transparent);
  border: 0;
}
.pl-canvas {
  background-color: transparent;
  background-image:
    radial-gradient(
      ellipse at var(--lamp-x) 0%,
      color-mix(in srgb, var(--branch) 18%, transparent),
      transparent 60%
    ),
    radial-gradient(ellipse at 83% 68%, #39759a13, transparent 55%),
    linear-gradient(90deg, #9ec2dc09 1px, transparent 1px),
    linear-gradient(0deg, #9ec2dc09 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 64%27%3E%3Cpath d=%27M32 29v6m-3-3h6%27 stroke=%27%23b9d2df%27 opacity=%27.15%27 stroke-width=%27.75%27/%3E%3C/svg%3E");
  background-size:
    auto,
    auto,
    96px 96px,
    96px 96px,
    64px 64px;
  box-shadow: inset 0 22px 24px -28px var(--branch-glow);
  transition: box-shadow 0.42s ease;
}
.pl-canvas-footer {
  border: 0;
  background: rgba(12, 20, 29, 0.67);
  color: #aabcc6;
  box-shadow: inset 0 -1px #8da2b62a;
}
.pl-legend i {
  border-radius: 50%;
}
.pl-zoom button {
  color: #b7cbd5;
}
.pl-zoom output {
  min-width: 4ch;
  text-align: center;
}
.pl-selected-icon {
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at top, var(--branch-glow), #121e28);
  box-shadow:
    inset 0 0 0 1px var(--branch-glow),
    inset 0 0 0 5px #0c172380;
}
.pl-kicker,
.pl-rank {
  color: #adb9c8;
}
.pl-readout p {
  color: #d3dee5;
}
.pl-readout #require,
.pl-budget strong,
.pl .pl-effects-btn {
  color: #aabac6;
}
.pl-budget strong {
  font-variant-numeric: tabular-nums;
}
.pl-budget strong b {
  color: var(--ink);
}
.pl-left b {
  color: #ffca79;
}
.pl-budget {
  padding-top: 17px;
}
.pl-meter {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    #50637361 0 8px,
    transparent 8px 10px
  );
  border-radius: 3px;
}
.pl-breakdown {
  border: 0;
}
.pl-breakdown > div {
  padding: 8px 1px;
}
.pl-breakdown > div + div {
  border: 0;
  box-shadow: 0 -1px #8498a317;
}
.pl-effect-preview {
  border-left-color: var(--branch);
  background: linear-gradient(90deg, var(--branch-glow), transparent 87%);
  color: #c6d4de;
}
.pl-effects-btn b {
  background: #293b4a;
  color: #d8e7ed;
}
.pl-sharing {
  border: 0;
  box-shadow: inset 0 1px #bfd7e520;
}
.pl-sharing button,
.pl-step button {
  border: 0;
  background: #293a49;
  color: #e1e8ef;
  border-radius: 5px;
  box-shadow: inset 0 1px #cde7f029;
}
.pl-sharing #share,
.pl-step #plus {
  background: linear-gradient(115deg, #ffd081, #ffad47);
  color: #17212a;
  box-shadow:
    inset 0 1px #ffdfb4,
    0 2px 8px #efa34023;
}
.pl-step button[aria-disabled="true"] {
  border: 0;
  color: #a1afbc;
  background: #23303e;
}
.pl-popover {
  position: fixed;
  z-index: 1200;
  width: min(280px, calc(100vw - 16px));
  padding: 13px 15px;
  pointer-events: none;
  box-shadow:
    0 10px 37px #020509aa,
    inset 2px 0 var(--branch),
    inset 0 1px #c9e0f32a;
  border-radius: 0 9px 9px 3px;
  background: linear-gradient(120deg, #192a36fa, #101923fc);
  backdrop-filter: blur(18px);
  color: #e0eaf0;
}
.pl-popover[hidden] {
  display: none;
}
.pl-tip-branch {
  font: 500 0.65rem var(--mono);
  color: var(--branch);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pl-popover > strong {
  display: block;
  font: 700 1.38rem/1.12 var(--heading);
  margin: 5px 0;
}
.pl-tip-value {
  margin-top: 8px;
}
.pl-tip-value small,
.pl-tip-value span {
  display: block;
}
.pl-tip-value small {
  font: 500 0.65rem var(--mono);
  color: #9eafba;
}
.pl-tip-value span {
  font-size: 0.85rem;
  line-height: 1.35;
  margin-top: 2px;
}
.pl-error {
  background: linear-gradient(115deg, #3d241eff, #261b21fa);
  box-shadow:
    inset 2px 0 #ff845d,
    0 10px 24px #03050888;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pl-dialog {
  background: rgba(16, 25, 35, 0.97);
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 4px 16px 12px 4px;
}
@media (max-width: 820px) {
  .pl .pl-presets {
    gap: 6px;
  }
  .pl .pl-preset {
    padding-inline: 9px;
  }
  .pl-split {
    left: 9px;
    right: 9px;
  }
}
@media (max-width: 660px) {
  .pl-work {
    gap: 8px;
  }
  .pl .pl-presets {
    gap: 5px;
    margin-bottom: 8px;
  }
  .pl .pl-preset {
    min-height: 53px;
    padding: 6px 3px 8px;
    border-radius: 5px;
  }
  .pl-preset-text strong {
    font-size: 1rem;
  }
  .pl-preset:after {
    width: 30px;
    height: 5px;
  }
  .pl-split {
    height: 2px;
    left: 5px;
    right: 5px;
  }
  .pl-toolbar,
  .pl-summary-head {
    padding-inline: 10px;
  }
  .pl-summary-head {
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .pl-budget {
    padding: 0;
  }
  .pl-breakdown > div {
    padding: 3px 0;
  }
  .pl-breakdown > div + div {
    box-shadow: none;
  }
  .pl-sharing {
    box-shadow: none;
  }
  .pl-canvas-footer {
    padding-inline: 5px;
  }
}
@media (min-width: 821px) and (max-height: 820px) {
  .pl .pl-preset {
    min-height: 54px;
  }
  .pl-budget {
    padding-top: 9px;
  }
  .pl-breakdown > div {
    padding-block: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl *,
  .pl *:after,
  .pl *:before {
    animation: none !important;
    transition: none !important;
  }
  .pl-packet,
  .pl-flash {
    display: none;
  }
}
.pl.low-motion *,
.pl.low-motion *:before,
.pl.low-motion *:after {
  animation: none !important;
  transition: none !important;
}
.pl.low-motion .pl-packet,
.pl.low-motion .pl-flash {
  display: none;
}

.pl-preset-text strong {
  line-height: 1.05;
}
.pl-fader {
  width: clamp(36px, 23%, 96px);
  height: 5px;
  display: block;
  margin-left: auto;
  margin-right: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, #121c26 4px 6px),
    linear-gradient(
      90deg,
      var(--branch) var(--gain, 0%),
      #354454 var(--gain, 0%)
    );
  border-radius: 1px;
  opacity: 0.85;
}
.pl-budget strong {
  line-height: 1.03;
  font-size: 1.8rem;
}
.pl-budget strong b {
  display: inline-block;
  font-size: 3.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.pl-budget .pl-left {
  position: absolute;
  right: 16px;
  bottom: 6px;
  display: flex;
  width: 62px;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.pl-dial {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pl-left b {
  display: inline-block;
  font-size: 0.92rem;
}
.pl-left span {
  font-size: 0.5rem;
  line-height: 1;
}
#reserveDial {
  transition: stroke-dasharray 0.42s ease;
}
.pl-breakdown b {
  min-width: 2.4ch;
  text-align: right;
  display: inline-block;
}
.pl-stage.cascading .pl-duct.live .pl-energy {
  animation: pl-energize 0.16s ease-out var(--delay) backwards;
}
@keyframes pl-energize {
  from {
    opacity: 0.05;
    stroke-width: 0.5;
  }
  to {
    opacity: 0.96;
    stroke-width: 2;
  }
}
@media (max-width: 1000px) {
  .pl-cassette {
    width: 66px;
    height: 36px;
  }
  .pl-dial {
    opacity: 0.8;
  }
}
@media (max-width: 660px) {
  .pl .pl-preset {
    display: flex;
    min-height: 57px;
    justify-content: flex-start;
    padding: 6px 6px 5px;
  }
  .pl-preset-text {
    width: 100%;
    align-items: flex-start;
    gap: 4px;
  }
  .pl-preset-text strong {
    text-align: left;
    text-wrap: balance;
  }
  .pl-preset-text small {
    align-self: flex-end;
    margin-top: auto;
  }
  .pl-cassette {
    position: absolute;
    bottom: 5px;
    left: 7px;
    display: block;
    overflow: hidden;
    width: 33px;
    height: 12px;
    transform: none;
    filter: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #7f8b8f52;
  }
  .pl-cassette svg {
    position: absolute;
    top: -11px;
    left: -9px;
    width: 52px;
    height: 29px;
  }
  .pl-budget strong {
    font-size: 1.1rem;
  }
  .pl-budget strong b {
    font-size: 1.55rem;
  }
  .pl-budget .pl-left {
    position: static;
    display: inline-flex;
    flex-direction: row;
    width: auto;
    height: auto;
    gap: 3px;
  }
  .pl-dial,
  .pl-fader {
    display: none;
  }
  .pl-left b,
  .pl-left span {
    font-size: 0.63rem;
  }
}
@media (min-width: 821px) and (max-height: 820px) {
  .pl-cassette {
    width: 76px;
    height: 41px;
  }
  .pl .pl-preset {
    padding-block: 5px 7px;
  }
  .pl-budget strong b {
    font-size: 3rem;
  }
}
.pl-pointer-help {
  margin-left: auto;
  margin-right: 8px;
  color: #b4c4ce;
  font: 400 0.65rem var(--mono);
}
@media (pointer: coarse), (max-width: 1000px) {
  .pl-pointer-help {
    display: none;
  }
}
