/* fwdebug: the simulated VS Code firmware debugger (static/js/fwdebug.js). Dark Modern in the site's dark theme, Light
   Modern in the light one (html[data-theme] or the OS). Everything is scoped to .fwd; no inline styles (strict CSP). */

.fwd {
  /* VS Code "Dark Modern" */
  --fwd-bg: #1f1f1f;
  --fwd-side: #181818;
  --fwd-chrome: #181818;
  --fwd-border: #2b2b2b;
  --fwd-fg: #cccccc;
  --fwd-fg-2: #9d9d9d;
  --fwd-fg-3: #6e7681;
  --fwd-ln: #6e7681;
  --fwd-ln-on: #cccccc;
  --fwd-accent: #0078d4;
  --fwd-hover: #2a2d2e;
  --fwd-sel: #04395e;
  --fwd-sel-fg: #ffffff;
  --fwd-input: #313131;
  --fwd-input-border: #3c3c3c;
  --fwd-cur: rgb(255 255 0 / 0.2);
  --fwd-focus: rgb(122 189 122 / 0.3);
  --fwd-arrow: #ffcc00;
  --fwd-bp: #e51400;
  --fwd-bp-off: #848484;
  --fwd-status: #181818;
  --fwd-status-fg: #9d9d9d;
  --fwd-status-dbg: #cc6633;
  --fwd-status-dbg-fg: #ffffff;
  --fwd-tb-bg: #181818;
  --fwd-tb-border: #2b2b2b;
  --fwd-shadow: 0 2px 8px rgb(0 0 0 / 0.36);
  --fwd-hover-bg: #202020;
  --fwd-hover-border: #454545;
  --fwd-ic-blue: #75beff;
  --fwd-ic-green: #89d185;
  --fwd-ic-red: #f48771;
  --fwd-changed: rgb(86 156 214 / 0.35);
  --fwd-act-fg: #d7d7d7;
  --fwd-act-off: #868686;
  --fwd-tab-off-fg: #9d9d9d;
  --fwd-scroll: rgb(121 121 121 / 0.4);
  --fwd-mini-slider: rgb(121 121 121 / 0.2);
  --fwd-v-name: #c586c0;
  --fwd-v-number: #b5cea8;
  --fwd-v-string: #ce9178;
  --fwd-v-boolean: #4e94ce;
  --fwd-v-other: #cccccc;
  --fwd-v-error: #f48771;
  --fwd-syn-com: #6a9955;
  --fwd-syn-str: #ce9178;
  --fwd-syn-num: #b5cea8;
  --fwd-syn-pre: #c586c0;
  --fwd-syn-fn: #dcdcaa;
  --fwd-syn-kw: #569cd6;
  --fwd-syn-ctl: #c586c0;
  --fwd-syn-ty: #4ec9b0;
  --fwd-syn-mac: #4fc1ff;
  --fwd-syn-var: #9cdcfe;
  --fwd-syn-op: #d4d4d4;
  --fwd-c-icon: #519aba;
  --fwd-h-icon: #a074c4;
  --fwd-light-1: #ff5f57;
  --fwd-light-2: #febc2e;
  --fwd-light-3: #28c840;
  --fwd-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Ubuntu, "Droid Sans", sans-serif;
  --fwd-code: Menlo, Monaco, "SF Mono", Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .fwd {
    /* VS Code "Light Modern" */
    --fwd-bg: #ffffff;
    --fwd-side: #f8f8f8;
    --fwd-chrome: #f8f8f8;
    --fwd-border: #e5e5e5;
    --fwd-fg: #3b3b3b;
    --fwd-fg-2: #616161;
    --fwd-fg-3: #8b949e;
    --fwd-ln: #6e7681;
    --fwd-ln-on: #171184;
    --fwd-accent: #005fb8;
    --fwd-hover: #f2f2f2;
    --fwd-sel: #e8e8e8;
    --fwd-sel-fg: #000000;
    --fwd-input: #ffffff;
    --fwd-input-border: #cecece;
    --fwd-cur: rgb(255 255 102 / 0.45);
    --fwd-focus: rgb(206 231 206 / 0.45);
    --fwd-arrow: #be8700;
    --fwd-bp: #e51400;
    --fwd-bp-off: #848484;
    --fwd-status: #f8f8f8;
    --fwd-status-fg: #3b3b3b;
    --fwd-tb-bg: #f8f8f8;
    --fwd-tb-border: #e5e5e5;
    --fwd-shadow: 0 2px 8px rgb(0 0 0 / 0.16);
    --fwd-hover-bg: #f8f8f8;
    --fwd-hover-border: #c8c8c8;
    --fwd-ic-blue: #007acc;
    --fwd-ic-green: #388a34;
    --fwd-ic-red: #a1260d;
    --fwd-changed: rgb(86 156 214 / 0.25);
    --fwd-act-fg: #1f1f1f;
    --fwd-act-off: #616161;
    --fwd-tab-off-fg: #868686;
    --fwd-scroll: rgb(100 100 100 / 0.4);
    --fwd-mini-slider: rgb(100 100 100 / 0.2);
    --fwd-v-name: #9b46b0;
    --fwd-v-number: #098658;
    --fwd-v-string: #a31515;
    --fwd-v-boolean: #0000ff;
    --fwd-v-other: #3b3b3b;
    --fwd-v-error: #e51400;
    --fwd-syn-com: #008000;
    --fwd-syn-str: #a31515;
    --fwd-syn-num: #098658;
    --fwd-syn-pre: #af00db;
    --fwd-syn-fn: #795e26;
    --fwd-syn-kw: #0000ff;
    --fwd-syn-ctl: #af00db;
    --fwd-syn-ty: #267f99;
    --fwd-syn-mac: #0070c1;
    --fwd-syn-var: #001080;
    --fwd-syn-op: #000000;
  }
}

