@layer components {
    .dashboard-tax-preview {
            background: var(--dashboard-color-surface);
            border-top: 1px solid var(--dashboard-color-border);
            color: var(--dashboard-color-text);
        }

    .dashboard-tax-preview__header,
        .dashboard-tax-preview__locked {
            align-items: center;
            display: flex;
            gap: 1rem;
            justify-content: space-between;
            padding: var(--dashboard-section-header-padding-y) var(--dashboard-section-padding-x);
        }

    .dashboard-tax-preview__header > .dashboard-panel-title,
        .dashboard-tax-preview__locked > div:first-child {
            flex: 1 1 auto;
            min-width: 0;
        }

    .dashboard-tax-preview__header {
            border-bottom: 1px solid var(--dashboard-color-border);
        }

    .dashboard-tax-preview__actions {
            align-items: center;
            display: flex;
            flex-shrink: 0;
            flex-wrap: nowrap;
            gap: 0.5rem;
            justify-content: flex-end;
            width: auto;
        }

    .dashboard-tax-preview__year-form {
            display: flex;
        }

    .dashboard-tax-preview__year-select,
        .dashboard-tax-preview__year-pill {
            appearance: none;
            background: var(--dashboard-color-pill);
            border: 0;
            border-radius: var(--dashboard-radius-pill);
            color: var(--dashboard-color-text);
            display: inline-flex;
            font-size: 0.875rem;
            font-weight: 650;
            line-height: 1.25rem;
            min-height: 2.5rem;
            padding: 0.625rem 2.25rem 0.625rem 1rem;
        }

    .dashboard-tax-preview__year-select {
            background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                linear-gradient(135deg, currentColor 50%, transparent 50%);
            background-position: calc(100% - 1rem) 50%, calc(100% - 0.75rem) 50%;
            background-repeat: no-repeat;
            background-size: 0.25rem 0.25rem, 0.25rem 0.25rem;
            cursor: pointer;
        }

    .dashboard-tax-preview__year-select:hover {
            background-color: var(--dashboard-color-pill-hover);
        }

    .dashboard-tax-preview__year-select:focus {
            outline: 2px solid rgb(var(--dashboard-color-brand-rgb) / 0.35);
            outline-offset: 2px;
        }

    .dashboard-tax-preview__year-pill {
            padding-right: 1rem;
        }

    .dashboard-tax-preview__lede {
            color: var(--dashboard-color-text-muted);
            font-size: 0.9375rem;
            line-height: 1.5;
            margin-top: 0.375rem;
        }

    .dashboard-tax-preview__metrics {
            border-top: 0;
        }

    @media (min-width: 48rem) {
        .dashboard-tax-preview__header,
                .dashboard-tax-preview__locked {
                    padding: var(--dashboard-section-header-padding-y-lg) var(--dashboard-section-padding-x-lg);
                }
    }
}
