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

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

html {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

body {
  background: #0c0c0c;
  color: #e8e4de;
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

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

input {
  background: transparent;
  font-family: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

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

.Logo {
  display: flex;
  align-items: center;
}
.Logo-Text {
  color: #e8e4de;
  font-family: "Rubik Iso", "Instrument Sans", "Helvetica Neue", 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: #1a1a1a;
  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 #2a2a2a;
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  color: #e8e4de;
  text-decoration: none;
}
.ApplicationMenu-Link-Description {
  color: #8a8a8a;
}

.ColorExtractor {
  min-height: 100vh;
  font-size: 14px;
  line-height: 22px;
}
.ColorExtractor-Header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 48px;
  height: 56px;
  padding: 0 28px;
  background: #0c0c0c;
}
.ColorExtractor-Header-Title {
  color: #e8e4de;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.ColorExtractor-Body {
  display: flex;
  min-height: 100vh;
  padding-top: 56px;
}
@media (max-width: 760px) {
  .ColorExtractor-Body {
    flex-direction: column;
  }
}
.ColorExtractor-Button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 2px;
  background: #1a1a1a;
  color: #8a8a8a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  transition: background 0.2s, color 0.2s;
}
.ColorExtractor-Button:hover {
  background: #2a2a2a;
  color: #e8e4de;
}
.ColorExtractor-Button[data-active] {
  background: #e8e4de;
  color: #0c0c0c;
}
.ColorExtractor-Stage {
  flex: 1 1 55%;
  padding: 28px 20px 28px 36px;
}
@media (max-width: 760px) {
  .ColorExtractor-Stage {
    flex: none;
    width: 100%;
    padding: 20px;
  }
}
.ColorExtractor-Drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 420px;
  border: 1px dashed #2a2a2a;
  border-radius: 2px;
  background: #141414;
  color: #8a8a8a;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ColorExtractor-Drop:hover {
  border-color: #8a8a8a;
}
.ColorExtractor-Drop[data-active] {
  border-color: #e8e4de;
  background: #1a1a1a;
}
.ColorExtractor-Drop-Icon {
  pointer-events: none;
  color: #8a8a8a;
  opacity: 0.5;
}
.ColorExtractor-Drop-Text {
  pointer-events: none;
  font-weight: 500;
  color: #e8e4de;
}
.ColorExtractor-Drop-Hint {
  pointer-events: none;
  color: #8a8a8a;
}
.ColorExtractor-Frame {
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  font-size: 0;
}
.ColorExtractor-Canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.ColorExtractor-Canvas[data-eyedropper] {
  cursor: none;
}
.ColorExtractor-Loupe {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  z-index: 20;
}
.ColorExtractor-Readout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
}
.ColorExtractor-Readout[data-empty] .ColorExtractor-Readout-Swatch, .ColorExtractor-Readout[data-empty] .ColorExtractor-Readout-Hex, .ColorExtractor-Readout[data-empty] .ColorExtractor-Readout-Name {
  display: none;
}
.ColorExtractor-Readout:not([data-empty]) .ColorExtractor-Readout-Placeholder {
  display: none;
}
.ColorExtractor-Readout-Placeholder {
  color: #8a8a8a;
}
.ColorExtractor-Readout-Swatch {
  width: 24px;
  height: 24px;
  border: 1px solid #2a2a2a;
  border-radius: 2px;
}
.ColorExtractor-Readout-Hex {
  color: #e8e4de;
}
.ColorExtractor-Readout-Name {
  color: #8a8a8a;
}
.ColorExtractor-Controls {
  display: flex;
  margin-bottom: 14px;
}
.ColorExtractor-PickRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.ColorExtractor-Loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  border-radius: 2px;
  background: #141414;
  color: #8a8a8a;
}
.ColorExtractor-Error {
  margin-bottom: 14px;
  padding: 16px 20px;
  border: 1px solid #2a2a2a;
  border-radius: 2px;
  background: #141414;
  color: #e8e4de;
}
.ColorExtractor-Panel {
  flex: 1 1 45%;
  padding: 28px 36px 28px 20px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
@media (max-width: 760px) {
  .ColorExtractor-Panel {
    flex: none;
    width: 100%;
    padding: 20px;
  }
}
.ColorExtractor-Guide {
  padding: 24px 0;
  color: #8a8a8a;
}
.ColorExtractor-Guide-Title {
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  color: #8a8a8a;
}
.ColorExtractor-Guide-Item > span {
  margin-right: 10px;
  color: #e8e4de;
}
.ColorExtractor-Count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ColorExtractor-Count-Label {
  font-family: "JetBrains Mono", monospace;
  color: #8a8a8a;
}
.ColorExtractor-Section {
  margin-bottom: 28px;
}
.ColorExtractor-Section-Head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ColorExtractor-Section-Title {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 500;
  line-height: 31px;
  color: #e8e4de;
}
.ColorExtractor-Section-Note {
  font-family: "JetBrains Mono", monospace;
  color: #8a8a8a;
}
.ColorExtractor-Section-Subtitle {
  margin: 18px 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 500;
  line-height: 31px;
  color: #8a8a8a;
}
.ColorExtractor-Swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ColorExtractor-Swatch {
  width: 136px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  animation: ColorExtractor-Fade-Up 0.3s ease-out both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ColorExtractor-Swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.ColorExtractor-Swatch-Color {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 68px;
  padding: 6px;
}
.ColorExtractor-Swatch-Color > span {
  font-family: "JetBrains Mono", monospace;
  opacity: 0.8;
}
.ColorExtractor-Swatch-Info {
  padding: 7px 8px;
  background: #141414;
}
.ColorExtractor-Swatch-Hex {
  font-family: "JetBrains Mono", monospace;
  color: #e8e4de;
}
.ColorExtractor-Swatch-Name {
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
  color: #8a8a8a;
}
.ColorExtractor-Swatch-Hsl {
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
  color: #8a8a8a;
}
.ColorExtractor-Bar {
  display: flex;
  height: 36px;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.ColorExtractor-Bar-Segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6px;
  cursor: pointer;
  transition: flex 0.3s;
}
.ColorExtractor-Bar-Segment > span {
  font-family: "JetBrains Mono", monospace;
  opacity: 0.85;
}
.ColorExtractor-Picked {
  position: relative;
}
.ColorExtractor-Picked:hover .ColorExtractor-Picked-Delete {
  opacity: 1;
}
.ColorExtractor-Picked-Delete {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #8a8a8a;
  opacity: 0;
  transition: opacity 0.15s, background 0.2s, color 0.2s;
}
.ColorExtractor-Picked-Delete:hover {
  background: #e8e4de;
  color: #0c0c0c;
}
.ColorExtractor-Processing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: #8a8a8a;
}
.ColorExtractor-Processing-Dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a2a2a;
  animation: ColorExtractor-Pulse 1.2s ease-in-out infinite;
}
.ColorExtractor-Toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translateX(-50%) translateY(12px);
  padding: 8px 20px;
  border-radius: 2px;
  background: #e8e4de;
  color: #0c0c0c;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.ColorExtractor-Toast[data-show] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.RoundNumberInput {
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: #1a1a1a;
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: 32px;
  background: transparent;
  color: #e8e4de;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

@keyframes ColorExtractor-Fade-Up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ColorExtractor-Pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
