.sheet {
    width: 100%;
    max-width: var(--phone-width);
    max-height: 85dvh;
    margin: auto auto 0;
    padding: 0;
    border: var(--border-quiet);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--color-bg);
    color: var(--color-fg);
}

.sheet[open] {
    animation: sheet-rise var(--transition-slow);
}

.sheet::backdrop {
    background: rgb(0 0 0 / 0.5);
}

.sheet__body {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
}

.sheet__heading {
    font-size: var(--text-lg);
    text-align: center;
}

.sheet__links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: calc(-1 * var(--space-2));
    font-size: var(--text-sm);
}

.sheet .choices__options--pills {
    justify-content: center;
}

@keyframes sheet-rise {
    from {
        transform: translateY(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sheet[open] {
        animation: none;
    }
}
