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

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

html,
body {
  overflow: hidden;
}

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: 0;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

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

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

input[type=file],
input[type=checkbox] {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

:root {
  --color-font: #ededed;
  --color-group-header-font: #9a9a9a;
  --color-icon: #adadad;
  --color-input-border: #a5a5a5;
  --color-input-background: #3c3c3c;
  --color-item-selected: #393939;
  --color-selected: #575757;
  --color-application-menu-border: #393939;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-body-background: #3a3a3a;
  --color-canvas-background: #1a1a1f;
}

.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;
}

.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-group-header-font);
  cursor: pointer;
}
.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;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
}
.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;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-Title[data-end] {
  padding: 0 16px;
}
.Panel-Main {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.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 {
  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[data-open] {
  display: block;
}

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

.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-font);
}

.ZoomControl {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ZoomControl-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}

.RoundNumberInput {
  justify-self: start;
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: var(--color-input-background);
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: 32px;
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
  user-select: text;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

.RoundStepperInput {
  justify-self: start;
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: var(--color-input-background);
  overflow: hidden;
}
.RoundStepperInput-Previous, .RoundStepperInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundStepperInput-Track {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0 4px;
}
.RoundStepperInput-Option {
  grid-area: 1/1;
  visibility: hidden;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.RoundStepperInput-Option[data-selected] {
  visibility: visible;
}

.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-font);
  white-space: nowrap;
  cursor: pointer;
}
.ActionList-Row[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

.LayerList {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
}
.LayerList-Empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 12px;
  color: var(--color-group-header-font);
}

.LayerItem {
  display: flex;
  align-items: center;
  height: 32px;
  border-radius: 2px;
  cursor: pointer;
}
.LayerItem[data-selected] {
  background-color: var(--color-item-selected);
}
.LayerItem-Visible {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-icon);
  cursor: pointer;
}
.LayerItem-Visible[data-hidden] {
  opacity: 0.4;
}
.LayerItem-Name {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
}
.LayerItem-Remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 260px;
  padding: 16px 18px;
  user-select: text;
}
.TextBlock h1 {
  color: var(--color-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}
.TextBlock p {
  color: var(--color-font);
  font-size: 13px;
  line-height: 21px;
}

.Root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  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;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.Root canvas {
  display: block;
}

.Stage {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: auto;
  padding: 32px;
}
.Stage[data-file-over] {
  outline: 2px dashed var(--color-input-border);
  outline-offset: -16px;
}
.Stage[data-empty] .CanvasWrap {
  display: none;
}
.Stage[data-empty] .Placeholder {
  display: flex;
}

.Placeholder {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 480px;
  height: 480px;
  margin: auto;
  border: 1px dotted var(--color-group-header-font);
  border-radius: 24px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-group-header-font);
  text-align: center;
  cursor: pointer;
}

.CanvasWrap {
  position: relative;
  flex-shrink: 0;
  margin: auto;
  line-height: 0;
}

.Canvas {
  background: var(--color-canvas-background);
}

.Overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  cursor: crosshair;
  touch-action: none;
}

.Dimension {
  position: absolute;
  padding: 3px 7px;
  background: var(--color-selected);
  color: var(--color-font);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-100%, -100%) translateY(-6px);
  transition: opacity 0.1s;
}
.Dimension[data-visible] {
  opacity: 1;
}
