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

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

body {
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  color: inherit;
  font-family: inherit;
}

button {
  background: transparent;
  cursor: pointer;
}

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

:root {
  --color-font: #e8e6dd;
  --color-font-black: #10100e;
  --color-font-white: #fcfcfc;
  --color-muted: #8a877b;
  --color-icon: #c9c7bc;
  --color-body-background: #10100e;
  --color-grid: #1c1c18;
  --color-input-background: #0d0d0b;
  --color-panel-background: #171714;
  --color-panel-header-background: #0d0d0b;
  --color-panel-border: #2f2e28;
  --color-panel-group-border: #26251f;
  --color-item-selected: #2b2a23;
  --color-transparent-dark: #26251f;
  --color-transparent-light: #2f2e28;
  --color-picker-background: #1a1a17;
  --color-picker-field: #0d0d0b;
  --color-shadow: #000000;
  --color-accent: #d4f034;
  --color-accent-dim: #9aae26;
}

.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", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, 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-panel-group-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;
  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-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-Copy {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 6px;
  height: 22px;
  padding: 0 10px;
  white-space: nowrap;
  border-radius: 2px;
  background: var(--color-input-background);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.Panel-Copy:hover {
  color: var(--color-accent);
}
.Panel-Copy[data-copied] {
  background: var(--color-accent);
  color: var(--color-font-black);
}
.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 > .ActionList,
.Panel > .CodeOut,
.Panel > .Usage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel[data-panel=design] > .ActionList {
  flex: 0 0 auto;
  overflow: visible;
}
.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,
.GrandChildPanel {
  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 > * + *,
.GrandChildPanel > * + * {
  border-top: 1px solid var(--color-panel-group-border);
}
.ChildPanel[data-open],
.GrandChildPanel[data-open] {
  display: block;
}

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

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.ActionList-Row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ActionList-Row:hover {
  color: var(--color-font);
}
.ActionList-Row[data-selected] {
  color: var(--color-accent);
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 18px 20px;
  padding: 20px 22px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  white-space: nowrap;
}

.SideInput {
  justify-self: start;
  display: grid;
  grid-template-areas: ". top ." "left . right" ". bottom .";
  grid-template-columns: repeat(3, auto);
  gap: 0;
  justify-items: center;
  align-items: center;
}
.SideInput-Top {
  grid-area: top;
}
.SideInput-Right {
  grid-area: right;
}
.SideInput-Bottom {
  grid-area: bottom;
}
.SideInput-Left {
  grid-area: left;
}

.CornerInput {
  justify-self: start;
  display: grid;
  grid-template-areas: "topLeft topRight" "bottomLeft bottomRight";
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  justify-items: center;
  align-items: center;
}
.CornerInput-TopLeft {
  grid-area: topLeft;
}
.CornerInput-TopRight {
  grid-area: topRight;
}
.CornerInput-BottomRight {
  grid-area: bottomRight;
}
.CornerInput-BottomLeft {
  grid-area: bottomLeft;
}

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

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

.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-body-background) 70%, transparent);
}
.ColorPicker[data-hidden] {
  display: none;
}
.ColorPicker-Body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-picker-background);
  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: var(--color-picker-background);
  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: var(--color-picker-field);
  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: var(--color-picker-field);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
}

.CodeOut {
  width: 420px;
  height: 240px;
  padding: 12px 16px;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", "Roboto Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-font);
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
  user-select: text;
}
.CodeOut .keyword {
  color: #c5a3ff;
}
.CodeOut .tag {
  color: #7fd6ff;
}
.CodeOut .value {
  color: var(--color-accent);
}
.CodeOut .string {
  color: #ff9b73;
}
.CodeOut .comment {
  color: var(--color-muted);
  font-style: italic;
}

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

.ButtonForge {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: var(--color-body-background);
  background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.ButtonForge-Stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ButtonForge-PreviewWrap {
  display: grid;
  place-items: center;
  padding: 60px;
}
.ButtonForge-PreviewButton {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
}
