/* ── Toolbar ─────────────────────────────────── */
#toolbar {
  height: 68px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

/* ── Brand ───────────────────────────────────── */
.toolbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.toolbar__logo-mark {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  flex-shrink: 0;
}

.toolbar__title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  white-space: nowrap;
}

.toolbar__subtitle {
  font-size: 11px;
  color: #d3d3d3;
  margin-top: 3px;
  line-height: 1;
  white-space: nowrap;
}

/* ── Search ──────────────────────────────────── */
.toolbar__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.toolbar__search-icon {
  position: absolute;
  left: 10px;
  color: #555555;
  font-size: 17px;
  pointer-events: none;
  line-height: 1;
}

#search-input {
  width: 180px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 13px;
  padding: 0 28px 0 32px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

#search-input::placeholder { color: #555555; }

#search-input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}

#search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
}

#search-clear:hover { color: #f0f0f0; }

/* ── Filters ─────────────────────────────────── */
.toolbar__filters {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.toolbar__filters select {
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 12px;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
  max-width: 250px;
}

.toolbar__filters select:hover,
.toolbar__filters select:focus { border-color: rgba(255,255,255,0.22); }

.toolbar__filters select option {
  background: #1a1a1a;
  color: #f0f0f0;
}

/* ── Mode buttons ────────────────────────────── */
.toolbar__modes {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 4px;
  flex-shrink: 0;
}

.mode-btn {
  padding: 5px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.mode-btn:hover { color: #aaa; }

.mode-btn.active {
  background: #ffffff;
  color: #000000;
}

/* ── Action buttons (floating menu) ─────────── */
.action-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #aaa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.action-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #f0f0f0;
}

/* ── Toolbar end group (lang + viewport controls) ─ */
.toolbar__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
}

/* ── Language toggle ─────────────────────────── */
.toolbar__lang {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 4px;
  flex-shrink: 0;
}

.lang-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background var(--t-fast), color var(--t-fast);
}

.lang-btn:hover { color: #aaa; }

.lang-btn.active {
  background: #ffffff;
  color: #000000;
}

/* ── Viewport controls ───────────────────────── */
.toolbar__viewport-controls {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.toolbar__viewport-controls button {
  height: 36px;
  padding: 0 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #888;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.toolbar__viewport-controls button:hover {
  background: rgba(255,255,255,0.12);
  color: #f0f0f0;
}
