@layer components {
    .dropdown {
        border-radius: calc(var(--control-block-size) / 2 + 0.375rem);
        margin-top: 0.25rem;
        padding: 0.5rem;
        border: 0;
        box-shadow:
            0 0 0 1px var(--hairline),
            0 0.5rem 1.5rem
                light-dark(oklch(0% 0 0deg / 12%), oklch(0% 0 0deg / 40%));
        position: absolute;
        position-anchor: auto;
        position-area: bottom span-right;
        position-try:
            flip-inline,
            flip-block,
            flip-block flip-inline;

        /* Its own thick material: a light wash in light mode, and in dark
           mode a dark surface close to the tertiary system background, so
           it never reads as a grey wash over dark content. */
        backdrop-filter: blur(1.25rem) saturate(1.8);
        background-color: light-dark(
            oklch(from var(--system-background) 98% c h / 82%),
            oklch(from var(--system-background) 29.4% c h / 90%)
        );
        color: var(--label);
    }

    @container style(--density: compact) {
        :root .dropdown {
            --icon-size: 1rem;

            border-radius: 0.625rem;
            margin-top: 0.125rem;
            padding: 0.3125rem;
        }
    }
}
