/* Kept separate from the theme's former transparent search overrides. */
#fc-search-panel,#fc-search-shade { box-sizing:border-box; }
#fc-search-panel[hidden],#fc-search-shade[hidden],#fc-search-panel [hidden] { display:none!important; }
#fc-search-shade { position:fixed; inset:0; z-index:10000; background:#202b2466; }
#fc-search-panel { position:fixed; z-index:10001; top:min(10vh,80px); left:50%; transform:translateX(-50%); width:calc(100% - 48px); max-width:640px; max-height:calc(var(--fc-search-height,100dvh) - 120px); display:flex; flex-direction:column; padding:28px; border:1px solid var(--fc-line,#d9ded2); border-radius:12px; background:var(--fc-surface,#fffdf8); color:var(--fc-ink,#303a34); box-shadow:0 20px 80px #202b242b; font-family:system-ui,-apple-system,'Microsoft YaHei',sans-serif; }
#fc-search-panel * { box-sizing:border-box; }
#fc-search-panel .fc-search-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
#fc-search-panel .fc-search-eyebrow { color:var(--fc-rust,#a45c42); letter-spacing:2px; font-size:10px; }
#fc-search-title { margin:8px 0 0; font:500 27px/1.5 'Songti SC',SimSun,serif; color:inherit; }
#fc-search-panel button { flex:none; cursor:pointer; color:var(--fc-green,#45634f); background:transparent; border:0; font:inherit; }
#fc-search-close,#fc-search-clear { width:44px; height:44px; font:28px/1 system-ui!important; border-radius:50%; }
#fc-search-close:hover,#fc-search-clear:hover { background:var(--fc-paper,#f6f4ed); }
#fc-search-panel .fc-search-label { display:block; margin-bottom:8px; font-size:12px; color:var(--fc-muted,#6b736b); }
#fc-search-panel .fc-search-field { display:flex; align-items:center; border:1px solid var(--fc-line,#d9ded2); border-radius:6px; background:var(--fc-paper,#f6f4ed); }
#fc-search-panel .fc-search-field:focus-within { outline:2px solid var(--fc-green,#45634f); outline-offset:2px; }
#fc-search-query { display:block; min-width:0; flex:1; width:100%; height:50px; padding:0 14px; outline:none; border:0; border-radius:6px; box-shadow:none; background:transparent; color:var(--fc-ink,#303a34); font:16px/1.5 system-ui,-apple-system,'Microsoft YaHei',sans-serif; }
#fc-search-query::placeholder { color:var(--fc-muted,#6b736b); opacity:.8; }
#fc-search-status { flex:none; margin:18px 0 12px; font-size:12px; line-height:1.7; color:var(--fc-muted,#6b736b); }
#fc-search-results { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
#fc-search-results ol { list-style:none; padding:0; margin:0; }
#fc-search-results li { border-bottom:1px solid var(--fc-line,#d9ded2); margin:0; padding:0; }
#fc-search-results a { display:block; padding:18px 10px 18px 2px; color:var(--fc-ink,#303a34); border-radius:4px; }
#fc-search-results a:hover { background:var(--fc-paper,#f6f4ed); }
#fc-search-results h3 { color:inherit; font-size:17px; line-height:1.6; margin:0 0 8px; font-weight:600; }
#fc-search-results p { color:var(--fc-muted,#6b736b); font-size:13px; line-height:1.9; margin:0; overflow-wrap:anywhere; }
#fc-search-results mark { background:#b6c7a94d; color:var(--fc-green,#45634f); border-radius:2px; padding:0 1px; font-weight:600; }
#fc-search-panel .fc-search-footer { margin-top:18px; padding-top:14px; border-top:1px solid var(--fc-line,#d9ded2); color:var(--fc-muted,#6b736b); font-size:10px; letter-spacing:.4px; }
#fc-search-retry { align-self:flex-start; min-height:44px; padding:8px 14px; border:1px solid var(--fc-line,#d9ded2)!important; border-radius:4px; }
@media(max-width:600px) {
  #fc-search-panel { top:12px; width:calc(100% - 24px); padding:22px 20px; max-height:calc(var(--fc-search-height,100dvh) - 24px); border-radius:10px; }
  #fc-search-panel .fc-search-heading { margin-bottom:22px; }
  #fc-search-title { font-size:24px; }
}