:root[data-theme="light"] .fwd {
  --fwd-bg: #ffffff;
  --fwd-side: #f8f8f8;
  --fwd-chrome: #f8f8f8;
  --fwd-border: #e5e5e5;
  --fwd-fg: #3b3b3b;
  --fwd-fg-2: #616161;
  --fwd-fg-3: #8b949e;
  --fwd-ln: #6e7681;
  --fwd-ln-on: #171184;
  --fwd-accent: #005fb8;
  --fwd-hover: #f2f2f2;
  --fwd-sel: #e8e8e8;
  --fwd-sel-fg: #000000;
  --fwd-input: #ffffff;
  --fwd-input-border: #cecece;
  --fwd-cur: rgb(255 255 102 / 0.45);
  --fwd-focus: rgb(206 231 206 / 0.45);
  --fwd-arrow: #be8700;
  --fwd-bp: #e51400;
  --fwd-bp-off: #848484;
  --fwd-status: #f8f8f8;
  --fwd-status-fg: #3b3b3b;
  --fwd-tb-bg: #f8f8f8;
  --fwd-tb-border: #e5e5e5;
  --fwd-shadow: 0 2px 8px rgb(0 0 0 / 0.16);
  --fwd-hover-bg: #f8f8f8;
  --fwd-hover-border: #c8c8c8;
  --fwd-ic-blue: #007acc;
  --fwd-ic-green: #388a34;
  --fwd-ic-red: #a1260d;
  --fwd-changed: rgb(86 156 214 / 0.25);
  --fwd-act-fg: #1f1f1f;
  --fwd-act-off: #616161;
  --fwd-tab-off-fg: #868686;
  --fwd-scroll: rgb(100 100 100 / 0.4);
  --fwd-mini-slider: rgb(100 100 100 / 0.2);
  --fwd-v-name: #9b46b0;
  --fwd-v-number: #098658;
  --fwd-v-string: #a31515;
  --fwd-v-boolean: #0000ff;
  --fwd-v-other: #3b3b3b;
  --fwd-v-error: #e51400;
  --fwd-syn-com: #008000;
  --fwd-syn-str: #a31515;
  --fwd-syn-num: #098658;
  --fwd-syn-pre: #af00db;
  --fwd-syn-fn: #795e26;
  --fwd-syn-kw: #0000ff;
  --fwd-syn-ctl: #af00db;
  --fwd-syn-ty: #267f99;
  --fwd-syn-mac: #0070c1;
  --fwd-syn-var: #001080;
  --fwd-syn-op: #000000;
}

