/* Virii8 Core Frontend Advanced Searchbar */
.v8e-frontend-searchbar {
  --v8e-fs-bg: rgba(15, 23, 42, .96);
  --v8e-fs-panel: rgba(255, 255, 255, .985);
  --v8e-fs-soft: rgba(241, 245, 249, .94);
  --v8e-fs-border: rgba(148, 163, 184, .36);
  --v8e-fs-text: #0f172a;
  --v8e-fs-muted: #64748b;
  --v8e-fs-accent: #0284c7;
  --v8e-fs-accent-strong: #0369a1;
  --v8e-fs-good: #15803d;
  --v8e-fs-warn: #b45309;
  --v8e-fs-error: #b91c1c;
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  color: var(--v8e-fs-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 20;
}
.v8e-frontend-searchbar * { box-sizing: border-box; }
.v8e-searchbar-shell {
  border: 1px solid var(--v8e-fs-border);
  border-radius: 20px;
  background: var(--v8e-fs-panel);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
  overflow: hidden;
}
.v8e-searchbar-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(2,132,199,.10), rgba(14,165,233,.03));
}
.v8e-searchbar-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(2, 132, 199, .12);
}
.v8e-searchbar-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--v8e-fs-border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--v8e-fs-text);
  background: #fff;
  font-size: 16px;
  outline: none;
}
.v8e-searchbar-input:focus {
  border-color: var(--v8e-fs-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .14);
}
.v8e-searchbar-submit,
.v8e-searchbar-clear,
.v8e-searchbar-open {
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  color: #fff;
  background: var(--v8e-fs-accent-strong);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}
.v8e-searchbar-clear {
  width: 38px;
  padding: 0;
  color: var(--v8e-fs-text);
  background: rgba(148, 163, 184, .18);
  border: 1px solid var(--v8e-fs-border);
  font-size: 22px;
}
.v8e-searchbar-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) minmax(190px, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 0 12px 12px;
  background: linear-gradient(135deg, rgba(2,132,199,.10), rgba(14,165,233,.03));
}
.v8e-searchbar-select[hidden] { display: none !important; }
.v8e-searchbar-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--v8e-fs-border);
  border-radius: 12px;
  padding: 9px 10px;
  color: var(--v8e-fs-text);
  background: #fff;
  font-size: 13px;
}
.v8e-searchbar-hint,
.v8e-searchbar-status {
  color: var(--v8e-fs-muted);
  font-size: 12px;
  line-height: 1.35;
}
.v8e-searchbar-status {
  padding: 8px 14px;
  border-top: 1px solid rgba(148, 163, 184, .20);
  background: rgba(248, 250, 252, .86);
}
.v8e-searchbar-status[data-tone="busy"] { color: var(--v8e-fs-accent-strong); }
.v8e-searchbar-status[data-tone="success"] { color: var(--v8e-fs-good); }
.v8e-searchbar-status[data-tone="warn"] { color: var(--v8e-fs-warn); }
.v8e-searchbar-status[data-tone="error"] { color: var(--v8e-fs-error); }
.v8e-searchbar-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(72vh, 740px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--v8e-fs-border);
  border-radius: 20px;
  background: var(--v8e-fs-panel);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}
