@charset "UTF-8";
@import "ast.css";
:root {
  --highlight-color: #16C;
  --secondary-color: #ccc;
  --interface-background: #EEE;
  --interface-text: rgba(0,0,0,.8);
  --border-color: rgba(0,0,0,.25);
  --background-gradient: linear-gradient(#aaa9,#ccc9);
  --blur: blur(3px);
  --dragOffset: -10px;
  --dragWidth: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --highlight-color: #16C;
    --secondary-color: #026;
    --interface-background: #000;
    --interface-text: rgba(255,255,255,.8);
    --border-color: rgba(125,125,125,.3);
    --background-gradient: linear-gradient(#5559,#8889);
  }
}
@keyframes pulse {
  0% {
    background: transparent;
  }
  1% {
    background: transparent;
  }
  99% {
    background: transparent;
  }
  100% {
    background: transparent;
  }
}
.scene.graph {
  font-family: Arial;
  color: var(--interface-text);
  font-size: 0.8em;
}
.scene.graph details[open] {
  background: var(--interface-background);
  border-bottom: 1px solid var(--highlight-color);
}
.scene.graph details[open] summary {
  background: var(--highlight-color);
  color: var(--interface-background);
}
.scene.graph summary {
  padding: 5px 8px;
  background: var(--background-gradient);
  font-weight: bold;
}
.scene.graph ol, .scene.graph ul {
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: scroll;
}
.scene.graph ol li, .scene.graph ul li {
  padding: 5px 8px;
  transition: all 0.3s;
  border-bottom: 0.5px solid var(--border-color);
  font-weight: 400;
}
.scene.graph ol li.drag, .scene.graph ul li.drag {
  border-left: 0.5rem solid var(--highlight-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}
.scene.graph ol li button, .scene.graph ul li button {
  margin: 0 4px;
  padding: 0;
  border: none;
  font-size: 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

* {
  box-sizing: border-box;
}

.m-100 {
  width: 100%;
}

.m-50 {
  width: 50%;
}

body {
  background: #555;
  font-size: 14px;
  transition: background 0.3s;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.tools canvas {
  background: var(--background-gradient);
}

canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.canvasHolder > div {
  position: relative;
}
.canvasHolder > div textarea {
  position: absolute;
  resize: none;
  color: transparent;
  padding: 0 4px 0 0;
  background: none;
  box-sizing: border-box;
  transform: translateX(1.5px) translateY(-1.75px);
  display: none;
  border: none;
}
.vector .canvasHolder canvas {
  cursor: crosshair;
}

.viewer canvas {
  width: 100%;
  cursor: pointer;
}

.drag-palette.stacks .contents {
  overflow: scroll;
}

.tableView {
  width: 100%;
  background: var(--interface-background);
  border-spacing: 0;
}
.tableView tr {
  width: 100%;
}
.tableView tr td {
  color: var(--interface-text);
  font-family: Arial;
}
.tableView tr td button {
  margin: 0px 0px;
}
.tableView .title {
  border: none;
  background: none;
  font-weight: bold;
  text-align: left;
  width: 100%;
  padding: 4px;
  display: block;
}
.tableView .title:hover {
  background: var(--highlight-color);
}
.tableView tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.05);
}

.main-menu {
  cursor: default;
  user-select: none;
  background: var(--interface-background);
  position: relative;
  z-index: 100;
}
.main-menu .status {
  position: absolute;
  right: 5px;
  top: 9px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  transition: all 0.3s;
}
.main-menu .menu-bar {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: var(--interface-background);
  color: var(--interface-text);
}
.main-menu hr {
  border: 0.5px solid var(--border-color);
  border-bottom: none;
}
.main-menu ul {
  background: var(--interface-background);
  margin: 0;
  padding: 0;
  font-family: Arial;
  display: flex;
  list-style: none;
}
.main-menu li.menu.hide {
  display: none;
}
.main-menu li {
  padding: 6px 10px;
  outline: none;
  position: relative;
}
.main-menu li > img {
  vertical-align: -2px;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.main-menu li:hover {
  background: var(--highlight-color);
  color: var(--interface-text);
}
.main-menu li:hover .menu-items {
  display: flex;
  flex-flow: wrap;
  z-index: 79;
}
.main-menu li:hover .menu-items:before {
  content: " ";
  position: absolute;
  left: -5px;
  right: -5px;
  top: -5px;
  bottom: -10px;
  z-index: 1;
}
.main-menu label, .main-menu button, .main-menu fieldset {
  position: relative;
  z-index: 1;
}

.menu-items {
  border-radius: 5px;
  display: none;
  top: 29px;
  margin-left: -10px;
  background: var(--interface-background);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  position: absolute;
  background: var(--interface-background);
  min-width: 128px;
  color: var(--interface-text);
  padding: 2px;
}
.menu-items hr {
  margin: 2px 0;
  width: 100%;
}
.menu-items input {
  display: none;
}
.menu-items button, .menu-items label {
  position: relative;
  width: 100%;
  text-align: left;
  appearance: none;
  border: none;
  background: none;
  padding: 3px 10px;
  font-size: 14px;
  border-radius: 4px;
  margin: 2px;
  color: inherit;
  white-space: pre;
}
.menu-items button[disabled], .menu-items label[disabled] {
  color: rgba(150, 150, 150, 0.5);
  background: none;
}
.menu-items button:hover, .menu-items button:focus {
  color: var(--interface-background);
  background: var(--highlight-color);
}
.menu-items button:active {
  animation: pulse 0.1s 3;
}
.menu-items label:hover, .menu-items label:focus {
  color: var(--interface-text);
  background: var(--highlight-color);
}
.menu-items button:hover[disabled], .menu-items button:focus[disabled] {
  color: rgba(150, 150, 150, 0.5);
  background: none;
}
.menu-items label:hover[disabled], .menu-items label:focus[disabled] {
  color: rgba(150, 150, 150, 0.5);
  background: none;
}
.menu-items button.active, .menu-items label.active {
  font-weight: bold;
}
.menu-items button.active:before, .menu-items label.active:before {
  content: "✓ ";
}
.menu-items button .shortcut, .menu-items label .shortcut {
  position: absolute;
  right: 5px;
  top: 4px;
  opacity: 0.5;
  font-size: 12px;
}
.menu-items button[name=Bold], .menu-items label[name=Bold] {
  font-weight: bold;
}
.menu-items button[name=Italic], .menu-items label[name=Italic] {
  font-style: Italic;
}
.menu-items button[name=Outline], .menu-items label[name=Outline] {
  -webkit-text-stroke: 1px black;
  font-weight: bold;
  -webkit-text-fill-color: white;
}
.menu-items button[name=Shadow], .menu-items label[name=Shadow] {
  font-weight: bold;
  text-shadow: 1px 1px 0 #999;
}
.menu-items button span {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 0.8em;
  opacity: 0.5;
}

.modal .inputs .fileSelector {
  appearance: none;
  padding: 1rem 0;
  width: 100%;
  border: none;
}

.drag-drop {
  top: 0;
  height: 3rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial;
  color: var(--interface-text);
  transition: all 0.3s;
  cursor: copy;
  border: 1px dashed rgba(150, 150, 150, 0.5);
  background-color: var(--interface-background);
  background-image: repeating-linear-gradient(-45deg, rgba(153, 153, 153, 0.0666666667), rgba(153, 153, 153, 0.0666666667) 5px, rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0) 10px);
}
.drag-drop input {
  display: none;
}
.drag-drop.audio:after {
  content: "Add Audio...";
}
.drag-drop.images:after {
  content: "Add Image...";
}
.drag-drop:hover {
  background-color: var(--highlight-color);
}

body[data-cursor=up] .viewer canvas {
  cursor: zoom-in;
}

body[data-cursor=blank] .viewer canvas {
  cursor: none;
}

body[data-cursor=watch] .viewer canvas {
  cursor: wait;
}

body[data-cursor=cross] .viewer canvas {
  cursor: crosshair;
}

body[data-cursor=ibeam] .viewer canvas {
  cursor: text;
}

body[data-cursor=arrow] .viewer canvas {
  cursor: default;
}

body[data-cursor=hand] .viewer canvas {
  cursor: pointer;
}

body.text .canvasHolder canvas {
  cursor: text;
}

body.arrow .viewer canvas {
  cursor: default;
}

.drag-palette .contents.consoleView {
  padding: 8px;
  font-size: 12px;
  font-family: monospace;
  line-height: 1.3em;
  overflow: scroll;
  color: var(--interface-text);
  max-height: initial;
  background: var(--interface-background);
  white-space: pre-wrap;
  line-break: anywhere;
}
.drag-palette .contents.consoleView .bold {
  font-weight: 800;
}
.drag-palette .contents.consoleView .italic {
  font-style: italic;
}
.drag-palette .contents.consoleView .warning {
  color: #fd2;
}
.drag-palette .contents.consoleView .error {
  color: #f00;
}
.drag-palette .contents.consoleView .success {
  color: #7f0;
}
.drag-palette .contents.consoleView .info {
  color: #3af;
}

.drag-palette .contents.dataView {
  font-family: monospace;
  font-size: 11px;
  color: var(--interface-text);
  background: var(--interface-background);
  padding: 0.5rem;
  overflow: scroll;
  max-width: 640px;
  max-height: initial;
}
.drag-palette .contents.dataView .key {
  color: var(--highlight-color);
  font-weight: 600;
}
.drag-palette .contents.dataView .val {
  margin-left: 5px;
  color: var(--interface-text);
  max-height: 2em;
  overflow: hidden;
  word-break: pre;
}
.drag-palette .contents.dataView .global {
  margin-left: 5px;
  color: var(--interface-text);
  max-height: 2em;
  font-weight: 800;
  overflow: hidden;
  white-space: pre-wrap;
}

.drag-palette {
  touch-action: pan-x pan-y;
  -webkit-user-select: none;
  position: fixed;
  display: flex;
  background: var(--interface-background);
  border: 0.5px solid var(--border-color);
  transition: transform 0.1s;
  image-rendering: pixelated;
  border-radius: 10px 10px 4px 4px;
  flex-flow: column;
  width: max-content;
  user-select: none;
  min-width: 48px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}
.drag-palette .ui-bar {
  background: var(--interface-background);
  padding: 0 5px;
  font-family: Arial;
  font-size: 12px;
}
.drag-palette .ui-bar label {
  margin-right: 1rem;
  color: var(--interface-text);
}
.drag-palette .divider {
  border-top: 1px solid var(--border-color);
  height: 10px;
  background-color: #ddd;
  background-image: repeating-linear-gradient(180deg, #ccc, #eee);
  cursor: ns-resize;
}
.drag-palette .timelineContainer {
  max-width: 100%;
  overflow: scroll;
  background: #eee;
  padding: 5px;
}
.drag-palette .info-panel, .drag-palette .contents {
  background: var(--interface-background);
}
.drag-palette .info-panel {
  padding: 3px;
  font-family: arial;
  display: flex;
  border-bottom: 1px solid #999;
  border-top: 1px dotted #ccc;
}
.drag-palette .info-panel label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 3px;
  color: var(--interface-text);
}
.drag-palette .info-panel label span {
  margin-right: 5px;
}
.drag-palette .info-panel input {
  width: 100%;
  margin-left: 3px;
}
.drag-palette .info-panel input[type=checkbox] {
  width: auto;
}
.drag-palette .info-panel button {
  margin: 0 0 0 3px;
}
.drag-palette .info-panel button:disabled {
  opacity: 0.3;
}
.drag-palette .info-panel .slider {
  width: 200px;
}
.drag-palette.mini .title {
  display: none;
}
.drag-palette canvas {
  display: block;
}
.drag-palette.drag {
  cursor: move;
  z-index: 101 !important;
}
.drag-palette.drag:before {
  content: " ";
  position: absolute;
  top: -40px;
  height: 40px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0);
  display: block;
}
.drag-palette.active {
  box-shadow: 2px 10px 20px rgba(0, 0, 0, 0.3), 0px 5px 10px rgba(0, 0, 0, 0.1);
}
.drag-palette.hide {
  display: none;
}
.drag-palette .slider {
  width: 100%;
  display: flex;
  position: relative;
  box-sizing: border-box;
  flex-flow: column;
}
.drag-palette .slider input {
  box-sizing: border-box;
  border-radius: 10px;
  border: 0.5px solid var(--border-color);
  outline: none;
  -webkit-appearance: none;
}
.drag-palette .slider input[type=range]::-webkit-slider-thumb {
  background: var(--highlight-color);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: ew-resize;
  -webkit-appearance: none;
}
.drag-palette .slider span {
  font-size: 10px;
  font-family: Arial;
  color: var(--interface-text);
  position: relative;
  margin-right: 0 !important;
}
.drag-palette .handle {
  min-height: 20px;
  text-align: center;
}
.drag-palette .handle span {
  display: inline-block;
  padding-top: 3px;
  margin: 0 0 0 4px;
  font-size: 12px;
  font-family: Arial;
  color: var(--interface-text);
}
.drag-palette .handle .close {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--secondary-color);
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  height: 11px;
  width: 11px;
  border-radius: 50%;
  transition: all 0.5s;
}
.drag-palette .handle .close:hover {
  background: #d11;
}
.drag-palette .handle .minimize {
  position: absolute;
  top: 4px;
  left: 20px;
  background: var(--secondary-color);
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  height: 11px;
  width: 11px;
  border-radius: 50%;
  transition: all 0.5s;
}
.drag-palette .handle .minimize:hover {
  background: #fe2;
}
.drag-palette .contents {
  min-height: 32px;
  border-radius: 0px 0px 4px 4px;
  overflow: auto;
  min-width: 100%;
  max-width: 100%;
  position: relative;
}
.drag-palette .dragRight, .drag-palette .dragLeft {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--dragOffset);
  cursor: ew-resize;
  width: var(--dragWidth);
}
.drag-palette .dragLeft {
  right: auto;
  left: var(--dragOffset);
}
.drag-palette .dragBottom, .drag-palette .dragTop {
  position: absolute;
  bottom: var(--dragOffset);
  right: 0;
  left: 0;
  cursor: ns-resize;
  height: var(--dragWidth);
}
.drag-palette .dragTop {
  bottom: auto;
  top: var(--dragOffset);
}
.drag-palette .resizer {
  position: absolute;
  bottom: -1px;
  right: -1px;
  height: var(--dragWidth);
  width: var(--dragWidth);
  cursor: nwse-resize;
}
.drag-palette .resizer:after {
  content: " ";
  position: absolute;
  right: 1px;
  bottom: 1px;
  border: 3px solid var(--secondary-color);
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-right-radius: 3px;
  transition: border 0.2s;
}
.drag-palette .resizer:hover:after {
  border: 5px solid var(--interface-text);
  border-top-color: transparent;
  border-left-color: transparent;
}