/* ---------- the window */

.fwd {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--fwd-h, 600px);
  min-height: 420px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--fwd-bg);
  color: var(--fwd-fg);
  font: 12px/1.4 var(--fwd-ui);
  border: 1px solid var(--fwd-border);
  border-radius: 10px;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.55);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  outline: none;
  user-select: none;
}
.fwd:focus-visible {
  outline: 1px solid var(--fwd-accent);
  outline-offset: 2px;
}
.fwd button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.fwd button:focus-visible,
.fwd input:focus-visible {
  outline: 1px solid var(--fwd-accent);
  outline-offset: -1px;
}
.fwd [hidden] {
  display: none !important;
}
.fwd-ic {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

/* title bar (macOS, native title) */
.fwd-title {
  position: relative;
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fwd-chrome);
  border-bottom: 1px solid var(--fwd-border);
  color: var(--fwd-fg-2);
  font-size: 12px;
}
.fwd-lights {
  position: absolute;
  left: 11px;
  top: 9px;
  display: flex;
  gap: 8px;
}
.fwd-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fwd-light-1);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2);
}
.fwd-lights i:nth-child(2) {
  background: var(--fwd-light-2);
}
.fwd-lights i:nth-child(3) {
  background: var(--fwd-light-3);
}
.fwd-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 140px);
}

.fwd-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* activity bar */
.fwd-activity {
  flex: none;
  width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--fwd-chrome);
  border-right: 1px solid var(--fwd-border);
}
.fwd-act-top,
.fwd-act-bottom {
  display: flex;
  flex-direction: column;
}
.fwd .fwd-act-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fwd-act-off);
}
.fwd .fwd-act-btn .fwd-ic {
  width: 22px;
  height: 22px;
}
.fwd .fwd-act-btn:hover,
.fwd .fwd-act-btn.is-on {
  color: var(--fwd-act-fg);
}
.fwd .fwd-act-btn.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fwd-accent);
}
.fwd .fwd-act-btn.is-static {
  cursor: default;
}

/* side bar */
.fwd-side {
  flex: none;
  width: clamp(200px, 37%, 300px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--fwd-side);
  border-right: 1px solid var(--fwd-border);
}
.fwd-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.fwd-side-title {
  flex: none;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 14px;
  font-size: 11px;
  color: var(--fwd-fg);
  letter-spacing: 0.02em;
}
.fwd-side-title > span:first-child {
  white-space: nowrap;
}
.fwd-launch {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  margin-left: 4px;
}
.fwd .fwd-launch-play {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--fwd-ic-green);
}
.fwd .fwd-launch-play:hover {
  background: var(--fwd-hover);
}
.fwd .fwd-launch-play:disabled {
  opacity: 0.45;
  cursor: default;
}
.fwd-launch-cfg {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
  height: 22px;
  padding: 0 2px 0 6px;
  margin-left: 2px;
  border: 1px solid var(--fwd-input-border);
  background: var(--fwd-input);
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--fwd-fg);
}
.fwd-launch-cfg > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.fwd-launch-ic {
  display: flex;
  color: var(--fwd-fg);
  padding: 3px;
}

