.search {
    position: relative;
    overflow: visible;
}

.search > button { border-radius: 0 12px 12px 0; }

.search-options {
    position: absolute;
    z-index: 5;
    top: calc(100% + .35rem);
    inset-inline: 0;
    max-height: min(22rem, 50vh);
    overflow: auto;
    margin: 0;
    padding: .25rem;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: .8rem;
    box-shadow: 0 7px 22px #20204c24;
}

.search-options [role="option"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    min-height: 40px;
    padding: .5rem .65rem;
    border-radius: .45rem;
    color: var(--ink);
    cursor: pointer;
    font-size: .875rem;
}

.search-options [role="option"]:hover,
.search-options [aria-selected="true"] {
    background: var(--surface);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.search-options .search-option-label { overflow-wrap: anywhere; }
.search-options small { flex: none; }