.drag-palette.script .editor {
  height: 100%;
  position: relative !important;
  border-radius: 4px;
}
.drag-palette.script .editor textarea {
  height: 100%;
  background-color: transparent !important;
  resize: none;
  padding-bottom: 2rem;
}
.drag-palette.script .contents {
  display: flex;
  flex-flow: column;
}
.drag-palette.script .contents .toolbar {
  border-bottom: 1px solid var(--interface-text);
}
.drag-palette.script .contents .toolbar input[type=number] {
  width: 40px;
}
.drag-palette.script .contents .codeBlock {
  flex-grow: 1;
}

.drag-palette.draw {
  border-radius: 10px 10px 0 0;
}
.drag-palette.draw .contents {
  border-radius: 0;
}

.drag-palette.message .contents {
  display: flex;
  align-items: stretch;
  max-height: 32px;
}
.drag-palette.message input {
  border: none;
  background: none;
  outline: none;
  border-bottom: 1px dotted #999;
  color: var(--interface-text);
  margin: 5px;
  width: 100%;
}

.drag-palette button {
  color: var(--interface-text);
  background: var(--interface-background);
  border: 1px solid var(--secondary-color);
  margin: 5px;
  border-radius: 5px;
}

.zoom-in .canvasHolder {
  cursor: zoom-in;
}