.fwd-sec {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--fwd-border);
}
.fwd-sec-vars {
  flex: 3 1 0;
}
.fwd-sec-watch {
  flex: 1.5 1 0;
}
.fwd-sec-stack {
  flex: 1.5 1 0;
}
.fwd-sec-bps {
  flex: 0.8 1 0;
}
.fwd-sec.is-closed {
  flex: none;
}
.fwd-sec.is-closed > .fwd-tree {
  display: none;
}
.fwd-sec.is-closed .fwd-sec-chev .fwd-ic {
  transform: rotate(-90deg);
}
.fwd-sec-bar {
  flex: none;
  display: flex;
  align-items: center;
  height: 22px;
}
.fwd .fwd-sec-head,
.fwd-sec-static {
  flex: 1;
  display: flex;
  align-items: center;
  height: 22px;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--fwd-fg);
  letter-spacing: 0.01em;
}
.fwd-sec-static {
  flex: none;
  padding-left: 0;
}
.fwd-sec-chev {
  display: flex;
  width: 20px;
  justify-content: center;
}
.fwd-sec-acts {
  display: flex;
  padding-right: 6px;
  opacity: 0;
}
.fwd-sec:hover .fwd-sec-acts,
.fwd-sec-acts:focus-within {
  opacity: 1;
}
.fwd .fwd-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: var(--fwd-fg);
}
.fwd .fwd-mini:hover {
  background: var(--fwd-hover);
}

/* tree rows */
.fwd-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fwd-scroll) transparent;
}
.fwd .fwd-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 22px;
  padding-right: 8px;
  white-space: nowrap;
  font-family: var(--fwd-code);
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.fwd .fwd-row:hover {
  background: var(--fwd-hover);
}
.fwd .fwd-row.is-sel {
  background: var(--fwd-sel);
}
.fwd-row.is-scope,
.fwd-thread,
.fwd-frame,
.fwd-bp,
.fwd-row-file,
.fwd-row-dir {
  font-family: var(--fwd-ui) !important;
  font-size: 12px !important;
}
.fwd-row.is-scope {
  padding-left: 4px;
}
.fwd-indent {
  flex: none;
  display: inline-block;
  width: 0;
}
.fwd-chev {
  flex: none;
  display: flex;
  width: 16px;
  justify-content: center;
  margin-left: 4px;
  color: var(--fwd-fg);
}
.fwd-v-name {
  color: var(--fwd-v-name);
}
.fwd-v-sep {
  color: var(--fwd-fg);
  white-space: pre;
}
.fwd-v-number {
  color: var(--fwd-v-number);
}
.fwd-v-string {
  color: var(--fwd-v-string);
}
.fwd-v-boolean {
  color: var(--fwd-v-boolean);
}
.fwd-v-other {
  color: var(--fwd-v-other);
}
.fwd-v-error {
  color: var(--fwd-v-error);
}
.fwd-v-number,
.fwd-v-string,
.fwd-v-boolean,
.fwd-v-other,
.fwd-v-error {
  overflow: hidden;
  text-overflow: ellipsis;
}
.fwd-row.is-changed {
  animation: fwd-changed 1.6s ease-out;
}
@keyframes fwd-changed {
  0%,
  40% {
    background: var(--fwd-changed);
  }
  100% {
    background: transparent;
  }
}
.fwd-row.is-stale {
  opacity: 0.55;
}
.fwd-row-empty {
  padding-left: 26px;
  color: var(--fwd-fg-2);
  font-style: italic;
  cursor: default !important;
}
.fwd .fwd-row-x {
  margin-left: auto;
  flex: none;
  visibility: hidden;
}
.fwd .fwd-row:hover .fwd-row-x {
  visibility: visible;
}
.fwd-row-input {
  padding-left: 22px;
}
.fwd-watch-input,
.fwd-repl-input {
  flex: 1;
  min-width: 0;
  height: 20px;
  font: 11.5px var(--fwd-code);
  color: var(--fwd-fg);
  background: var(--fwd-input);
  border: 1px solid var(--fwd-accent);
  padding: 0 4px;
  outline: none;
}

