.TagPage .tag-browse-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.TagPage .tag-browse-trigger:focus-visible {
    text-decoration: underline;
}

.tag-browse-drawer .tag-browse-more {
    font-size: 1rem;
}

.tag-browse-drawer {
    padding: 1rem;
    font-size: 1rem;
}

.tag-browse-drawer[hidden],
.tag-browse-drawer [hidden] {
    display: none;
}

.tag-browse-controls {
    display: grid;
    gap: .375rem;
    margin-bottom: 1rem;
}

.tag-browse-drawer .TagCloud a[aria-current="true"] {
    color: var(--wol-link-color, #176196);
    text-decoration: underline;
    font-weight: 700;
}

.tag-browse-status {
    margin: .75rem 0 0;
}

.tag-browse-status:empty {
    display: none;
}

.tag-browse-more {
    margin-top: .75rem;
}

.tag-browse-views,
.tag-browse-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.tag-browse-views {
    margin-bottom: .5rem;
}

.tag-browse-type-options {
    gap: .25rem;
}

.tag-browse-views .btn {
    font-size: 1rem;
}

.tag-browse-views [aria-pressed="true"] {
    background-color: #eaf1f8;
    border-color: #527595;
    color: #203d59;
    box-shadow: inset 0 0 0 1px #527595;
}

.tag-browse-type-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 1.75rem;
    margin: 0;
    padding: .125rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.tag-browse-type-pill:hover {
    border-color: #527595;
}

.tag-browse-type-pill:has(input:checked) {
    border-color: #527595;
    background-color: #eaf1f8;
    color: #203d59;
}

.tag-browse-type-pill input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #28639a;
    cursor: pointer;
}

.tag-browse-type-pill:has(input:disabled) {
    border-color: #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
    cursor: default;
}

.tag-browse-type-pill input:disabled {
    cursor: default;
}

.tag-browse-type-pill input:focus-visible + span {
    text-decoration: underline;
}

.tag-browse-types {
    min-width: 0;
    margin-top: .375rem;
}

.tag-browse-types legend {
    margin: 0 0 .375rem;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
}

.tag-browse-type-help {
    margin: 0 0 .625rem;
    line-height: 1.5;
}

.tag-browse-cloud .tag-browse-tag-control {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    line-height: 1.25;
    cursor: pointer;
}

.tag-browse-cloud .tag-browse-tag-control:hover,
.tag-browse-cloud .tag-browse-tag-control:focus-visible,
.tag-browse-cloud [aria-current="true"] {
    text-decoration: underline;
}

.tag-browse-brain-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.tag-browse-brain-actions .btn {
    font-size: 1rem;
}

.tag-browse-brain-title {
    margin: 0 0 .75rem;
    font-size: 1.125rem;
}

.tag-browse-empty {
    margin-top: .75rem;
}

.tag-browse-brain {
    text-align: center;
}

.tag-browse-brain-seed {
    width: fit-content;
    max-width: 100%;
    margin: .5rem auto 0;
    padding: .5rem .75rem;
    border: 1px solid #527595;
    border-radius: .5rem;
    background: #eaf1f8;
    color: #203d59;
    font-size: 1.125rem;
    overflow-wrap: anywhere;
}

.tag-browse-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem 1.5rem;
    margin: 0;
    padding: .75rem 0 0;
    list-style: none;
}

.tag-browse-branches::before {
    position: absolute;
    inset: 0 auto 1.5rem 50%;
    width: 1px;
    background: #809ab3;
    content: "";
}

.tag-browse-branches li {
    position: relative;
}

.tag-browse-branches li::before {
    position: absolute;
    inset: 50% -.75rem auto auto;
    width: .75rem;
    border-top: 1px solid #809ab3;
    content: "";
}

.tag-browse-branches li:nth-child(even)::before {
    inset-inline: -.75rem auto;
}

.tag-browse-branches .btn {
    width: 100%;
    height: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.tag-browse-shared {
    display: block;
    color: #53616e;
    font-size: .875rem;
}
