/* Virii8 Core Frontend Advanced Searchbar Base CSS
 * v1.6.502: first-paint shell only. Results/theme-heavy CSS lazy-loads on search intent.
 */
.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: var(--v8e-fs-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-title { padding: 12px 14px 0; font-weight: 900; letter-spacing: -.01em; color: var(--v8e-fs-text); }
.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-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); }
.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-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-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 { color: var(--v8e-fs-text); background: rgba(2,6,23,.72); }
.v8e-frontend-searchbar.is-theme-minimal .v8e-searchbar-shell { box-shadow: none; }
.v8e-frontend-searchbar.is-floating { position: fixed; left: 24px; top: 86px; width: min(92vw, var(--v8e-fs-max-width, 980px)); z-index: 2147482500; }
.v8e-frontend-searchbar.is-taskbar-embedded { display: inline-block; width: min(38vw, 420px); max-width: 420px; margin: 0; vertical-align: middle; z-index: 2147482500; }
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-shell { border-radius: 999px; box-shadow: none; }
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 4px 6px; gap: 6px; }
.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: 28px; height: 28px; min-height: 28px; font-size: 13px; }
.v8e-frontend-searchbar.is-taskbar-embedded .v8e-searchbar-input { min-height: 28px; padding: 6px 8px; border-radius: 999px; font-size: 13px; }
.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; }
@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; }
}
@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 { color: var(--v8e-fs-text); background: rgba(2, 6, 23, .72); }
  .v8e-searchbar-status { background: rgba(2, 6, 23, .42); }
}