.fwd-thread {
  cursor: default !important;
}
.fwd-thread-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fwd-thread-state {
  flex: none;
  font-size: 10px;
  padding: 0 4px;
  margin-left: 6px;
  border-radius: 3px;
  color: var(--fwd-fg-2);
  letter-spacing: 0.02em;
}
.fwd .fwd-frame {
  padding-left: 6px;
}
.fwd-frame-ic {
  flex: none;
  display: flex;
  width: 18px;
  color: var(--fwd-arrow);
}
.fwd-frame-ic .fwd-ic {
  width: 14px;
  height: 14px;
}
.fwd-frame-fn {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fwd-frame-loc {
  flex: none;
  margin-left: 8px;
  font-size: 11px;
  color: var(--fwd-fg-2);
  white-space: pre;
}
.fwd .fwd-bp {
  padding-left: 18px;
  gap: 6px;
}
.fwd-cb {
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--fwd-accent);
}
.fwd-bp-dir {
  color: var(--fwd-fg-2);
  font-size: 11px;
}
.fwd-bp-line {
  margin-left: auto;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  text-align: center;
  font-size: 11px;
  background: var(--fwd-input);
  border: 1px solid var(--fwd-border);
}
.fwd .fwd-row-file {
  padding-left: 22px;
  gap: 6px;
}
.fwd-row-dir {
  gap: 2px;
}
.fwd-empty {
  margin: 8px 20px;
  color: var(--fwd-fg-2);
  font-size: 12px;
  line-height: 1.5;
}

.fwd-file-ic {
  flex: none;
  width: 14px;
  text-align: center;
  font: 700 11px/1 var(--fwd-ui);
  color: var(--fwd-c-icon);
}
.fwd-file-ic.is-h {
  color: var(--fwd-h-icon);
}

