:root {
  --color-font: #ededed;
  --color-font-black: #1f1f1f;
  --color-font-white: #fcfcfc;
  --color-group-header-font: #9a9a9a;
  --color-icon: #adadad;
  --color-transparent-dark: #3a3a3a;
  --color-transparent-light: #3c3c3c;
  --color-input-background: #3c3c3c;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-border: #2e2e2e;
  --color-application-menu-border: #393939;
  --color-body-background: #3a3a3a;
  --color-accent: #ff8c00;
  --color-shadow: #303030;
}

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

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--color-body-background);
  color: var(--color-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

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

img {
  max-width: 100%;
}

svg {
  stroke-width: 0;
}

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

.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-group-header-font);
  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;
  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;
  display: flex;
  flex-direction: column;
  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;
}

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

.ImagePicker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  padding: 0 24px;
  border: 1px dotted var(--color-group-header-font);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-group-header-font);
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.ImagePicker[data-open] {
  display: flex;
}

.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);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ActionItem:hover {
  color: var(--color-accent);
}
.ActionItem[data-selected] {
  color: var(--color-accent);
}
.ActionItem[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.ActionItem[data-disabled]:hover {
  color: var(--color-font);
}

.GroupList {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 36px;
  column-gap: 16px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  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: 40px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

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

.OptionInput {
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--color-input-background);
  cursor: pointer;
  user-select: none;
}
.OptionInput[data-open] {
  border-radius: 2px 0 0 2px;
}
.OptionInput-Value {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.OptionInput .ActionList {
  display: none;
}

.OptionModal {
  position: fixed;
  z-index: 40;
  display: none;
  width: max-content;
  border-radius: 0 2px 2px 2px;
  background: var(--color-input-background);
  box-shadow: 0 0 3px 1px var(--color-shadow);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.OptionModal[data-open] {
  display: block;
}

.ColorInput {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}
.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);
}
.ColorInput-Transparent {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ColorInput-Transparent svg {
  border-radius: 2px;
}
.ColorInput-Transparent rect {
  fill: var(--color-transparent-light);
}
.ColorInput-Transparent rect[data-dark] {
  fill: var(--color-transparent-dark);
}

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

.LineCount {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 32px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
  user-select: none;
}

.UsageText {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
  padding: 16px 18px;
}
.UsageText-Heading {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-font);
}
.UsageText-Text {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}

.Outline {
  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;
}
.Outline-Stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.Stage {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}