@layer components {
  /* A bar for how far along something is: <progress class="progress" value="12" max="30">. Filled in its color, so
     that a bar can take another (the AI usage, ai_usage.css). */
  .progress {
    appearance: none;
    inline-size: 100%;
    block-size: 0.75rem;
    border: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background-color: var(--color-border);
    color: var(--color-blue-accent);

    &::-webkit-progress-bar {
      background-color: var(--color-border);
    }

    &::-webkit-progress-value {
      background-color: currentColor;
      border-radius: var(--radius-pill);
    }

    &::-moz-progress-bar {
      background-color: currentColor;
      border-radius: var(--radius-pill);
    }
  }
}