/* editor area */
.fwd-main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fwd-tabs {
  flex: none;
  display: flex;
  height: 35px;
  background: var(--fwd-chrome);
  border-bottom: 1px solid var(--fwd-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.fwd-tabs::after {
  content: "";
  flex: none;
  width: 236px;
}
.fwd-tabs::-webkit-scrollbar {
  display: none;
}
.fwd .fwd-tab {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 6px 0 10px;
  border-right: 1px solid var(--fwd-border);
  color: var(--fwd-tab-off-fg);
  background: var(--fwd-chrome);
  font-size: 12.5px;
}
.fwd .fwd-tab.is-on {
  color: var(--fwd-fg);
  background: var(--fwd-bg);
  height: 36px;
}
.fwd .fwd-tab.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--fwd-accent);
}
.fwd-tab-x {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  visibility: hidden;
}
.fwd-tab.is-on .fwd-tab-x,
.fwd-tab:hover .fwd-tab-x {
  visibility: visible;
}
.fwd-crumbs {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 14px;
  color: var(--fwd-fg-2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.fwd-crumb-sep {
  display: flex;
  opacity: 0.8;
}
.fwd-crumb-sep .fwd-ic {
  width: 14px;
  height: 14px;
}
.fwd-crumb-file,
.fwd-crumb-fn {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fwd-crumb-cube {
  width: 10px;
  height: 10px;
  border: 1.5px solid #b180d7;
  border-radius: 2px;
  transform: rotate(45deg) scale(0.8);
}

.fwd-editor {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  background: var(--fwd-bg);
}
.fwd-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fwd-scroll) transparent;
}
.fwd-scroll::-webkit-scrollbar,
.fwd-tree::-webkit-scrollbar,
.fwd-console::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.fwd-scroll::-webkit-scrollbar-thumb,
.fwd-tree::-webkit-scrollbar-thumb,
.fwd-console::-webkit-scrollbar-thumb {
  background: var(--fwd-scroll);
}
.fwd-scroll::-webkit-scrollbar-corner {
  background: transparent;
}
.fwd-code {
  min-width: max-content;
  padding-bottom: 40px;
  font: 12px/18px var(--fwd-code);
  font-feature-settings: "liga" 0, "calt" 0;
  color: var(--fwd-fg);
  user-select: text;
}
.fwd-line {
  position: relative;
  display: flex;
  height: 18px;
  white-space: pre;
}
.fwd-glyph {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: none;
  width: 18px;
  background: var(--fwd-bg);
  cursor: pointer;
}
.fwd-num {
  position: sticky;
  left: 18px;
  z-index: 2;
  flex: none;
  width: 34px;
  padding-right: 18px;
  box-sizing: content-box;
  text-align: right;
  color: var(--fwd-ln);
  background: var(--fwd-bg);
  cursor: pointer;
}
.fwd-src {
  padding-left: 4px;
  padding-right: 24px;
}
.fwd-line.is-cur,
.fwd-line.is-cur .fwd-glyph,
.fwd-line.is-cur .fwd-num {
  background-image: linear-gradient(var(--fwd-cur), var(--fwd-cur));
}
.fwd-line.is-focus,
.fwd-line.is-focus .fwd-glyph,
.fwd-line.is-focus .fwd-num {
  background-image: linear-gradient(var(--fwd-focus), var(--fwd-focus));
}
.fwd-line.is-cur .fwd-num,
.fwd-line.is-focus .fwd-num {
  color: var(--fwd-ln-on);
}
/* breakpoint dot, the "could set one" ghost dot, the current-line arrow */
.fwd-glyph::before,
.fwd-glyph::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.fwd-line.is-exec:hover .fwd-glyph::before {
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fwd-bp);
  opacity: 0.4;
}
.fwd-line.has-bp .fwd-glyph::before {
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fwd-bp);
  opacity: 1;
}
.fwd-line.has-bp.bp-off .fwd-glyph::before {
  background: var(--fwd-bp-off);
}
.fwd-line.is-arrow .fwd-glyph::after {
  left: 3px;
  top: 4px;
  width: 13px;
  height: 10px;
  background: var(--fwd-arrow);
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
}
.fwd-line.has-bp.is-arrow .fwd-glyph::after {
  left: 5px;
  top: 6px;
  width: 9px;
  height: 6px;
}
.fwd-line.is-focus .fwd-glyph::after {
  background: var(--fwd-ic-green);
}

