*,
: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: #3a3a3a;
  color: #ededed;
  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;
}

.TierMaker {
  --color-font: #ededed;
  --color-font-black: #1f1f1f;
  --color-font-white: #fcfcfc;
  --color-group-header-font: #9a9a9a;
  --color-input-border: #a5a5a5;
  --color-input-background: #3c3c3c;
  --color-icon: #adadad;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-border: #303030;
  --color-body-background: #3a3a3a;
  --color-selected: #575757;
  --color-item-selected: #393939;
  --chip-size: 56px;
  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;
  -webkit-font-smoothing: antialiased;
}

.Board {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
}

.BoardTitle {
  position: fixed;
  left: 0;
  top: 0;
  background: transparent;
  font-weight: 500;
  color: var(--color-font);
  text-align: center;
}
.BoardTitle[data-hidden] {
  display: none;
}

.Chip {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--chip-size);
  height: var(--chip-size);
  background: var(--color-panel-background);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.Chip:active {
  cursor: grabbing;
}
.Chip[data-selected] {
  box-shadow: inset 0 0 0 2px var(--color-input-border);
}
.Chip[data-dragging] {
  opacity: 0.25;
}
.Chip-Image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.Chip-Shape {
  width: 60%;
  height: 60%;
  pointer-events: none;
}

.DropCaret {
  flex-shrink: 0;
  align-self: center;
  width: 2px;
  height: calc(var(--chip-size) - 8px);
  background: var(--color-font);
  border-radius: 1px;
}
.DropCaret[data-hidden] {
  display: none;
}

.DragGhost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}
.DragGhost[data-hidden] {
  display: none;
}

.AssetList {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: calc(var(--chip-size) + 24px);
  padding: 12px;
  transition: background 0.15s;
}
.AssetList[data-over] {
  background: var(--color-selected);
}
.AssetList-Empty {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
  user-select: none;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  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;
  text-decoration: none;
}

.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;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PreviewScale {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
}
.PreviewScale-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}

.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: 1px solid var(--color-panel-border);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-panel=asset] {
  width: 260px;
}
.Panel[data-float] {
  position: fixed;
}
.Panel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  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;
  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;
}
.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;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

.RowChildPanel {
  position: fixed;
  display: none;
  width: max-content;
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 12px 8px 8px 8px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.RowChildPanel[data-open] {
  display: block;
}

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

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 36px;
  column-gap: 8px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  padding: 0 12px;
}

.NumberField,
.ColorInput,
.StepperInput {
  justify-self: start;
}

.NumberField {
  display: flex;
  align-items: center;
  gap: 8px;
}
.NumberField-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}

.RoundNumberInput {
  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: 40px;
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

.StepperInput {
  display: flex;
  align-items: center;
  gap: 4px;
}
.StepperInput-Arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--color-icon);
  cursor: pointer;
}
.StepperInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.StepperInput-Track {
  display: grid;
  justify-items: center;
}
.StepperInput-Option {
  grid-area: 1/1;
  visibility: hidden;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}
.StepperInput-Option[data-selected] {
  visibility: visible;
}

.ColorInput {
  display: flex;
  align-items: center;
}
.ColorInput-Select {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 24px;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--color-font-white);
  cursor: pointer;
  user-select: none;
}
.ColorInput-Select[data-light] {
  color: var(--color-font-black);
}

.ColorPicker {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-panel-background) 60%, transparent);
}
.ColorPicker[data-hidden] {
  display: none;
}
.ColorPicker-Body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #202020;
  border-radius: 2px;
  user-select: none;
}
.ColorPicker-Ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 232px;
  height: 232px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  cursor: pointer;
}
.ColorPicker-Hole {
  position: absolute;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: #202020;
  pointer-events: none;
}
.ColorPicker-RingKnob {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
}
.ColorPicker-Square {
  position: relative;
  width: 116px;
  height: 116px;
  background: linear-gradient(to bottom, transparent, #000000), linear-gradient(to right, #ffffff, var(--picker-pure));
  cursor: pointer;
}
.ColorPicker-SquareKnob {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
}
.ColorPicker-Foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ColorPicker-Current {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ColorPicker-Preview {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-panel-border);
  border-radius: 2px;
}
.ColorPicker-Hex {
  width: calc(7ch + 16px);
  height: 32px;
  padding: 0 8px;
  background: #252525;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: text;
}
.ColorPicker-Hex:focus {
  outline: none;
}
.ColorPicker-Apply {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #252525;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
}

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

.RowItem {
  display: flex;
  align-items: center;
  height: 32px;
  border-radius: 2px;
  cursor: pointer;
}
.RowItem[data-selected] {
  background-color: var(--color-item-selected);
}
.RowItem-Color {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin: 0 10px;
  background: var(--row-color);
  border-radius: 2px;
}
.RowItem-Name {
  flex: 1;
  min-width: 96px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}
.RowItem-Input {
  flex: 1;
  min-width: 96px;
  width: 100%;
  height: 24px;
  padding: 0 4px;
  background: var(--color-input-background);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
}
.RowItem-Input:focus {
  outline: none;
}
.RowItem-Remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}

.IconControl {
  display: flex;
  align-items: center;
  padding: 4px 6px;
}
.IconControl-Icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-icon);
  cursor: pointer;
}
.IconControl-Icon[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
}

.ActionItem {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.ActionItem:hover {
  background-color: var(--color-item-selected);
}
.ActionItem[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.ActionItem[data-disabled]:hover {
  background-color: transparent;
}

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