/* Utilities used by this page that the upstream bundle did not include.
   Values follow the same Tailwind v4 scale as the rest of the sheet. */

.py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5)
}

.pb-10 {
    padding-bottom: calc(var(--spacing) * 10)
}

.mt-6 {
    margin-top: calc(var(--spacing) * 6)
}

.mb-3 {
    margin-bottom: calc(var(--spacing) * 3)
}

.gap-5 {
    gap: calc(var(--spacing) * 5)
}

.h-2 {
    height: calc(var(--spacing) * 2)
}

.px-2 {
    padding-inline: calc(var(--spacing) * 2)
}

.py-1 {
    padding-block: var(--spacing)
}

.size-5 {
    width: calc(var(--spacing) * 5);
    height: calc(var(--spacing) * 5)
}

.text-\[13\.5px\] {
    font-size: 13.5px
}

.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media (min-width: 40rem) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (min-width: 64rem) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

/* The form panel needs a taller drop area than the reference image uploader. */
.min-h-\[240px\] {
    min-height: 240px
}

.max-md\:min-h-\[180px\] {
    min-height: 180px
}

@media not all and (min-width: 48rem) {
    .max-md\:min-h-\[180px\] {
        min-height: 180px
    }
}

/* Selected/hover state for the endpoint tabs. */
.tab-active {
    background-color: var(--color-surface2);
    color: var(--color-ink)
}

/* Form controls inherit the dark palette: no light scrollbars or resize grip
   against the near-black surfaces. */
textarea {
    resize: vertical
}

textarea,
pre {
    scrollbar-width: thin;
    scrollbar-color: #3a413e transparent
}

textarea::-webkit-scrollbar,
pre::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

textarea::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track {
    background: transparent
}

textarea::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
    background-color: #3a413e;
    border-radius: 4px
}

textarea::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
    background-color: #4b5450
}

textarea::-webkit-resizer {
    background-color: transparent
}

::selection {
    background-color: rgba(74, 222, 128, 0.25)
}
