/* node_modules/@xterm/xterm/css/xterm.css */
.xterm {
  cursor: text;
  position: relative;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}
.xterm.focus,
.xterm:focus {
  outline: none;
}
.xterm .xterm-helpers {
  position: absolute;
  top: 0;
  z-index: 5;
}
.xterm .xterm-helper-textarea {
  padding: 0;
  border: 0;
  margin: 0;
  position: absolute;
  opacity: 0;
  left: -9999em;
  top: 0;
  width: 0;
  height: 0;
  z-index: -5;
  white-space: nowrap;
  overflow: hidden;
  resize: none;
}
.xterm .composition-view {
  background: #000;
  color: #FFF;
  display: none;
  position: absolute;
  white-space: nowrap;
  z-index: 1;
}
.xterm .composition-view.active {
  display: block;
}
.xterm .xterm-viewport {
  background-color: #000;
  overflow-y: scroll;
  cursor: default;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
}
.xterm .xterm-screen {
  position: relative;
}
.xterm .xterm-screen canvas {
  position: absolute;
  left: 0;
  top: 0;
}
.xterm-char-measure-element {
  display: inline-block;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: -9999em;
  line-height: normal;
}
.xterm.enable-mouse-events {
  cursor: default;
}
.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
  cursor: pointer;
}
.xterm.column-select.focus {
  cursor: crosshair;
}
.xterm .xterm-accessibility:not(.debug),
.xterm .xterm-message {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  color: transparent;
  pointer-events: none;
}
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}
.xterm .xterm-accessibility-tree {
  font-family: monospace;
  user-select: text;
  white-space: pre;
}
.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: fit-content;
}
.xterm .live-region {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.xterm-dim {
  opacity: 1 !important;
}
.xterm-underline-1 {
  text-decoration: underline;
}
.xterm-underline-2 {
  text-decoration: double underline;
}
.xterm-underline-3 {
  text-decoration: wavy underline;
}
.xterm-underline-4 {
  text-decoration: dotted underline;
}
.xterm-underline-5 {
  text-decoration: dashed underline;
}
.xterm-overline {
  text-decoration: overline;
}
.xterm-overline.xterm-underline-1 {
  text-decoration: overline underline;
}
.xterm-overline.xterm-underline-2 {
  text-decoration: overline double underline;
}
.xterm-overline.xterm-underline-3 {
  text-decoration: overline wavy underline;
}
.xterm-overline.xterm-underline-4 {
  text-decoration: overline dotted underline;
}
.xterm-overline.xterm-underline-5 {
  text-decoration: overline dashed underline;
}
.xterm-strikethrough {
  text-decoration: line-through;
}
.xterm-screen .xterm-decoration-container .xterm-decoration {
  z-index: 6;
  position: absolute;
}
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
  z-index: 7;
}
.xterm-decoration-overview-ruler {
  z-index: 8;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}