.v8e-searchbar-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 12px;
  color: var(--v8e-fs-muted);
  font-size: 12px;
}
.v8e-searchbar-results-head strong { color: var(--v8e-fs-text); font-size: 13px; }
.v8e-searchbar-group { margin-bottom: 14px; }
.v8e-searchbar-group-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: rgba(2, 132, 199, .08);
  color: var(--v8e-fs-accent-strong);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 900;
}
.v8e-searchbar-group-title b {
  min-width: 26px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--v8e-fs-accent-strong);
}
.v8e-searchbar-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 16px;
  background: #fff;
}
.v8e-searchbar-card:hover {
  border-color: rgba(2, 132, 199, .42);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.v8e-searchbar-thumb-wrap {
  position: relative;
  width: 74px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(248, 250, 252, .92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.v8e-searchbar-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v8e-searchbar-thumb-icon {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 11px;
}
.v8e-searchbar-thumb-wrap.has-broken-thumb .v8e-searchbar-thumb { display: none; }
.v8e-searchbar-card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(248, 250, 252, .92);
  font-size: 22px;
}
.v8e-searchbar-card-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--v8e-fs-text);
}
.v8e-searchbar-card-excerpt {
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  line-height: 1.42;
}
.v8e-searchbar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.v8e-searchbar-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #475569;
  background: rgba(248, 250, 252, .9);
  font-size: 11px;
  font-weight: 700;
}
.v8e-searchbar-pill.is-good {
  color: #166534;
  background: rgba(220, 252, 231, .70);
  border-color: rgba(34, 197, 94, .28);
}
.v8e-searchbar-empty {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, .44);
  border-radius: 16px;
  color: var(--v8e-fs-muted);
  text-align: center;
  background: rgba(248, 250, 252, .72);
}
.v8e-searchbar-empty strong { color: var(--v8e-fs-text); }
.v8e-searchbar-empty.is-error strong { color: var(--v8e-fs-error); }
.v8e-searchbar-noscript { padding: 10px 14px; color: var(--v8e-fs-warn); }
.v8e-frontend-searchbar.is-compact .v8e-searchbar-tools { display: none; }
.v8e-frontend-searchbar.is-searching .v8e-searchbar-shell { box-shadow: 0 18px 50px rgba(2, 132, 199, .20); }
@media (max-width: 720px) {
  .v8e-searchbar-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .v8e-searchbar-submit { display: none; }
  .v8e-searchbar-tools { grid-template-columns: 1fr; }
  .v8e-searchbar-results {
    position: fixed;
    inset: auto 10px max(10px, env(safe-area-inset-bottom, 0px)) 10px;
    top: auto;
    max-height: min(78dvh, 720px);
    z-index: 2147483000;
  }
  .v8e-searchbar-card { grid-template-columns: 64px minmax(0, 1fr); }
  .v8e-searchbar-thumb-wrap { width: 64px; height: 52px; }
  .v8e-searchbar-card-action { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
}
@media (prefers-color-scheme: dark) {
  .v8e-frontend-searchbar {
    --v8e-fs-panel: rgba(15, 23, 42, .98);
    --v8e-fs-soft: rgba(30, 41, 59, .92);
    --v8e-fs-border: rgba(148, 163, 184, .28);
    --v8e-fs-text: #f8fafc;
    --v8e-fs-muted: #94a3b8;
  }
  .v8e-searchbar-input,
  .v8e-searchbar-select,
  .v8e-searchbar-card {
    color: var(--v8e-fs-text);
    background: rgba(2, 6, 23, .72);
  }
  .v8e-searchbar-card-excerpt { color: #cbd5e1; }
  .v8e-searchbar-status,
  .v8e-searchbar-empty { background: rgba(2, 6, 23, .42); }
  .v8e-searchbar-pill { color: #cbd5e1; background: rgba(15, 23, 42, .76); }
}

/* v1.6.260: widget/shortcode customization controls */
.v8e-frontend-searchbar { max-width: var(--v8e-fs-max-width, 980px); }
.v8e-frontend-searchbar.is-align-left { margin-left: 0; margin-right: auto; }
.v8e-frontend-searchbar.is-align-center { margin-left: auto; margin-right: auto; }
.v8e-frontend-searchbar.is-align-right { margin-left: auto; margin-right: 0; }
.v8e-frontend-searchbar.is-align-full { max-width: none; margin-left: 0; margin-right: 0; }
.v8e-searchbar-title {
  padding: 12px 14px 0;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--v8e-fs-text);
}
.v8e-searchbar-hint-standalone { padding: 0 14px 10px; }
.v8e-frontend-searchbar.is-size-small .v8e-searchbar-row { padding: 8px; gap: 8px; }
.v8e-frontend-searchbar.is-size-small .v8e-searchbar-input { padding: 9px 11px; font-size: 14px; }
.v8e-frontend-searchbar.is-size-small .v8e-searchbar-icon { width: 31px; height: 31px; border-radius: 10px; }
.v8e-frontend-searchbar.is-size-small .v8e-searchbar-submit,
.v8e-frontend-searchbar.is-size-small .v8e-searchbar-clear { min-height: 33px; }
.v8e-frontend-searchbar.is-size-large .v8e-searchbar-row { padding: 15px; gap: 12px; }
.v8e-frontend-searchbar.is-size-large .v8e-searchbar-input { padding: 15px 16px; font-size: 18px; }
.v8e-frontend-searchbar.is-size-large .v8e-searchbar-icon { width: 42px; height: 42px; }
.v8e-frontend-searchbar.is-theme-light {
  --v8e-fs-panel: rgba(255,255,255,.99);
  --v8e-fs-soft: rgba(241,245,249,.94);
  --v8e-fs-text: #0f172a;
  --v8e-fs-muted: #64748b;
}
.v8e-frontend-searchbar.is-theme-dark {
  --v8e-fs-panel: rgba(15,23,42,.98);
  --v8e-fs-soft: rgba(30,41,59,.92);
  --v8e-fs-border: rgba(148,163,184,.28);
  --v8e-fs-text: #f8fafc;
  --v8e-fs-muted: #94a3b8;
}
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-input,
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-select,
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-card {
  color: var(--v8e-fs-text);
  background: rgba(2,6,23,.72);
}
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-card-excerpt { color: #cbd5e1; }
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-status,
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-empty { background: rgba(2,6,23,.42); }
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-pill { color: #cbd5e1; background: rgba(15,23,42,.76); }
.v8e-frontend-searchbar.is-theme-glass .v8e-searchbar-shell,
.v8e-frontend-searchbar.is-theme-glass .v8e-searchbar-results {
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px) saturate(150%);
}
.v8e-frontend-searchbar.is-theme-minimal .v8e-searchbar-shell {
  border-radius: 14px;
  box-shadow: none;
}
.v8e-frontend-searchbar.is-theme-minimal .v8e-searchbar-row,
.v8e-frontend-searchbar.is-theme-minimal .v8e-searchbar-tools {
  background: transparent;
}

/* v1.6.261: movable frontend/widget searchbar support */
.v8e-frontend-searchbar.is-movable .v8e-searchbar-row {
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
}
.v8e-searchbar-drag-handle {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--v8e-fs-border);
  border-radius: 12px;
  color: var(--v8e-fs-muted);
  background: rgba(148, 163, 184, .12);
  cursor: grab;
  font-weight: 900;
  line-height: 1;
}
.v8e-searchbar-drag-handle:active,
.v8e-frontend-searchbar.is-dragging .v8e-searchbar-drag-handle { cursor: grabbing; }
.v8e-frontend-searchbar.is-floating {
  max-width: calc(100vw - 16px) !important;
  margin: 0 !important;
  touch-action: none;
}
.v8e-frontend-searchbar.is-floating .v8e-searchbar-results { z-index: 2147482501; }
.v8e-frontend-searchbar.is-taskbar-embedded {
  width: min(520px, 42vw) !important;
  max-width: min(520px, 42vw) !important;
  margin: 0 8px !important;
  z-index: 2;
}
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-shell {
  border-radius: 14px;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  border-color: rgba(255,255,255,.16);
}
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-row {
  padding: 4px;
  gap: 6px;
  background: rgba(255,255,255,.10);
  border-radius: 14px;
}
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-icon,
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-drag-handle,
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-clear {
  width: 30px;
  height: 30px;
  min-height: 30px;
}
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-input {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 13px;
  border-radius: 10px;
}
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-submit,
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-tools,
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-status,
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-title { display: none !important; }
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-results {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(66px, calc(env(safe-area-inset-bottom, 0px) + 66px));
  top: auto;
  max-height: min(68dvh, 680px);
}
@media (max-width: 720px) {
  .v8e-frontend-searchbar.is-movable .v8e-searchbar-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .v8e-frontend-searchbar.is-taskbar-embedded { width: min(88vw, 440px) !important; max-width: min(88vw, 440px) !important; }
}

/* v1.6.265: taskbar embedded frontend/widget searchbar results portal */
.v8e-searchbar-results.is-portaled {
  position: fixed;
  z-index: 2147483002;
  max-width: calc(100vw - 24px);
  overscroll-behavior: contain;
  pointer-events: auto;
}
.v8e-searchbar-results.is-portaled[hidden] {
  display: none !important;
}
.v8e-searchbar-results.is-taskbar-portaled {
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  top: auto;
  bottom: max(66px, calc(env(safe-area-inset-bottom, 0px) + 66px));
  max-height: min(68dvh, 680px);
}
@media (max-width: 720px) {
  .v8e-searchbar-results.is-taskbar-portaled {
    bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 86px));
    max-height: min(68dvh, 560px);
  }
}

