/* ===== Compatibility layer for new search overlay markup (search-mode-bar/btn/kbd) ===== */ .search-overlay .search-modal-header { display: flex; flex-direction: column; align-items: stretch; gap: 0.65rem; } .search-overlay .search-input-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.1rem 0; } .search-overlay .search-input-icon { color: #9ca3af; font-size: 1.1rem; line-height: 1; } .search-overlay .search-submit-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d1d5db; border-radius: 0.5rem; background: #f3f4f6; color: #374151; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; } .search-overlay .search-submit-btn:hover { background: #e5e7eb; color: #111827; } [data-theme="dark"] .search-overlay .search-submit-btn { background: #334155; border-color: #475569; color: #cbd5e1; } [data-theme="dark"] .search-overlay .search-submit-btn:hover { background: #475569; color: #f1f5f9; } .search-overlay .search-mode-bar { display: flex; gap: 0.5rem; } .search-overlay .search-mode-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.85rem; border-radius: 9999px; border: none; background: #e5e7eb; color: #374151; font-size: 0.8125rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.15s ease; } .search-overlay .search-mode-btn:hover { background: #d1d5db; } .search-overlay .search-mode-btn.active { background: #3b82f6; color: #ffffff; } [data-theme="dark"] .search-overlay .search-mode-btn { background: #374151; color: #d1d5db; } [data-theme="dark"] .search-overlay .search-mode-btn:hover { background: #4b5563; } [data-theme="dark"] .search-overlay .search-mode-btn.active { background: #3b82f6; color: #ffffff; } .search-overlay .search-mode-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.1rem; padding: 0.05rem 0.28rem; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); background: rgba(255, 255, 255, 0.65); font-size: 0.65rem; line-height: 1; } [data-theme="dark"] .search-overlay .search-mode-kbd { border-color: rgba(255, 255, 255, 0.18); background: rgba(15, 23, 42, 0.4); color: #e2e8f0; } @media (max-width: 768px) { .search-overlay .search-mode-bar { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .search-overlay .search-mode-btn { width: 100%; justify-content: center; padding: 0.55rem 0.45rem; } }