/* ============================================================
   Global Search Modal
   ============================================================ */
.global-search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 9vh 1.5rem 1.5rem;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 34%),
        rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}
.global-search-modal-panel {
    width: min(760px, 100%);
    max-height: min(72vh, 720px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 18%, #ffffff 100%);
    box-shadow: 0 38px 100px -34px rgba(15, 23, 42, 0.72);
    display: flex;
    flex-direction: column;
}
.global-search-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}
.global-search-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.global-search-modal-subtitle {
    margin-top: 0.28rem;
    font-size: 0.88rem;
    color: #64748b;
}
.global-search-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.global-search-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.global-search-input-wrap {
    margin: 1rem 1.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.8);
    padding: 0 1rem;
}
.global-search-input-wrap:focus-within {
    border-color: rgba(59, 130, 246, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(248, 250, 252, 0.8),
        0 0 0 4px rgba(59, 130, 246, 0.1);
}
.global-search-input-icon {
    color: #94a3b8;
    font-size: 1rem;
}
.global-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.95rem 0;
    font-size: 0.96rem;
    color: #0f172a;
}
.global-search-input::placeholder {
    color: #94a3b8;
}
.global-search-input-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.7rem;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}
.global-search-results {
    padding: 1rem 1.4rem 1.4rem;
    overflow-y: auto;
    min-height: 260px;
}
.global-search-section {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.global-search-section + .global-search-section {
    margin-top: 0.95rem;
}
.global-search-section-title {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.global-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    text-align: left;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.78);
    cursor: pointer;
    transition: background-color 0.12s ease;
}
.global-search-result:first-of-type {
    border-top: 0;
}
.global-search-result:hover,
.global-search-result.is-active {
    background: #eff6ff;
}
.global-search-results.global-search-results-keyboard-priority .global-search-result:hover:not(.is-active) {
    background: transparent;
}
.global-search-result-icon {
    width: 2.3rem;
    height: 2.3rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.2));
    color: #2563eb;
    font-size: 1rem;
}
.global-search-result-copy {
    min-width: 0;
    flex: 1;
}
.global-search-result-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: #0f172a;
}
.global-search-result-context {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.global-search-result-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 700;
}
.global-search-empty-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.global-search-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.global-search-empty-copy {
    margin-top: 0.45rem;
    max-width: 28rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
}
.global-search-empty-row,
.global-search-error,
.global-search-loading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.78);
    font-size: 0.82rem;
    color: #64748b;
}
.global-search-error {
    color: #b91c1c;
}