/* v1.6.266: search results UX, pagination, and admin-only diagnostics */
.v8e-searchbar-admin-note {
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(2,132,199,.24);
  border-radius: 13px;
  color: var(--v8e-fs-accent-strong);
  background: rgba(2,132,199,.08);
  font-size: 11px;
  line-height: 1.35;
}
.v8e-searchbar-pill.is-type { font-weight: 900; }
.v8e-searchbar-pill.is-match {
  color: #075985;
  background: rgba(224,242,254,.88);
  border-color: rgba(14,165,233,.28);
}
.v8e-searchbar-pill.is-debug {
  color: #7c3aed;
  background: rgba(124,58,237,.10);
  border-color: rgba(124,58,237,.22);
}
.v8e-searchbar-more-wrap {
  position: sticky;
  bottom: -12px;
  padding: 12px 0 2px;
  margin-top: 8px;
  background: linear-gradient(to top, var(--v8e-fs-panel), rgba(255,255,255,.72), rgba(255,255,255,0));
  text-align: center;
}
.v8e-searchbar-more {
  width: min(380px, 100%);
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  color: #fff;
  background: var(--v8e-fs-accent-strong);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2,132,199,.18);
}
.v8e-searchbar-more:hover { filter: brightness(1.08); }
.v8e-searchbar-results:not(.has-admin-diagnostics) .v8e-searchbar-pill.is-debug,
.v8e-searchbar-results:not(.has-admin-diagnostics) .v8e-searchbar-admin-note { display: none !important; }
@media (prefers-color-scheme: dark) {
  .v8e-searchbar-more-wrap {
    background: linear-gradient(to top, rgba(15,23,42,.98), rgba(15,23,42,.82), rgba(15,23,42,0));
  }
}