div.dropdown {
  position: absolute;
  top: 1px;
  right: 0px;
  height: 14px;
  width: 14px;
  color: var(--interface-text);
}
div.dropdown:hover {
  color: var(--highlight-color);
}
div.dropdown:before {
  content: "☰";
  position: absolute;
  top: 0;
  font-size: 16px;
  right: 6px;
  line-height: 1em;
}
div.dropdown:hover:after {
  content: " ";
  position: absolute;
  top: 0px;
  bottom: -10px;
  left: -1rem;
  right: 0;
}
div.dropdown:hover .menu-items {
  position: absolute;
  right: 5px;
  display: block;
  top: 2em;
  text-align: right;
  font-family: Arial;
  font-size: 11px;
  width: auto;
  white-space: nowrap;
  min-width: 80px;
  z-index: 100;
  cursor: default;
}
div.dropdown:hover .menu-items:before {
  content: " ";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 1em;
}
div.dropdown:hover .menu-items .group + .group {
  border-top: 1px solid var(--border-color);
  margin-top: 2px;
  padding-top: 2px;
}
div.dropdown:hover .menu-items .menu-item {
  margin: 1px;
  padding: 3px 6px;
  display: block;
  border-radius: 4px;
  color: var(--interface-text);
}
div.dropdown:hover .menu-items .menu-item:hover, div.dropdown:hover .menu-items .menu-item:focus {
  color: var(--interface-background);
  background: var(--highlight-color);
}
div.dropdown:hover .menu-items .menu-item:active {
  animation: pulse 0.5s 2;
}

