/* node_modules/@fontsource/big-shoulders-display/latin-600.css */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/big-shoulders-display-latin-600-normal.woff2") format("woff2"), url("./media/big-shoulders-display-latin-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/big-shoulders-display/latin-ext-600.css */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/big-shoulders-display-latin-ext-600-normal.woff2") format("woff2"), url("./media/big-shoulders-display-latin-ext-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/big-shoulders-display/latin-800.css */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("./media/big-shoulders-display-latin-800-normal.woff2") format("woff2"), url("./media/big-shoulders-display-latin-800-normal.woff") format("woff");
}

/* node_modules/@fontsource/big-shoulders-display/latin-ext-800.css */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("./media/big-shoulders-display-latin-ext-800-normal.woff2") format("woff2"), url("./media/big-shoulders-display-latin-ext-800-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-400.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/ibm-plex-sans-latin-400-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-400-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-ext-400.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-ext-400-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-500.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/ibm-plex-sans-latin-500-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-ext-500.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-ext-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-600.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/ibm-plex-sans-latin-600-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-ext-600.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"), url("./media/ibm-plex-sans-latin-ext-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-400.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/ibm-plex-mono-latin-400-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-400-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-ext-400.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-ext-400-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-500.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/ibm-plex-mono-latin-500-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-ext-500.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-ext-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-600.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/ibm-plex-mono-latin-600-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-ext-600.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"), url("./media/ibm-plex-mono-latin-ext-600-normal.woff") format("woff");
}

/* frontend/src/styles.css */
:root {
  --ink: #081429;
  --panel: #0d1f3c;
  --panel-2: #142c53;
  --plan: #12305c;
  --line: #dbe7ff;
  --dim: #8ea3c7;
  --rule: rgba(219, 231, 255, 0.14);
  --amber: #ffb000;
  --red: #ff5a47;
  --display:
    "Big Shoulders Display",
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --body:
    "IBM Plex Sans",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  --mono:
    "IBM Plex Mono",
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--ink);
  color: var(--line);
  font: 13px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
svg {
  flex: none;
}
#app {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand b {
  font-weight: 600;
  color: var(--line);
}
.brand i {
  font-style: normal;
  font-weight: 800;
  color: var(--amber);
}
.lamp {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff3c4,
      var(--amber) 55%,
      #b96f00);
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.75);
}
.pname {
  width: 200px;
  min-width: 0;
  flex: 0 1 200px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 7px;
  font-weight: 500;
}
.pname:hover,
.pname:focus {
  border-color: var(--rule);
  background: var(--panel-2);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}
