*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
}

ol,
ul {
  list-style: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font-family: inherit;
}

button {
  background-color: transparent;
  cursor: pointer;
}

:root {
  --color-font: #ededed;
  --color-muted: #767676;
  --color-group-header-font: #8a8a8a;
  --color-icon: #a0a0a0;
  --color-input-background: #101010;
  --color-panel-background: #1b1b1b;
  --color-panel-header-background: #232323;
  --color-panel-group-border: #262626;
  --color-application-menu-border: #262626;
  --color-body-background: #131313;
  --color-shadow: #000000;
  --color-item-selected: #232323;
  --color-accent: #00e5ff;
  --color-error: #ff6b6b;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: var(--color-font);
  font-family: "Rubik Iso", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  cursor: pointer;
  user-select: none;
}

.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-panel-background);
  border-radius: 0 8px 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.ApplicationMenu-Section + .ApplicationMenu-Section {
  border-top: 1px solid var(--color-application-menu-border);
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-font);
  text-decoration: none;
}
.ApplicationMenu-Link-Description {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-group-header-font);
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.Panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  flex-shrink: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-CloseIcon:hover svg {
  visibility: visible;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--color-panel-header-background);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel > .DataInput,
.Panel > .ActionList,
.Panel > .ExportPanel,
.Panel > .Guide {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel[data-panel=config] .DataInput {
  height: 340px;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.ChildPanel,
.GrandChildPanel {
  position: fixed;
  display: none;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 8px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ChildPanel > * + *,
.GrandChildPanel > * + * {
  border-top: 1px solid var(--color-panel-group-border);
}
.ChildPanel[data-open],
.GrandChildPanel[data-open] {
  display: block;
}

.Root[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.Root[data-fixed] .Panel-Header {
  cursor: default;
}

.DataInput {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 200px;
  height: 200px;
  padding: 2px;
}
.DataInput textarea {
  flex: 1 1 auto;
  min-height: 0;
  width: 380px;
  padding: 8px;
  background: var(--color-input-background);
  border-radius: 2px 2px 7px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  tab-size: 2;
  color: var(--color-font);
  resize: none;
}
.DataInput textarea:focus {
  outline: none;
}

.DataInfo {
  padding: 6px 18px 12px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-group-header-font);
}

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.ActionList-Row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ActionList-Row[data-selected] {
  color: var(--color-font);
}

.AxisGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 18px 20px;
  padding: 20px 22px;
}
.AxisGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
}
.AxisGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}
.AxisGrid-Row-Value {
  max-width: 240px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
  word-break: break-all;
}

.SwatchList {
  justify-self: start;
  display: flex;
  gap: 8px;
}
.SwatchList-Item {
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-panel-group-border);
  border-radius: 6px;
  cursor: pointer;
}
.SwatchList-Item[data-selected] {
  border: 2px solid var(--color-accent);
}

.RangeInput {
  justify-self: start;
  width: 180px;
  accent-color: var(--color-accent);
}

.Diagram {
  padding: 20px 22px;
}
.Diagram-Row {
  display: flex;
  justify-content: center;
}
.Diagram-Column {
  position: relative;
  overflow: hidden;
}
.Diagram-Padding {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.Diagram-Cells {
  position: absolute;
  display: flex;
  flex-direction: column;
}
.Diagram-Cell {
  display: flex;
  padding: 2px 6px;
  overflow: hidden;
  cursor: pointer;
}
.Diagram-Cell[data-selected] {
  background: var(--color-item-selected);
}
.Diagram-Cell-Label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.5;
}
.Diagram-Cell-Height {
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.5;
}
.Diagram-Cell-Badge {
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.5;
}
.Diagram-Gap {
  align-self: center;
  margin-left: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
  writing-mode: vertical-rl;
}

.Status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
}
.Status-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-group-header-font);
}
.Status-Row[data-total] {
  color: var(--color-font);
}
.Status-Value {
  color: var(--color-font);
}
.Status-Sum {
  color: var(--color-font);
}
.Status-Sum[data-error] {
  color: var(--color-error);
}
.Status-Warning {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-error);
}
.Status-BadgeList {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.Status-Badge {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-group-header-font);
}

.ExportPanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 18px;
}
.ExportPanel-Detail {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-group-header-font);
}
.ExportPanel-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  background: var(--color-input-background);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
}
.ExportPanel-Button[data-busy] {
  color: var(--color-muted);
  cursor: default;
}
.ExportPanel-Button[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.ExportPanel-Progress {
  overflow: hidden;
  height: 3px;
  border-radius: 2px;
  background: var(--color-input-background);
}
.ExportPanel-Progress-Bar {
  height: 100%;
  background: var(--color-accent);
}

.Guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 16px 18px;
}
.Guide h1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-font);
}
.Guide p {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}

.PlayControl {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 32px;
}
.PlayControl-Item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PlayControl-Item svg {
  width: 12px;
  height: 12px;
}
.PlayControl-Item[data-playing] {
  color: var(--color-font);
}
.PlayControl-Item[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

body {
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.Root {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.Board {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.Board-Canvas {
  display: block;
  flex-shrink: 0;
  width: min(1100px, 100vw - 96px);
  height: auto;
  border-radius: 10px;
}