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

html,
body {
  width: 100%;
  min-height: 100%;
}

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

input {
  font: inherit;
  color: inherit;
}

body {
  background-color: #f4f4f5;
  color: #1f1f1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.IconMaker {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.IconMaker-Preview {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.IconMaker-Stage {
  width: 320px;
  height: 320px;
}
.IconMaker-Stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.IconMaker-Panel {
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 100vh;
  padding: 24px;
  background-color: #ffffff;
  border-left: 1px solid #e6e6e6;
  overflow-y: auto;
}

.IconMaker-Title {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
}

.IconMaker-ControlList {
  display: flex;
  flex-direction: column;
}

.ControlRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.ControlRow-Label {
  font-size: 13px;
  color: #1f1f1f;
}

.NumberInput {
  display: flex;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}

.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: #8a8a8a;
}
.NumberInput-Arrow:hover {
  color: #e66819;
}

.NumberInput-Input {
  width: 48px;
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 13px;
  text-align: center;
}
.NumberInput-Input:focus {
  outline: none;
}

.SelectInput {
  display: flex;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}

.SelectInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  color: #8a8a8a;
}
.SelectInput-Arrow:hover {
  color: #e66819;
}

.SelectInput-Track {
  display: grid;
  justify-items: center;
  min-width: 76px;
}

.SelectInput-Option {
  grid-area: 1/1;
  font-size: 13px;
  visibility: hidden;
}
.SelectInput-Option[data-selected] {
  visibility: visible;
}

.ToggleInput {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ToggleInput-Option {
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  color: #8a8a8a;
  cursor: pointer;
}
.ToggleInput-Option[data-selected] {
  border-color: #e66819;
  color: #e66819;
}

.ColorInput {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ColorInput-Swatch {
  width: 20px;
  height: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}

.ColorInput-Hex {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #8a8a8a;
  text-transform: uppercase;
}

.ColorInput-Native {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.IconOutput {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
}

.IconOutput-Action {
  display: flex;
  gap: 8px;
}

.IconOutput-Button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  font-size: 13px;
  color: #1f1f1f;
}
.IconOutput-Button:hover {
  border-color: #e66819;
  color: #e66819;
}

.IconOutput-Button-Icon {
  display: inline-flex;
  align-items: center;
}

.IconOutput-Button-Check {
  display: none;
  align-items: center;
  color: #e66819;
}

.IconOutput-Button[data-copied] {
  border-color: #e66819;
  color: #e66819;
}
.IconOutput-Button[data-copied] .IconOutput-Button-Icon {
  display: none;
}
.IconOutput-Button[data-copied] .IconOutput-Button-Check {
  display: inline-flex;
}

.IconOutput-Code {
  margin-top: 14px;
  max-height: 200px;
  padding: 12px;
  background-color: #f7f7f8;
  border-radius: 2px;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 18px;
  color: #8a8a8a;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
}

@media (max-width: 760px) {
  .IconMaker {
    flex-direction: column;
  }
  .IconMaker-Panel {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid #e6e6e6;
  }
}