/* Scene styles. */
.cx-host { position: relative; overflow: hidden; background: var(--pf-bg-panel); contain: layout paint; }
.cx-canvas {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  font-family: var(--font-mono); color: var(--pf-text-3);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.cx-canvas > * { position: absolute; }
.cx-canvas svg { overflow: visible; }
.cx-bg, .cx-fx { left: 0; top: 0; width: 940px; height: 588px; pointer-events: none; }
.cx-fx { z-index: 4; }

.cx-gridbg { opacity: 1; }
.cx-bg pattern path { fill: none; stroke: var(--pf-chart-grid); stroke-width: 1; opacity: .55; }
.cx-ticks path { fill: none; stroke: var(--pf-text-4); stroke-width: 1; }
.cx-bound { fill: none; stroke: var(--pf-border-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.cx-wires line { stroke: var(--pf-border-strong); stroke-width: 1; }
.cx-wires line.is-faint { stroke: var(--pf-border); }
.cx-gsq { fill: var(--pf-bg-panel); stroke: var(--pf-text-4); stroke-width: 1; transition: fill 120ms ease, stroke 120ms ease; }
.cx-gsq.is-on { fill: var(--pf-text-hero); stroke: var(--pf-text-hero); }
.cx-wl { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; fill: var(--pf-text-4); text-transform: uppercase; }

.cx-trail { stroke: var(--pf-text-hero); stroke-width: 1; opacity: 0; }
.cx-pk { fill: var(--pf-text-hero); opacity: 0; }
.cx-stream { stroke: var(--pf-text-hero); stroke-width: 2; stroke-dasharray: 2 5; opacity: 0; }
.cx-div { stroke: var(--pf-border); stroke-width: 1; stroke-dasharray: 2 3; }
.cx-scan { stroke: var(--pf-text-hero); stroke-width: 1; opacity: 0; }
.cx-band { fill: var(--pf-text-hero); fill-opacity: .06; opacity: 0; }
.cx-seal { fill: none; stroke: var(--pf-text-hero); stroke-width: 1; opacity: 0; }
.cx-env { opacity: 0; }
.cx-env rect { fill: var(--pf-text-hero); }
.cx-env line { stroke: var(--pf-bg); stroke-width: 1; }

.cx-bl {
  padding: 0 6px; background: var(--pf-bg-panel);
  font-size: 9px; line-height: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-text-4);
}
.cx-gate {
  font-size: 9px; line-height: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-text-4);
  padding: 0 5px; background: var(--pf-bg-panel);
  transition: color 140ms ease;
}
.cx-gate.is-on { color: var(--pf-text-hero); }
.cx-gate.is-done { color: var(--pf-text-3); }
.cx-gate--sign { padding: 0 2px; font-size: 8px; }

.cx-term {
  display: flex; flex-direction: column;
  background: var(--pf-bg); border: 1px solid var(--pf-border-strong); border-radius: var(--pf-radius-lg);
  overflow: hidden; z-index: 2;
}
.cx-term__hd {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: 40px; padding: 0 16px; border-bottom: 1px solid var(--pf-border-strong);
  font-size: 11px; color: var(--pf-text-3);
}
.cx-radio { display: inline-grid; color: var(--pf-text-4); transition: color 160ms ease; }
.cx-radio.is-on { color: var(--pf-text-hero); }
.cx-radio svg { display: block; }
.cx-term__ep { letter-spacing: .01em; }
.cx-pill {
  margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--pf-bg-panel);
  font-family: var(--font-sans); font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: .1em; color: var(--pf-text-3);
}
.cx-tx { flex: 1; min-height: 0; padding: 14px 18px 0 16px; }
.cx-ln {
  position: relative; display: flex; align-items: baseline; gap: 6px; min-width: 0;
  font-size: 12.5px; line-height: 22px; font-weight: 400; color: var(--pf-text-3);
  will-change: opacity, transform;
}
.cx-ln.is-gap { margin-top: 10px; }
.cx-mk { flex: none; width: 10px; color: var(--pf-text-4); }
.cx-mk--p { color: var(--pf-text-hero); font-weight: 700; }
.cx-body { min-width: 0; flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-ln--prompt .cx-body { color: var(--pf-text); font-weight: 500; white-space: pre; }
.cx-ln--note .cx-body { color: var(--pf-text); font-weight: 500; }
.cx-ln--ok .cx-body { color: var(--pf-text-hero); font-weight: 500; }
.cx-hi { color: var(--pf-text-2); }
.cx-dim { color: var(--pf-text-4); }
.cx-cur {
  display: inline-block; width: 7.5px; height: 15px; margin-left: 1px; vertical-align: -2px;
  background: var(--pf-text-hero); visibility: hidden;
}
.cx-cur.is-on { visibility: visible; }

.cx-ln--quest .cx-q__id { flex: none; width: 26px; color: var(--pf-text-4); }
.cx-ln--quest .cx-q__rw { flex: none; width: 116px; color: var(--pf-text-2); }
.cx-ln--quest .cx-q__t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cx-pick { position: absolute; left: -7px; top: 5px; width: 2px; height: 12px; background: var(--pf-text-hero); transform: scaleY(0); transform-origin: 50% 50%; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.cx-ln--quest.is-pick .cx-pick { transform: scaleY(1); }
.cx-ln--quest.is-pick .cx-q__id, .cx-ln--quest.is-pick .cx-q__rw { color: var(--pf-text-hero); }
.cx-ln--quest.is-pick .cx-q__t { color: var(--pf-text); }

.cx-term__ft {
  display: flex; align-items: flex-start; gap: 16px; flex: none;
  padding: 11px 16px 12px; border-top: 1px solid var(--pf-border-strong);
  font-family: var(--font-sans); font-size: 11.5px; line-height: 16px; color: var(--pf-text-3);
}
.cx-term__ft .cx-k { padding-top: 2px; }

.cx-st {
  background: var(--pf-bg); border: 1px solid var(--pf-border-strong); border-radius: var(--pf-radius-lg);
  transition: border-color 160ms ease; z-index: 1;
}
.cx-canvas > .cx-st ~ * { z-index: 2; }
.cx-st__hd {
  display: flex; align-items: center; gap: 8px; height: 18px;
  font-size: 11px; color: var(--pf-text-3); white-space: nowrap;
}
.cx-ic { display: inline-grid; color: var(--pf-text-4); transition: color 160ms ease; }
.cx-ic svg { display: block; }
.cx-keyi.is-on { color: var(--pf-text-hero); }
.cx-st__hd .cx-r { margin-left: auto; }
.cx-k { font-family: var(--font-mono); font-size: 9px; line-height: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-text-4); }
.cx-v { font-size: 11px; color: var(--pf-text-2); }
.cx-v.cx-dim { color: var(--pf-text-4); }
.cx-hi2 { color: var(--pf-text); }
.cx-abs { white-space: nowrap; }
.cx-nokey { color: var(--pf-text-3); }

.cx-tool {
  width: 24px; height: 12px; border: 1px solid var(--pf-border-strong); border-radius: 2px; background: transparent;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.cx-tool.is-on { background: var(--pf-bg-raised); border-color: var(--pf-bg-raised); }
.cx-tool.is-w.is-on { background: transparent; border-color: var(--pf-text-4); }
.cx-tool.is-hit, .cx-tool.is-w.is-hit { border-color: var(--pf-text-hero); }
.cx-tool.is-flash { background: var(--pf-text-hero); border-color: var(--pf-text-hero); transition: none; }
.cx-call { font-size: 11.5px; line-height: 16px; color: var(--pf-text-4); }
.cx-call.is-on { color: var(--pf-text); }
.cx-callnote { text-align: right; }

.cx-gut { left: 526px; font-size: 9px; line-height: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-text-4); }
.cx-cell {
  width: 19px; height: 16px; display: grid; place-items: center;
  border: 1px solid var(--pf-border); border-radius: 2px;
  font-size: 9.5px; line-height: 1; color: var(--pf-text-4);
  opacity: .3; will-change: opacity, transform;
}
.cx-cell b { font-weight: 500; }
.cx-cell.is-fill { background: var(--pf-bg-elevated); border-color: var(--pf-bg-elevated); color: var(--pf-text-3); }
.cx-cell.is-sel.is-fill { background: var(--pf-bg-raised); border-color: var(--pf-text-4); color: var(--pf-text-hero); }
.cx-cell.is-arg.is-fill { color: var(--pf-text-4); }
.cx-cell.is-id-row[data-c="b15"].is-fill { color: var(--pf-text-hero); border-color: var(--pf-text-4); }
.cx-cell.is-sig.is-fill { color: var(--pf-text-2); }
.cx-cell.is-flip { background: var(--pf-text-hero); border-color: var(--pf-text-hero); color: var(--pf-bg); }
.cx-ann { font-size: 10px; line-height: 14px; color: var(--pf-text-2); white-space: nowrap; opacity: 0; }
.cx-tag {
  padding: 2px 6px; border: 1px solid var(--pf-border-strong); border-radius: 3px;
  font-size: 9px; line-height: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-text-4);
}
.cx-tag.is-on { color: var(--pf-bg); background: var(--pf-text-hero); border-color: var(--pf-text-hero); }
.cx-tag.is-done { color: var(--pf-text-2); border-color: var(--pf-text-4); }