.xterm-decoration-top {
  z-index: 2;
  position: relative;
}
.xterm .xterm-scrollable-element > .scrollbar {
  cursor: default;
}
.xterm .xterm-scrollable-element > .scrollbar > .scra {
  cursor: pointer;
  font-size: 11px !important;
}
.xterm .xterm-scrollable-element > .visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0);
  transition: opacity 100ms linear;
  z-index: 11;
}
.xterm .xterm-scrollable-element > .invisible {
  opacity: 0;
  pointer-events: none;
}
.xterm .xterm-scrollable-element > .invisible.fade {
  transition: opacity 800ms linear;
}
.xterm .xterm-scrollable-element > .shadow {
  position: absolute;
  display: none;
}
.xterm .xterm-scrollable-element > .shadow.top {
  display: block;
  top: 0;
  left: 3px;
  height: 3px;
  width: 100%;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.left {
  display: block;
  top: 3px;
  left: 0;
  height: 100%;
  width: 3px;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.top-left-corner {
  display: block;
  top: 0;
  left: 0;
  height: 3px;
  width: 3px;
}
.xterm .xterm-scrollable-element > .shadow.top.left {
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

/* src/dev.css */
:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #17171d;
  --line: #2a2a33;
  --ink: #e6e6e6;
  --dim: #9a9aa6;
  --accent: #82aaff;
  --project-width: 14rem;
  --preview-width: 26rem;
  --terminal-height: 14rem;
  --ui: 1;
}
* {
  box-sizing: border-box;
}
html {
  font-size: calc(1rem * var(--ui));
}
@media (pointer: coarse) {
  :root {
    --ui: 1.25;
  }
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: .875rem/1.5 system-ui, sans-serif;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}
main {
  display: grid;
  grid-template-columns: var(--project-width) auto minmax(0, 1fr);
  min-height: 0;
}
#work {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto var(--terminal-height);
  min-width: 0;
  min-height: 0;
}
#panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--preview-width);
  min-width: 0;
  min-height: 0;
}
section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .55rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  font-size: .75rem;
  min-height: 2rem;
  overflow: hidden;
}
.bar code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#page {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  padding: .15rem .6rem;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
}
button:hover {
  border-color: var(--dim);
}
#page,
#status {
  flex: 1;
  min-width: 0;
}
#status {
  margin: 0;
  text-align: right;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lsp {
  margin: 0;
  color: var(--dim);
  opacity: .75;
  white-space: nowrap;
  font-size: .9em;
}
#lsp[hidden] {
  display: none;
}
.bar .label {
  border-color: transparent;
  color: var(--dim);
  padding: .15rem .3rem;
}
.bar .label:hover {
  border-color: var(--line);
  color: var(--ink);
}
.bar .acts {
  margin-left: auto;
  display: flex;
  gap: .25rem;
}
.bar .acts button {
  padding: .05rem .35rem;
  line-height: 1.4;
}
.split {
  background: var(--line);
  touch-action: none;
}
.split:hover,
.split.dragging {
  background: var(--accent);
}
.split.cols {
  width: 3px;
  cursor: col-resize;
}
.split.rows {
  height: 3px;
  cursor: row-resize;
}
#tree {
  overflow: auto;
  padding: .25rem 0;
  font-size: calc(.8125rem * var(--zoom, 1));
  touch-action: pan-x pan-y;
}
#tree .row {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding-right: .35rem;
}
#tree .row:hover {
  background: #ffffff0a;
}
#tree .row.on {
  background: #ffffff14;
}
#tree .row-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  padding: .15em 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
}
#tree .row.dir .row-name {
  color: var(--dim);
}
#tree .row-act {
  border: 0;
  padding: 0 .2rem;
  color: var(--dim);
  visibility: hidden;
}
#tree .row:hover .row-act {
  visibility: visible;
}
#tree .row-act:hover {
  color: var(--ink);
}
#tree .nothing {
  color: var(--dim);
  padding: .5rem .6rem;
  margin: 0;
  font-size: .75rem;
}
#tabs {
  display: flex;
  gap: .2rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
#tabs .tab {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  white-space: nowrap;
}
#tabs .tab.on {
  border-color: var(--accent);
}
#tabs .tab-name,
#tabs .tab-close {
  border: 0;
  border-radius: 0;
  padding: .1rem .3rem;
  color: var(--dim);
}
#tabs .tab.on .tab-name {
  color: var(--ink);
}
#tabs .tab.dirty .tab-name::after {
  content: " \2022";
  color: var(--accent);
}
#tabs .tab-close:hover {
  color: var(--ink);
}
#editor {
  min-height: 0;
  overflow: hidden;
  touch-action: pan-x pan-y;
}
#editor-empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--dim);
  font-size: .8125rem;
  overflow: auto;
}
#editor,
#editor-empty {
  grid-row: 2;
  grid-column: 1;
}
#frame {
  border: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  touch-action: pan-x pan-y;
}
#shell {
  grid-template-rows: minmax(0, 1fr);
  margin-bottom: 0.5rem;
}
#terminal {
  min-height: 0;
  padding: .4rem .5rem;
  overflow: hidden;
  touch-action: pan-x pan-y;
}
#panebar {
  display: none;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
