.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
    background: var(--mud-palette-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-bar-field {
    flex: 1;
    min-width: 0;
}

.search-bar-field .mud-input-control.mud-input-control-margin-dense.mud-input-outlined-with-label,
.search-bar-field .mud-input-control.mud-input-control-margin-dense {
    margin: 0;
}

.search-bar-field .mud-input {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}

.search-bar-field .mud-input > input.mud-input-root.mud-input-root-outlined.mud-input-root-margin-dense {
    height: 20px;
    line-height: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.search-bar-field .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-bar-field .mud-input.mud-input-outlined:not(.mud-input-error):focus-within .mud-input-outlined-border {
    border-width: 1px;
    box-shadow: 0 0 0 3px rgba(var(--mud-palette-primary-rgb), 0.12);
}

.search-bar .search-bar-button {
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
}

.pill-tabs .mud-tabs-tabbar {
    background: transparent;
}

.pill-tabs .mud-tabs-tabbar-content {
    overflow: visible;
    white-space: normal;
}

.pill-tabs .mud-tabs-scroll-button {
    display: none;
}

/* MudTabs slides the strip with an inline transform when it thinks the tabs overflow; they wrap instead. */
.pill-tabs .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    transform: none !important;
    gap: 4px;
    padding: 4px;
    background: var(--mud-palette-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pill-tabs .mud-tab {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 6px 18px;
    border-radius: 8px;
    color: var(--mud-palette-text-secondary);
    transition: background-color 150ms ease, color 150ms ease;
}

.pill-tabs .mud-tab:not(.mud-disabled):hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--mud-palette-text-primary);
}

.pill-tabs .mud-tab.mud-tab-active,
.pill-tabs .mud-tab.mud-tab-active:hover {
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
    color: var(--mud-palette-primary);
}

.pill-tabs .mud-tab-slider {
    display: none;
}

.pill-tabs .mud-tabs-panels {
    background: transparent;
}

.pill-tags .pill-tag.mud-chip {
    height: auto;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--mud-palette-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.pill-tags .pill-tag .mud-chip-icon {
    margin-inline-end: 6px;
    font-size: 16px;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 700px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pill-tabs .mud-tab {
        min-height: 32px;
        padding: 4px 12px;
        font-size: 13px;
    }
}
