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

* {
  margin: 0;
  padding: 0;
}

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

input {
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}

svg {
  display: block;
}

.FractalStage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #16202c 0%, #0a0e14 70%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.FractalStage-Preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.FractalStage-Checker {
  padding: 16px;
  border-radius: 2px;
  background-image: linear-gradient(45deg, #1a2330 25%, transparent 25%), linear-gradient(-45deg, #1a2330 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1a2330 75%), linear-gradient(-45deg, transparent 75%, #1a2330 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.FractalStage-Canvas {
  display: block;
  border-radius: 2px;
}

.Panel {
  position: fixed;
  z-index: 900;
  border: 1px solid rgba(120, 160, 200, 0.16);
  border-radius: 2px;
  background: rgba(18, 26, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  color: #dce8f4;
  user-select: none;
}
.Panel-Header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(120, 160, 200, 0.12);
  cursor: grab;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Header > svg {
  width: 15px;
  color: #bfe4ff;
}
.Panel-CloseIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #8ba3bc;
  cursor: pointer;
}
.Panel-CloseIcon svg {
  width: 9px;
}
.Panel-CloseIcon-Cross {
  display: flex;
}
.Panel-CloseIcon-Square {
  display: none;
}
.Panel-CloseIcon-Square svg {
  width: 8px;
}
.Panel-Title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #dce8f4;
}
.Panel-Main {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.Panel[data-collapsed] .Panel-Main {
  display: none;
}
.Panel[data-collapsed] .Panel-Header {
  border-bottom: none;
}
.Panel[data-collapsed] .Panel-CloseIcon-Cross {
  display: none;
}
.Panel[data-collapsed] .Panel-CloseIcon-Square {
  display: flex;
}

.ShapePanel {
  width: 210px;
}

.SettingsPanel {
  width: 268px;
}

.PanelGroup + .PanelGroup {
  border-top: 1px solid rgba(120, 160, 200, 0.12);
}
.PanelGroup-Header {
  padding: 10px 12px 2px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #8ba3bc;
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 4px 12px 10px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  min-height: 34px;
  column-gap: 10px;
}
.RightLabelGrid-Row-Label {
  font-size: 11px;
  color: #9bb3cc;
}

.NumberInput {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #8ba3bc;
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  width: 52px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(120, 160, 200, 0.16);
  border-radius: 2px;
  background: rgba(10, 16, 22, 0.6);
  font-size: 12px;
  color: #bfe4ff;
  text-align: center;
}
.NumberInput-Input:focus {
  border-color: rgba(92, 200, 255, 0.3);
}
.NumberInput-Unit {
  font-size: 11px;
  color: #8ba3bc;
}

.StepperInput {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: start;
}
.StepperInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
  color: #8ba3bc;
  cursor: pointer;
}
.StepperInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.StepperInput-Track {
  display: grid;
  min-width: 64px;
}
.StepperInput-Option {
  grid-area: 1/1;
  justify-self: center;
  visibility: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: #bfe4ff;
}
.StepperInput-Option[data-selected] {
  visibility: visible;
}

.ToggleInput {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  padding: 3px;
  border-radius: 2px;
  background: rgba(10, 16, 22, 0.6);
}
.ToggleInput-Option {
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 11px;
  color: #8ba3bc;
  cursor: pointer;
}
.ToggleInput-Option[data-selected] {
  background: rgba(92, 200, 255, 0.14);
  color: #dff1ff;
}

.ShapeList {
  display: flex;
  flex-direction: column;
  padding: 6px;
}
.ShapeList-Item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #8ba3bc;
  font-size: 13px;
  text-align: left;
}
.ShapeList-Item[data-active] {
  border-color: rgba(92, 200, 255, 0.3);
  background: rgba(92, 200, 255, 0.14);
  color: #dff1ff;
}
.ShapeList-Icon {
  display: flex;
}
.ShapeList-Icon svg {
  width: 16px;
}

.FractalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.FractalActions-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(120, 160, 200, 0.16);
  border-radius: 2px;
  background: rgba(10, 16, 22, 0.6);
  color: #dce8f4;
  font-size: 12px;
}
.FractalActions-Button svg {
  width: 14px;
}
.FractalActions-Primary {
  border-color: transparent;
  background: #5cc8ff;
  color: #07151f;
  font-weight: 600;
}
.FractalActions-Export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(92, 200, 255, 0.3);
  border-radius: 2px;
  background: rgba(92, 200, 255, 0.14);
  color: #dff1ff;
  font-size: 13px;
  font-weight: 600;
}
.FractalActions-Export svg {
  width: 15px;
}

body {
  background: radial-gradient(120% 120% at 50% 0%, #16202c 0%, #0a0e14 70%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}