/* ============ Search (Ctrl+F): above the toolbar, clear of the view switch and the Gantt header ============ */
#searchBar {
  position: fixed; bottom: 70px; left: var(--mid); z-index: 17;
  display: flex; align-items: center; gap: 2px;
  width: min(420px, calc(100vw - 32px)); padding: 5px 5px 5px 12px; border-radius: 13px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px) scale(.98);
  transition: opacity .2s, transform .35s var(--spring), left .45s var(--ease), border-color .2s;
}
#searchBar.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#searchBar:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
#searchBar.none { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
#searchBar .sb-icon { display: grid; color: var(--text-3); margin-right: 6px; }
#searchBar .sb-icon svg.i { width: 16px; height: 16px; }
#searchInput {
  flex: 1; min-width: 0; height: 28px; border: 0; outline: 0; background: none;
  font: inherit; font-size: 14px; color: var(--text);
}
#searchInput::placeholder { color: var(--text-3); }
#searchCount { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; margin: 0 6px; }
#searchBar.none #searchCount { color: var(--danger); }
#searchNext svg.i { transform: rotate(180deg); }
#searchBtn.on, body.searching #searchBtn { color: var(--accent); }

/* ============ Import: a file dragged over the window ============ */
body.file-over::after {
  content: "Отпустите файл, чтобы импортировать его как новый проект";
  position: fixed; inset: 12px; z-index: 50; pointer-events: none;
  display: grid; place-items: center;
  border-radius: var(--radius); border: 2px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 15px; font-weight: 600; color: var(--accent);
}