.t-com {
  color: var(--fwd-syn-com);
}
.t-str {
  color: var(--fwd-syn-str);
}
.t-num {
  color: var(--fwd-syn-num);
}
.t-pre {
  color: var(--fwd-syn-pre);
}
.t-fn {
  color: var(--fwd-syn-fn);
}
.t-kw {
  color: var(--fwd-syn-kw);
}
.t-ctl {
  color: var(--fwd-syn-ctl);
}
.t-ty {
  color: var(--fwd-syn-ty);
}
.t-mac {
  color: var(--fwd-syn-mac);
}
.t-var {
  color: var(--fwd-syn-var);
}
.t-op {
  color: var(--fwd-syn-op);
}
.fwd.is-halted .t-var:hover {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.fwd-minimap-wrap {
  position: relative;
  flex: none;
  width: 60px;
  overflow: hidden;
  box-shadow: -1px 0 0 var(--fwd-border) inset;
}
.fwd-minimap {
  display: block;
  width: 60px;
  cursor: pointer;
}
.fwd-mini-slider {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  background: var(--fwd-mini-slider);
  pointer-events: none;
}
.fwd.is-narrow .fwd-minimap-wrap {
  display: none;
}

.fwd-hover {
  position: absolute;
  z-index: 20;
  max-width: 80%;
  padding: 3px 8px;
  font: 12px/18px var(--fwd-code);
  background: var(--fwd-hover-bg);
  border: 1px solid var(--fwd-hover-border);
  border-radius: 3px;
  box-shadow: var(--fwd-shadow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.fwd-hv-name {
  color: var(--fwd-v-name);
}

/* the floating debug toolbar */
.fwd-toolbar {
  position: absolute;
  z-index: 10;
  top: 4px;
  right: 10px;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 4px 0 0;
  background: var(--fwd-tb-bg);
  border: 1px solid var(--fwd-tb-border);
  border-radius: 6px;
  box-shadow: var(--fwd-shadow);
}
.fwd-tb-grip {
  display: flex;
  width: 16px;
  justify-content: center;
  color: var(--fwd-fg-3);
  cursor: grab;
}
.fwd-tb-grip .fwd-ic {
  width: 12px;
}
.fwd .fwd-tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  margin: 0 1px;
}
.fwd .fwd-tb-btn:hover:not(:disabled) {
  background: var(--fwd-hover);
}
.fwd .fwd-tb-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.fwd-tb-btn.is-blue {
  color: var(--fwd-ic-blue);
}
.fwd-tb-btn.is-green {
  color: var(--fwd-ic-green);
}
.fwd-tb-btn.is-red {
  color: var(--fwd-ic-red);
}

/* the hint bubble below the toolbar */
.fwd-hint {
  position: absolute;
  z-index: 11;
  top: 42px;
  right: 10px;
  width: max-content;
  max-width: min(360px, calc(100% - 24px));
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 6px 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fwd-fg);
  background: var(--fwd-hover-bg);
  border: 1px solid var(--fwd-hover-border);
  border-radius: 6px;
  box-shadow: var(--fwd-shadow);
  animation: fwd-pop 0.25s ease-out;
}
.fwd-hint::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 104px;
  width: 8px;
  height: 8px;
  background: var(--fwd-hover-bg);
  border-left: 1px solid var(--fwd-hover-border);
  border-top: 1px solid var(--fwd-hover-border);
  transform: rotate(45deg);
}
.fwd-hint-ic {
  display: flex;
  color: var(--fwd-ic-blue);
  padding-top: 1px;
}
.fwd-hint-text {
  flex: 1;
}
.fwd .fwd-hint-x {
  flex: none;
  margin-top: -2px;
}
@keyframes fwd-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* the phone strip (hidden on wide windows) */
.fwd-strip {
  display: none;
}

/* bottom panel */
.fwd-panel {
  flex: none;
  height: 30%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  background: var(--fwd-chrome);
  border-top: 1px solid var(--fwd-border);
}
.fwd-panel-head {
  flex: none;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px 0 4px;
}
.fwd-ptabs {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow: hidden;
}
.fwd-ptab {
  position: relative;
  padding: 6px 8px 5px;
  font-size: 11px;
  color: var(--fwd-fg-2);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.fwd-ptab.is-on {
  color: var(--fwd-fg);
}
.fwd-ptab.is-on::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: var(--fwd-accent);
}
.fwd-console {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2px 14px 2px 20px;
  font: 11.5px/17px var(--fwd-code);
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: var(--fwd-scroll) transparent;
}
.fwd-cl {
  white-space: pre-wrap;
  word-break: break-word;
}
.fwd-cl.is-dim {
  color: var(--fwd-fg-2);
}
.fwd-cl.is-err {
  color: var(--fwd-v-error);
}
.fwd-cl.is-echo {
  color: var(--fwd-fg-2);
}
.fwd-cl.is-val {
  color: var(--fwd-v-number);
}
.fwd-repl {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 14px 4px 2px;
}
.fwd-repl-caret {
  display: flex;
  color: var(--fwd-ic-blue);
}
.fwd .fwd-repl-input {
  border-color: transparent;
  background: transparent;
}
.fwd .fwd-repl-input:focus {
  border-color: var(--fwd-accent);
}

