:root {
  --font-sans: 'Inter', --apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans,
  Droid Sans, Helvetica Neue, sans-serif;

  --primary: #6ee7b7;
  --primary2: #30ab7a;
  --empty: transparent;
  --hover: #0000000C;
  --hover2: #00000019;
  --text: var(--gray12);

  --app-bg: rgb(255 255 255 / 0.90);
  --lowContrast: #ffffff;
  --highContrast: #000000;
  --gray1: hsl(0, 0%, 99%);
  --gray2: hsl(0, 0%, 97.3%);
  --gray3: hsl(0, 0%, 95.1%);
  --gray4: hsl(0, 0%, 93%);
  --gray5: hsl(0, 0%, 90.9%);
  --gray6: hsl(0, 0%, 88.7%);
  --gray7: hsl(0, 0%, 85.8%);
  --gray8: hsl(0, 0%, 78%);
  --gray9: hsl(0, 0%, 56.1%);
  --gray10: hsl(0, 0%, 52.3%);
  --gray11: hsl(0, 0%, 43.5%);
  --gray12: hsl(0, 0%, 9%);
  --grayA1: hsla(0, 0%, 0%, 0.012);
  --grayA2: hsla(0, 0%, 0%, 0.027);
  --grayA3: hsla(0, 0%, 0%, 0.047);
  --grayA4: hsla(0, 0%, 0%, 0.071);
  --grayA5: hsla(0, 0%, 0%, 0.09);
  --grayA6: hsla(0, 0%, 0%, 0.114);
  --grayA7: hsla(0, 0%, 0%, 0.141);
  --grayA8: hsla(0, 0%, 0%, 0.22);
  --grayA9: hsla(0, 0%, 0%, 0.439);
  --grayA10: hsla(0, 0%, 0%, 0.478);
  --grayA11: hsla(0, 0%, 0%, 0.565);
  --grayA12: hsla(0, 0%, 0%, 0.91);
  --blue1: hsl(206, 100%, 99.2%);
  --blue2: hsl(210, 100%, 98%);
  --blue3: hsl(209, 100%, 96.5%);
  --blue4: hsl(210, 98.8%, 94%);
  --blue5: hsl(209, 95%, 90.1%);
  --blue6: hsl(209, 81.2%, 84.5%);
  --blue7: hsl(208, 77.5%, 76.9%);
  --blue8: hsl(206, 81.9%, 65.3%);
  --blue9: hsl(206, 100%, 50%);
  --blue10: hsl(208, 100%, 47.3%);
  --blue11: hsl(211, 100%, 43.2%);
  --blue12: hsl(211, 100%, 15%);
}

