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

* {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.Panel {
  position: fixed;
  background: #363636;
  border: 1px solid #2e2e2e;
  border-radius: 2px;
  user-select: none;
}
.Panel-Header {
  display: flex;
  align-items: center;
  height: 32px;
  background: #323232;
  border-bottom: 1px solid #2a2a2a;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.Panel-Title {
  padding: 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #ededed;
}
.Panel-Main {
  display: flex;
  flex-direction: column;
}

.PanelGroup + .PanelGroup {
  border-top: 1px solid #2a2a2a;
}
.PanelGroup-Header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  padding: 9px 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}

.Button {
  background: #404040;
  border: 1px solid #2e2e2e;
  border-radius: 2px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  color: #ededed;
  cursor: pointer;
}
.Button:hover {
  background: #4a4a4a;
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 8px 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  height: 36px;
  column-gap: 8px;
}
.RightLabelGrid-Row[data-clickable] {
  cursor: pointer;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
}

.StepperInput,
.ToggleInput,
.NumberInput,
.ColorInput,
.TextureInput {
  justify-self: start;
}

.StepperInput {
  display: flex;
  align-items: center;
  gap: 4px;
}
.StepperInput-Arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #dadada;
  cursor: pointer;
}
.StepperInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.StepperInput-Track {
  display: grid;
  justify-items: center;
}
.StepperInput-Option {
  grid-area: 1/1;
  visibility: hidden;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
  user-select: none;
}
.StepperInput-Option[data-selected] {
  visibility: visible;
}

.ToggleInput {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.ToggleInput-Option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
  cursor: pointer;
  user-select: none;
}
.ToggleInput-Option[data-selected]::before, .ToggleInput-Option[data-selected]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  pointer-events: none;
}
.ToggleInput-Option[data-selected]::before {
  left: 0;
  border-top: 1px solid #a5a5a5;
  border-bottom: 1px solid #a5a5a5;
  border-left: 1px solid #a5a5a5;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
.ToggleInput-Option[data-selected]::after {
  right: 0;
  border-top: 1px solid #a5a5a5;
  border-bottom: 1px solid #a5a5a5;
  border-right: 1px solid #a5a5a5;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.NumberInput {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #dadada;
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  field-sizing: content;
  min-width: calc(2ch + 16px);
  max-width: calc(8ch + 16px);
  height: 24px;
  padding: 0 4px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.NumberInput-Input:focus {
  outline: none;
}

.ColorInput {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.ColorInput-Swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}
.ColorInput-Hex {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #9a9a9a;
  text-transform: uppercase;
}
.ColorInput-Picker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.TextureInput {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.TextureInput-Thumb {
  width: 20px;
  height: 20px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}
.TextureInput-Pick, .TextureInput-Clear {
  font-size: 12px;
  color: #9a9a9a;
  cursor: pointer;
  user-select: none;
}
.TextureInput-Pick:hover, .TextureInput-Clear:hover {
  color: #ededed;
}

.Tool {
  left: 12px;
  top: 12px;
  width: 235px;
}
.Tool .Panel-Main {
  max-height: calc(100vh - 420px);
  overflow-y: auto;
}
.Tool-Body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
}
.Tool-Grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.Tool-Stepper {
  width: 100%;
  justify-content: space-between;
}
.Tool-Count {
  padding: 8px 12px;
  font-size: 10px;
  color: #757575;
}
.Tool-File {
  display: none;
}

.Outliner {
  right: 12px;
  top: 12px;
  width: 190px;
}
.Outliner-List {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
}
.Outliner-Item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  color: #ededed;
  cursor: pointer;
}
.Outliner-Item:hover {
  background: #404040;
}
.Outliner-Item[data-selected] {
  background: #575757;
}
.Outliner-Item[data-hidden] {
  opacity: 0.4;
}
.Outliner-Icon {
  flex-shrink: 0;
  font-size: 10px;
  color: #757575;
}
.Outliner-Item[data-selected] .Outliner-Icon {
  color: #ededed;
}
.Outliner-Name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.Outliner-Rename {
  flex: 1;
  height: 20px;
  padding: 0 4px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: #ededed;
  -webkit-appearance: none;
  appearance: none;
}
.Outliner-Rename:focus {
  outline: none;
}
.Outliner-Toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #dadada;
  cursor: pointer;
  opacity: 0.35;
}
.Outliner-Toggle[data-on] {
  opacity: 1;
}
.Outliner-Empty {
  padding: 8px 12px;
  font-size: 12px;
  color: #757575;
}

.Property {
  right: 12px;
  bottom: 12px;
  width: 250px;
}
.Property .Panel-Main {
  max-height: 60vh;
  overflow-y: auto;
}
.Property-Empty {
  padding: 16px 12px;
  font-size: 12px;
  color: #757575;
}
.Property-Multi {
  padding: 8px 12px;
  font-size: 11px;
  color: #9a9a9a;
  border-bottom: 1px solid #2a2a2a;
}

.PanelGroup-Reset {
  font-size: 10px;
  color: #757575;
  cursor: pointer;
}
.PanelGroup-Reset:hover {
  color: #ededed;
}

.AlignButtons {
  display: flex;
  gap: 4px;
  justify-self: start;
}
.AlignButtons .Button {
  min-width: 30px;
  padding: 6px 0;
  text-align: center;
}

.Dimension {
  justify-self: start;
  padding: 0 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #9a9a9a;
}

.Scene {
  left: 12px;
  bottom: 12px;
  width: 245px;
}
.Scene-Body {
  padding: 8px 12px;
}
.Scene-Stepper {
  width: 100%;
  justify-content: space-between;
}

.Hint {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 8px 12px;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
  max-width: 360px;
}
.Hint b {
  color: #ededed;
  font-weight: 600;
}

.Usage {
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 320px;
  z-index: 10;
}
.Usage .Panel-Header {
  justify-content: space-between;
}
.Usage-Close {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #dadada;
  cursor: pointer;
}
.Usage-Close:hover {
  color: #ededed;
}
.Usage-Body {
  padding: 12px 14px 14px;
}
.Usage-Heading {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #ededed;
}
.Usage-Text {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #9a9a9a;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #2e2e2e;
  color: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}

.MiniBlender {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.MiniBlender-Canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}