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

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  scrollbar-width: none;
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: #ddd;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  text-align: left;
}

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

input {
  color: inherit;
  font-family: inherit;
}

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

::-webkit-calendar-picker-indicator {
  display: none;
}

.ColorPicker {
  --sidebar-width: 260px;
}

.Overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
}

.Container {
  padding: 32px;
  background-color: #1a1a1a;
  border-radius: 12px;
  user-select: none;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
}
.Logo-Text {
  font-family: Quicksand, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.Nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
  background-color: #1a1a1a;
}
.Nav-Item {
  font-size: 13px;
  line-height: 21px;
  color: #888;
}
.Nav-Item:hover {
  color: #ccc;
}
.Nav-Item[data-active] {
  color: #fff;
}

.Content {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 32px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}

.Sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: max-content;
  background-color: #161616;
  border-top-right-radius: 24px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}

.Main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.Output {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.Search {
  display: flex;
  width: 320px;
  height: 40px;
  padding: 0 8px 0 20px;
  background-color: #2a2a2a;
  border-radius: 20px;
  overflow: hidden;
}
.Search-Input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #f7f7f7;
  background-color: transparent;
  outline: none;
}
.Search-Input[data-invalid] {
  color: #c0392b;
}
.Search-Button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #f7f7f7;
}
.Search-Button svg {
  width: 16px;
  height: 16px;
}

.Ring {
  position: relative;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}
.Ring-Inner {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: #1a1a1a;
  pointer-events: none;
}
.Ring-Indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.Square {
  position: relative;
  width: 300px;
  height: 300px;
  cursor: crosshair;
  z-index: 1;
}
.Square-Indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.Cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.Card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background-color: #242424;
  border-radius: 10px;
  min-width: 240px;
}
.Card[data-hex] {
  cursor: pointer;
}
.Card-Header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.Card-Swatch {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  border: 1px solid #333;
  flex-shrink: 0;
}
.Card-HexGroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.Card-Label {
  font-size: 14px;
  color: #888;
}
.Card-Hex {
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.05em;
}
.Card-Row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.Card-Row-Label {
  font-size: 14px;
  color: #888;
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}
.Card-Row-Value {
  font-size: 14px;
  color: #ccc;
}

.Analogous {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.Analogous-Header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.Analogous-Label {
  font-size: 14px;
  color: #888;
}
.Analogous-Input {
  width: 64px;
  padding: 6px 8px;
  font-size: 14px;
  background-color: #2a2a2a;
  border-radius: 2px;
  color: #fff;
  text-align: center;
  outline: none;
}
.Analogous-Unit {
  font-size: 14px;
  color: #888;
}

.None {
  width: 100%;
  padding: 10px 0;
  margin-top: 12px;
  font-size: 14px;
  color: #888;
  background-color: #242424;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.WebColors {
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  display: none;
}
.WebColors[data-active] {
  display: flex;
}

.WebColor {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  background-color: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}
.WebColor-Swatch {
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 2px;
  flex-shrink: 0;
}
.WebColor-Name {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.LogoColors {
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  display: none;
}
.LogoColors[data-active] {
  display: flex;
}

.Brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.Brand-Name {
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #888;
}

.LogoColor {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  background-color: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}
.LogoColor-Swatch {
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 2px;
  flex-shrink: 0;
}
.LogoColor-Hex {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.FlagColors {
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  display: none;
}
.FlagColors[data-active] {
  display: flex;
}

.Country {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.Country-Name {
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #888;
}
.Country-Name[href]:hover {
  color: #ddd;
}

.FlagColor {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  background-color: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}
.FlagColor-Swatch {
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 2px;
  flex-shrink: 0;
}
.FlagColor-Hex {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.Article {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}
.Article[data-open] {
  display: block;
}
.Article-Slide {
  position: absolute;
  top: 64px;
  right: 64px;
  bottom: 0;
  left: 64px;
  display: flex;
  background-color: #202020;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.Article-List {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  width: 320px;
  padding: 20px;
  background-color: #1c1c1c;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}
.Article-List-Item {
  display: block;
  padding: 10px 8px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}
.Article-List-Item[data-active] {
  background-color: #2a2a2a;
  color: #fff;
}
.Article[data-list] .Article-List {
  display: flex;
}
.Article-Main {
  flex: 1;
  min-width: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}
.Article-Header {
  padding: 20px 64px 20px 32px;
  border-bottom: 1px solid #2a2a2a;
}
.Article-Title {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.Article-Close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
}
.Article-Close:hover {
  color: #fff;
}
.Article-Body {
  padding: 28px 32px;
}
.Article-Body h2 {
  font-size: 19px;
  line-height: 33px;
  color: #fff;
  margin-bottom: 10px;
}
.Article-Body h2 ~ h2 {
  margin-top: 26px;
}
.Article-Body p {
  font-size: 17px;
  line-height: 31px;
  color: #ccc;
  margin-bottom: 16px;
}
.Article-Body pre {
  font-family: monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #bbb;
  background-color: #242424;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.Article-Body code {
  font-family: monospace;
  font-size: 13px;
  color: #e0c58a;
  background-color: #242424;
  border-radius: 2px;
  padding: 1px 5px;
}

.Flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.Flag-Image {
  width: 100%;
  max-width: 320px;
}
.Flag-Image svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #333;
  border-radius: 2px;
}

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

.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  flex-direction: column;
  width: max-content;
  max-width: 300px;
  background-color: #202020;
  border-radius: 0 12px 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: 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 {
  display: block;
  padding: 0 24px;
  font-size: 15px;
  line-height: 23px;
  color: #ddd;
  text-decoration: none;
}