@keyframes pulse {
  0% {
    background: var(--highlight-color);
  }
  50% {
    background: transparent;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.group {
  display: flex;
  flex-wrap: wrap;
}
.group:after {
  content: " ";
  display: table;
  clear: both;
}
.group > .col {
  display: flex;
  letter-spacing: normal;
  word-spacing: normal;
}
.group > .col img {
  max-width: 100%;
  height: auto;
}

.modal {
  background: rgba(0, 0, 0, 0.3);
  font-family: Arial;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal fieldset {
  background: var(--interface-background);
  border: 1px solid var(--interface-background);
  border-radius: 8px;
  color: var(--interface-text);
  padding: 1rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  min-width: 220px;
  position: relative;
}
.modal fieldset legend {
  width: 100%;
  text-align: center;
  position: absolute;
  display: none;
}
.modal fieldset .message {
  text-align: left;
}
.modal.show {
  display: flex;
  z-index: 101;
  animation: fadein 0.3s;
}
.modal button {
  border: 1px solid var(--highlight-color);
  border-radius: 5px;
  padding: 3px 10px;
  position: relative;
  background: var(--interface-background);
  color: var(--highlight-color);
  min-width: 60px;
}
.modal button:hover, .modal button:focus {
  background: var(--highlight-color);
  color: var(--interface-background);
}
.modal button:before {
  content: " ";
  padding: 1px;
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 8px;
}
.modal .button_bar {
  margin-top: 1rem;
  text-align: right;
  width: 100%;
}
.modal .button_bar button {
  margin-left: 10px;
  margin-top: 10px;
}
.modal .button_bar button:first-child {
  margin-left: 0;
}
.modal .button_bar button:last-child {
  font-weight: bold;
}
.modal .button_bar button:last-child:before {
  border: 2px solid var(--highlight-color);
}
.modal .inputs span {
  word-break: break-word;
  white-space: pre-wrap;
}
.modal .inputs input {
  color: var(--interface-text);
  font-size: 14px;
  background: none;
  border: 1px solid currentColor;
}
.modal .inputs input[readonly] {
  border: none !important;
  background: none;
  padding-left: 0 !important;
}
.modal.window fieldset {
  padding: 1rem 2px;
  padding-top: 1.5rem;
  max-width: 600px;
  width: 100%;
}
.modal.window.Script .inputs {
  padding: 0;
  position: relative;
}
.modal.window.Script fieldset {
  max-width: fit-content;
}
.modal.window.Script fieldset .code {
  height: 320px;
  width: 400px;
  box-sizing: border-box;
}
.modal.window.Script fieldset .code code, .modal.window.Script fieldset .code textarea {
  height: 100%;
}
.modal.window.Script fieldset .code textarea {
  background: transparent;
}
.modal.window legend {
  display: block;
  top: 0.3rem;
  font-weight: bold;
}
.modal.window .button_bar {
  padding: 0 1rem;
}
.modal.window .inputs.m-50 label span {
  min-width: 100px;
}
.modal.window .inputs {
  padding: 0.5rem;
  display: flex;
  flex-flow: column;
}
.modal.window .inputs label {
  display: flex;
  align-items: center;
  justify-content: stretch;
  margin-bottom: 5px;
}
.modal.window .inputs label span {
  display: inline-block;
}
.modal.window .inputs label.hidden {
  display: none;
}
.modal.window .inputs label.button {
  display: inline-block;
}
.modal.window .inputs label.code > span {
  display: none;
}
.modal.window .inputs label.code code span {
  margin-right: 0;
}
.modal.window .inputs label.code code div {
  min-height: 1.3em;
}
.modal.window .inputs label.code textarea {
  padding: 0;
  border-radius: 0;
  margin: 0;
  border: none;
}
.modal.window .inputs label > span {
  white-space: nowrap;
  margin-right: 5px;
  width: auto;
}
.modal.window .inputs label input, .modal.window .inputs label select, .modal.window .inputs label textarea {
  width: 100%;
  border: 1px solid var(--secondary-color);
  background-color: var(--interface-background);
  padding: 3px 6px;
  border-radius: 3px;
}
.modal.window .inputs label input[type=file] {
  background: red;
}
.modal.window .inputs label.readonly input {
  border: none;
  background-color: transparent;
}

.canvasHolder > div > textarea.wideMargin {
  box-sizing: border-box;
  padding: 6px 8px 5px;
}

.modal.error .message {
  display: flex;
  align-items: center;
}
.modal.error .message:before {
  content: "⚠";
  margin-right: 1rem;
  font-size: 2rem;
  line-height: 1;
}
.modal.error legend, .modal.prompt legend, .modal.input legend {
  display: none;
}

.modal.input label {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.modal.input label span {
  display: block;
}
.modal.input label input {
  width: 100%;
  border-radius: 3px;
  padding: 5px;
}
.modal.input .button_bar {
  margin-top: 5px;
}

.modal.Link_to fieldset {
  max-width: 320px;
}
.modal.Link_to .inputs {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}

.drag-palette.layers .contents {
  display: flex;
  flex-flow: column;
}
.drag-palette.layers .contents canvas {
  width: 140px;
  border: 2px inset var(--interface-background);
}
.drag-palette.layers .contents .live {
  border: 2px solid var(--highlight-color);
}
.drag-palette.layers input {
  width: 140px;
}

.drag-palette fieldset {
  border: 0.5px solid var(--secondary-color);
  margin: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 5px 0 1px 5px;
  color: var(--interface-text);
  align-items: center;
}
.drag-palette fieldset.justified {
  justify-content: space-between;
  padding-right: 5px;
}
.drag-palette fieldset legend {
  font-size: 10px;
  font-family: Arial;
  font-weight: bold;
}
.drag-palette fieldset select, .drag-palette fieldset input, .drag-palette fieldset button {
  padding: 3px 4px;
  font-size: 12px;
  border-radius: 6px;
  height: 24px;
  border: 1px solid var(--secondary-color);
  vertical-align: baseline;
}
.drag-palette fieldset select, .drag-palette fieldset input {
  margin-bottom: 4px;
}
.drag-palette fieldset input[type=range] {
  padding: 0;
  height: 14px;
}
.drag-palette fieldset button {
  padding: 3px 6px;
  margin: 0.2rem 0.4rem;
  margin-left: 0;
}
.drag-palette fieldset label {
  display: inline-block;
  padding-right: 4px;
}
.drag-palette fieldset label span {
  display: block;
  font-family: Arial;
  font-size: 10px;
  padding: 3px;
  color: var(--interface-text);
}
.drag-palette fieldset label input[type=checkbox] {
  appearance: none;
  visibility: hidden;
  background: var(--highlight-color);
  margin: 0;
  position: absolute;
}
.drag-palette fieldset label input[type=checkbox] + span {
  display: inline-block;
  cursor: pinter;
  padding: 3px 8px;
  border-radius: 1rem;
  transition: all 0.3s;
  margin-bottom: 2px;
}
.drag-palette fieldset label input[type=checkbox]:checked + span {
  background: var(--highlight-color);
  color: var(--interface-background);
}

.drag-palette.tools .contents {
  max-width: 90px;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.drag-palette.tools .contents button {
  padding: 0;
  margin: 0;
  border-radius: 0;
  height: 30px;
  width: 30px;
  transition: all 0.1s;
  background: transparent;
  border: none;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
}
.drag-palette.tools .contents button .icon {
  position: relative;
  top: 1px;
  display: inline-block;
  height: 16px;
  width: 10px;
  background-repeat: no-repeat;
}
.drag-palette.tools .contents button.browse .icon {
  background-position: -48px 0px;
  width: 16px;
  height: 16px;
}
.drag-palette.tools .contents button.field .icon {
  background-position: -48px -27px;
  width: 16px;
  height: 11px;
}
.drag-palette.tools .contents button.button .icon {
  background-position: -48px -16px;
  width: 16px;
  height: 11px;
}
.drag-palette.tools .contents button.pencil .icon {
  background-position: 0 0;
}
.drag-palette.tools .contents button.brush .icon {
  background-position: -10px 0;
}
.drag-palette.tools .contents button.eraser .icon {
  width: 15px;
  height: 12px;
  background-position: 0 -16px;
}
.drag-palette.tools .contents button.line .icon {
  top: 0;
  width: 16px;
  height: 8px;
  background-position: -20px 0px;
}
.drag-palette.tools .contents button.rect .icon {
  width: 16px;
  height: 11px;
  background-position: -20px -8px;
}
.drag-palette.tools .contents button.oval .icon {
  width: 16px;
  height: 11px;
  background-position: -16px -19px;
}
.drag-palette.tools .contents button.polygon .icon {
  width: 16px;
  height: 14px;
  background-position: -32px -19px;
}
.drag-palette.tools .contents button.gear .icon {
  width: 16px;
  height: 14px;
  background-position: -32px -33px;
}
.drag-palette.tools .contents button.roundrect .icon {
  width: 16px;
  height: 11px;
  background-position: -16px -30px;
}
.drag-palette.tools .contents button.select .icon {
  width: 16px;
  height: 13px;
  background-position: -16px -41px;
}
.drag-palette.tools .contents button.airbrush .icon {
  width: 12px;
  height: 16px;
  background-position: -36px 0;
}
.drag-palette.tools .contents button.sprite .icon {
  width: 16px;
  height: 14px;
  background-position: -18px -69px;
}
.drag-palette.tools .contents button.fill .icon {
  width: 16px;
  height: 16px;
  background-position: 0 -28px;
}
.drag-palette.tools .contents button.polyline .icon {
  width: 16px;
  height: 11px;
  background-position: 0 -44px;
}
.drag-palette.tools .contents button.color .icon {
  width: 16px;
  height: 14px;
  background-position: -32px -47px;
}
.drag-palette.tools .contents button.guides .icon {
  width: 16px;
  height: 16px;
  background-position: -16px -54px;
}
.drag-palette.tools .contents button.perspective .icon {
  width: 16px;
  height: 14px;
  background-position: 0 -55px;
}
.drag-palette.tools .contents button.effects .icon {
  width: 16px;
  height: 14px;
  background-position: -48px -38px;
}
.drag-palette.tools .contents button.zoom .icon {
  width: 16px;
  height: 16px;
  background-position: -48px -52px;
}
.drag-palette.tools .contents button.text .icon {
  width: 16px;
  height: 16px;
  background-position: 0 -68px;
}
.drag-palette.tools .contents button div {
  display: none;
}
.drag-palette.tools .contents button.active {
  background: var(--highlight-color);
}
.drag-palette.tools .contents button.active .icon, .drag-palette.tools .contents button:hover .icon {
  opacity: 1;
}

body.background {
  background: #333;
}
body.background .main-menu .menu-bar {
  background-position: center center;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 10%, #fff 10%, #fff 90%, rgba(0, 0, 0, 0) 90%), repeating-linear-gradient(45deg, #fff, #fff 5px, #ccc 5px, #ccc 10px);
}

@media (prefers-color-scheme: dark) {
  .drag-palette.tools .contents .icon {
    filter: invert(0.8);
  }
  body.background {
    background: #222;
  }
  body.background .main-menu .menu-bar {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 10%, #000 10%, #000 90%, rgba(0, 0, 0, 0) 90%), repeating-linear-gradient(45deg, #000, #000 5px, #333 5px, #333 10px);
  }
}
body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: pan-x pan-y;
}

.sideBar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  max-width: 200px;
  padding: 1rem 0;
}
.sideBar .drag-palette {
  max-width: 100%;
  max-height: 10rem;
  position: static;
}
.sideBar .drag-palette.active {
  position: static;
  display: block;
}

.drag-palette .timelineContainer {
  padding-left: 80px;
}

.timelineSidebar {
  position: absolute;
  left: 0;
}

.drag-palette.brushes button {
  width: 40px;
  height: 40px;
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-bottom: 4px;
}
.drag-palette.brushes button canvas {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 600px) {
  .menu-items {
    top: 2.2em;
    left: 0.35em;
  }
  .menu-items button, .menu-items label {
    font-size: 1em;
    white-space: pre;
  }
  .drag-palette .handle {
    font-size: 18px;
    height: 1.4em;
  }
  .drag-palette .handle .close {
    height: 1em;
    width: 1em;
  }
}
.topPanel {
  top: 0px !important;
  z-index: 100 !important;
}

.sidePanel {
  right: 0;
}

.topPanel, .sidePanel {
  border-radius: 0;
  height: 30px;
  background: none;
  border: none;
}
.topPanel .handle, .sidePanel .handle {
  height: 30px;
  background: var(--interface-background);
  padding: 3px 8px 3px 3px;
  border: none;
  transition: all 0.3s;
}
.topPanel .handle .title, .sidePanel .handle .title {
  font-size: 14px;
  display: block;
  position: relative;
  z-index: 101;
}
.topPanel:not(.active), .sidePanel:not(.active) {
  border: none;
}
.topPanel:not(.active) .contents, .topPanel:not(.active) .info-panel, .topPanel:not(.active) .close, .topPanel:not(.active) .dropdown, .topPanel:not(.active) .resizer, .topPanel:not(.active) .dragBottom, .topPanel:not(.active) .dragRight, .sidePanel:not(.active) .contents, .sidePanel:not(.active) .info-panel, .sidePanel:not(.active) .close, .sidePanel:not(.active) .dropdown, .sidePanel:not(.active) .resizer, .sidePanel:not(.active) .dragBottom, .sidePanel:not(.active) .dragRight {
  display: none;
}
.topPanel.active, .sidePanel.active {
  z-index: 100 !important;
  overflow: visibile;
  height: max-content;
  width: auto;
  box-shadow: none;
}
.topPanel.active .handle, .sidePanel.active .handle {
  background: var(--highlight-color);
}
.topPanel.active .contents, .sidePanel.active .contents {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.topPanel.active .close, .sidePanel.active .close {
  display: none;
}

.cast-item {
  padding: 2px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  font-family: arial;
  font-size: 11px;
  transition: all 0.2s;
  border-radius: 3px;
}

.cast-item.active {
  background: var(--highlight-color);
}
.cast-item.active .cast-preview {
  border-color: var(--highlight-color);
}
.cast-item.active .cast-preview .name, .cast-item.active .cast-preview .id {
  border-color: var(--highlight-color);
  background: var(--highlight-color);
  color: var(--interface-background);
}

.cast-preview {
  width: 76px;
  height: 62px;
  border: 1px solid var(--secondary-color);
  border-radius: 2px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  white-space: pre;
  overflow: hidden;
  padding: 0 2px;
  background-color: #f4f4f4;
}
.cast-preview video {
  width: 100%;
}
.cast-preview .id {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 4px 1px 2px;
  background: var(--interface-background);
  border-bottom-right-radius: 2px;
}
.cast-preview .name {
  display: block;
  background: var(--interface-background);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  color: var(--interface-text);
  border-top: 0.5px solid var(--secondary-color);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.filesystem {
  font-family: Helvetica;
  font-size: 12px;
}
.filesystem details {
  background: rgba(238, 238, 238, 0.5333333333);
  padding: 0.2rem 0.4rem;
  width: 100%;
}
.filesystem details + details {
  border-top: none;
}
.filesystem details summary {
  font-weight: bold;
}
.filesystem details .folder-contents {
  background: #fff;
  border: 1px solid #ddd;
  line-height: 1.5em;
  max-height: fit-content;
  overflow: scroll;
  width: 100%;
}
.filesystem details .folder-contents div:nth-child(odd) {
  background: #f4f4f4;
}
.filesystem details .folder-contents .file {
  color: rgba(0, 0, 0, 0.3);
  padding-left: 0.3rem;
}
.filesystem details .folder-contents button.file {
  color: #000;
  background: #fff;
  display: block;
  cursor: pointer;
  border: none;
}
.filesystem details .folder-contents button.file:hover {
  background: var(--highlight-color);
  color: var(--interface-background);
}
.filesystem details .folder-contents button.file::before {
  width: 9px;
  height: 10px;
  display: inline-block;
  margin-right: 5px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAAALBAMAAADM083PAAAAD1BMVEVHcEwAAAAzMzP////k5OSV4h39AAAAAXRSTlMAQObYZgAAAJVJREFUeAGN0AW5A0EMBODMKch8EfCgCtIYKPnX1M5CmY7h35B9vYEcTyT94bd+Lv//ghVuhtMZVYIN+0DQ06rqt8E0RLrFXOK6dKRzqay1IImoyh4RdAfCvSO7hoctSmZCAOloNesUpKCCsbjVx5uIQhGCVQPiwINbxG2Ngsy8hsYDTR9vup4RZ9ek0OMcZ41zjt9uR/nPFXVI6ZMoAAAAAElFTkSuQmCC");
}
.filesystem details .folder-contents button.file.BTFL, .filesystem details .folder-contents button.file.DTFL, .filesystem details .folder-contents button.file.FNDR {
  display: none;
}
.filesystem details .folder-contents button.file.BTFL::before, .filesystem details .folder-contents button.file.DTFL::before, .filesystem details .folder-contents button.file.FNDR::before {
  content: none !important;
}
.filesystem details .folder-contents button.file.ttro::before, .filesystem details .folder-contents button.file.TEXT::before {
  content: " ";
  background-position: 0px 0;
}
.filesystem details .folder-contents button.file.PNTG::before {
  content: " ";
  background-position: -18px 0;
}
.filesystem details .folder-contents button.file.STAK::before {
  content: " ";
  width: 10px;
  background-position: -8px 0;
}

.text-file {
  padding: 1em;
  white-space: break-spaces;
  line-height: 1.25em;
}

.texteditor textarea {
  padding: 0.5em;
}

.texteditor.hide {
  top: -2000px !important;
  left: -2000px !important;
  clip-path: polygon(0% 0%, 0% 0%, 0% 0%);
  display: block;
}

:root {
  --handler-color: #2BCEB1;
  --handler-back: #2BCEB133;
  --handler-hover: #1AB79A;
  --function-color: #9F5AFF;
  --function-back: #9F5AFF33;
  --function-hover: #9652F7;
}

.has-side-bar {
  display: flex;
  padding: 0;
}
.has-side-bar .side-bar, .has-side-bar .details {
  height: 100%;
  overflow: scroll;
  padding: 5px;
}
.has-side-bar .side-bar {
  border-right: 1px solid var(--secondary-color);
  padding-right: 16px;
  min-width: 120px;
  max-width: 50%;
}
.has-side-bar .side-bar .item {
  padding: 5px;
}
.has-side-bar .side-bar .active {
  background: var(--highlight-color);
  color: var(--interface-background);
}
.has-side-bar summary {
  position: relative;
  padding: 4px;
}
.has-side-bar summary span {
  display: inline-block;
}
.has-side-bar .bkgd[open], .has-side-bar .stak[open], .has-side-bar .cd[open] {
  border: 1px solid var(--highlight-color);
  border-radius: 5px;
  padding: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  margin: 2px 1px 1px;
}
.has-side-bar .bkgd[open] > summary, .has-side-bar .stak[open] > summary, .has-side-bar .cd[open] > summary {
  background: var(--highlight-color);
  color: var(--interface-background);
  border-radius: 3px 3px 2px 2px;
}
.has-side-bar .bkgd[open] .parts, .has-side-bar .bkgd[open] .cds, .has-side-bar .stak[open] .parts, .has-side-bar .stak[open] .cds, .has-side-bar .cd[open] .parts, .has-side-bar .cd[open] .cds {
  min-height: 1rem;
  border-radius: 3px;
}
.has-side-bar .hand:not(:empty), .has-side-bar .func:not(:empty) {
  position: relative;
  padding-top: 12px;
  padding-bottom: 2px;
}
.has-side-bar .hand:not(:empty):before, .has-side-bar .func:not(:empty):before {
  position: absolute;
  left: 5px;
  top: 0;
  font-size: 10px;
}
.has-side-bar .hand:not(:empty) button, .has-side-bar .func:not(:empty) button {
  font-size: 0.75rem;
  border: none;
  border-radius: 3px;
  line-height: 1.5em;
  padding: 1px 5px;
  margin: 3px 3px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0.5px 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 -0.5px 1px rgba(255, 255, 255, 0.3333333333);
  transition: all 0.3s;
}
.has-side-bar .hand {
  background: var(--handler-back);
  border-bottom: 1px solid var(--handler-hover);
}
.has-side-bar .hand:before {
  content: "Handlers";
  color: var(--handler-hover);
}
.has-side-bar .hand[data-hand="1"]:before {
  content: "Handler";
}
.has-side-bar .hand button {
  background: var(--handler-color);
}
.has-side-bar .hand button:hover {
  background: var(--handler-hover);
}
.has-side-bar .func {
  background: var(--function-back);
  border-bottom: 1px solid var(--function-hover);
}
.has-side-bar .func:before {
  content: "Functions";
  color: var(--function-hover);
}
.has-side-bar .func[data-func="1"]:before {
  content: "Function";
}
.has-side-bar .func button {
  background: var(--function-color);
}
.has-side-bar .func button:hover {
  background: var(--function-hover);
}
.has-side-bar details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.has-side-bar details > summary::marker, .has-side-bar details > summary::-webkit-details-marker {
  padding-top: 3px;
}
.has-side-bar details.no-scope:not(.has-children) > summary::marker, .has-side-bar details.no-scope:not(.has-children) > summary::-webkit-details-marker {
  display: none;
  content: "";
}
.has-side-bar .script-btn {
  position: absolute;
  right: -3px;
  font-size: 10px;
  top: -3px;
  border: 1px solid var(--interface-text);
  background: var(--interface-background);
  color: var(--interface-text);
  border-radius: 3px;
  padding: 4px 6px;
  line-height: 0.9em;
}

.tree .contents {
  display: flex;
}
.tree .contents .details {
  padding-right: 1rem;
}
.tree .contents .Function {
  border-radius: 8px;
  padding: 3px 5px;
}
.tree .contents .Function .block {
  border: 1px solid var(--highlight-color);
  padding: 4px;
  border-radius: 12px;
}
.tree .contents .Function .name {
  display: inline-block;
  color: var(--interface-text);
  margin-bottom: 4px;
  font-weight: bold;
}
.tree .contents .Command {
  border-radius: 4px;
  margin-bottom: 3px;
  padding: 3px 10px;
}
.tree .contents .Conditional {
  border-radius: 8px;
  border: 1px dashed var(--highlight-color);
  margin-bottom: 6px;
  padding: 3px 9px;
}
.tree .contents .Conditional .if {
  padding: 3px 9px;
  display: inline-block;
}
.tree .contents .Conditional .then {
  border: 1px solid var(--highlight-color);
  padding: 3px;
  border-radius: 6px;
  padding-bottom: 0;
  margin-bottom: 6px;
}
.tree .contents .Conditional .else {
  padding: 3px;
  border-radius: 6px;
  padding-bottom: 0;
}
.tree .contents .Args {
  display: inline-block;
  white-space: nowrap;
  margin-right: 8px;
  font-size: 9px;
}
.tree .contents .Args .name {
  display: none;
}
.tree .contents .Args .Res {
  font-weight: bold;
  border: 1px solid var(--highlight-color);
  min-width: 0.5rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.tree .contents .Args .Res .Node {
  border: none;
}
.tree .contents .String, .tree .contents .Num, .tree .contents .Boolean, .tree .contents .Node {
  display: inline-block;
  white-space: initial;
}
.tree .contents .Repeat {
  border: 1px solid var(--interface-text);
  border-radius: 8px;
  padding: 4px 6px;
  margin-bottom: 2px;
}
.tree .contents .Node {
  display: inline-block;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--highlight-color);
}
.tree .contents .Node .Node {
  border-radius: 4px;
  border: 1px dotted var(--highlight-color);
}
.tree .contents .Chunk {
  display: inline-flex;
  white-space: pre;
}
.tree .contents .Left, .tree .contents .Right, .tree .contents .Op {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.tree .contents .Op {
  font-weight: bold;
  padding: 0 5px;
  border: none;
}