.cx-conv { overflow: hidden; }
.cx-conv__track { position: absolute; inset: 0; will-change: transform; }
.cx-blk {
  position: absolute; top: 0; width: 40px; height: 26px;
  border: 1px solid var(--pf-border-strong); border-radius: 3px; background: var(--pf-bg-elevated);
  display: grid; place-items: center;
}
.cx-blk b { font-size: 9px; font-weight: 500; color: var(--pf-text-4); }
.cx-blk i { position: absolute; right: 4px; top: 4px; width: 4px; height: 4px; background: var(--pf-text-hero); opacity: 0; }
.cx-blk.is-pend { background: transparent; border-style: dashed; border-color: var(--pf-text-4); }
.cx-blk.is-fut { background: transparent; border-style: dashed; border-color: var(--pf-border); }
.cx-blk.is-fut b { opacity: .5; }
.cx-blk.is-mine i { opacity: 1; }
.cx-blk.is-mine.is-pend { border-color: var(--pf-text-hero); }
.cx-blk.is-mine.is-sealed { border-style: solid; border-color: var(--pf-text-hero); }
.cx-blk.is-mine.is-sealed b { color: var(--pf-text-hero); }
.cx-chn__ft { display: flex; align-items: center; gap: 10px; height: 18px; white-space: nowrap; }
.cx-chn__ft .cx-r { margin-left: auto; }
.cx-status {
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--pf-border-strong);
  font-family: var(--font-sans); font-size: 10px; line-height: 12px; font-weight: 600; color: var(--pf-text-3);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.cx-status.is-on { color: var(--pf-bg); background: var(--pf-text-hero); border-color: var(--pf-text-hero); }
[data-txh].is-on { color: var(--pf-text-2); }

.cx-srv.is-on, .cx-wal.is-on, .cx-chn.is-on { border-color: var(--pf-text-4); }

@media (prefers-reduced-motion: reduce) {
  .cx-canvas *, .cx-canvas *::before { transition: none !important; }
}
html[data-motion="reduce"] .cx-canvas * { transition: none !important; }
