*,
: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: #edf0f4;
  color: #1c2733;
  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;
}

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

.TextPath {
  --color-font: #1c2733;
  --color-font-white: #fcfcfc;
  --color-muted: #68737f;
  --color-icon: #9ba5b0;
  --color-pen: #2e45e8;
  --color-pen-soft: #e3e8ff;
  --color-board: #ffffff;
  --color-dot: #d9dee6;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #f5f7fa;
  --color-input-background: #edf0f4;
  --color-item-hover: #e3e8ff;
  --color-shadow: #d6dce4;
  --color-section-border: #edf0f4;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #edf0f4;
  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;
}

.Stage {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.Board {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 100%;
  aspect-ratio: 3/2;
  background: var(--color-board);
  background-image: radial-gradient(var(--color-dot) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -18px rgba(28, 39, 51, 0.35);
  overflow: hidden;
}
.Board-Hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  text-align: center;
  pointer-events: none;
}
.Board-Hint[data-hidden] {
  display: none;
}

.Canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}
.Canvas-Curve {
  fill: none;
  stroke: none;
  pointer-events: none;
}
.Canvas-Curve[data-visible] {
  stroke: var(--color-pen);
  stroke-width: 1.5;
  stroke-dasharray: 7 5;
  opacity: 0.75;
}
.Canvas-Text {
  pointer-events: none;
}
.Canvas-Handle {
  fill: var(--color-board);
  stroke: var(--color-pen);
  stroke-width: 2;
  cursor: grab;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.1s;
}
.Canvas-Handle:hover {
  transform: scale(1.3);
}
.Canvas-Handle[data-start] {
  fill: var(--color-pen);
  stroke: var(--color-board);
}
.Canvas-Measure {
  visibility: hidden;
}

.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: 39;
  display: none;
  flex-direction: column;
  width: 280px;
  background: var(--color-panel-background);
  border-radius: 0 12px 0 0;
  box-shadow: 0 0 3px 1px var(--color-shadow);
  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-section-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-muted);
}

.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;
  box-shadow: 0 0 3px 1px var(--color-shadow);
  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[data-panel=path] .AxisGrid {
  padding-bottom: 0;
}
.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;
}

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

.AxisGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-content: start;
  gap: 20px;
  padding: 20px;
}
.AxisGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  gap: 20px;
}
.AxisGrid-Row[data-clickable] {
  cursor: pointer;
}
.AxisGrid-Row[data-disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.AxisGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
}

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

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

.TextInput {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 24px;
  background: var(--color-input-background);
  border-radius: 2px;
}
.TextInput-Input {
  width: 184px;
  height: 24px;
  padding: 0 8px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.TextInput-Input:focus {
  outline: none;
}

.ColorInput {
  position: relative;
  justify-self: start;
  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);
}
.ColorInput-Picker {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.OptionInput {
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  background: var(--color-input-background);
  border-radius: 2px;
  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;
  background: var(--color-input-background);
  border-radius: 0 2px 2px 2px;
  box-shadow: 0 0 3px 1px var(--color-shadow);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.OptionModal[data-open] {
  display: block;
}

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

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

.CheckInput {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 18px;
  height: 18px;
  background: var(--color-input-background);
  border-radius: 2px;
}
.CheckInput svg {
  visibility: hidden;
}
.CheckInput[data-checked] {
  background: var(--color-font);
  color: var(--color-panel-background);
}
.CheckInput[data-checked] svg {
  visibility: visible;
}

.PresetTray {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 20px 20px 0;
}
.PresetTray-Item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  background: var(--color-input-background);
  border-radius: 2px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PresetTray-Item:hover {
  background: var(--color-item-hover);
  color: var(--color-pen);
}
.PresetTray-Item[data-current] {
  background: var(--color-pen-soft);
  color: var(--color-pen);
}
.PresetTray-Item-Label {
  font-size: 11px;
  line-height: 1.5;
}

.EditHint {
  padding: 12px 20px 0;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}

.ButtonRow {
  display: flex;
  gap: 8px;
  padding: 20px;
}
.ButtonRow-Item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 18px;
  background: var(--color-input-background);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
}
.ButtonRow-Item:hover {
  background: var(--color-item-hover);
}
.ButtonRow-Item[data-disabled] {
  opacity: 0.35;
  cursor: default;
}
.ButtonRow-Item[data-disabled]:hover {
  background: var(--color-input-background);
}

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