.seg button {
  background: transparent;
  border: 0;
  padding: 5px 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.seg button + button {
  border-left: 1px solid var(--rule);
}
.seg button:hover {
  color: var(--line);
  background: var(--panel-2);
}
.seg button[aria-pressed=true] {
  background: var(--amber);
  color: var(--ink);
}
.grow {
  flex: 1 1 0;
}
.ib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--dim);
}
.ib:hover:not(:disabled) {
  color: var(--line);
  background: var(--panel-2);
  border-color: var(--rule);
}
.ib:disabled {
  opacity: 0.3;
  cursor: default;
}
.ib span {
  font-weight: 500;
  color: var(--line);
}
.work {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 316px;
  min-height: 0;
}
body[data-mode=play] .work {
  grid-template-columns: minmax(0, 1fr);
}
body[data-mode=play] .palette,
body[data-mode=play] .panel {
  display: none;
}
.palette {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 7px;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--rule);
}
.palette button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--dim);
  text-align: left;
}
.palette button span {
  color: var(--line);
}
.palette button:hover {
  background: var(--panel-2);
}
.palette button[aria-pressed=true] {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.1);
  color: var(--amber);
}
.palette button[aria-pressed=true] span {
  color: var(--amber);
}
.palette hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 5px 0;
}
.views {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  background: var(--plan);
}
.views.v-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
.views.v-2d #pane3d,
.views.v-3d #pane2d {
  display: none;
}
.pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.pane + .pane {
  border-left: 1px solid var(--rule);
}
.pane canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#pane3d {
  background: var(--ink);
}
#pane3d.off canvas,
#pane3d.off .ptools {
  display: none;
}
.nogl {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  height: max-content;
  max-width: 34ch;
  padding: 16px;
  color: var(--dim);
  text-align: center;
}
#pane3d.off .nogl {
  display: block;
}
.ptag {
  position: absolute;
  right: 10px;
  top: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--dim);
  pointer-events: none;
}
#pane2d .ptag {
  top: 30px;
}
.ptools {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: calc(100% - 20px);
}
#pane2d .ptools {
  left: 30px;
  top: 30px;
  bottom: auto;
  max-width: calc(100% - 130px);
}
.ptools button,
.ptools .snap {
  height: 26px;
  padding: 0 9px;
  background: rgba(8, 20, 41, 0.86);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--line);
  font-size: 12px;
}
.ptools button:hover {
  border-color: var(--dim);
}
.ptools button[aria-pressed=true] {
  color: var(--amber);
  border-color: rgba(255, 176, 0, 0.6);
}
.ptools button[aria-pressed=false] {
  color: var(--dim);
}
.ptools .snap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  padding-right: 3px;
}
.ptools .snap select {
  height: 20px;
  width: auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--line);
  font: 12px var(--mono);
}
body[data-mode=play] #paneTools2d button[data-a=grid],
body[data-mode=play] .ptools .snap {
  display: none;
}
body[data-mode=play] .ptag {
  display: none;
}
body[data-mode=play] #pane3d .ptools {
  top: 8px;
  bottom: auto;
}
.hud,
.pads {
  display: none;
}
body[data-mode=play] .hud {
  display: block;
  position: absolute;
  right: 12px;
  top: 12px;
  text-align: right;
  pointer-events: none;
  padding: 6px 16px 8px;
  background: rgba(8, 20, 41, 0.78);
  border: 1px solid var(--rule);
  border-radius: 6px;
  min-width: 190px;
  max-width: calc(100% - 24px);
}
.speed small {
  font-size: 18px;
  font-weight: 600;
  margin-left: 6px;
  color: var(--dim);
  text-shadow: none;
}
.speed {
  font-family: var(--display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.55);
  font-variant-numeric: tabular-nums;
}
.ballno {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-size: 14px;
}
.msg {
  min-height: 1.4em;
  color: var(--line);
  font-size: 13px;
}
body[data-mode=play] .pads {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  gap: 8px;
  pointer-events: none;
}
.pads div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.pads button {
  pointer-events: auto;
  height: 44px;
  padding: 0 16px;
  background: rgba(8, 20, 41, 0.86);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pads button:active {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--panel);
  border-left: 1px solid var(--rule);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
}
.tabs button {
  flex: 1;
  padding: 9px 4px 7px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.tabs button:hover {
  color: var(--line);
}
.tabs button[aria-selected=true] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.tabbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 24px;
}
.lead {
  margin: 2px 0 0;
  color: var(--dim);
  max-width: 44ch;
}
.note {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 12px;
}
.group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.group h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-wrap: balance;
}
.count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--dim);
  border-radius: 8px;
  padding: 0 6px;
  margin-left: 4px;
}
.selhead {
  margin-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 7px;
  border: 1px solid rgba(255, 176, 0, 0.55);
  border-radius: 14px;
  color: var(--amber);
  font-weight: 500;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}
