/* Type-and-suggest picker (Franco 2026-07-10). Paired with static/js/typeahead.js and
   templates/components/typeahead_field.html. Neutral tokens so it inherits the page theme. */
.typeahead {
    position: relative;
    display: block;
}
.typeahead-label {
    display: block;
    font-weight: 600;
}
.typeahead-control {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.3rem;
}
.typeahead-input {
    width: 100%;
    padding-right: 2rem;
}
.typeahead-clear {
    position: absolute;
    right: 0.4rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.25rem;
}
.typeahead-clear:hover {
    opacity: 1;
}
.typeahead-status {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.typeahead-menu {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.25rem;
    list-style: none;
    max-height: 16rem;
    overflow-y: auto;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.typeahead-option {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
}
.typeahead-option.is-active,
.typeahead-option:hover {
    background: var(--surface-muted, rgba(0, 0, 0, 0.06));
}
.typeahead-option-label {
    font-weight: 600;
}
.typeahead-option-detail {
    font-size: 0.76rem;
}
.typeahead-empty,
.typeahead-help {
    font-size: 0.78rem;
    margin: 0.3rem 0 0;
}