#panebar button {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  border-top: 2px solid transparent;
  background: transparent;
  color: var(--dim);
  font-size: .8125rem;
  min-height: 2.2rem;
  padding: .5rem .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#panebar button[aria-pressed=true] {
  color: var(--ink);
  border-top-color: var(--accent);
  background: #ffffff0a;
}
#panebar button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  max-width: min(34rem, 92vw);
  max-height: min(90dvh, 46rem);
  overflow: hidden;
}
dialog::backdrop {
  background: #000a;
}
dialog form {
  display: grid;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  max-height: inherit;
  overflow-y: auto;
}
dialog h2 {
  margin: 0;
  font-size: .9375rem;
}
dialog .note {
  margin: -.4rem 0 0;
  color: var(--dim);
  font-size: .75rem;
}
dialog .note + .note {
  margin-top: -.6rem;
}
dialog .note a {
  color: var(--accent);
}
dialog label {
  display: grid;
  gap: .2rem;
  font-size: .8125rem;
}
dialog label > span {
  color: var(--dim);
  font-size: .75rem;
}
dialog label small {
  color: var(--dim);
  font-size: .6875rem;
  line-height: 1.4;
}
dialog label.flag {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .5rem;
}
dialog label.flag > span {
  color: var(--ink);
  font-size: .8125rem;
}
dialog input[type=text],
dialog textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .3rem .45rem;
  font:
    .8125rem/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  width: 100%;
  resize: vertical;
}
dialog code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--ink);
}
dialog .choices {
  display: grid;
  gap: .5rem;
}
dialog .choices[hidden] {
  display: none;
}
dialog h3 {
  margin: 0;
  font-size: .75rem;
  font-weight: 500;
  color: var(--dim);
}
dialog .choice {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .5rem;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
dialog .choice:hover {
  border-color: var(--dim);
}
dialog .choice:has(input[type=radio]:checked) {
  border-color: var(--accent);
}
dialog .choice > span {
  display: grid;
  gap: .2rem;
}
dialog .choice strong {
  font-weight: 500;
}
dialog .choice input[type=file] {
  font-size: .75rem;
  color: var(--dim);
  margin-top: .15rem;
}
dialog .choice:not(:has(input[type=radio]:checked)) input[type=file] {
  display: none;
}
dialog .projects {
  display: grid;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
}
dialog .project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .1rem .5rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
dialog .project[data-current] {
  border-color: var(--accent);
}
dialog .project .project-name {
  font:
    .8125rem/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  padding: .1rem .25rem;
  width: 100%;
}
dialog .project .project-name:hover {
  border-color: var(--line);
}
dialog .project .project-name:focus {
  background: var(--bg);
  border-color: var(--accent);
  outline: none;
}
dialog .project .project-what {
  grid-column: 1;
  color: var(--dim);
  font-size: .6875rem;
  padding-left: .35rem;
}
dialog .project .project-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  gap: .35rem;
}
dialog .project .project-actions button {
  padding: .2rem .6rem;
  font-size: .75rem;
}
dialog .project .project-actions .danger {
  color: #ff8a80;
}
dialog footer {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  position: sticky;
  bottom: -1.1rem;
  margin: 0 -1.2rem -1.1rem;
  padding: .7rem 1.2rem 1.1rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
dialog footer button {
  padding: .3rem .8rem;
}
dialog footer button[value=apply],
dialog footer button[value=create] {
  border-color: var(--accent);
  color: var(--accent);
}
dialog[data-mode=boot] footer button[value=export],
dialog[data-mode=boot] footer button[value=cancel] {
  display: none;
}
dialog footer .danger {
  margin-left: auto;
  color: #ff8a80;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  transition: opacity .26s ease;
}
#loading[data-mode=busy] {
  background: #101014d0;
  backdrop-filter: blur(2px);
}
#loading[data-state=done] {
  opacity: 0;
  pointer-events: none;
}
#loading[hidden] {
  display: none;
}
.loading-card {
  width: min(30rem, 100%);
  display: grid;
  justify-items: center;
  gap: .55rem;
  text-align: center;
}
.loading-mark {
  margin: 0 0 .2rem;
  line-height: 0;
}
.loading-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.loading-lede {
  margin: 0;
  color: var(--dim);
  font-size: .8125rem;
  min-height: 2.4em;
}
#loading[data-state=failed] .loading-lede {
  color: #ff8a80;
}
.loading-steps {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  justify-items: start;
  text-align: left;
  font-size: .8125rem;
  width: 100%;
  max-width: 24rem;
}
.loading-steps li {
  display: grid;
  grid-template-columns: 1rem auto 1fr auto;
  align-items: baseline;
  gap: .5rem;
  width: 100%;
  color: var(--dim);
}
.loading-steps li[data-state=doing] {
  color: var(--ink);
}
.loading-steps li::before {
  content: "";
  width: .8em;
  height: .8em;
  align-self: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  box-sizing: border-box;
}
.loading-steps li[data-state=doing]::before {
  border-color: var(--line);
  border-top-color: var(--accent);
  animation: loading-spin .7s linear infinite;
}
.loading-steps li[data-state=done]::before {
  content: "\2713";
  border: 0;
  width: auto;
  color: #71d08c;
  font-size: .75rem;
  line-height: 1;
}
.loading-steps li[data-state=failed]::before {
  content: "\2715";
  border: 0;
  width: auto;
  color: #ff8a80;
  font-size: .75rem;
  line-height: 1;
}
.loading-how {
  color: var(--dim);
  font-size: .75rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loading-clock {
  color: var(--dim);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.loading-bar {
  width: 100%;
  max-width: 24rem;
  height: 3px;
  margin-top: .6rem;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.loading-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .2s ease;
}
#loading[data-state=failed] .loading-bar {
  display: none;
}
.loading-bar[data-at=unknown] > i {
  width: 34%;
  transition: none;
  animation: loading-sweep 1.4s ease-in-out infinite;
}
.loading-note {
  margin: .3rem 0 0;
  color: var(--dim);
  font-size: .6875rem;
  line-height: 1.5;
  max-width: 24rem;
}
.loading-again,
.loading-action {
  margin-top: .5rem;
  padding: .3rem .9rem;
}
.loading-action {
  margin-left: .4rem;
  color: var(--dim);
}
.loading-action:disabled {
  opacity: .6;
}
.loading-speech {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#loading[data-mode=busy] .loading-mark,
#loading[data-mode=busy] .loading-steps {
  display: none;
}
@keyframes loading-spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes loading-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(295%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-steps li[data-state=doing]::before {
    animation: none;
  }
  .loading-bar[data-at=unknown] > i {
    width: 100%;
    animation: loading-breathe 2.4s ease-in-out infinite;
  }
}
@keyframes loading-breathe {
  0%, 100% {
    opacity: .18;
  }
  50% {
    opacity: .5;
  }
}
@media (max-width: 45rem) {
  :root {
    --ui: 1.25;
  }
  html {
    overscroll-behavior: none;
  }
  body {
    height: var(--viewport-height, 100%);
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: clip;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: clip;
  }
  #work,
  #panes {
    display: contents;
  }
  #explorer {
    --slot: 0;
  }
  #edit {
    --slot: 1;
  }
  #shell {
    --slot: 2;
    margin-bottom: 0;
  }
  #preview {
    --slot: 3;
  }
  #explorer,
  #edit,
  #preview,
  #shell {
    grid-row: 1;
    grid-column: 1;
    transform: translateX(calc((var(--slot) - var(--rail, 0)) * 100%));
    transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  }
  body[data-settling] #explorer,
  body[data-settling] #edit,
  body[data-settling] #preview,
  body[data-settling] #shell {
    transition: none;
  }
  .split {
    display: none;
  }
  #panebar {
    display: flex;
  }
  .bar {
    min-height: 2.4rem;
    padding: .35rem .5rem;
  }
  .bar button,
  .bar .label {
    min-height: 2.2rem;
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .bar .acts button {
    min-width: 2.2rem;
  }
  #tabs .tab-name,
  #tabs .tab-close {
    min-height: 2.2rem;
    padding: .3rem .5rem;
  }
  #tree .row-name {
    padding: .7em 0;
  }
  #tree .row-act {
    min-width: 2.2rem;
    min-height: 2.2rem;
    visibility: visible;
  }
}
@media (max-width: 45rem) and (prefers-reduced-motion: reduce) {
  #explorer,
  #edit,
  #preview,
  #shell {
    transition: none;
  }
}
/*! Bundled license information:

@xterm/xterm/css/xterm.css:
  (**
   * Copyright (c) 2014 The xterm.js authors. All rights reserved.
   * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
   * https://github.com/chjj/term.js
   * @license MIT
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   *
   * Originally forked from (with the author's permission):
   *   Fabrice Bellard's javascript vt100 for jslinux:
   *   http://bellard.org/jslinux/
   *   Copyright (c) 2011 Fabrice Bellard
   *   The original design remains. The terminal itself
   *   has been extended to include xterm CSI codes, among
   *   other features.
   *)
*/