/* v1.6.268: enterprise search result cards, highlights, breadcrumbs, keyboard focus */
.v8e-searchbar-card:focus,
.v8e-searchbar-card.is-active {
  outline: none;
  border-color: rgba(2, 132, 199, .62);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .16), 0 10px 26px rgba(15, 23, 42, .08);
}
.v8e-searchbar-card-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(2, 132, 199, .10);
  border: 1px solid rgba(2, 132, 199, .14);
  font-size: 20px;
  line-height: 1;
}
.v8e-searchbar-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 0 0 4px;
  color: var(--v8e-fs-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}
.v8e-searchbar-breadcrumb span {
  color: rgba(100, 116, 139, .72);
  font-weight: 900;
}
.v8e-searchbar-mark {
  padding: 0 .12em;
  border-radius: .25em;
  color: inherit;
  background: rgba(250, 204, 21, .42);
  box-shadow: inset 0 -1px 0 rgba(202, 138, 4, .18);
}
.v8e-searchbar-pill.is-breakdown {
  max-width: min(100%, 520px);
  white-space: normal;
  line-height: 1.25;
}
.v8e-searchbar-card-action { align-self: center; }
.v8e-searchbar-card-action .v8e-searchbar-open { white-space: nowrap; }
@media (max-width: 720px) {
  .v8e-searchbar-card { grid-template-columns: auto minmax(0, 1fr); }
  .v8e-searchbar-card-action { grid-column: 1 / -1; justify-content: stretch; }
  .v8e-searchbar-card-action .v8e-searchbar-open { width: 100%; }
  .v8e-searchbar-card-icon { width: 34px; height: 34px; font-size: 18px; }
}
@media (prefers-color-scheme: dark) {
  .v8e-searchbar-card-icon { background: rgba(14, 165, 233, .12); border-color: rgba(14, 165, 233, .22); }
  .v8e-searchbar-mark { background: rgba(250, 204, 21, .30); }
}
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-card-icon { background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.22); }
.v8e-frontend-searchbar.is-theme-dark .v8e-searchbar-mark { background: rgba(250,204,21,.30); }

