/* Floating 🔍 search (15 Nov) — see js/fb-search.js */
.fbs-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1e3a8a); color: #fff;
  box-shadow: 0 8px 22px rgba(30, 58, 138, .35); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent;
}
.fbs-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 26px rgba(30, 58, 138, .42); }
.fbs-fab:active { transform: scale(.96); }
.fbs-fab:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.fbs-fab .material-icons { font-size: 30px; }
body.fbs-open .fbs-fab { display: none; }

.fbs-modal { position: fixed; inset: 0; z-index: 6000; background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.fbs-modal[hidden] { display: none; }
.fbs-box { width: 100%; max-width: 620px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  padding: 18px 18px 14px; max-height: 76vh; overflow-y: auto; box-sizing: border-box; }
.fbs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.fbs-head b { font-size: 19px; color: #0f172a; }
.fbs-x { border: none; background: #f1f5f9; color: #334155; border-radius: 10px; width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fbs-x:hover { background: #e2e8f0; }
.fbs-form { display: flex; gap: 8px; align-items: stretch; }
.fbs-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid #cbd5e1;
  border-radius: 12px; outline: none; color: #0f172a; background: #fff; }
.fbs-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.fbs-mic, .fbs-go { border: none; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; }
.fbs-mic { width: 48px; background: #f1f5f9; color: #1e3a8a; }
.fbs-mic.on { background: #fee2e2; color: #dc2626; animation: fbs-pulse 1.2s infinite; }
.fbs-go { padding: 0 16px; background: #2563eb; color: #fff; font-size: 16px; }
.fbs-go:hover { background: #1d4ed8; }
.fbs-go.busy { opacity: .7; }
.fbs-status { min-height: 0; margin-top: 10px; font-size: 15px; color: #334155; line-height: 1.45; }
.fbs-status:empty { display: none; }
.fbs-status.fbs-warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; }
.fbs-status.fbs-err { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; }
.fbs-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid #bfdbfe; border-top-color: #2563eb;
  border-radius: 50%; animation: fbs-rot .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
.fbs-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; margin: 14px 0 6px; }
.fbs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fbs-chip { border: 1px solid #cbd5e1; background: #f8fafc; color: #1e293b; border-radius: 999px; padding: 8px 12px;
  font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbs-chip:hover { background: #eff6ff; border-color: #93c5fd; }
.fbs-chip .material-icons { font-size: 16px; color: #94a3b8; }
.fbs-alts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fbs-alts > span, .fbs-small { font-size: 13px; color: #64748b; }

.fbs-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 950; width: min(640px, calc(100vw - 120px));
  background: #0f172a; color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .35);
  box-sizing: border-box; }
.fbs-bar[hidden] { display: none; }
.fbs-bar-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.fbs-bar-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbs-bar .fbs-x { background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; }
.fbs-bar .fbs-chips { margin-top: 8px; }
.fbs-bar .fbs-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; padding: 6px 10px; }
.fbs-bar .fbs-small { color: #cbd5e1; }

.fbs-mbanner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 8px 10px 8px 12px; font-size: 14px; }
.fbs-mbanner button { border: none; background: #dbeafe; color: #1e3a8a; border-radius: 8px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }

.fbs-flash { animation: fbs-flash 1.4s ease 3; border-radius: 8px; }
@keyframes fbs-flash { 0%, 100% { background-color: transparent; box-shadow: none; }
  40% { background-color: #fef08a; box-shadow: 0 0 0 3px #facc15; } }
@keyframes fbs-rot { to { transform: rotate(360deg); } }
@keyframes fbs-pulse { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .15); } }

@media (max-width: 768px) {
  .fbs-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .fbs-modal { padding: 10px; align-items: flex-start; }
  .fbs-box { max-height: calc(100vh - 20px); border-radius: 16px; padding: 14px; }
  .fbs-go span:last-child { display: none; }
  .fbs-go { width: 48px; padding: 0; }
  .fbs-bar { width: calc(100vw - 32px); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fbs-fab, .fbs-flash, .fbs-spin, .fbs-mic.on { animation: none; transition: none; }
}

/* (15 Nov) The Full List filter bar works on the wide-screen list only; on a phone it showed under the cards and
   did nothing (the phone list is drawn separately). Phones use the 🔍 search, which filters the phone list. */
@media (max-width: 768px) {
  #full-filter-bar { display: none !important; }
}
