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

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

a,
button,
div,
h1,
p,
span,
strong {
  color: #1a2b4a;
}

a,
body,
button,
div,
h1,
html,
img,
p,
span,
strong,
svg {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

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

body {
  background: #f2ede2;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  font-size: 0;
  text-decoration: none;
}

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

svg {
  border: 0;
  display: block;
}

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

.Perspective {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #f2ede2;
  color: #1a2b4a;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 13px;
}
.Perspective-Stage {
  position: absolute;
  inset: 0;
}
.Perspective-Svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.Perspective-Svg-Label {
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: #1a2b4a;
  font-family: "Rubik Iso", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", 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;
  gap: 20px;
  width: 300px;
  padding: 20px 0;
  background: #fff;
  border-radius: 0 12px 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Row {
  padding: 0 24px;
}
.ApplicationMenu-Row-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: #1a2b4a;
  text-decoration: none;
}
.ApplicationMenu-Row-Description {
  font-size: 12px;
  line-height: 20px;
  color: #4a5a72;
}

.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: #4a5a72;
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: #1a2b4a;
}

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

.SinglePanel {
  position: static;
  width: max-content;
  background: #fff;
  border: 1px solid rgba(26, 43, 74, 0.13);
  border-radius: 12px 8px 8px 8px;
  box-shadow: 0 12px 32px -18px rgba(26, 43, 74, 0.4);
  overflow: hidden;
}
.SinglePanel[data-panel]:not([data-open]) {
  display: none;
}
.SinglePanel[data-float] {
  position: fixed;
}
.SinglePanel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.SinglePanel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.SinglePanel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.SinglePanel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.SinglePanel-Header {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.SinglePanel-Header:active {
  cursor: grabbing;
}
.SinglePanel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  background: #f6f4ee;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #1a2b4a;
  border-bottom-right-radius: 12px;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5a72;
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  width: 9px;
  visibility: hidden;
}
.SinglePanel-CloseIcon:hover svg {
  visibility: visible;
}
.SinglePanel-Main {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  max-height: calc(100vh - 56px - 32px);
}

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

.PanelBody {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
  padding: 14px 16px 16px;
}
.PanelBody-Hint {
  font-size: 12px;
  line-height: 1.6;
  color: #4a5a72;
}

.ModeRow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ModeButton {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 10px 12px 11px;
  border: 1px solid rgba(26, 43, 74, 0.13);
  border-radius: 2px;
  background: #fff;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  transition: border-color 0.15s;
}
.ModeButton:hover {
  border-color: rgba(26, 43, 74, 0.33);
}
.ModeButton[data-selected] {
  background: #1a2b4a;
  border-color: #1a2b4a;
}
.ModeButton-Number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #c8452f;
}
.ModeButton-Name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a2b4a;
}
.ModeButton-Description {
  font-size: 11px;
  line-height: 1.4;
  color: #4a5a72;
}
.ModeButton[data-selected] .ModeButton-Number {
  color: #ff9d86;
}
.ModeButton[data-selected] .ModeButton-Name {
  color: #f2ede2;
}
.ModeButton[data-selected] .ModeButton-Description {
  color: #c9d4e3;
}

.ToggleList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.Toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #4a5a72;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.Toggle-Mark {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(26, 43, 74, 0.35);
  border-radius: 2px;
  background: #fff;
}
.Toggle[data-checked] .Toggle-Mark {
  background: #c8452f;
  border-color: #c8452f;
}
.Toggle[data-checked] .Toggle-Mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.BoxRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.MiniButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  background: transparent;
  color: #1a2b4a;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.12s;
}
.MiniButton:hover {
  background: #f6f4ee;
}
.MiniButton-Icon {
  display: inline-flex;
  align-items: center;
}

.LayerList {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.LayerList-Row {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 0 0 10px;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.LayerList-Row:hover {
  background-color: #f6f4ee;
}
.LayerList-Row[data-selected] {
  background-color: #f2ede2;
}
.LayerList-Row-Name {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #1a2b4a;
}
.LayerList-Row-Remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5a72;
}
.LayerList-Row-Remove:hover {
  color: #1a2b4a;
}
.LayerList-Row-Remove[data-disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.AxisGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-content: start;
  gap: 12px 16px;
  padding: 14px 16px;
}
.AxisGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  gap: 16px;
}
.AxisGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: #4a5a72;
}

.NumberField {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberField-Unit {
  font-size: 13px;
  line-height: 1.5;
  color: #4a5a72;
  user-select: none;
}

.RoundNumberInput {
  justify-self: start;
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: #f2ede2;
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 16px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: calc(3ch + 16px);
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  color: #1a2b4a;
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

.StyleField {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ColorInput {
  width: 36px;
  height: 24px;
  background: var(--swatch-color);
  border-radius: 2px;
  cursor: pointer;
}

.ColorPicker {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #f2ede2 82%, transparent);
}
.ColorPicker[data-hidden] {
  display: none;
}
.ColorPicker-Body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px -18px rgba(26, 43, 74, 0.4);
  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: #fff;
  pointer-events: none;
}
.ColorPicker-RingKnob {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(26, 43, 74, 0.13);
  pointer-events: none;
}
.ColorPicker-Square {
  position: relative;
  width: 116px;
  height: 116px;
  background: linear-gradient(to bottom, transparent, #000), linear-gradient(to right, #fff, var(--picker-pure));
  cursor: pointer;
}
.ColorPicker-SquareKnob {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(26, 43, 74, 0.13);
  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 rgba(26, 43, 74, 0.13);
  border-radius: 2px;
}
.ColorPicker-Hex {
  width: calc(7ch + 16px);
  height: 32px;
  padding: 0 8px;
  background: #f2ede2;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1a2b4a;
  user-select: text;
}
.ColorPicker-Hex:focus {
  outline: none;
}
.ColorPicker-Apply {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #f2ede2;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #1a2b4a;
  cursor: pointer;
}

.BoxChildPanel {
  position: fixed;
  display: none;
  width: max-content;
  background: #fff;
  border: 1px solid rgba(26, 43, 74, 0.13);
  border-radius: 8px;
  box-shadow: 0 12px 32px -18px rgba(26, 43, 74, 0.4);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.BoxChildPanel[data-open] {
  display: block;
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  padding: 16px 18px;
}
.TextBlock h1 {
  font-family: "Iowan Old Style", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #1a2b4a;
}
.TextBlock p {
  font-size: 13px;
  line-height: 1.7;
  color: #4a5a72;
}