/* v1.6.276: search results window close-on-open support, theme parity, matrix mode, and viewport-safe sizing */
.v8e-searchbar-results {
  color: var(--v8e-fs-text);
  scrollbar-gutter: stable both-edges;
}
.v8e-searchbar-results-head {
  flex-wrap: wrap;
  align-items: flex-start;
}
.v8e-searchbar-results-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: min(100%, 240px);
}
.v8e-searchbar-results-theme {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-left: auto;
}
.v8e-searchbar-theme-btn {
  border: 1px solid var(--v8e-fs-border);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--v8e-fs-muted);
  background: rgba(148, 163, 184, .12);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.v8e-searchbar-theme-btn:hover,
.v8e-searchbar-theme-btn.is-active {
  color: #fff;
  border-color: rgba(2,132,199,.54);
  background: var(--v8e-fs-accent-strong);
}
.v8e-searchbar-theme-btn.is-close {
  min-width: 28px;
  color: var(--v8e-fs-text);
  background: rgba(148, 163, 184, .18);
}
.v8e-searchbar-theme-btn.is-close:hover {
  color: #fff;
  border-color: rgba(185, 28, 28, .45);
  background: var(--v8e-fs-error);
}
.v8e-searchbar-results.is-portaled {
  max-width: calc(100vw - 16px);
  contain: layout paint;
}
.v8e-searchbar-results.is-theme-light {
  --v8e-fs-panel: rgba(255,255,255,.99);
  --v8e-fs-soft: rgba(241,245,249,.94);
  --v8e-fs-border: rgba(148,163,184,.36);
  --v8e-fs-text: #0f172a;
  --v8e-fs-muted: #64748b;
  background: var(--v8e-fs-panel);
}
.v8e-searchbar-results.is-theme-dark {
  --v8e-fs-panel: rgba(15,23,42,.98);
  --v8e-fs-soft: rgba(30,41,59,.92);
  --v8e-fs-border: rgba(148,163,184,.28);
  --v8e-fs-text: #f8fafc;
  --v8e-fs-muted: #94a3b8;
  background: var(--v8e-fs-panel);
}
.v8e-frontend-searchbar.is-theme-matrix,
.v8e-searchbar-results.is-theme-matrix {
  --v8e-fs-panel: rgba(0, 15, 9, .97);
  --v8e-fs-soft: rgba(0, 35, 20, .86);
  --v8e-fs-border: rgba(34, 255, 136, .28);
  --v8e-fs-text: #d8ffe8;
  --v8e-fs-muted: #72d69c;
  --v8e-fs-accent: #00ff88;
  --v8e-fs-accent-strong: #00c76f;
  --v8e-fs-good: #4ade80;
  --v8e-fs-warn: #facc15;
  --v8e-fs-error: #fb7185;
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-shell,
.v8e-searchbar-results.is-theme-matrix {
  border-color: rgba(0, 255, 136, .32);
  background:
    linear-gradient(180deg, rgba(0, 255, 136, .08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(0, 255, 136, .045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(0, 255, 136, .035) 0 1px, transparent 1px 28px),
    var(--v8e-fs-panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .44), 0 0 34px rgba(0, 255, 136, .13);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-row,
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-tools {
  background: linear-gradient(135deg, rgba(0,255,136,.13), rgba(0,0,0,.12));
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-input,
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-select,
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-card,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-card,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-empty {
  color: var(--v8e-fs-text);
  border-color: rgba(0,255,136,.22);
  background: rgba(0, 9, 6, .78);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-card-excerpt,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-card-excerpt {
  color: #a7f3c2;
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-card-title,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-card-title,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-results-head strong {
  color: var(--v8e-fs-text);
  text-shadow: 0 0 10px rgba(0,255,136,.14);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-status,
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-empty,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-status,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-empty {
  background: rgba(0, 18, 10, .72);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-pill,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-pill {
  color: #bbf7d0;
  border-color: rgba(0,255,136,.23);
  background: rgba(0, 40, 22, .74);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-pill.is-match,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-pill.is-match,
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-pill.is-type,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-pill.is-type {
  color: #001b0f;
  background: rgba(0,255,136,.82);
  border-color: rgba(0,255,136,.54);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-card-icon,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-card-icon {
  color: #00ff88;
  background: rgba(0,255,136,.11);
  border-color: rgba(0,255,136,.28);
}
.v8e-frontend-searchbar.is-theme-matrix .v8e-searchbar-mark,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-mark {
  color: #001b0f;
  background: rgba(0,255,136,.72);
}
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-card,
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-input,
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-select {
  color: var(--v8e-fs-text);
  background: rgba(2,6,23,.72);
}
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-card-title,
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-results-head strong { color: var(--v8e-fs-text); }
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-card-excerpt { color: #cbd5e1; }
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-empty { background: rgba(2,6,23,.42); }
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-pill { color: #cbd5e1; background: rgba(15,23,42,.76); }
.v8e-searchbar-results.is-theme-dark .v8e-searchbar-more-wrap,
.v8e-searchbar-results.is-theme-matrix .v8e-searchbar-more-wrap {
  background: linear-gradient(to top, var(--v8e-fs-panel), rgba(15,23,42,.72), transparent);
}
@media (max-width: 720px) {
  .v8e-searchbar-results-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .v8e-searchbar-results-theme {
    width: 100%;
    justify-content: stretch;
  }
  .v8e-searchbar-theme-btn {
    flex: 1 1 auto;
    min-height: 34px;
  }
  .v8e-searchbar-theme-btn.is-close { flex: 0 0 42px; }
  .v8e-searchbar-results.is-portaled {
    max-width: calc(100vw - 12px);
    border-radius: 16px;
    padding: 10px;
  }
}
@media (max-width: 420px) {
  .v8e-searchbar-results { padding: 9px; }
  .v8e-searchbar-results-head { gap: 8px; }
  .v8e-searchbar-theme-btn { padding-inline: 7px; font-size: 10px; }
}


/* v1.6.281: harden search result thumbnails against theme/global img CSS overrides. */
.v8e-searchbar-thumb-wrap .v8e-searchbar-thumb,
.v8e-searchbar-results .v8e-searchbar-thumb {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.v8e-searchbar-thumb-wrap { flex: 0 0 74px; }
@media (max-width: 640px) { .v8e-searchbar-thumb-wrap { flex-basis: 64px; } }


/* v1.6.281: taskbar-embedded search still exposes filters while active/results are open. */
.v8e-frontend-searchbar.is-taskbar-embedded:focus-within .v8e-searchbar-tools,
.v8e-frontend-searchbar.is-taskbar-embedded.has-results .v8e-searchbar-tools {
  display: grid !important;
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  width: min(92vw, 720px);
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  padding: 10px;
  border: 1px solid var(--v8e-fs-border);
  border-radius: 16px;
  background: var(--v8e-fs-panel);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
  z-index: 2147482502;
}
.v8e-frontend-searchbar.is-taskbar-embedded:focus-within .v8e-searchbar-hint,
.v8e-frontend-searchbar.is-taskbar-embedded.has-results .v8e-searchbar-hint { display: none; }
@media (max-width: 560px) {
  .v8e-frontend-searchbar.is-taskbar-embedded:focus-within .v8e-searchbar-tools,
  .v8e-frontend-searchbar.is-taskbar-embedded.has-results .v8e-searchbar-tools { grid-template-columns: 1fr; width: min(94vw, 420px); }
}