.dark {
  --text: var(--gray12);
  --hover: var(--grayA3);

  --app-bg: rgb(34 34 34 / 0.90);
  --lowContrast: #000000;
  --highContrast: #ffffff;
  --gray1: hsl(0, 0%, 8.5%);
  --gray2: hsl(0, 0%, 11%);
  --gray3: hsl(0, 0%, 13.6%);
  --gray4: hsl(0, 0%, 15.8%);
  --gray5: hsl(0, 0%, 17.9%);
  --gray6: hsl(0, 0%, 20.5%);
  --gray7: hsl(0, 0%, 24.3%);
  --gray8: hsl(0, 0%, 31.2%);
  --gray9: hsl(0, 0%, 43.9%);
  --gray10: hsl(0, 0%, 49.4%);
  --gray11: hsl(0, 0%, 62.8%);
  --gray12: hsl(0, 0%, 93%);
  --grayA1: hsla(0, 0%, 100%, 0);
  --grayA2: hsla(0, 0%, 100%, 0.026);
  --grayA3: hsla(0, 0%, 100%, 0.056);
  --grayA4: hsla(0, 0%, 100%, 0.077);
  --grayA5: hsla(0, 0%, 100%, 0.103);
  --grayA6: hsla(0, 0%, 100%, 0.129);
  --grayA7: hsla(0, 0%, 100%, 0.172);
  --grayA8: hsla(0, 0%, 100%, 0.249);
  --grayA9: hsla(0, 0%, 100%, 0.386);
  --grayA10: hsla(0, 0%, 100%, 0.446);
  --grayA11: hsla(0, 0%, 100%, 0.592);
  --grayA12: hsla(0, 0%, 100%, 0.923);
  --blue1: hsl(212, 35%, 9.2%);
  --blue2: hsl(216, 50%, 11.8%);
  --blue3: hsl(214, 59.4%, 15.3%);
  --blue4: hsl(214, 65.8%, 17.9%);
  --blue5: hsl(213, 71.2%, 20.2%);
  --blue6: hsl(212, 77.4%, 23.1%);
  --blue7: hsl(211, 85.1%, 27.4%);
  --blue8: hsl(211, 89.7%, 34.1%);
  --blue9: hsl(206, 100%, 50%);
  --blue10: hsl(209, 100%, 60.6%);
  --blue11: hsl(210, 100%, 66.1%);
  --blue12: hsl(206, 98%, 95.8%);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

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

*,
*::after,
*::before {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  background: none;
  font-family: var(--font-sans);
  padding: 0;
  border: 0;
}

@keyframes loading {
  0% {
    opacity: 0;
    transform: translate(0)
  }

  50% {
    opacity: 1;
    transform: translate(100%)
  }

  to {
    opacity: 0;
    transform: translate(0)
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
    opacity: 0
  }
}

@keyframes border {
  to {
    box-shadow: 0 0 0 1px var(--gray6)
  }
}

@keyframes showTopShine {
  to {
    opacity: 1
  }
}

.command-input {
  background: transparent;
  color: var(--text);
  padding: 16px 16px;
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  border: none;
}

.command-container {
  position: fixed;
  display: flex;
  align-items: start;
  justify-content: center;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.command-background {
  background: var(--app-bg);
  color: var(--text);
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: auto;
}

.command-background .command-submenu {
  display: flex;
  flex-direction: column;
  width: 320px;
  border: 1px solid var(--gray6);
  background: var(--gray2);
  border-radius: 8px;
}

.command-listbox {
  transition: .1s ease;
  transition-property: height;
}

.command-submenu {
  padding-top: 10px;
}

.command-item {
  transition: .1s ease;
  transition-property: height;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  background: transparent;
  border-left: 3px solid transparent;
}

.command-item-active {
  transition: .1s ease;
  transition-property: height;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  background: var(--hover);
  border-left: 3px solid var(--primary);
}

.command-footer {
  display: flex;
  flex-direction: row;
  height: 40px;
  align-items: center;
  width: 100%;
  background: var(--gray1);
  bottom: 0;
  padding: 8px;
  border-top: 1px solid var(--gray6);
  border-radius: 0 0 12px 12px
}

.command-footer-icon {
  width: 20px;
  height: 20px;
  margin-right: auto
}

.command-footer-hr {
  height: 12px;
  width: 1px;
  border: 0;
  background: var(--gray6);
  margin: 0 4px 0 12px
}

.command-open-trigger {
  display: flex;
  align-items: center;
  color: var(--gray12);
  background: var(--grayA5);
  padding: 0 4px 0 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  height: 28px;
  letter-spacing: -.25px;
  cursor: default;
}

.command-subcommand-trigger .icon {
  width: 14px;
  height: 14px
}

.command-subcommand-trigger hr {
  height: 100%;
  background: var(--gray6);
  border: 0;
  width: 1px
}

.command-subcommand-trigger {
  color: var(--gray11);
  background: var(--grayA5);
  padding: 0 4px 0 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  height: 28px;
  letter-spacing: -.25px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.command-container kbd:first-of-type {
  margin-left: 8px;
}

.command-subcommand-trigger:hover {
  background: var(--gray4);
}

.command-container kbd {
  font-family: var(--font-sans);
  background: var(--gray3);
  color: var(--gray11);
  height: 20px;
  width: 20px;
  border-radius: 4px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
