.mwf-gsearch {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    padding: 0.5rem 1rem;
}
.mwf-gsearch__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.mwf-gsearch__icon { display: none; }
.mwf-gsearch__input {
    width: 100%;
    padding: 0.6rem 3rem 0.6rem 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.mwf-gsearch__input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.mwf-gsearch__input::placeholder { color: #484f58; }
.mwf-gsearch__kbd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    color: #8b949e;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
}
.mwf-gsearch__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #161b22;
    border: 1px solid #30363d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.mwf-gsearch__results.active { display: block; }
.mwf-gsearch__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    text-decoration: none !important;
    color: #e6edf3;
    border-bottom: 1px solid #21262d;
    transition: background 0.1s;
}
.mwf-gsearch__item:last-child { border-bottom: none; }
.mwf-gsearch__item:hover,
.mwf-gsearch__item[aria-selected="true"] {
    background: rgba(16,185,129,0.08);
    color: #e6edf3;
}
.mwf-gsearch__item-name {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mwf-gsearch__item-name mark {
    background: rgba(16,185,129,0.25);
    color: #10b981;
    border-radius: 2px;
    padding: 0 1px;
}
.mwf-gsearch__item-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    white-space: nowrap;
}
.mwf-gsearch__badge {
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mwf-gsearch__badge--p { background: rgba(16,185,129,0.15); color: #10b981; }
.mwf-gsearch__badge--t { background: rgba(59,130,246,0.15); color: #3b82f6; }
.mwf-gsearch__badge--e { background: rgba(249,115,22,0.15); color: #f97316; }
.mwf-gsearch__badge--c { background: rgba(168,85,247,0.15); color: #a855f7; }
.mwf-gsearch__badge--b { background: rgba(139,148,158,0.15); color: #8b949e; }
.mwf-gsearch__score { color: #8b949e; font-size: 0.75rem; }
.mwf-gsearch__score--a, .mwf-gsearch__score--b { color: #10b981; }
.mwf-gsearch__score--c { color: #f59e0b; }
.mwf-gsearch__score--d { color: #f97316; }
.mwf-gsearch__score--f { color: #ef4444; }
.mwf-gsearch__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #8b949e;
    font-size: 0.9rem;
}
.mwf-gsearch__count {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: #484f58;
    border-top: 1px solid #21262d;
}
@media (max-width: 640px) {
    .mwf-gsearch { padding: 0.4rem 0.75rem; }
    .mwf-gsearch__kbd { display: none; }
    .mwf-gsearch__input { padding-right: 1rem; font-size: 0.85rem; }
}