/* status bar */
.fwd .fwd-status {
  font-family: var(--fwd-ui);
}
.fwd-status {
  flex: none;
  display: flex;
  justify-content: space-between;
  height: 22px;
  font-size: 12px;
  color: var(--fwd-status-fg);
  background: var(--fwd-status);
  border-top: 1px solid var(--fwd-border);
  overflow: hidden;
}
.fwd.is-debugging .fwd-status {
  color: var(--fwd-status-dbg-fg);
  background: var(--fwd-status-dbg);
  border-top-color: var(--fwd-status-dbg);
}
.fwd-sb-left,
.fwd-sb-right {
  display: flex;
  min-width: 0;
}
.fwd-sb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  white-space: nowrap;
}
.fwd-sb-item .fwd-ic {
  width: 14px;
  height: 14px;
}
.fwd-sb-left .fwd-sb-item:first-child {
  padding-left: 10px;
}
.fwd-sb-debug {
  min-width: 0;
}
.fwd-sb-debug span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- narrow windows: the side bar gets thinner, some status items go */

.fwd.is-narrow .fwd-sb-opt,
.fwd.is-narrow .fwd-sb-branch {
  display: none;
}

/* ---------- phones / small windows: editor, toolbar, a strip of values and the console */

.fwd.is-compact {
  height: var(--fwd-h-compact, 640px);
  border-radius: 8px;
}
.fwd.is-compact .fwd-activity,
.fwd.is-compact .fwd-side,
.fwd.is-compact .fwd-crumbs,
.fwd.is-compact .fwd-minimap-wrap,
.fwd.is-compact .fwd-sb-probs,
.fwd.is-compact .fwd-ptab:not(.is-on) {
  display: none;
}
.fwd.is-compact .fwd-tabs {
  padding-top: 40px;
  height: 75px;
}
.fwd.is-compact .fwd-tab {
  padding: 0 4px 0 8px;
  font-size: 12px;
}
.fwd.is-compact .fwd-toolbar {
  top: 6px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  height: 32px;
}
.fwd.is-compact .fwd-tb-btn {
  width: 34px;
  height: 28px;
}
.fwd.is-compact .fwd-hint {
  top: 46px;
  right: 12px;
  left: 12px;
  width: auto;
  max-width: none;
}
.fwd.is-compact .fwd-hint::before {
  right: auto;
  left: calc(50% - 5px);
}
.fwd.is-compact .fwd-code {
  font-size: 11.5px;
}
.fwd.is-compact .fwd-num {
  width: 24px;
  padding-right: 10px;
}
.fwd.is-compact .fwd-num {
  left: 18px;
}
.fwd.is-compact .fwd-strip {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 6px 10px;
  background: var(--fwd-side);
  border-top: 1px solid var(--fwd-border);
  font: 11px/16px var(--fwd-code);
}
.fwd-chip {
  display: inline-flex;
  gap: 5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--fwd-input);
  border: 1px solid var(--fwd-border);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.fwd-chip-k {
  color: var(--fwd-v-name);
}
.fwd-chip-where {
  flex-basis: 100%;
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}
.fwd-chip-where .fwd-chip-k {
  color: var(--fwd-fg-2);
  font-family: var(--fwd-ui);
  font-size: 10px;
  letter-spacing: 0.03em;
}
.fwd-chip-where .fwd-chip-v {
  color: var(--fwd-fg);
  overflow: hidden;
  text-overflow: ellipsis;
}
.fwd-chip.is-changed {
  animation: fwd-changed 1.6s ease-out;
}
.fwd-chip.is-stale {
  opacity: 0.6;
}
.fwd.is-compact .fwd-panel {
  height: 24%;
  min-height: 96px;
}
.fwd.is-compact .fwd-panel-head {
  height: 26px;
}
.fwd.is-compact .fwd-console {
  padding-left: 10px;
}
.fwd.is-compact .fwd-title-text {
  max-width: calc(100% - 120px);
}

@media (prefers-reduced-motion: reduce) {
  .fwd-row.is-changed,
  .fwd-chip.is-changed {
    animation: none;
    background: var(--fwd-changed);
  }
  .fwd-hint {
    animation: none;
  }
}