.lab {
  color: var(--dim);
  overflow-wrap: anywhere;
}
.row:has(> input[type=checkbox]) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.row input[type=text],
.row input[type=number],
.row select,
textarea {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 2px 6px;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.row input[type=number] {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.row input:hover,
.row select:hover {
  border-color: var(--dim);
}
.row input[type=checkbox] {
  width: 16px;
  height: 16px;
  justify-self: start;
  accent-color: var(--amber);
}
.row input[type=color] {
  width: 46px;
  height: 26px;
  padding: 1px;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.num {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.num i {
  flex: none;
  min-width: 22px;
  font: 11px var(--mono);
  font-style: normal;
  color: var(--dim);
}
.rng {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.rng input[type=range] {
  width: 100%;
  min-width: 0;
  accent-color: var(--amber);
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--line);
}
.btn:hover {
  border-color: var(--dim);
}
.btn.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn.danger {
  color: var(--red);
  border-color: rgba(255, 90, 71, 0.5);
}
.btn.file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ellist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ellist button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 3px 6px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--dim);
  text-align: left;
}
.ellist button span {
  flex: 1;
  color: var(--line);
  overflow-wrap: anywhere;
}
.ellist button:hover {
  background: var(--panel-2);
}
.ellist svg {
  width: 17px;
  height: 17px;
}
.assets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.assets li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assets img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.assets span {
  flex: 1;
  overflow-wrap: anywhere;
}
.assets em {
  color: var(--dim);
  font-style: normal;
  font-size: 12px;
}
.assets small {
  display: block;
  color: var(--dim);
  font: 11px var(--mono);
}
.assets svg {
  color: var(--dim);
}
.tele {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 0;
}
.tele dt {
  color: var(--dim);
  font-size: 12px;
}
.tele dd {
  margin: 0;
  font: 500 16px var(--mono);
  font-variant-numeric: tabular-nums;
}
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
  min-height: 28px;
  padding: 4px 12px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 12px;
}
.status .mono {
  font-family: var(--mono);
  white-space: pre;
  color: var(--line);
}
#stHover {
  color: var(--amber);
}
.status .hint {
  flex: 1 1 280px;
}
.toast {
  color: var(--ink);
  background: var(--amber);
  border-radius: 4px;
  padding: 1px 9px;
  font-weight: 500;
}
.menu {
  position: fixed;
  z-index: 50;
  min-width: 232px;
  max-width: calc(100vw - 12px);
  padding: 4px;
  background: #10264a;
  border: 1px solid rgba(219, 231, 255, 0.25);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.menu button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 9px 5px 4px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  text-align: left;
}
.menu button:hover {
  background: var(--panel-2);
}
.menu button.danger {
  color: var(--red);
}
.menu .ck {
  width: 14px;
  color: var(--amber);
}
.menu button span:nth-child(2) {
  flex: 1;
}
.menu .sep {
  height: 1px;
  margin: 4px 2px;
  background: var(--rule);
}
kbd {
  font: 11px var(--mono);
  padding: 0 5px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--dim);
}
.dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 10, 22, 0.74);
}
.dbox {
  width: min(640px, 100%);
  max-height: min(86%, 760px);
  overflow: auto;
  padding: 14px 18px 18px;
  background: var(--panel);
  border: 1px solid rgba(219, 231, 255, 0.25);
  border-radius: 8px;
}
.dbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.dbox h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dbox h4 {
  margin: 14px 0 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.dbox p,
.dbox li {
  max-width: 66ch;
}
.dbox ul {
  margin: 4px 0;
  padding-left: 18px;
}
.dbox li {
  margin: 3px 0;
}
.dbox .keys {
  columns: 2;
  list-style: none;
  padding: 0;
}
.dbox textarea {
  height: 190px;
  margin-top: 8px;
  font: 12px/1.4 var(--mono);
  resize: vertical;
}
@media (max-width: 860px) {
  body {
    overflow: auto;
  }
  #app {
    height: auto;
    min-height: 100%;
  }
  #app {
    max-width: 100%;
    overflow-x: clip;
  }
  .work,
  body[data-mode=play] .work {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .work > * {
    min-width: 0;
    max-width: 100%;
  }
  .palette {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .palette button {
    flex: none;
  }
  .palette hr {
    width: 1px;
    height: auto;
    border-top: 0;
    border-left: 1px solid var(--rule);
    margin: 0 4px;
  }
  .views {
    height: 72vh;
    min-height: 420px;
  }
  .views.v-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pane + .pane {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .panel {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .tabbody {
    overflow: visible;
  }
  .pname {
    flex-basis: 140px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .palette button,
  .seg button,
  .btn,
  .ib {
    transition:
      background-color 0.12s,
      border-color 0.12s,
      color 0.12s;
  }
}
af-root {
  display: block;
  height: 100%;
}
a {
  color: inherit;
}
.shell {
  height: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  background: #060f20;
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}
.rail .mark {
  display: grid;
  place-items: center;
  height: 40px;
  margin-bottom: 6px;
}
.rail .mark .lamp {
  width: 16px;
  height: 16px;
}
.rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--dim);
  text-decoration: none;
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
}
.rail a svg {
  width: 22px;
  height: 22px;
}
.rail a:hover {
  background: var(--panel-2);
  color: var(--line);
}
.rail a.on {
  color: var(--amber);
  border-color: rgba(255, 176, 0, 0.45);
  background: rgba(255, 176, 0, 0.08);
}
.rail .sp {
  flex: 1 1 0;
}
.main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #0a1830;
  border-bottom: 1px solid var(--rule);
  min-height: 44px;
}
.topbar .title {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar .title b {
  color: var(--amber);
  font-weight: 800;
}
.topbar .pname {
  flex: 0 1 280px;
  width: 280px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}
.dot.ok {
  background: #46d369;
}
.dot.warn {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.7);
}
.dot.err {
  background: var(--red);
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}
.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
}
.stage > .layer {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}
.stage > .layer.run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}
#app {
  min-width: 0;
}
.page {
  height: 100%;
  overflow: auto;
  padding: 18px 24px 48px;
}
.page > h1,
.detail h1 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
.sub {
  margin: 0 0 16px;
  max-width: 86ch;
  color: var(--dim);
}
.split {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
}
.split > .side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--rule);
}
.split > .side > header {
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 8px;
}
.split > .side > header h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.split > .side > .scroll {
  overflow: auto;
  min-height: 0;
  flex: 1 1 0;
  padding: 6px 6px 30px;
}
.split > .detail {
  overflow: auto;
  min-height: 0;
  padding: 18px 24px 60px;
}
.empty {
  color: var(--dim);
  padding: 28px 8px;
  text-align: center;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.spacer {
  flex: 1 1 0;
}
.in,
select.in,
textarea.in {
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 5px 8px;
  min-width: 0;
  color: var(--line);
}
.in:hover {
  border-color: rgba(219, 231, 255, 0.3);
}
.in.wide {
  width: 100%;
}
.in.bad {
  border-color: var(--red);
}
.in.num {
  width: 84px;
  font-family: var(--mono);
}
.in.mono {
  font-family: var(--mono);
}
label.f {
  display: grid;
  gap: 3px;
  font-size: 11.5px;
  color: var(--dim);
}
label.ck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
label.ck input {
  accent-color: var(--amber);
}
.err {
  color: var(--red);
  font-size: 12px;
}
.muted {
  color: var(--dim);
}
.mono {
  font-family: var(--mono);
}
.sm {
  font-size: 11.5px;
}
.cardbox {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.cardbox > h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cardbox > h2 .spacer {
  flex: 1;
}
.cols2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  align-items: start;
}
table.t {
  width: 100%;
  border-collapse: collapse;
}
table.t th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 8px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
table.t td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(219, 231, 255, 0.07);
  vertical-align: middle;
}
table.t tr.sel td {
  background: rgba(255, 176, 0, 0.09);
}
table.t tr.click {
  cursor: pointer;
}
table.t tr.click:hover td {
  background: var(--panel-2);
}
table.t td .in {
  padding: 3px 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.tag.amber {
  color: var(--amber);
  border-color: rgba(255, 176, 0, 0.5);
}
.tag.red {
  color: var(--red);
  border-color: rgba(255, 90, 71, 0.5);
}
.tag.green {
  color: #6fe08a;
  border-color: rgba(70, 211, 105, 0.45);
}
.tag.blue {
  color: #7cc7ff;
  border-color: rgba(124, 199, 255, 0.45);
}
a.tag {
  text-decoration: none;
}
a.tag:hover {
  color: var(--line);
  border-color: var(--line);
}
.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.items > li > button,
.items > li > a {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 7px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--line);
  text-decoration: none;
}
.items > li > button:hover,
.items > li > a:hover {
  background: var(--panel-2);
}
.items > li > .on {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
}
.items .l1 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.items .l2 {
  color: var(--dim);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.items .l1 .spacer {
  flex: 1;
}
.ghead {
  padding: 10px 9px 3px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.rk {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0 12px;
  margin-bottom: 12px;
}
.rk > .k {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding-top: 9px;
  text-align: right;
}
.rk > .v {
  display: grid;
  gap: 6px;
}
.line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 9px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 7px;
}
.line .in {
  flex: 0 1 auto;
}
.line .grow {
  flex: 1 1 140px;
}
.line .x {
  margin-left: auto;
}
.sentence {
  padding: 9px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 176, 0, 0.06);
  border-radius: 0 6px 6px 0;
  margin: 0 0 14px;
}
.usage {
  display: grid;
  gap: 6px;
}
.usage .u {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.usage .u .l1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.usage .u .l1 a.name {
  font-weight: 500;
  text-decoration: none;
}
.usage .u .l1 a.name:hover {
  color: var(--amber);
}
.usage .u .l2 {
  color: var(--dim);
  font-size: 11.5px;
}
.panel .usage .u {
  background: var(--panel-2);
}
.runpanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-left: 1px solid var(--rule);
}
.runpanel > section {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.runpanel h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.score {
  background: #050a14;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 9px;
}
.score small {
  display: block;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.score b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 21px;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.journal {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 4px 6px 20px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.journal div {
  display: grid;
  grid-template-columns: 62px 16px minmax(0, 1fr);
  gap: 4px;
  padding: 2px 4px;
  border-radius: 3px;
}
.journal div:hover {
  background: var(--panel-2);
}
.journal .t {
  color: var(--dim);
}
.journal .out {
  color: #7cc7ff;
}
.journal .in {
  color: var(--line);
  background: none;
  border: 0;
  padding: 0;
}
.journal .sys {
  color: var(--dim);
}
.journal .bad {
  color: var(--red);
}
.journal .act {
  color: var(--amber);
}
.notice {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(80vw, 720px);
  padding: 9px 14px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--amber);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.notice.error {
  border-color: var(--red);
}
.displayhost {
  background: #0b0f17;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: auto;
  min-height: 420px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(160px, 38%) minmax(0, 1fr);
  }
  .split > .side {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .stage > .layer.run {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 46%;
  }
}
.work {
  grid-template-columns: 168px minmax(0, 1fr) 344px;
}
.tabs button {
  padding-inline: 9px;
  letter-spacing: 0.07em;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
.rk > .k {
  text-transform: uppercase;
}
.topbar .btn {
  white-space: nowrap;
}
.cardbox > h2 .btn,
.cardbox > h2 .tag,
.cardbox > summary .tag {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cardbox > h2 .tag,
.cardbox > summary .tag {
  font-size: 11px;
}
.shell,
.main,
.stage,
.stage > .layer {
  overflow: hidden;
}
select.in {
  max-width: 100%;
}
.hrow > .grow,
.line > .in {
  min-width: 0;
}
.line > select.in {
  max-width: 320px;
}
.panel .tabbody {
  overflow-x: hidden;
}
.panel .hrow > select.in.grow {
  flex: 1 1 100%;
}
.panel select {
  max-width: 100%;
  min-width: 0;
}
.scrollx {
  overflow-x: auto;
}
table.t td select.in {
  max-width: 170px;
}
.tabs button {
  font-size: 14px;
  letter-spacing: 0.05em;
  padding-inline: 4px;
}
.tabs button {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  padding-inline: 2px;
  white-space: nowrap;
}
.libhead {
  display: grid;
  gap: 6px;
  position: sticky;
  top: -10px;
  z-index: 1;
  margin: -10px -12px 0;
  padding: 10px 12px 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.libhead input[type=search],
.libhead select {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 2px 8px;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--line);
  font: inherit;
}
.libhead input[type=search]:focus-visible,
.libhead select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.libhead .lib2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}
.libhead .note {
  margin: 0;
}
#libList .group:first-child {
  margin-top: 6px;
  border-top: 0;
}
.part {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0;
  padding: 5px 8px 5px 5px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--line);
  text-align: left;
  cursor: pointer;
}
.part:hover {
  background: var(--panel-2);
  border-color: var(--dim);
}
.part[aria-pressed=true] {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.1);
}
.part .pthumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--plan);
  object-fit: contain;
}
.part .pthumb:not([src]) {
  visibility: hidden;
}
.part .pbody {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.part b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.part b i {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--amber);
  border: 1px solid rgba(255, 176, 0, 0.45);
  border-radius: 8px;
  padding: 0 5px;
  margin-left: 3px;
  white-space: nowrap;
}
.part .pmeta {
  color: var(--dim);
  font-size: 12px;
}
.part .pdim {
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.part .papprox {
  align-self: start;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  cursor: help;
}
.pname {
  margin: 0;
  font-weight: 500;
}
.pdl {
  margin: 6px 0 0;
  display: grid;
  gap: 2px;
}
.pdl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.pdl dt {
  color: var(--dim);
  font-size: 12px;
}
.pdl dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.panel .note a {
  color: var(--amber);
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
