/* Pasek obok „Importuj” — spójnie z photo-gallery-enhancements */
#editorial-article-toolbar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

/* Gdy nie ma przycisku importu w DOM — pasek na górze main */
#editorial-article-toolbar-wrap.editorial-article-toolbar-wrap--fallback {
  max-width: 100%;
}

#editorial-article-search-bar.editorial-article-search-bar--toolbar {
  flex: 1 1 220px;
  max-width: min(100%, 520px);
  margin-bottom: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#editorial-article-search-bar .editorial-article-search-title {
  flex: 0 0 auto;
}

#editorial-article-search-bar input[type='search'] {
  flex: 1 1 160px;
  min-width: 120px;
}

#editorial-article-search-bar button {
  align-self: center;
}

.editorial-article-search-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border, 214 32% 31%) / 0.65);
  background: hsl(var(--card, 222 47% 11%) / 0.75);
  color: hsl(var(--card-foreground, 210 40% 98%));
  font: 13px/1.4 system-ui, -apple-system, sans-serif;
}

.editorial-article-search-bar .editorial-article-search-title {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.editorial-article-search-bar .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editorial-article-search-bar input[type='search'] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--input, 214 32% 31%));
  background: hsl(var(--background, 222 47% 11%));
  color: hsl(var(--foreground, 210 40% 98%));
}

.editorial-article-search-bar button {
  align-self: flex-start;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--border, 214 32% 31%));
  background: hsl(var(--secondary, 217 33% 17%));
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.editorial-article-search-bar button:hover {
  filter: brightness(1.08);
}
