/* Search Bar — sb */
.sb-form {
    display: block;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.1));
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.sb-form:focus-within {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #3b82f6) 12%, transparent);
}

.sb-inner {
    display: flex;
    align-items: stretch;
    min-height: 50px;
}

/* Type selector */
.sb-type-wrap {
    display: flex;
    align-items: center;
    position: relative;
    border-right: 1px solid var(--border, rgba(0,0,0,0.1));
    flex-shrink: 0;
    padding: 0 8px 0 4px;
}
.sb-type-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-on-bg, #111110);
    cursor: pointer;
    padding: 0 24px 0 10px;
    height: 100%;
    white-space: nowrap;
}
.sb-type-select option { background: var(--card-bg, #fff); color: var(--text-on-bg, #111); }
.sb-type-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #6f6e69);
    pointer-events: none;
    display: flex;
}

/* Input */
.sb-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-on-bg, #111110);
    padding: 14px 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.sb-input::placeholder { color: var(--text-muted, #6f6e69); }
.sb-input::-webkit-search-cancel-button { display: none; }

/* Clear button */
.sb-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6f6e69);
    transition: color 0.15s ease;
    padding: 0;
}
.sb-clear:hover { color: var(--text-on-bg, #111110); }

/* Submit button */
.sb-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    margin: 6px;
    padding: 0 20px;
    background-color: var(--primary, #3b82f6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.sb-submit:hover { transform: scale(1.02); }
.sb-submit-icon { flex-shrink: 0; }



@media (max-width: 480px) {
    .sb-submit-text { display: none; }
    .sb-submit { padding: 0 14px; }
}
